{ "version": 1, "settings": { "arduino": { "Board": { "Platform": "", "Board": "", "Options": "" } }, "BiDirDataWebSocketBridge": {}, "workspaces": {}, "sidebar": { "autoSwitchTabToInfoTab": false }, "palette": {}, "editor": {}, "devTest": {}, "IndexedDBfiles": { "testFileNames": "testFile.txt" }, "NodeDefGenerator": {}, "NodeDefManager": {}, "NodeHelpManager": {}, "OSC": { "DirectExport": true, "OnlyShowLastDebug": true, "ShowOutputDebug": false, "ShowOutputOscTxRaw": false, "ShowOutputOscRxRaw": false, "UseDebugLinkName": true } }, "workspaces": [ { "type": "tab", "id": "3629fcd9.ccc604", "label": "Main", "inputs": 0, "outputs": 0, "export": true, "isMain": false, "mainNameType": "tabName", "mainNameExt": ".ino", "generateCppDestructor": false, "extraClassDeclarations": "", "settings": { "workspaceBgColor": "#EDFFDF", "scaleFactor": 0.8, "showGridHminor": false, "showGridHmajor": false, "showGridVminor": false, "showGridVmajor": false, "useCenterBasedPositions": false }, "nodes": [ { "id": "Main_waveform1", "type": "AudioSynthWaveform", "name": "waveform1", "comment": "", "x": 45, "y": 195, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_multiply1:0" ] ] }, { "id": "Main_waveform2", "type": "AudioSynthWaveform", "name": "waveform2", "comment": "", "x": 45, "y": 235, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_mixer2:0" ] ] }, { "id": "Main_waveform3", "type": "AudioSynthWaveform", "name": "waveform3", "comment": "", "x": 45, "y": 280, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_mixer2:1" ] ] }, { "id": "Main_waveform4", "type": "AudioSynthWaveform", "name": "waveform4", "comment": "", "x": 45, "y": 325, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_mixer2:2" ] ] }, { "id": "Main_multiply1", "type": "AudioEffectMultiply", "name": "multiply", "comment": "", "x": 255, "y": 175, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_envelope1:0" ] ] }, { "id": "Main_mixer2", "type": "AudioMixer", "name": "mixer", "inputs": "3", "comment": "", "x": 235, "y": 255, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_multiply1:1" ] ] }, { "id": "Main_envelope1", "type": "AudioEffectEnvelope", "name": "env", "comment": "", "x": 360, "y": 220, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [ [ "Main_pt8211_2_1:0", "Main_pt8211_2_1:1" ] ] }, { "id": "Main_pt8211_2_1", "type": "AudioOutputPT8211_2", "name": "pt8211_2", "comment": "", "x": 465, "y": 220, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [] }, { "id": "Main_i2s1", "type": "AudioOutputI2S", "name": "i2s", "comment": "", "x": 475, "y": 275, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [] }, { "id": "Main_sgtl5000_1", "type": "AudioControlSGTL5000", "name": "sgtl5000", "comment": "", "x": 935, "y": 485, "z": "3629fcd9.ccc604", "bgColor": "#E6E0F8", "wires": [] }, { "id": "Main_Slider1", "type": "UI_Slider", "name": "ch1", "tag": "g 0", "comment": "", "w": 30, "h": 281, "textSize": 16, "midiCh": "", "midiId": "29", "orientation": "v", "label": "d.fval", "minVal": 0, "maxVal": 100, "val": 10, "divVal": 100, "fval": 0.1, "sendMode": "m", "autoReturn": false, "returnValue": "mid", "barFGcolor": "#F87A00", "sendFormat": "\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"", "sendCommand": "var tags = d.tag.split(' ');\nvar addr = OSC.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendMessage(addr,\"if\", tags[1], d.fval);", "parentGroup": "Main_group1", "x": 645, "y": 80, "z": "3629fcd9.ccc604", "bgColor": "#808080", "wires": [] }, { "id": "Main_Slider2", "type": "UI_Slider", "name": "ch2", "tag": "g 1", "comment": "", "w": 30, "h": 280, "textSize": 16, "midiCh": "", "midiId": "29", "orientation": "v", "label": "d.fval", "minVal": 0, "maxVal": 100, "val": 10, "divVal": 100, "fval": 0.1, "sendMode": "m", "autoReturn": false, "returnValue": "mid", "barFGcolor": "#F87A00", "sendFormat": "\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"", "sendCommand": "var tags = d.tag.split(' ');\nvar addr = OSC.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendMessage(addr,\"if\", tags[1], d.fval);", "parentGroup": "Main_group1", "x": 690, "y": 80, "z": "3629fcd9.ccc604", "bgColor": "#808080", "wires": [] }, { "id": "Main_Slider3", "type": "UI_Slider", "name": "ch3", "tag": "g 2", "comment": "", "w": 30, "h": 280, "textSize": 16, "midiCh": "", "midiId": "29", "orientation": "v", "label": "d.fval", "minVal": 0, "maxVal": 100, "val": 10, "divVal": 100, "fval": 0.1, "sendMode": "m", "autoReturn": false, "returnValue": "mid", "barFGcolor": "#F87A00", "sendFormat": "\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"", "sendCommand": "var tags = d.tag.split(' ');\nvar addr = OSC.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendMessage(addr,\"if\", tags[1], d.fval);", "parentGroup": "Main_group1", "x": 740, "y": 80, "z": "3629fcd9.ccc604", "bgColor": "#808080", "wires": [] }, { "id": "Main_Slider4", "type": "UI_Slider", "name": "ch4", "tag": "g 3", "comment": "", "w": 30, "h": 280, "textSize": 16, "midiCh": "", "midiId": "29", "orientation": "v", "label": "d.fval", "minVal": 0, "maxVal": 100, "val": 10, "divVal": 100, "fval": 0.1, "sendMode": "m", "autoReturn": false, "returnValue": "mid", "barFGcolor": "#F87A00", "sendFormat": "\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"", "sendCommand": "var tags = d.tag.split(' ');\nvar addr = OSC.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+tags[0]+\"*\";\nOSC.SendMessage(addr,\"if\", tags[1], d.fval);", "parentGroup": "Main_group1", "x": 785, "y": 80, "z": "3629fcd9.ccc604", "bgColor": "#808080", "wires": [] }, { "id": "Main_group1", "type": "group", "name": "mixer", "comment": "", "w": 246, "h": 472, "textSize": 14, "nodes": [ "Main_Slider1", "Main_Slider2", "Main_Slider3", "Main_Slider4", "Main_Button6", "Main_Button13", "Main_Slider26" ], "border_color": "rgba(153,153,153,1)", "individualListBoxMode": true, "exportAsClass": true, "x": 627.857177734375, "y": 30, "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": "g", "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 = OSC.RootAddress + \"/audio/\"+d.parentGroup.name+\"/\"+d.tag+\"*\";\r\n\r\nvar bundle = OSC.CreateBundle(0);\r\nbundle.add(addr,\"if\",0,gain);\r\nbundle.add(addr,\"if\",1,gain);\r\nbundle.add(addr,\"if\",2,gain);\r\nbundle.add(addr,\"if\",3,gain);\r\nbundle.add(addr,\"if\",4,gain);\r\nOSC.SendBundle(bundle);\r\n\r\n// update sliders in ui\r\nfor (var i=0; i