Code:
{"version":1,"settings":{"arduino":{"WriteJSONtoExportedFile":false,"ProjectName":"OSC demo","Board":{"Platform":"","Board":"","Options":""}},"BiDirDataWebSocketBridge":{"MidiDeviceOut":2},"workspaces":{},"sidebar":{},"palette":{"categoryHeaderTextSize":16,"categoryHeaderHeight":20,"onlyShowOne":false},"editor":{"aceEditorTheme":"chrome"},"devTest":{},"IndexedDBfiles":{"testFileNames":"testFile.txt"},"NodeDefGenerator":{},"NodeDefManager":{},"NodeHelpManager":{}},"workspaces":[{"type":"tab","id":"3629fcd9.ccc604","label":"Main","inputs":0,"outputs":0,"export":false,"isMain":false,"mainNameType":"tabName","mainNameExt":".ino","generateCppDestructor":false,"extraClassDeclarations":"","settings":{"showNodeToolTip":false,"workspaceBgColor":"#EDFFDF","scaleFactor":0.8,"showGridHminor":false,"showGridHmajor":false,"showGridVminor":false,"showGridVmajor":false,"gridHminorSize":20,"gridHmajorSize":200,"gridVminorSize":20,"gridVmajorSize":130,"gridMinorColor":"#DDDDDD","gridMajorColor":"#DDDDDD","snapToGridHsize":10,"snapToGridVsize":10,"nodeDefaultTextSize":15,"useCenterBasedPositions":false},"nodes":[{"id":"Sheet_1_Slider2","type":"UI_Slider","name":"amplitude","comment":"","w":30,"h":280,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val/d.maxVal","minVal":0,"maxVal":100,"val":0,"outputFloat":false,"minValF":-1,"maxValF":1,"floatVal":0,"decimalCount":-1,"steps":201,"sendSpace":true,"repeat":false,"repeatPeriod":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var fVal = d.val/d.maxVal;\nvar addr = \"/teensy1/audio/waveform1/am*\";\nvar data = OSC.GetSimpleOSCdata(addr,\"f\", fVal);\nOSC.SendAsSlipToSerial(data);","x":290,"y":50,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Sheet_1_ListBox1","type":"UI_ListBox","name":"waveform","comment":"","w":119,"h":301,"textSize":20,"midiCh":"","midiId":"20","itemTextSize":"","items":"Sine\nSawtooth\nSquare\nTriangle\nPulse\nSaw. Rev.\nSample H\nVar. Tri.","selectedIndex":0,"selectedIndexOffset":"","headerHeight":40,"itemBGcolor":"#FFFFFF","sendCommand":"var addr = \"/teensy1/audio/waveform1/b*\";\nvar data = OSC.GetSimpleOSCdata(addr,\"i\", d.selectedIndex);\nOSC.SendAsSlipToSerial(data);\n","x":130,"y":50,"z":"3629fcd9.ccc604","bgColor":"#F87A00","wires":[]},{"id":"Sheet_1_Slider3","type":"UI_Slider","name":"frequency","comment":"","w":30,"h":691,"textSize":16,"midiCh":"","midiId":"29","orientation":"v","label":"d.val + \"Hz\"","minVal":1,"maxVal":4186,"val":150,"outputFloat":false,"minValF":-1,"maxValF":1,"floatVal":0,"decimalCount":-1,"steps":201,"sendSpace":true,"repeat":false,"repeatPeriod":0,"sendMode":"m","autoReturn":false,"returnValue":"mid","barFGcolor":"#F87A00","sendFormat":"\"midisend(0xB0,\"+d.midiId+\",\" + d.val + \");\"","sendCommand":"var addr = \"/teensy1/audio/waveform1/f*\";\nvar data = OSC.GetSimpleOSCdata(addr,\"f\", d.val);\nOSC.SendAsSlipToSerial(data);","x":380,"y":50,"z":"3629fcd9.ccc604","bgColor":"#808080","wires":[]},{"id":"Sheet_1_Button1","type":"UI_Button","name":"init waveform","comment":"","w":120,"h":34,"textSize":16,"midiCh":"0","midiId":"0","pressAction":"","repeatPressAction":false,"releaseAction":"","repeatReleaseAction":false,"local":"true","sendCommand":"// example of a multi parameter message\r\n// this is for the begin(level, frequency, waveform) function\r\nvar addr = \"/teensy1/audio/waveform1/b*\";\r\nvar data = osc.writePacket( {\r\n address:addr,\r\n args:[\r\n {\r\n type:\"f\",\r\n value:1.0\r\n },\r\n {\r\n type:\"f\",\r\n value:220\r\n },\r\n {\r\n type:\"i\",\r\n value:1\r\n }\r\n ]});\r\nOSC.SendAsSlipToSerial(data);","x":450,"y":70,"z":"3629fcd9.ccc604","bgColor":"#F6F8BC","wires":[]}]}],"nodeAddons":{}
}
just import it