Skip to content

Instantly share code, notes, and snippets.

@hecanjog
Created September 27, 2010 17:47
Show Gist options
  • Select an option

  • Save hecanjog/599464 to your computer and use it in GitHub Desktop.

Select an option

Save hecanjog/599464 to your computer and use it in GitHub Desktop.
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "by hecanjog.com (but I ripped off all the good parts from cycling74.com/forums/)",
"linecount" : 3,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 573.0, 408.0, 165.0, 48.0 ],
"id" : "obj-58"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "^ adjust to sampling rate and taste",
"linecount" : 3,
"fontname" : "Arial",
"numinlets" : 1,
"presentation_rect" : [ 245.0, 209.0, 0.0, 0.0 ],
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 254.0, 198.0, 82.0, 48.0 ],
"id" : "obj-56"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "the brains of the operation",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 377.0, 270.0, 150.0, 20.0 ],
"id" : "obj-55"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "check our work - seems okay - a time-variable click-locked phasor~!",
"linecount" : 3,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 199.0, 375.0, 150.0, 48.0 ],
"id" : "obj-53"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "a pulse train - I use el.samm~ for this, but just for demonstration purposes.... Thanks to Alex Harker on the cycling74 forum for the trick!",
"linecount" : 4,
"fontname" : "Arial",
"numinlets" : 1,
"presentation_rect" : [ 390.0, 184.0, 0.0, 0.0 ],
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 432.0, 169.0, 216.0, 62.0 ],
"id" : "obj-51"
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "tempo shifts all over, but our trusty homebrew phasor will keep up",
"linecount" : 3,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 304.0, 47.0, 150.0, 48.0 ],
"id" : "obj-50"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+~ 1.",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 251.0, 46.0, 38.0, 20.0 ],
"id" : "obj-48"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 4.",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 251.0, 71.0, 36.0, 20.0 ],
"id" : "obj-46"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "cycle~ 0.5",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 251.0, 21.0, 65.0, 20.0 ],
"id" : "obj-45"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~ 0.5",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 251.0, 97.0, 53.0, 20.0 ],
"id" : "obj-44"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "!/~ 44100.",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 251.0, 161.0, 64.0, 20.0 ],
"id" : "obj-42"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "<~ 0.",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 354.0, 216.0, 38.0, 20.0 ],
"id" : "obj-40"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delta~",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 354.0, 190.0, 44.0, 20.0 ],
"id" : "obj-39"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "phasor~ 0.5",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 354.0, 164.0, 74.0, 20.0 ],
"id" : "obj-38"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "/~",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 199.0, 193.0, 32.5, 20.0 ],
"id" : "obj-20"
}
}
, {
"box" : {
"maxclass" : "flonum",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "float", "bang" ],
"patching_rect" : [ 199.0, 346.0, 96.0, 20.0 ],
"id" : "obj-19"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "peakamp~ 5000",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "float" ],
"patching_rect" : [ 199.0, 319.0, 97.0, 20.0 ],
"id" : "obj-16"
}
}
, {
"box" : {
"maxclass" : "ezdac~",
"numinlets" : 2,
"numoutlets" : 0,
"patching_rect" : [ 293.0, 552.0, 45.0, 45.0 ],
"id" : "obj-6"
}
}
, {
"box" : {
"maxclass" : "scope~",
"numinlets" : 2,
"presentation_rect" : [ 336.0, 205.0, 0.0, 0.0 ],
"numoutlets" : 0,
"patching_rect" : [ 58.0, 320.0, 130.0, 130.0 ],
"id" : "obj-5"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+=~",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 199.0, 270.0, 173.5, 20.0 ],
"id" : "obj-2"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sig~ 1.",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ],
"patching_rect" : [ 199.0, 161.0, 46.0, 20.0 ],
"id" : "obj-1"
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-46", 0 ],
"destination" : [ "obj-44", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-46", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-45", 0 ],
"destination" : [ "obj-48", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-42", 0 ],
"destination" : [ "obj-20", 1 ],
"hidden" : 0,
"midpoints" : [ 260.5, 188.0, 222.0, 188.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-44", 0 ],
"destination" : [ "obj-42", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-44", 0 ],
"destination" : [ "obj-38", 0 ],
"hidden" : 0,
"midpoints" : [ 260.5, 136.5, 363.5, 136.5 ]
}
}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-2", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-38", 0 ],
"destination" : [ "obj-39", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-39", 0 ],
"destination" : [ "obj-40", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 208.5, 307.5, 67.5, 307.5 ]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment