mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-03 20:51:58 +00:00
MIDI on SillyServer
This commit is contained in:
@@ -220,7 +220,23 @@ LGSillyClient.prototype.createSocket = function()
|
||||
}
|
||||
|
||||
if(data.type == 1)
|
||||
that.triggerSlot( 0, data );
|
||||
{
|
||||
if(data.data.object_class && LiteGraph[data.data.object_class] )
|
||||
{
|
||||
var obj = null;
|
||||
try
|
||||
{
|
||||
obj = new LiteGraph[data.data.object_class](data.data);
|
||||
that.triggerSlot( 0, obj );
|
||||
}
|
||||
catch (err)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
that.triggerSlot( 0, data.data );
|
||||
}
|
||||
else
|
||||
that._last_received_data[ data.channel || 0 ] = data.data;
|
||||
that.boxcolor = "#AFA";
|
||||
|
||||
Reference in New Issue
Block a user