So, now I've slowly started going. It's been a few months since I looked at Processing, started back into it today but found it difficult. However, I have done some good Max/MSP work on new piece (that's been on my mind all day). Managed to get a basic sample-grabber up and running, and a pitch-changer.
The idea is to have a midi keyboard "playing" a live musician by constantly sampling them and spawning off copies of that at slightly different pitches. In hindsight, it might be easier to build a delay/pitchshifter for this job, but sampling was the first patch I tried.
code/screenshots below, apologies for slightly messy code.
Keyboard sampleSpeed controller:
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "middle C is normal speed playback, try higher and lower keys",
"linecount" : 3,
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-38",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 66.0, 14.0, 150.0, 48.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* -1",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-35",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 233.0, 97.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadmess 2000",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-33",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 121.0, 178.0, 92.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 1.",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-32",
"outlettype" : [ "float" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 238.0, 149.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "/ 100.",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-31",
"outlettype" : [ "float" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 235.0, 125.0, 41.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "button",
"numoutlets" : 1,
"id" : "obj-29",
"outlettype" : [ "bang" ],
"fgcolor" : [ 0.152941, 0.956863, 0.152941, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 36.0, 329.0, 31.0, 31.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line~",
"numoutlets" : 2,
"fontsize" : 11.595187,
"id" : "obj-24",
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 214.5, 437.0, 35.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "play~ test",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-26",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 213.0, 463.0, 62.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b f",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-23",
"outlettype" : [ "bang", "float" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 236.0, 200.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0, 2000 2000",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-20",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 219.0, 416.333313, 78.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "gswitch",
"numoutlets" : 1,
"int" : 1,
"id" : "obj-17",
"outlettype" : [ "" ],
"numinlets" : 3,
"patching_rect" : [ 64.0, 410.0, 41.0, 32.0 ]
}
}
, {
"box" : {
"maxclass" : "flonum",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-15",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 238.0, 175.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 1.",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-11",
"outlettype" : [ "float" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 231.0, 224.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-10",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 171.0, 203.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-40",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 212.0, 287.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-39",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 167.0, 287.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-36",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 240.0, 256.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-34",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 182.0, 255.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-30",
"outlettype" : [ "int", "bang" ],
"minimum" : 0,
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 121.0, 254.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sprintf %ld\\, %ld %ld",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-28",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 3,
"patching_rect" : [ 117.0, 317.0, 120.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "toggle",
"numoutlets" : 1,
"id" : "obj-25",
"outlettype" : [ "int" ],
"numinlets" : 1,
"patching_rect" : [ 41.0, 462.0, 20.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0, 2000 2000",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-18",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 116.0, 406.333313, 78.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line~",
"numoutlets" : 2,
"fontsize" : 11.595187,
"id" : "obj-19",
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 112.5, 428.0, 35.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.7",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-16",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 114.0, 481.0, 42.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "dac~",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-14",
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 114.0, 524.0, 37.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "play~ test",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-13",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 111.0, 454.0, 62.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-8",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 351.0, 91.0, 35.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ test 2000",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-6",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 345.0, 124.0, 101.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "- 48",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-4",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 225.0, 72.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "kslider",
"numoutlets" : 2,
"id" : "obj-1",
"outlettype" : [ "int", "int" ],
"presentation_rect" : [ 0.0, 0.0, 168.0, 53.0 ],
"numinlets" : 2,
"range" : 24,
"patching_rect" : [ 224.0, 9.0, 168.0, 53.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-40", 1 ],
"destination" : [ "obj-28", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-39", 1 ],
"destination" : [ "obj-28", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-18", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-36", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-34", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-14", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-23", 1 ],
"destination" : [ "obj-11", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-24", 0 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-24", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-24", 1 ],
"destination" : [ "obj-17", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"midpoints" : [ 73.5, 451.0, 35.5, 451.0, 35.5, 319.0, 45.5, 319.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-32", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-31", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}
*****************************************************************************
*****************************************************************************
*****************************************************************************
*****************************************************************************
Sample Grabber
{
"boxes" : [ {
"box" : {
"maxclass" : "meter~",
"numoutlets" : 1,
"id" : "obj-71",
"outlettype" : [ "float" ],
"numinlets" : 1,
"patching_rect" : [ 42.0, 100.0, 80.0, 13.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "adc~",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-70",
"outlettype" : [ "signal", "signal" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 71.0, 72.0, 37.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 1",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-15",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 20.0, 152.0, 32.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "umenu",
"numoutlets" : 3,
"fontsize" : 11.595187,
"id" : "obj-69",
"outlettype" : [ "int", "", "" ],
"fontname" : "Arial",
"labelclick" : 1,
"items" : [ "adc", ",", "sfplay" ],
"numinlets" : 1,
"types" : [ ],
"patching_rect" : [ 20.0, 126.0, 59.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "selector~ 2 1",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-17",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 3,
"patching_rect" : [ 20.0, 179.0, 142.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "fade out",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-68",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 551.0, 370.0, 150.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "fade out",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-67",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 342.0, 461.0, 150.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "fade in",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-66",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 361.0, 438.0, 150.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-63",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 495.0, 407.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pipe",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-62",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 490.0, 428.0, 33.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0 200",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-56",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 299.0, 462.333313, 40.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "this box to alter playback speed",
"linecount" : 2,
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-55",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 546.0, 186.0, 150.0, 34.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-53",
"outlettype" : [ "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 268.0, 9.0, 60.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "sample position/length",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-52",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 393.0, 164.0, 150.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-50",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 554.0, 233.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "- 200",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-49",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 513.0, 370.0, 38.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "i",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-48",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 524.0, 342.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "abs",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-45",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 555.0, 285.0, 30.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "-",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-43",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 555.0, 260.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-40",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 469.0, 223.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-39",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 424.0, 223.0, 32.5, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-36",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 497.0, 192.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-34",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 439.0, 191.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "number",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-30",
"outlettype" : [ "int", "bang" ],
"minimum" : 0,
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 378.0, 190.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sprintf %ld\\, %ld %ld",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-28",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 3,
"patching_rect" : [ 374.0, 253.0, 120.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "loop 1",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-27",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 270.0, 166.0, 43.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "meter~",
"numoutlets" : 1,
"id" : "obj-26",
"outlettype" : [ "float" ],
"numinlets" : 1,
"patching_rect" : [ 152.0, 108.0, 80.0, 13.0 ]
}
}
, {
"box" : {
"maxclass" : "toggle",
"numoutlets" : 1,
"id" : "obj-25",
"outlettype" : [ "int" ],
"numinlets" : 1,
"patching_rect" : [ 189.0, 500.0, 20.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "button",
"numoutlets" : 1,
"id" : "obj-23",
"outlettype" : [ "bang" ],
"fgcolor" : [ 0.329412, 0.933333, 0.180392, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 352.0, 319.0, 39.0, 39.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pipe 100",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-21",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 345.0, 391.0, 57.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b b",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-20",
"outlettype" : [ "bang", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 352.0, 364.0, 34.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0 100 1. 1000",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-18",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 277.0, 439.333313, 81.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line~",
"numoutlets" : 2,
"fontsize" : 11.595187,
"id" : "obj-19",
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 273.5, 481.0, 35.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-16",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 236.0, 509.0, 36.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "dac~",
"numoutlets" : 0,
"fontsize" : 12.0,
"id" : "obj-14",
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 236.0, 552.0, 37.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0, 1814 1814",
"numoutlets" : 1,
"fontsize" : 11.595187,
"id" : "obj-32",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 277.0, 278.0, 100.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line~",
"numoutlets" : 2,
"fontsize" : 11.595187,
"id" : "obj-33",
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 276.5, 311.0, 35.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "play~ test",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-13",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 236.0, 363.0, 62.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "toggle",
"numoutlets" : 1,
"id" : "obj-12",
"outlettype" : [ "int" ],
"numinlets" : 1,
"patching_rect" : [ 194.0, 153.0, 20.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ test 10000",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-10",
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 592.0, 33.0, 108.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "record~ test",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-9",
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"numinlets" : 3,
"patching_rect" : [ 177.0, 205.0, 74.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "loop 1",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-8",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 223.0, 42.0, 43.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "toggle",
"numoutlets" : 1,
"id" : "obj-5",
"outlettype" : [ "int" ],
"numinlets" : 1,
"patching_rect" : [ 141.0, 44.0, 20.0, 20.0 ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "open",
"numoutlets" : 1,
"fontsize" : 12.0,
"id" : "obj-3",
"outlettype" : [ "" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 176.0, 41.0, 37.0, 18.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sfplay~",
"numoutlets" : 2,
"fontsize" : 12.0,
"id" : "obj-1",
"outlettype" : [ "signal", "bang" ],
"fontname" : "Arial",
"numinlets" : 2,
"patching_rect" : [ 143.0, 86.0, 49.0, 20.0 ],
"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-33", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-14", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-16", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 1 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-32", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-32", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-39", 1 ],
"destination" : [ "obj-28", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-40", 1 ],
"destination" : [ "obj-28", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-45", 0 ],
"destination" : [ "obj-28", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-45", 0 ],
"destination" : [ "obj-48", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-50", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-50", 1 ],
"destination" : [ "obj-43", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-50", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-53", 0 ],
"destination" : [ "obj-27", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-53", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-56", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-63", 1 ],
"destination" : [ "obj-62", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-63", 0 ],
"destination" : [ "obj-62", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-62", 0 ],
"destination" : [ "obj-56", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-48", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 1 ],
"destination" : [ "obj-48", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-49", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-49", 0 ],
"destination" : [ "obj-63", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-69", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-17", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-70", 0 ],
"destination" : [ "obj-17", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-70", 0 ],
"destination" : [ "obj-71", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}
No comments:
Post a Comment