aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeanSapristi <tom.javel@gmail.com>2012-07-24 17:40:04 +0200
committerjeanSapristi <tom.javel@gmail.com>2012-07-24 17:40:04 +0200
commitefbcd51ff65ed807c0d83cce7c4cdc50d7090a64 (patch)
treed1a523fb6b36db0b01d671e527acfcfc062f6345
parent9f782fc26184b7c1a1c8eafed0c05b1e11061b96 (diff)
Add samples for MaxMSP
-rw-r--r--samples/maxmsp/Hello.maxhelp367
-rw-r--r--samples/maxmsp/Hello.maxpat368
-rw-r--r--samples/maxmsp/Hello.mxt1
3 files changed, 736 insertions, 0 deletions
diff --git a/samples/maxmsp/Hello.maxhelp b/samples/maxmsp/Hello.maxhelp
new file mode 100644
index 0000000..537f567
--- /dev/null
+++ b/samples/maxmsp/Hello.maxhelp
@@ -0,0 +1,367 @@
+{
+ "patcher" : {
+ "fileversion" : 1,
+ "appversion" : {
+ "major" : 5,
+ "minor" : 1,
+ "revision" : 9
+ }
+,
+ "rect" : [ 198.0, 92.0, 365.0, 407.0 ],
+ "bglocked" : 0,
+ "defrect" : [ 198.0, 92.0, 365.0, 407.0 ],
+ "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
+ "openinpresentation" : 0,
+ "default_fontsize" : 14.0,
+ "default_fontface" : 0,
+ "default_fontname" : "Arial",
+ "gridonopen" : 0,
+ "gridsize" : [ 20.0, 20.0 ],
+ "gridsnaponopen" : 0,
+ "toolbarvisible" : 1,
+ "boxanimatetime" : 200,
+ "imprint" : 0,
+ "enablehscroll" : 1,
+ "enablevscroll" : 1,
+ "devicewidth" : 0.0,
+ "boxes" : [ {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 260.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-22"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 240.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-20"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 220.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-18"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 200.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-16"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "route 0 1 2 3",
+ "patching_rect" : [ 200.0, 220.0, 99.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 5,
+ "outlettype" : [ "", "", "", "", "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-14"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "r jojo",
+ "patching_rect" : [ 200.0, 180.0, 41.0, 23.0 ],
+ "numinlets" : 0,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "color" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
+ "id" : "obj-13"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "s jojo",
+ "patching_rect" : [ 20.0, 340.0, 43.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 0,
+ "fontsize" : 14.0,
+ "color" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
+ "id" : "obj-12"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "append toto",
+ "patching_rect" : [ 20.0, 300.0, 84.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-11"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "% 4",
+ "patching_rect" : [ 20.0, 260.0, 35.0, 23.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-10"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "counter",
+ "patching_rect" : [ 20.0, 220.0, 73.0, 23.0 ],
+ "numinlets" : 5,
+ "fontname" : "Arial",
+ "numoutlets" : 4,
+ "outlettype" : [ "int", "", "", "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-9"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "metro 250",
+ "patching_rect" : [ 20.0, 180.0, 74.0, 23.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "fontsize" : 14.0,
+ "id" : "obj-8"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "toggle",
+ "patching_rect" : [ 20.0, 140.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "id" : "obj-7"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "t 0",
+ "patching_rect" : [ 140.0, 80.0, 26.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-5"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "t 1",
+ "patching_rect" : [ 20.0, 80.0, 26.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-4"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "message",
+ "text" : "Goodbye World !",
+ "patching_rect" : [ 140.0, 40.0, 115.0, 21.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-3"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "message",
+ "text" : "Hello World !",
+ "patching_rect" : [ 20.0, 40.0, 90.0, 21.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-2"
+ }
+
+ }
+ ],
+ "lines" : [ {
+ "patchline" : {
+ "source" : [ "obj-2", 0 ],
+ "destination" : [ "obj-4", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-3", 0 ],
+ "destination" : [ "obj-5", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-4", 0 ],
+ "destination" : [ "obj-7", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-5", 0 ],
+ "destination" : [ "obj-7", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ 149.5, 121.0, 29.5, 121.0 ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-7", 0 ],
+ "destination" : [ "obj-8", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-8", 0 ],
+ "destination" : [ "obj-9", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-9", 0 ],
+ "destination" : [ "obj-10", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-10", 0 ],
+ "destination" : [ "obj-11", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-11", 0 ],
+ "destination" : [ "obj-12", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-13", 0 ],
+ "destination" : [ "obj-14", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 0 ],
+ "destination" : [ "obj-16", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 1 ],
+ "destination" : [ "obj-18", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 2 ],
+ "destination" : [ "obj-20", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 3 ],
+ "destination" : [ "obj-22", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+ ]
+ }
+
+}
diff --git a/samples/maxmsp/Hello.maxpat b/samples/maxmsp/Hello.maxpat
new file mode 100644
index 0000000..7a27dd2
--- /dev/null
+++ b/samples/maxmsp/Hello.maxpat
@@ -0,0 +1,368 @@
+{
+ "patcher" : {
+ "fileversion" : 1,
+ "appversion" : {
+ "major" : 5,
+ "minor" : 1,
+ "revision" : 9
+ }
+,
+ "rect" : [ 198.0, 92.0, 365.0, 407.0 ],
+ "bglocked" : 0,
+ "defrect" : [ 198.0, 92.0, 365.0, 407.0 ],
+ "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
+ "openinpresentation" : 0,
+ "default_fontsize" : 14.0,
+ "default_fontface" : 0,
+ "default_fontname" : "Arial",
+ "gridonopen" : 0,
+ "gridsize" : [ 20.0, 20.0 ],
+ "gridsnaponopen" : 0,
+ "toolbarvisible" : 1,
+ "boxanimatetime" : 200,
+ "imprint" : 0,
+ "enablehscroll" : 1,
+ "enablevscroll" : 1,
+ "devicewidth" : 0.0,
+ "boxes" : [ {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 260.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-22"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 240.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-20"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 220.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-18"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "button",
+ "patching_rect" : [ 200.0, 260.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "id" : "obj-16"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "route 0 1 2 3",
+ "patching_rect" : [ 200.0, 220.0, 99.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 5,
+ "outlettype" : [ "", "", "", "", "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-14"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "r jojo",
+ "patching_rect" : [ 200.0, 180.0, 41.0, 23.0 ],
+ "numinlets" : 0,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "color" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
+ "id" : "obj-13"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "s jojo",
+ "patching_rect" : [ 20.0, 340.0, 43.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 0,
+ "fontsize" : 14.0,
+ "color" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
+ "id" : "obj-12"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "append toto",
+ "patching_rect" : [ 20.0, 300.0, 84.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-11"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "% 4",
+ "patching_rect" : [ 20.0, 260.0, 35.0, 23.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-10"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "counter",
+ "patching_rect" : [ 20.0, 220.0, 73.0, 23.0 ],
+ "numinlets" : 5,
+ "fontname" : "Arial",
+ "numoutlets" : 4,
+ "outlettype" : [ "int", "", "", "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-9"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "metro 250",
+ "patching_rect" : [ 20.0, 180.0, 74.0, 23.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "bang" ],
+ "fontsize" : 14.0,
+ "id" : "obj-8"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "toggle",
+ "patching_rect" : [ 20.0, 140.0, 20.0, 20.0 ],
+ "numinlets" : 1,
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "id" : "obj-7"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "t 0",
+ "patching_rect" : [ 140.0, 80.0, 26.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-5"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "newobj",
+ "text" : "t 1",
+ "patching_rect" : [ 20.0, 80.0, 26.0, 23.0 ],
+ "numinlets" : 1,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "int" ],
+ "fontsize" : 14.0,
+ "id" : "obj-4"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "message",
+ "text" : "Goodbye World !",
+ "patching_rect" : [ 140.0, 40.0, 115.0, 21.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "presentation_rect" : [ 137.0, 42.0, 0.0, 0.0 ],
+ "id" : "obj-3"
+ }
+
+ }
+, {
+ "box" : {
+ "maxclass" : "message",
+ "text" : "Hello World !",
+ "patching_rect" : [ 20.0, 40.0, 90.0, 21.0 ],
+ "numinlets" : 2,
+ "fontname" : "Arial",
+ "numoutlets" : 1,
+ "outlettype" : [ "" ],
+ "fontsize" : 14.0,
+ "id" : "obj-2"
+ }
+
+ }
+ ],
+ "lines" : [ {
+ "patchline" : {
+ "source" : [ "obj-14", 3 ],
+ "destination" : [ "obj-22", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 2 ],
+ "destination" : [ "obj-20", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 1 ],
+ "destination" : [ "obj-18", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-14", 0 ],
+ "destination" : [ "obj-16", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-13", 0 ],
+ "destination" : [ "obj-14", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-11", 0 ],
+ "destination" : [ "obj-12", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-10", 0 ],
+ "destination" : [ "obj-11", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-9", 0 ],
+ "destination" : [ "obj-10", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-8", 0 ],
+ "destination" : [ "obj-9", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-7", 0 ],
+ "destination" : [ "obj-8", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-5", 0 ],
+ "destination" : [ "obj-7", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ 149.5, 121.0, 29.5, 121.0 ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-4", 0 ],
+ "destination" : [ "obj-7", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-3", 0 ],
+ "destination" : [ "obj-5", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+, {
+ "patchline" : {
+ "source" : [ "obj-2", 0 ],
+ "destination" : [ "obj-4", 0 ],
+ "hidden" : 0,
+ "midpoints" : [ ]
+ }
+
+ }
+ ]
+ }
+
+}
diff --git a/samples/maxmsp/Hello.mxt b/samples/maxmsp/Hello.mxt
new file mode 100644
index 0000000..87da5a3
--- /dev/null
+++ b/samples/maxmsp/Hello.mxt
@@ -0,0 +1 @@
+max v2; #N vpatcher 109 76 569 534; #P toggle 31 168 21 0; #P button 360 299 15 0; #P button 322 299 15 0; #P button 284 299 15 0; #P button 246 299 15 0; #P window setfont Verdana 12.; #P window linecount 1; #P newex 246 168 43 472055820 r jojo; #B color 5; #P newex 31 386 45 472055820 s jojo; #B color 5; #P newex 246 254 162 472055820 route 0 1 2 3; #P newex 31 338 88 472055820 append toto; #P newex 31 296 35 472055820 % 4; #N counter; #X flags 0 0; #P newobj 31 251 75 472055820 counter; #P newex 31 209 75 472055820 metro 250; #P newex 164 96 32 472055820 t 0; #P message 164 55 136 472055820 Goodbye World !; #P newex 31 96 32 472055820 t 1; #P message 31 55 113 472055820 Hello World !; #P connect 0 0 1 0; #P fasten 3 0 15 0 169 146 36 146; #P connect 1 0 15 0; #P connect 15 0 4 0; #P connect 4 0 5 0; #P connect 5 0 6 0; #P connect 6 0 7 0; #P connect 7 0 9 0; #P connect 2 0 3 0; #P connect 10 0 8 0; #P connect 8 0 11 0; #P connect 8 1 12 0; #P connect 8 2 13 0; #P connect 8 3 14 0; #P pop; \ No newline at end of file