Code:
{"version":1,"settings":{"main":{},"arduino":{"ProjectName":"AudioPassThrough","Board":{"Platform":"","Board":"","Options":""}},"BiDirDataWebSocketBridge":{},"workspaces":{},"sidebar":{"autoSwitchTabToInfoTab":false},"palette":{},"editor":{},"devTest":{},"IndexedDBfiles":{"testFileNames":"testFile.txt"},"NodeDefGenerator":{},"NodeDefManager":{},"NodeHelpManager":{},"OSC":{"LiveUpdate":true,"RedirectDebugToConsole":false,"UseDebugLinkName":true}},"workspaces":[{"type":"tab","id":"3629fcd9.ccc604","label":"Main","nodes":[{"id":"Main_Button1","type":"UI_Button","name":"use connection to connect wafo to mixer1 input 1","comment":"","w":360,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = \"/teensy1/audio/wafo2mixer1/connect*\"\nvar data = OSC.GetSimpleOSCdata(addr,\"sisi\", \"wafo\", 0, \"mixer1\", 1);\nOSC.SendAsSlipToSerial(data);","x":2200,"y":170,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Slider1","type":"UI_Slider","name":"ch1","tag":"ga 0","comment":"","w":32,"h":281,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":75,"divVal":1,"fval":75,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group1","x":805,"y":164.2857208251953,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider2","type":"UI_Slider","name":"ch2","tag":"ga 1","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":59,"divVal":1,"fval":59,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group1","x":855,"y":165,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider3","type":"UI_Slider","name":"ch3","tag":"ga 2","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group1","x":905,"y":164.2857208251953,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider4","type":"UI_Slider","name":"ch4","tag":"ga 3","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group1","x":955,"y":164.2857208251953,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Button2","type":"UI_Button","name":"create new AudioSynthWaveForm wafo","comment":"","w":275,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = \"/teensy1/dynamic/createObject*\"\nvar data = OSC.GetSimpleOSCdata(addr,\"ss\", \"AudioSynthWaveform\", \"wafo\");\nOSC.SendAsSlipToSerial(data);","x":2260,"y":90,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Button3","type":"UI_Button","name":"create connection wafo2mixer1","comment":"","w":223,"h":30,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = \"/teensy1/dynamic/createConn*\"\nvar data = OSC.GetSimpleOSCdata(addr,\"s\", \"wafo2mixer1\");\nOSC.SendAsSlipToSerial(data);","x":2260,"y":130,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Button4","type":"UI_Button","name":"do all above in one go","comment":"","w":157,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var data = osc.writeBundle({\r\n timeTag: osc.timeTag(0),\r\n packets: [\r\n {\r\n address: \"/teensy1/dynamic/createObject*\",\r\n args: [\r\n\t\t\t\t\t{type: \"s\", value: \"AudioSynthWaveform\"},\r\n\t\t\t\t\t{type: \"s\", value: \"wafo\"}\r\n ]\r\n },\r\n {\r\n address: \"/teensy1/dynamic/createConn*\",\r\n args: [\r\n {type: \"s\", value: \"wafo2mixer1\"}\r\n ]\r\n },\r\n {\r\n address: \"/teensy1/audio/wafo2mixer1/connect*\",\r\n args: [\r\n {type: \"s\", value: \"wafo\"},\r\n\t\t\t\t\t{type: \"i\", value: 0},\r\n\t\t\t\t\t{type: \"s\", value: \"mixer1\"},\r\n\t\t\t\t\t{type: \"i\", value: 1}\r\n ]\r\n }\r\n\t\t\t\r\n ]\r\n });\r\nOSC.SendAsSlipToSerial(data);","x":2280,"y":210,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_group1","type":"group","name":"mixerS","tag":"","comment":"","w":354,"h":472,"textSize":14,"nodes":["Main_Slider1","Main_Slider2","Main_Slider3","Main_Slider4","Main_Button6","Main_Button13","Main_Slider8","20220220T140211_223Z_d5fa"],"border_color":"rgba(153,153,153,1)","individualListBoxMode":true,"exportAsClass":true,"x":785,"y":110,"z":"3629fcd9.ccc604","bgColor":"rgba(221,255,187,1)","wires":[]},{"id":"Main_Button6","type":"UI_Button","name":"set all mixer gains to 0.10","tag":"gain","comment":"","w":176,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var parentName = d.parentGroup.name;\r\nvar gain = 0.10;\r\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\r\n\r\nvar bundle = OSC.CreateBundle(0);\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",0,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",1,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",2,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",3,gain));\r\nOSC.SendData(OSC.CreateBundleData(bundle));\r\n\r\n// update sliders in ui\r\nfor (var i=0; i<d.parentGroup.nodes.length; i++) {\r\n d.parentGroup.nodes[i].val = gain*d.parentGroup.nodes[i].maxVal;\r\n d.parentGroup.nodes[i].dirty=true;\r\n}\r\nRED.view.redraw();","parentGroup":"Main_group1","x":805,"y":485,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Button7","type":"UI_Button","name":"Button","comment":"","w":100,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = \"/teensy1/dynamic/createObject*\"\nvar data = OSC.GetSimpleOSCdata(addr,\"ss\", \"AudioSynthWaveform\", \" \");\nOSC.SendAsSlipToSerial(data);","x":2340,"y":280,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Button8","type":"UI_Button","name":"rename waveform2 to wafo1","comment":"","w":275,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = \"/teensy1/dynamic/ren*\"\nvar data = OSC.GetSimpleOSCdata(addr,\"ss\", \"waveform2\", \"wafo\");\nOSC.SendAsSlipToSerial(data);","x":2295,"y":370,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Button9","type":"UI_Button","name":"enable","tag":"enabl","comment":"","w":56,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,''));","parentGroup":"Main_group7","x":1180,"y":150,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Slider15","type":"UI_Slider","name":"volume","tag":"vol","comment":"","w":30,"h":265,"textSize":14,"midiCh":"0","midiId":"0","orientation":"v","label":"d.val","minVal":0,"maxVal":100,"val":66,"divVal":1,"fval":66,"sendMode":"r","autoReturn":false,"returnValue":"mid","barFGcolor":"#F6F8BC","sendFormat":"","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,'f',d.val/d.maxVal));","parentGroup":"Main_group7","x":1190,"y":220,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_group7","type":"group","name":"sgtl_5000","tag":"","comment":"","w":122,"h":403,"textSize":14,"nodes":["Main_Button9","Main_Slider15","20220314T083531_620Z_8b66"],"border_color":"rgba(153,153,153,1)","individualListBoxMode":true,"exportAsClass":true,"x":1170,"y":115,"z":"3629fcd9.ccc604","bgColor":"rgba(221,255,187,1)","wires":[]},{"id":"Main_Button13","type":"UI_Button","name":"set all mixer gains to 0","tag":"gain","comment":"","w":176,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var parentName = d.parentGroup.name;\r\nvar gain = 0;\r\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\r\n\r\nvar bundle = OSC.CreateBundle(0);\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",0,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",1,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",2,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",3,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",4,gain));\r\nOSC.SendData(OSC.CreateBundleData(bundle));\r\n\r\n// update sliders in ui\r\nfor (var i=0; i<d.parentGroup.nodes.length; i++) {\r\n d.parentGroup.nodes[i].val = gain*d.parentGroup.nodes[i].maxVal;\r\n d.parentGroup.nodes[i].dirty=true;\r\n}\r\nRED.view.redraw();","parentGroup":"Main_group1","x":805,"y":530,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Slider8","type":"UI_Slider","name":"ch5","tag":"ga 4","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":76,"divVal":1,"fval":76,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group1","x":1010,"y":165,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_group2","type":"group","name":"mixerS","tag":"","comment":"","w":726,"h":293,"textSize":14,"nodes":["Main_Slider5","Main_Button10","Main_Slider6","Main_Slider7","Main_Slider9","Main_Slider10","Main_Slider11","Main_Slider12"],"border_color":"rgba(153,153,153,1)","individualListBoxMode":true,"exportAsClass":true,"x":30,"y":290,"z":"3629fcd9.ccc604","bgColor":"rgba(221,255,187,1)","wires":[]},{"id":"Main_Slider5","type":"UI_Slider","name":"bal 1+2","tag":"bal 0","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":40,"y":335,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Button10","type":"UI_Button","name":"pan all to centre","tag":"pan","comment":"","w":119,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var parentName = d.parentGroup.name;\r\nvar gain = 0;\r\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\r\n\r\nvar bundle = OSC.CreateBundle(0);\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",0,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",1,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",2,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",3,gain));\r\nbundle.packets.push(OSC.CreatePacket(addr,\"if\",4,gain));\r\nOSC.SendData(OSC.CreateBundleData(bundle));\r\n\r\n// update sliders in ui\r\nfor (var i=0; i<d.parentGroup.nodes.length; i++) {\r\n d.parentGroup.nodes[i].val = gain*d.parentGroup.nodes[i].maxVal / 2;\r\n d.parentGroup.nodes[i].dirty=true;\r\n}\r\nRED.view.redraw();","parentGroup":"Main_group2","x":55,"y":505,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"Main_Slider6","type":"UI_Slider","name":"bal 3+4","tag":"bal 2","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":40,"y":425,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider7","type":"UI_Slider","name":"pan 1","tag":"pan 0","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":275,"y":335,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider9","type":"UI_Slider","name":"pan 2","tag":"pan 1","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":510,"y":335,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider10","type":"UI_Slider","name":"pan 3","tag":"pan 2","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":275,"y":425,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider11","type":"UI_Slider","name":"pan 4","tag":"pan 3","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":510,"y":425,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Main_Slider12","type":"UI_Slider","name":"pan 5","tag":"pan 4","comment":"","w":222,"h":34,"textSize":16,"midiCh":"","midiId":"29","orientation":"h","label":"d.val/d.maxVal","minVal":-100,"maxVal":100,"val":0,"divVal":1,"fval":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendData(OSC.CreateMessageData(addr,\"if\", tags[1], d.val/d.maxVal));","parentGroup":"Main_group2","x":275,"y":505,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"20220220T140211_223Z_d5fa","type":"UI_Slider","name":"knee","tag":"setSoft x","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":67,"divVal":1,"fval":67,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var tags = d.tag.split(' ');\nvar addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0];\nOSC.SendData(OSC.CreateMessageData(addr,\"f\", d.val/d.maxVal));","parentGroup":"Main_group1","x":1085,"y":165,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"20220313T112625_472Z_9c7a","type":"group","name":"system","tag":"","comment":"","w":129,"h":186,"textSize":14,"nodes":["20220313T112652_109Z_345a","20220313T113326_320Z_c2ba","20220313T113349_839Z_8177","20220528T145257_534Z_c444"],"border_color":"rgba(153,153,153,1)","individualListBoxMode":true,"exportAsClass":true,"x":1325,"y":115,"z":"3629fcd9.ccc604","bgColor":"rgba(221,255,187,1)","wires":[]},{"id":"20220313T112652_109Z_345a","type":"UI_Button","name":"list","tag":"listObjects","comment":"","w":100,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/\"+d.parentGroup.name+\"/\"+d.tag;\nOSC.SendData(OSC.CreateMessageData(addr,''));","parentGroup":"20220313T112625_472Z_9c7a","x":1339.75,"y":152,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"20220313T113326_320Z_c2ba","type":"UI_Button","name":"heap","tag":"heap","comment":"","w":100,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/\"+d.parentGroup.name+\"/\"+d.tag;\nOSC.SendData(OSC.CreateMessageData(addr,''));","parentGroup":"20220313T112625_472Z_9c7a","x":1339.75,"y":202,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]},{"id":"20220313T113349_839Z_8177","type":"UI_Button","name":"reset","tag":"reset","comment":"","w":43,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/\"+d.parentGroup.name+\"/\"+d.tag;\nOSC.SendData(OSC.CreateMessageData(addr,''));","parentGroup":"20220313T112625_472Z_9c7a","x":1339.75,"y":252,"z":"3629fcd9.ccc604","bgColor":"#F87E7E","wires":[]},{"id":"20220314T083531_620Z_8b66","type":"UI_Slider","name":"out","tag":"lineOutLevel","comment":"","w":30,"h":265,"textSize":14,"midiCh":"0","midiId":"0","orientation":"v","label":"d.val","minVal":13,"maxVal":31,"val":23,"divVal":1,"fval":23,"sendMode":"r","autoReturn":false,"returnValue":"mid","barFGcolor":"#F6F8BC","sendFormat":"","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag;\nOSC.SendData(OSC.CreateMessageData(addr,'i',d.val));","parentGroup":"Main_group7","x":1245,"y":220,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"20220528T145257_534Z_c444","type":"UI_Button","name":"led","tag":"LED","comment":"","w":43,"h":34,"textSize":14,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"var addr = RED.OSC.settings.RootAddress + \"/\"+d.parentGroup.name+\"/\"+d.tag;\nif (0xF8C00E == d.color) // currently appears \"on\"\n{\n d.color = 0xF8E5AA;\n d.bgColor = 0xF8E5AA;\n OSC.SendData(OSC.CreateMessageData(addr,'F',0));\n}\nelse\n{\n d.color = 0xF8C00E;\n d.bgColor = 0xF8C00E;\n OSC.SendMessage(addr,'T');\n}\nd.changed = true\nd.dirty = true\n","parentGroup":"20220313T112625_472Z_9c7a","x":1400,"y":250,"z":"3629fcd9.ccc604","bgColor":16311722,"wires":[]},{"id":"Main_adc1","type":"AudioInputAnalog","name":"adc","comment":"","x":75,"y":95,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[["Main_mixerStereo1:4"]]},{"id":"20220413T154449_639Z_e435","type":"AsyncAudioInputSPDIF3","name":"spdif_async","comment":"","x":70,"y":140,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[["Main_mixerStereo1:0"],["Main_mixerStereo1:1"]]},{"id":"20220410T142952_047Z_830f","type":"AudioInputI2S","name":"i2si","comment":"","x":75,"y":190,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[["Main_mixerStereo1:2"],["Main_mixerStereo1:3"]]},{"id":"20220314T140814_784Z_46a8","type":"Comment","name":"ADC object position","comment":"adc needs to be top left for now, so the variable delay from AsyncSPDIF doesn't cause dropouts","x":140,"y":70,"z":"3629fcd9.ccc604","bgColor":"#DDFFBB","wires":[]},{"id":"Main_mixerStereo1","type":"AudioMixerStereo","name":"mixerS","comment":"","inputs":5,"RealInputs":5,"x":305,"y":145,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[["Main_i2s1:0","20220313T164142_612Z_c2f1:0","20220314T141146_538Z_1b84:0","20220410T130753_013Z_2a4d:0"],["Main_i2s1:1","20220314T141146_538Z_1b84:1","20220410T130753_013Z_2a4d:1"]]},{"id":"20220313T164142_612Z_c2f1","type":"AudioOutputPWM","name":"pwm","comment":"","x":490,"y":85,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[]},{"id":"Main_i2s1","type":"AudioOutputI2S","name":"i2so","comment":"","x":490,"y":140,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[]},{"id":"20220314T141146_538Z_1b84","type":"AudioOutputUSB","name":"usb","comment":"","x":495,"y":190,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[]},{"id":"20220410T130753_013Z_2a4d","type":"AudioOutputSPDIF3","name":"spdif3","comment":"","x":480,"y":240,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[]},{"id":"Main_sgtl5000_1","type":"AudioControlSGTL5000","name":"sgtl_5000","comment":"","x":1175,"y":535,"z":"3629fcd9.ccc604","bgColor":"#E6E0F8","wires":[]}],"links":[],"export":true,"isMain":false,"mainNameType":"tabName","mainNameExt":".ino","isAudioMain":true,"generateCppDestructor":false,"extraClassDeclarations":"","settings":{"guiEditMode":false,"workspaceBgColor":"#EDFFDF","scaleFactor":0.8,"showGridHminor":false,"showGridHmajor":false,"showGridVminor":false,"showGridVmajor":false,"useCenterBasedPositions":false}}],"nodeAddons":{}
}
The /system/LED command (not currently pushed to a github example) takes a single boolean to turn the built-in LED on or off - this didn't work before, but seems OK now.