mosaicode-javascript-webaudio/blocks/sound/delay.json

40 lines
962 B
JSON

{
"source": "JSON",
"data": "BLOCK",
"version": "0.0.1",
"type": "delay",
"language": "javascript",
"extension": "webaudio",
"help": "Delay",
"label": "Delay",
"color": "150:150:250:150",
"group": "Sound",
"codes": {
"declaration": "\n// block_$id$ = Delay\nvar block_$id$ = context.createDelay();\nblock_$id$.delayTime.value = $prop[time]$;\nvar $port[input]$ = block_$id$;\nvar $port[output]$ = block_$id$;\n"
},
"properties": [
{
"name": "time",
"label": "Time",
"type": "Float",
"lower": 0,
"upper": 10000,
"step": 1,
"value": 1
}
],
"ports": [
{
"type": "mosaicode_lib_javascript_webaudio.extensions.ports.sound",
"label": "Input",
"conn_type": "Input",
"name": "input"
},
{
"type": "mosaicode_lib_javascript_webaudio.extensions.ports.sound",
"label": "Output",
"conn_type": "Output",
"name": "output"
}
]
}