Forums > MaxMSP

stuttering a phasor signal

September 6, 2008 | 8:37 pm

i run max 5 on a windows xp sp2

so I am using a phasor~ as a control signal for a wave~ and I want to stutter it based on another oscillator. What I do is I rectify a triangle wave and then use the 0 – 1 transition to sample the current value of phasor~ and then have it jump back to that value at the 1 – 0 transition.

This works fine just using the phase commands at below 100 hz, but I want to be able to do this at audio rate up to 5000 hz. I tried to do everything on the audio clock by switching between the designated play rate and a fast negative rate but I still ran into problems. Does anyone have a better way to do this? I am flush out of ideas.

here’s those 2 patches

this is using the phase messages

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 139.0, 50.0, 846.0, 764.0 ],
"bglocked" : 0,
"defrect" : [ 139.0, 50.0, 846.0, 764.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : ">>>>>>>>>",
"presentation_rect" : [ 169.0, 221.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 243.0, 218.0, 72.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-34"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "the noise is because i am sending it phase messages on the a-synchronous clock!",
"linecount" : 4,
"presentation_rect" : [ 161.0, 220.0, 0.0, 0.0 ],
"fontface" : 1,
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 171.0, 235.0, 139.0, 62.0 ],
"numoutlets" : 0,
"frgb" : [ 0.866667, 0.078431, 0.078431, 1.0 ],
"fontname" : "Arial",
"id" : "obj-33",
"textcolor" : [ 0.866667, 0.078431, 0.078431, 1.0 ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "0 – 1 transition samples phasor~ positionn1 – 0 transition jumps back to that position",
"linecount" : 2,
"presentation_rect" : [ 496.0, 73.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 495.0, 59.0, 233.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-32"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "look at how noisy this is",
"presentation_rect" : [ 115.0, 245.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 98.0, 330.0, 150.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-31"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "4 turn up skip speed to a slow speed. Then turn to an audio rate. Notice that there is a point where changing speed no longer makes a difference (~ 100 hz)",
"linecount" : 2,
"presentation_rect" : [ 266.0, 6.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 176.0, 4.0, 431.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-30"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "3 turn up play speed",
"presentation_rect" : [ 117.0, 80.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 86.0, 86.0, 150.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-29"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "2 turn on dac/ turn up vol",
"presentation_rect" : [ 521.0, 392.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 651.0, 448.0, 150.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-28"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "1 select sample",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 687.0, 311.0, 150.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-27"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "float",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 335.0, 227.0, 33.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "float" ],
"fontname" : "Arial",
"id" : "obj-25"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "edge~",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 353.0, 133.0, 44.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "bang", "bang" ],
"fontname" : "Arial",
"id" : "obj-13"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 603.0, 305.0, 50.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-12"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "receive~ control",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 603.0, 360.0, 96.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-10"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "send~ control",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 166.0, 184.0, 83.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-8"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ big",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 603.0, 329.0, 67.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-7"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "wave~ big",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 605.0, 400.0, 65.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-6"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "zl change",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 383.0, 208.0, 62.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"fontname" : "Arial",
"id" : "obj-45"
}

}
, {
"box" : {
"maxclass" : "meter~",
"numinlets" : 1,
"patching_rect" : [ 376.0, 190.0, 80.0, 13.0 ],
"numoutlets" : 1,
"outlettype" : [ "float" ],
"id" : "obj-43"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 29.0, 351.0, 377.0, 385.0 ],
"numoutlets" : 0,
"id" : "obj-21"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 134.0, 111.0, 50.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-20"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "phasor~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 167.0, 150.0, 54.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-19"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 431.0, 264.0, 130.0, 130.0 ],
"numoutlets" : 0,
"id" : "obj-18"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sah~ 0.1",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 299.0, 167.0, 57.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-17"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 291.0, 40.0, 50.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-14"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 350.0, 67.0, 50.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-9"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 496.0, 102.0, 130.0, 130.0 ],
"numoutlets" : 0,
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "tri~",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 297.0, 65.0, 46.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-4"
}

}
, {
"box" : {
"maxclass" : "gain~",
"numinlets" : 2,
"patching_rect" : [ 608.0, 425.0, 31.0, 61.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "int" ],
"id" : "obj-3"
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"numinlets" : 2,
"patching_rect" : [ 605.0, 509.0, 45.0, 45.0 ],
"numoutlets" : 0,
"id" : "obj-2"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : ">=~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 326.0, 90.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-1"
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-19", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 1 ],
"destination" : [ "obj-25", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-45", 0 ],
"destination" : [ "obj-25", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ 617.5, 508.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-1", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-17", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}


September 6, 2008 | 8:38 pm

and this is using only the audio clock

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 4.0, 50.0, 1440.0, 798.0 ],
"bglocked" : 0,
"defrect" : [ 4.0, 50.0, 1440.0, 798.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "5 turn the skip rate to a high rate and then play with the dowards rate. you can hear the difference it makes",
"linecount" : 2,
"presentation_rect" : [ 453.0, 0.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 22.0,
"patching_rect" : [ 444.0, 0.0, 561.0, 57.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-61"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "red = tringreen = pulse",
"linecount" : 2,
"presentation_rect" : [ 935.0, 200.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 940.0, 211.0, 95.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-60"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "4 turn skip speed to a slow rate and then a faster audio rate. Notice at higher speeds aliasing happens and the control signal conforms to the downwards rate",
"linecount" : 3,
"presentation_rect" : [ 1213.0, 99.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 22.0,
"patching_rect" : [ 630.0, 66.0, 561.0, 82.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-59"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "3 turn up sample speed",
"linecount" : 3,
"presentation_rect" : [ 830.0, 674.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 22.0,
"patching_rect" : [ 6.0, 1.0, 116.0, 82.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-58"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "red = phasorngreen = sah",
"linecount" : 2,
"presentation_rect" : [ 224.0, 393.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 226.0, 401.0, 77.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-57"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "2 turn on dac and turn up volume",
"linecount" : 3,
"presentation_rect" : [ 1099.0, 552.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 22.0,
"patching_rect" : [ 1187.0, 557.0, 150.0, 82.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-56"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "1 choose a sample",
"linecount" : 2,
"numinlets" : 1,
"fontsize" : 22.0,
"patching_rect" : [ 1201.0, 404.0, 150.0, 57.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-54"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "this is the signal that actually triggers the skip",
"linecount" : 2,
"presentation_rect" : [ 477.0, 663.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 398.0, 743.0, 159.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-52"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "thresh~’s control signal",
"presentation_rect" : [ 782.0, 451.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 585.0, 582.0, 154.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-51"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "this spike triggers the thresh~ to switch the phasor~ to it’s downwards rate",
"linecount" : 4,
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 688.0, 475.0, 154.0, 62.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-50"
}

}
, {
"box" : {
"maxclass" : "scope~",
"presentation_rect" : [ 981.0, 422.0, 0.0, 0.0 ],
"numinlets" : 2,
"range" : [ -2.25, 2.25 ],
"patching_rect" : [ 583.0, 603.0, 153.0, 149.0 ],
"numoutlets" : 0,
"id" : "obj-48"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "0 – 1 transition triggers sahn1 – 0 transition skips back to sampled position",
"linecount" : 3,
"presentation_rect" : [ 801.0, 22.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 771.0, 192.0, 163.0, 48.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-47"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "pt of tri wave that triggers sampling/ skipping",
"linecount" : 3,
"presentation_rect" : [ 581.0, 15.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 621.0, 153.0, 142.0, 48.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-46"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "rate that the phazor skips at",
"linecount" : 2,
"presentation_rect" : [ 505.0, 9.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 528.0, 97.0, 98.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-45"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "notice how sporadic this is",
"presentation_rect" : [ 249.0, 303.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 224.0, 345.0, 162.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-44"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "this reports when the descending phasor~ has hit the sampled value and sends a spike to set the phasor~ to it’s normal rate",
"linecount" : 5,
"presentation_rect" : [ 332.0, 248.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 172.0, 187.0, 162.0, 75.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-41"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "this samples the position of the phasor based on the pulses from the tri wave",
"linecount" : 3,
"presentation_rect" : [ 343.0, 188.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 361.0, 173.0, 156.0, 48.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-38"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "downwards rate (when the signal skips backwards, the phazor goes down at this rate)",
"linecount" : 2,
"presentation_rect" : [ 270.0, 19.0, 0.0, 0.0 ],
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 185.0, 5.0, 257.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-33"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "normal rate",
"linecount" : 2,
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 11.0, 49.0, 34.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-32"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "this swtiches between a predetermined rate and a fast negative rate to send the phasor~ signal back downwards",
"linecount" : 3,
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 190.0, 93.0, 225.0, 48.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-17"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "receive~ control",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 1126.0, 481.0, 96.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-15"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "send~ control",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 22.0, 151.0, 83.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-8"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -0.25, 2.25 ],
"patching_rect" : [ 68.0, 255.0, 153.0, 149.0 ],
"numoutlets" : 0,
"id" : "obj-43"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 186.0, 44.0, 50.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-42"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 767.0, 251.0, 249.0, 209.0 ],
"numoutlets" : 0,
"bgcolor" : [ 0.529412, 0.529412, 0.529412, 0.0 ],
"fgcolor" : [ 1.0, 0.2, 0.2, 1.0 ],
"id" : "obj-25"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 2",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 542.0, 400.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-7"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 2",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 135.0, 213.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-39"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "< =~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 135.0, 154.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-36"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "receive~ switch",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 13.0, 97.0, 93.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-35"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "send~ switch",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 326.0, 595.0, 80.0, 20.0 ],
"numoutlets" : 0,
"fontname" : "Arial",
"id" : "obj-34"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+~ 1",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 326.0, 570.0, 35.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-28"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 409.0, 605.0, 130.0, 130.0 ],
"numoutlets" : 0,
"id" : "obj-23"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "thresh~ -0.5 0.5",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 379.0, 551.0, 95.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-19"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "-~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 383.0, 503.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-13"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : ">~ 0",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 543.0, 376.0, 35.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-12"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "change~",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 542.0, 351.0, 57.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-11"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sah~ 0.1",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 233.0, 150.0, 57.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-79"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~ -8",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 186.0, 65.0, 47.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-72"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "selector~ 2",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 117.0, 92.0, 70.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-70"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 135.0, 64.0, 33.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-37"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "phasor~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 117.0, 118.0, 54.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-31"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "replace",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 1125.0, 409.0, 50.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-29"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ big",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 1125.0, 435.0, 67.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-27"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "wave~ big",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 1127.0, 508.0, 65.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-26"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 556.0, 436.0, 130.0, 130.0 ],
"numoutlets" : 0,
"id" : "obj-30"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "< =~ 0.9",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 542.0, 326.0, 52.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-22"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ 0.0, 1.25 ],
"patching_rect" : [ 20.0, 437.0, 283.0, 275.0 ],
"numoutlets" : 0,
"bgcolor" : [ 0.529412, 0.529412, 0.529412, 0.0 ],
"fgcolor" : [ 1.0, 0.2, 0.2, 1.0 ],
"id" : "obj-21"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 125.0, 42.0, 50.0, 20.0 ],
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-20"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ 0.0, 1.25 ],
"patching_rect" : [ 20.0, 437.0, 283.0, 275.0 ],
"numoutlets" : 0,
"id" : "obj-18"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"minimum" : 0.0,
"patching_rect" : [ 536.0, 137.0, 65.0, 20.0 ],
"numoutlets" : 2,
"maximum" : 5000.0,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-14"
}

}
, {
"box" : {
"maxclass" : "flonum",
"numinlets" : 1,
"fontsize" : 12.0,
"minimum" : -0.5,
"patching_rect" : [ 618.0, 207.0, 47.0, 20.0 ],
"numoutlets" : 2,
"maximum" : 0.5,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-9"
}

}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"range" : [ -1.25, 1.25 ],
"patching_rect" : [ 767.0, 251.0, 249.0, 209.0 ],
"numoutlets" : 0,
"id" : "obj-5"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "tri~",
"numinlets" : 3,
"fontsize" : 12.0,
"patching_rect" : [ 556.0, 200.0, 46.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-4"
}

}
, {
"box" : {
"maxclass" : "gain~",
"numinlets" : 2,
"patching_rect" : [ 1128.0, 534.0, 31.0, 61.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "int" ],
"id" : "obj-3"
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"numinlets" : 2,
"patching_rect" : [ 1125.0, 615.0, 45.0, 45.0 ],
"numoutlets" : 0,
"id" : "obj-2"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : ">=~",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 557.0, 227.0, 32.5, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontname" : "Arial",
"id" : "obj-1"
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-79", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ 242.5, 178.0, 29.5, 178.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-30", 0 ],
"hidden" : 0,
"midpoints" : [ 551.5, 430.0, 565.5, 430.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ 126.5, 178.0, 29.5, 178.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-48", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-13", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-34", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-70", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-22", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-22", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-36", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-79", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-37", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-37", 0 ],
"destination" : [ "obj-70", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-1", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ 1137.5, 614.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-27", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-70", 0 ],
"destination" : [ "obj-31", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-79", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-25", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-42", 0 ],
"destination" : [ "obj-72", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-72", 0 ],
"destination" : [ "obj-70", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-79", 0 ],
"destination" : [ "obj-36", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}


September 6, 2008 | 10:20 pm

sample the ‘current’ phasor~ value using sah~, then start another phasor at the rate you want, scale it to be the ‘length’ you want, and add it to the sampled value.
—————————————————-

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 25.0, 69.0, 760.0, 583.0 ],
"bglocked" : 0,
"defrect" : [ 25.0, 69.0, 760.0, 583.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"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,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "stutter time (ms) sets the phasor rate, and size, and on transition from 0 to 1 samples the ramp, and changes the gates",
"linecount" : 5,
"fontsize" : 12.0,
"patching_rect" : [ 504.0, 293.0, 154.0, 75.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-6",
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "incoming ramp",
"fontsize" : 12.0,
"patching_rect" : [ 550.0, 133.0, 89.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-3",
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 176.0, 40.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-2",
"outlettype" : [ "" ],
"comment" : "stutter time (ms)"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 1.",
"fontsize" : 9.0,
"patching_rect" : [ 266.0, 250.0, 29.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-4",
"fontname" : "Arial",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 475.0, 494.0, 15.0, 15.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-9",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 132.0, 41.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-11",
"outlettype" : [ "" ],
"comment" : "on? (1 or 0)"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+~",
"fontsize" : 9.0,
"patching_rect" : [ 257.0, 381.0, 27.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-12",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~",
"fontsize" : 9.0,
"patching_rect" : [ 404.0, 163.0, 29.0, 17.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-13",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 1",
"fontsize" : 9.0,
"patching_rect" : [ 301.0, 220.0, 32.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-14",
"fontname" : "Arial",
"outlettype" : [ "bang", "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"fontsize" : 9.0,
"patching_rect" : [ 301.0, 243.0, 16.0, 15.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-15",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~",
"fontsize" : 9.0,
"patching_rect" : [ 257.0, 354.0, 27.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-16",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "/ 10000.",
"fontsize" : 9.0,
"patching_rect" : [ 175.0, 324.0, 45.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-17",
"fontname" : "Arial",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "expr (1 / $f1)",
"fontsize" : 9.0,
"patching_rect" : [ 265.0, 190.0, 76.0, 17.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-18",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "/ 1000.",
"fontsize" : 9.0,
"patching_rect" : [ 265.0, 167.0, 46.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-19",
"fontname" : "Arial",
"outlettype" : [ "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "phasor~ 6",
"fontsize" : 9.0,
"patching_rect" : [ 265.0, 278.0, 55.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-20",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"fontsize" : 9.0,
"patching_rect" : [ 474.0, 115.0, 16.0, 15.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-21",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r lb",
"fontsize" : 9.0,
"patching_rect" : [ 474.0, 94.0, 24.0, 17.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-22",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "expr 1 – $i1",
"fontsize" : 9.0,
"patching_rect" : [ 476.0, 184.0, 66.0, 17.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-23",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "gate~",
"fontsize" : 9.0,
"patching_rect" : [ 136.0, 405.0, 35.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-24",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "gate~",
"fontsize" : 9.0,
"patching_rect" : [ 476.0, 209.0, 35.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-25",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r totalsize(ms)",
"fontsize" : 9.0,
"patching_rect" : [ 201.0, 297.0, 67.0, 17.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-26",
"fontname" : "Arial",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sah~",
"fontsize" : 9.0,
"patching_rect" : [ 391.0, 211.0, 31.0, 17.0 ],
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-27",
"fontname" : "Arial",
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "on?",
"fontsize" : 9.0,
"patching_rect" : [ 146.0, 42.0, 24.0, 17.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-28",
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "stutter time (ms)",
"linecount" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 196.0, 42.0, 64.0, 27.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-29",
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "inlet",
"patching_rect" : [ 533.0, 123.0, 15.0, 15.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-30",
"outlettype" : [ "" ],
"comment" : ""
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-27", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-24", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-17", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-24", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-24", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-16", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-12", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-20", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-27", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-22", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-25", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-25", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}



MIB
September 6, 2008 | 11:25 pm

nothing really to add, but use copy compressed when posting to the forum!! much easier to copy and past from the compressed version than the lengthy stuff you see right now

Here is your initial post with copy compressed:

– Pasted Max Patch, click to expand. –

September 8, 2008 | 10:36 pm

The pong~ object is super useful for this sort of thing.

AB

– Pasted Max Patch, click to expand. –

Viewing 5 posts - 1 through 5 (of 5 total)