mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 14:09:59 +00:00
extended MIDI support. Some new general purpose nodes like sequencer, string, cast to number.
This commit is contained in:
@@ -81,6 +81,23 @@ Bypass.prototype.onExecute = function()
|
||||
LiteGraph.registerNodeType("math/bypass", Bypass );
|
||||
|
||||
|
||||
function ToNumber()
|
||||
{
|
||||
this.addInput("in");
|
||||
this.addOutput("out");
|
||||
}
|
||||
|
||||
ToNumber.title = "to Number";
|
||||
ToNumber.desc = "Cast to number";
|
||||
|
||||
ToNumber.prototype.onExecute = function()
|
||||
{
|
||||
var v = this.getInputData(0);
|
||||
this.setOutputData(0, Number(v) );
|
||||
}
|
||||
|
||||
LiteGraph.registerNodeType("math/to_number", ToNumber );
|
||||
|
||||
|
||||
function MathRange()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user