X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpreter/preprocessor/faust-0.9.47mr3/examples/oscio.maxpat diff --git a/interpreter/preprocessor/faust-0.9.47mr3/examples/oscio.maxpat b/interpreter/preprocessor/faust-0.9.47mr3/examples/oscio.maxpat new file mode 100644 index 0000000..4fda8da --- /dev/null +++ b/interpreter/preprocessor/faust-0.9.47mr3/examples/oscio.maxpat @@ -0,0 +1,753 @@ +{ + "patcher" : { + "fileversion" : 1, + "rect" : [ 25.0, 96.0, 288.0, 210.0 ], + "bglocked" : 0, + "defrect" : [ 25.0, 96.0, 288.0, 210.0 ], + "openrect" : [ 85.0, 44.0, 286.0, 210.0 ], + "openinpresentation" : 1, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 0, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 0, + "toolbarvisible" : 1, + "boxanimatetime" : 200, + "imprint" : 0, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "boxes" : [ { + "box" : { + "maxclass" : "comment", + "text" : "Print", + "patching_rect" : [ 14.0, 79.0, 150.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-16", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 19.0, 80.0, 39.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "gswitch2", + "patching_rect" : [ 165.0, 92.0, 39.0, 32.0 ], + "numoutlets" : 2, + "id" : "obj-15", + "outlettype" : [ "", "" ], + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "toggle", + "patching_rect" : [ 165.0, 64.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-11", + "outlettype" : [ "int" ], + "presentation_rect" : [ 27.0, 104.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "Send signal messages to any running faust program. \nDisplays the output in Max window.", + "linecount" : 4, + "presentation_linecount" : 4, + "patching_rect" : [ 392.0, 361.0, 153.0, 62.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-10", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 120.0, 89.0, 159.0, 62.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "ms", + "patching_rect" : [ 121.0, 173.0, 150.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-7", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 118.0, 173.0, 26.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "Speed", + "patching_rect" : [ 399.0, 302.0, 150.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-6", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 69.0, 3.0, 54.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "ON/OFF", + "patching_rect" : [ 396.0, 276.0, 150.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-4", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 10.0, 4.0, 54.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "100", + "patching_rect" : [ 316.0, 9.0, 52.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-36", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 223.0, 37.0, 34.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "50", + "patching_rect" : [ 276.0, 9.0, 35.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-35", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 187.0, 37.0, 28.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "10", + "patching_rect" : [ 226.0, 9.0, 39.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-33", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 151.0, 37.0, 28.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "1", + "patching_rect" : [ 165.0, 9.0, 43.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-20", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 124.0, 37.0, 28.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "Steps", + "patching_rect" : [ 411.0, 6.0, 150.0, 20.0 ], + "numoutlets" : 0, + "presentation" : 1, + "id" : "obj-13", + "fontname" : "Arial", + "fontsize" : 12.0, + "presentation_rect" : [ 162.0, 11.0, 48.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "button", + "patching_rect" : [ 555.0, 42.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-24", + "outlettype" : [ "bang" ], + "presentation_rect" : [ 228.0, 56.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "uzi 100", + "patching_rect" : [ 555.0, 81.0, 48.0, 20.0 ], + "numoutlets" : 3, + "id" : "obj-25", + "fontname" : "Arial", + "outlettype" : [ "bang", "bang", "int" ], + "fontsize" : 11.595187, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "button", + "patching_rect" : [ 411.0, 42.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-57", + "outlettype" : [ "bang" ], + "presentation_rect" : [ 124.0, 56.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "message", + "text" : "/* 1.", + "patching_rect" : [ 411.0, 147.0, 32.5, 18.0 ], + "numoutlets" : 1, + "id" : "obj-56", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "* 1.", + "patching_rect" : [ 123.0, 172.0, 32.5, 20.0 ], + "numoutlets" : 1, + "id" : "obj-53", + "fontname" : "Arial", + "outlettype" : [ "float" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "slider", + "patching_rect" : [ 125.0, 15.0, 20.0, 140.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-52", + "floatoutput" : 1, + "outlettype" : [ "" ], + "size" : 9.0, + "presentation_rect" : [ 77.0, 23.0, 20.0, 140.0 ], + "numinlets" : 1, + "min" : 1.0 + } + + } +, { + "box" : { + "maxclass" : "number", + "patching_rect" : [ 124.0, 210.0, 50.0, 20.0 ], + "numoutlets" : 2, + "presentation" : 1, + "id" : "obj-50", + "fontname" : "Arial", + "outlettype" : [ "int", "bang" ], + "fontsize" : 12.0, + "presentation_rect" : [ 64.0, 173.0, 50.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "button", + "patching_rect" : [ 497.0, 42.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-26", + "outlettype" : [ "bang" ], + "presentation_rect" : [ 188.0, 56.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "uzi 50", + "patching_rect" : [ 497.0, 81.0, 46.0, 20.0 ], + "numoutlets" : 3, + "id" : "obj-29", + "fontname" : "Arial", + "outlettype" : [ "bang", "bang", "int" ], + "fontsize" : 11.595187, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "s _faust", + "patching_rect" : [ 411.0, 187.0, 51.0, 20.0 ], + "numoutlets" : 0, + "id" : "obj-23", + "fontname" : "Arial", + "fontsize" : 11.595187, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "button", + "patching_rect" : [ 445.0, 42.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-19", + "outlettype" : [ "bang" ], + "presentation_rect" : [ 151.0, 56.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "uzi 10", + "patching_rect" : [ 445.0, 81.0, 46.0, 20.0 ], + "numoutlets" : 3, + "id" : "obj-8", + "fontname" : "Arial", + "outlettype" : [ "bang", "bang", "int" ], + "fontsize" : 11.595187, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "print FAUST", + "patching_rect" : [ 185.0, 138.0, 74.0, 20.0 ], + "numoutlets" : 0, + "id" : "obj-1", + "fontname" : "Arial", + "fontsize" : 11.595187, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "s _faust", + "patching_rect" : [ 32.0, 204.0, 53.0, 20.0 ], + "numoutlets" : 0, + "id" : "obj-12", + "fontname" : "Arial", + "fontsize" : 12.0, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "message", + "text" : "/* 0.1", + "patching_rect" : [ 32.0, 163.0, 39.0, 18.0 ], + "numoutlets" : 1, + "id" : "obj-5", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "metro 10", + "patching_rect" : [ 32.0, 127.0, 58.0, 20.0 ], + "numoutlets" : 1, + "id" : "obj-3", + "fontname" : "Arial", + "outlettype" : [ "bang" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "toggle", + "patching_rect" : [ 32.0, 90.0, 20.0, 20.0 ], + "numoutlets" : 1, + "presentation" : 1, + "id" : "obj-2", + "outlettype" : [ "int" ], + "presentation_rect" : [ 25.0, 25.0, 20.0, 20.0 ], + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "message", + "text" : "host 194.5.49.255", + "patching_rect" : [ 33.0, 311.0, 107.0, 18.0 ], + "numoutlets" : 1, + "id" : "obj-18", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "message", + "text" : "host 127.0.0.1", + "patching_rect" : [ 54.0, 334.0, 87.0, 18.0 ], + "numoutlets" : 1, + "id" : "obj-17", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 2 + } + + } +, { + "box" : { + "maxclass" : "comment", + "text" : "OSC communication", + "patching_rect" : [ 32.0, 268.0, 189.0, 23.0 ], + "numoutlets" : 0, + "id" : "obj-9", + "fontname" : "Arial", + "fontface" : 1, + "fontsize" : 14.0, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "print Error", + "patching_rect" : [ 239.0, 376.0, 64.0, 20.0 ], + "numoutlets" : 0, + "id" : "obj-14", + "fontname" : "Arial", + "fontsize" : 12.0, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "udpreceive 5512", + "patching_rect" : [ 239.0, 348.0, 99.0, 20.0 ], + "numoutlets" : 1, + "id" : "obj-28", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "udpreceive 5511", + "patching_rect" : [ 186.0, 59.0, 98.0, 20.0 ], + "numoutlets" : 1, + "id" : "obj-34", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "r _faust", + "patching_rect" : [ 161.0, 310.0, 51.0, 20.0 ], + "numoutlets" : 1, + "id" : "obj-37", + "fontname" : "Arial", + "outlettype" : [ "" ], + "fontsize" : 12.0, + "numinlets" : 0 + } + + } +, { + "box" : { + "maxclass" : "newobj", + "text" : "udpsend 127.0.0.1 5510", + "patching_rect" : [ 91.0, 376.0, 136.0, 20.0 ], + "numoutlets" : 0, + "id" : "obj-38", + "fontname" : "Arial", + "fontsize" : 11.595187, + "numinlets" : 1 + } + + } +, { + "box" : { + "maxclass" : "panel", + "patching_rect" : [ 17.0, 258.0, 334.0, 155.0 ], + "numoutlets" : 0, + "id" : "obj-47", + "bgcolor" : [ 0.878431, 0.94902, 0.839216, 1.0 ], + "numinlets" : 1 + } + + } + ], + "lines" : [ { + "patchline" : { + "source" : [ "obj-15", 1 ], + "destination" : [ "obj-1", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-34", 0 ], + "destination" : [ "obj-15", 1 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-11", 0 ], + "destination" : [ "obj-15", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-17", 0 ], + "destination" : [ "obj-38", 0 ], + "hidden" : 0, + "midpoints" : [ 63.5, 365.5, 100.5, 365.5 ] + } + + } +, { + "patchline" : { + "source" : [ "obj-18", 0 ], + "destination" : [ "obj-38", 0 ], + "hidden" : 0, + "midpoints" : [ 42.5, 360.0, 100.5, 360.0 ] + } + + } +, { + "patchline" : { + "source" : [ "obj-19", 0 ], + "destination" : [ "obj-8", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-2", 0 ], + "destination" : [ "obj-3", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-24", 0 ], + "destination" : [ "obj-25", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-25", 2 ], + "destination" : [ "obj-56", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-26", 0 ], + "destination" : [ "obj-29", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-28", 0 ], + "destination" : [ "obj-14", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-29", 2 ], + "destination" : [ "obj-56", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-3", 0 ], + "destination" : [ "obj-5", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-37", 0 ], + "destination" : [ "obj-38", 0 ], + "hidden" : 0, + "midpoints" : [ 170.5, 359.0, 100.5, 359.0 ] + } + + } +, { + "patchline" : { + "source" : [ "obj-5", 0 ], + "destination" : [ "obj-12", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-50", 0 ], + "destination" : [ "obj-3", 1 ], + "hidden" : 0, + "midpoints" : [ 133.5, 239.0, 107.0, 239.0, 107.0, 117.0, 80.5, 117.0 ] + } + + } +, { + "patchline" : { + "source" : [ "obj-52", 0 ], + "destination" : [ "obj-53", 1 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-52", 0 ], + "destination" : [ "obj-53", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-53", 0 ], + "destination" : [ "obj-50", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-56", 0 ], + "destination" : [ "obj-23", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-57", 0 ], + "destination" : [ "obj-56", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } +, { + "patchline" : { + "source" : [ "obj-8", 2 ], + "destination" : [ "obj-56", 0 ], + "hidden" : 0, + "midpoints" : [ ] + } + + } + ] + } + +}