diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c1d0a78 Binary files /dev/null and b/.DS_Store differ diff --git a/bitters.amxd b/bitters.amxd index 9a973f1..9e70d50 100644 Binary files a/bitters.amxd and b/bitters.amxd differ diff --git a/bittersvoice.gendsp b/bittersvoice.gendsp new file mode 100644 index 0000000..a7f2104 --- /dev/null +++ b/bittersvoice.gendsp @@ -0,0 +1,4511 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 84.0, 129.0, 1302.0, 643.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-91", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 562.0, 47.0, 22.0 ], + "text" : "clip 0 1" + } + + } +, { + "box" : { + "id" : "obj-210", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 432.0, 909.0, 75.0, 22.0 ], + "text" : "param lfores" + } + + } +, { + "box" : { + "id" : "obj-209", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 432.0, 885.0, 75.0, 22.0 ], + "text" : "param filtres" + } + + } +, { + "box" : { + "id" : "obj-208", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 432.0, 861.0, 86.0, 22.0 ], + "text" : "param ampres" + } + + } +, { + "box" : { + "id" : "obj-207", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 432.0, 840.0, 88.0, 22.0 ], + "text" : "param lfocutoff" + } + + } +, { + "box" : { + "id" : "obj-206", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 432.0, 816.0, 87.0, 22.0 ], + "text" : "param filtcutoff" + } + + } +, { + "box" : { + "id" : "obj-205", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 94.5, 911.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-204", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 105.0, 885.0, 35.0, 22.0 ], + "text" : "exp2" + } + + } +, { + "box" : { + "id" : "obj-203", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 163.5, 858.0, 47.0, 22.0 ], + "text" : "* 0.025" + } + + } +, { + "box" : { + "id" : "obj-202", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 105.0, 858.0, 40.0, 22.0 ], + "text" : "* 0.05" + } + + } +, { + "box" : { + "id" : "obj-201", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 163.5, 834.0, 58.0, 22.0 ], + "text" : "* lfocutoff" + } + + } +, { + "box" : { + "id" : "obj-200", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 163.5, 808.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-199", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 105.0, 834.0, 58.0, 22.0 ], + "text" : "* filtcutoff" + } + + } +, { + "box" : { + "id" : "obj-198", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 105.0, 808.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-197", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 218.0, 911.0, 47.0, 22.0 ], + "text" : "clip 0 1" + } + + } +, { + "box" : { + "id" : "obj-196", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 233.5, 885.0, 40.0, 22.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "id" : "obj-195", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 343.5, 861.0, 46.0, 22.0 ], + "text" : "* lfores" + } + + } +, { + "box" : { + "id" : "obj-194", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 343.5, 835.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-193", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 294.5, 861.0, 45.0, 22.0 ], + "text" : "* filtres" + } + + } +, { + "box" : { + "id" : "obj-192", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 294.5, 835.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-191", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 233.5, 861.0, 57.0, 22.0 ], + "text" : "* ampres" + } + + } +, { + "box" : { + "id" : "obj-190", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 233.5, 835.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-187", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 654.200000000000045, 89.0, 94.0, 22.0 ], + "text" : "param lfoindex2" + } + + } +, { + "box" : { + "id" : "obj-188", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 654.200000000000045, 63.0, 93.0, 22.0 ], + "text" : "param filtindex2" + } + + } +, { + "box" : { + "id" : "obj-189", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 654.200000000000045, 38.0, 105.0, 22.0 ], + "text" : "param ampindex2" + } + + } +, { + "box" : { + "id" : "obj-186", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 538.200000000000045, 89.0, 94.0, 22.0 ], + "text" : "param lfoindex1" + } + + } +, { + "box" : { + "id" : "obj-185", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 538.200000000000045, 63.0, 93.0, 22.0 ], + "text" : "param filtindex1" + } + + } +, { + "box" : { + "id" : "obj-183", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 538.200000000000045, 38.0, 105.0, 22.0 ], + "text" : "param ampindex1" + } + + } +, { + "box" : { + "id" : "obj-180", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 426.5, 89.0, 93.0, 22.0 ], + "text" : "param lfowidth2" + } + + } +, { + "box" : { + "id" : "obj-181", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 426.5, 63.0, 93.0, 22.0 ], + "text" : "param filtwidth2" + } + + } +, { + "box" : { + "id" : "obj-182", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 426.5, 38.0, 104.0, 22.0 ], + "text" : "param ampwidth2" + } + + } +, { + "box" : { + "id" : "obj-179", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 316.5, 89.0, 93.0, 22.0 ], + "text" : "param lfowidth1" + } + + } +, { + "box" : { + "id" : "obj-178", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 316.5, 63.0, 93.0, 22.0 ], + "text" : "param filtwidth1" + } + + } +, { + "box" : { + "id" : "obj-177", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 316.5, 38.0, 104.0, 22.0 ], + "text" : "param ampwidth1" + } + + } +, { + "box" : { + "id" : "obj-176", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 601.0, 371.5, 41.0, 22.0 ], + "text" : "max 0" + } + + } +, { + "box" : { + "id" : "obj-169", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 795.0, 347.5, 65.0, 22.0 ], + "text" : "* lfoindex2" + } + + } +, { + "box" : { + "id" : "obj-170", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 795.0, 323.5, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-171", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 726.0, 347.5, 64.0, 22.0 ], + "text" : "* filtindex2" + } + + } +, { + "box" : { + "id" : "obj-172", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 726.0, 323.5, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-173", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 646.5, 371.5, 40.0, 22.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "id" : "obj-174", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 646.5, 347.5, 75.0, 22.0 ], + "text" : "* ampindex2" + } + + } +, { + "box" : { + "id" : "obj-175", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 646.5, 323.5, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-168", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 506.799999999999955, 344.0, 47.0, 22.0 ], + "text" : "clip 0 1" + } + + } +, { + "box" : { + "id" : "obj-161", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 524.5, 228.0, 40.0, 22.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "id" : "obj-162", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 667.0, 202.0, 64.0, 22.0 ], + "text" : "* lfowidth2" + } + + } +, { + "box" : { + "id" : "obj-163", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 667.0, 178.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-164", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 602.0, 202.0, 63.0, 22.0 ], + "text" : "* filtwidth2" + } + + } +, { + "box" : { + "id" : "obj-165", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 602.0, 178.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-166", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 524.5, 202.0, 75.0, 22.0 ], + "text" : "* ampwidth2" + } + + } +, { + "box" : { + "id" : "obj-167", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 524.5, 178.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-160", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 188.0, 371.5, 41.0, 22.0 ], + "text" : "max 0" + } + + } +, { + "box" : { + "id" : "obj-156", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 377.0, 347.5, 65.0, 22.0 ], + "text" : "* lfoindex1" + } + + } +, { + "box" : { + "id" : "obj-157", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 377.0, 323.5, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-155", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 308.0, 347.5, 64.0, 22.0 ], + "text" : "* filtindex1" + } + + } +, { + "box" : { + "id" : "obj-154", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 308.0, 323.5, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-153", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 228.5, 371.5, 40.0, 22.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "id" : "obj-152", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 228.5, 347.5, 75.0, 22.0 ], + "text" : "* ampindex1" + } + + } +, { + "box" : { + "id" : "obj-151", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 228.5, 323.5, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-150", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 93.799999999999997, 367.0, 47.0, 22.0 ], + "text" : "clip 0 1" + } + + } +, { + "box" : { + "id" : "obj-148", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 110.5, 228.0, 40.0, 22.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "id" : "obj-147", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.0, 202.0, 64.0, 22.0 ], + "text" : "* lfowidth1" + } + + } +, { + "box" : { + "id" : "obj-146", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.0, 178.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-145", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 188.0, 202.0, 63.0, 22.0 ], + "text" : "* filtwidth1" + } + + } +, { + "box" : { + "id" : "obj-144", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 188.0, 178.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-143", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 110.5, 202.0, 75.0, 22.0 ], + "text" : "* ampwidth1" + } + + } +, { + "box" : { + "id" : "obj-142", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 110.5, 178.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-141", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1213.0, 514.0, 33.0, 22.0 ], + "text" : "* 0.1" + } + + } +, { + "box" : { + "id" : "obj-140", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1287.0, 485.0, 49.0, 22.0 ], + "text" : "* filtrate" + } + + } +, { + "box" : { + "id" : "obj-139", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1287.0, 459.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-138", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1213.0, 485.0, 61.0, 22.0 ], + "text" : "* amprate" + } + + } +, { + "box" : { + "id" : "obj-137", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1213.0, 459.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-136", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1278.0, 578.0, 79.0, 22.0 ], + "text" : "param filtrate" + } + + } +, { + "box" : { + "id" : "obj-135", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1278.0, 551.0, 90.0, 22.0 ], + "text" : "param amprate" + } + + } +, { + "box" : { + "id" : "obj-134", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1045.5, 541.5, 60.0, 22.0 ], + "text" : "clip 0 300" + } + + } +, { + "box" : { + "id" : "obj-131", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 258.0, 531.0, 65.0, 22.0 ], + "text" : "param mix" + } + + } +, { + "box" : { + "id" : "obj-130", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 258.0, 625.0, 89.0, 22.0 ], + "text" : "param lfomixtilt" + } + + } +, { + "box" : { + "id" : "obj-129", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 258.0, 602.0, 89.0, 22.0 ], + "text" : "param filtmixtilt" + } + + } +, { + "box" : { + "id" : "obj-128", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 258.0, 579.0, 100.0, 22.0 ], + "text" : "param ampmixtilt" + } + + } +, { + "box" : { + "id" : "obj-127", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 228.5, 474.0, 60.0, 22.0 ], + "text" : "* lfomixtilt" + } + + } +, { + "box" : { + "id" : "obj-126", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 228.5, 447.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-125", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 157.100000000000023, 474.0, 59.0, 22.0 ], + "text" : "* filtmixtilt" + } + + } +, { + "box" : { + "id" : "obj-124", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 157.100000000000023, 447.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-123", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 83.0, 474.0, 71.0, 22.0 ], + "text" : "* ampmixtilt" + } + + } +, { + "box" : { + "id" : "obj-122", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 83.0, 447.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-121", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 505.0, 47.0, 22.0 ], + "text" : "* 0.003" + } + + } +, { + "box" : { + "id" : "obj-120", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 533.0, 38.0, 22.0 ], + "text" : "+ mix" + } + + } +, { + "box" : { + "id" : "obj-56", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 591.0, 40.0, 22.0 ], + "text" : "mix" + } + + } +, { + "box" : { + "id" : "obj-107", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 1163.0, 36.0, 22.0 ], + "text" : "+ 0.5" + } + + } +, { + "box" : { + "id" : "obj-106", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 1139.0, 47.0, 22.0 ], + "text" : "* 0.003" + } + + } +, { + "box" : { + "id" : "obj-105", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 204.5, 1094.0, 64.0, 22.0 ], + "text" : "* lfofiltertilt" + } + + } +, { + "box" : { + "id" : "obj-104", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 204.5, 1070.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-103", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 134.0, 1094.0, 63.0, 22.0 ], + "text" : "* filtfiltertilt" + } + + } +, { + "box" : { + "id" : "obj-102", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 134.0, 1070.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-101", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 1094.0, 75.0, 22.0 ], + "text" : "* ampfiltertilt" + } + + } +, { + "box" : { + "id" : "obj-100", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 1068.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-99", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 1191.875, 40.0, 22.0 ], + "text" : "mix" + } + + } +, { + "box" : { + "id" : "obj-98", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1140.0, 93.0, 22.0 ], + "text" : "param lfofiltertilt" + } + + } +, { + "box" : { + "id" : "obj-97", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1116.0, 93.0, 22.0 ], + "text" : "param filtfiltertilt" + } + + } +, { + "box" : { + "id" : "obj-95", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1092.0, 104.0, 22.0 ], + "text" : "param ampfiltertilt" + } + + } +, { + "box" : { + "id" : "obj-94", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 158.0, 986.75, 39.0, 22.0 ], + "text" : "* high" + } + + } +, { + "box" : { + "id" : "obj-93", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 94.5, 986.75, 36.0, 22.0 ], + "text" : "* mid" + } + + } +, { + "box" : { + "id" : "obj-92", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 986.75, 35.0, 22.0 ], + "text" : "* low" + } + + } +, { + "box" : { + "id" : "obj-82", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1068.0, 69.0, 22.0 ], + "text" : "param high" + } + + } +, { + "box" : { + "id" : "obj-73", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1044.0, 65.0, 22.0 ], + "text" : "param mid" + } + + } +, { + "box" : { + "id" : "obj-57", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 450.0, 1021.0, 64.0, 22.0 ], + "text" : "param low" + } + + } +, { + "box" : { + "id" : "obj-90", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 543.5, 559.0, 40.0, 22.0 ], + "text" : "* 0.12" + } + + } +, { + "box" : { + "id" : "obj-89", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 552.0, 617.0, 50.0, 22.0 ], + "text" : "s pitch3" + } + + } +, { + "box" : { + "id" : "obj-88", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 672.0, 525.0, 55.0, 22.0 ], + "text" : "* lfopitch" + } + + } +, { + "box" : { + "id" : "obj-87", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 672.0, 501.0, 29.0, 22.0 ], + "text" : "r lfo" + } + + } +, { + "box" : { + "id" : "obj-86", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 613.0, 525.0, 54.0, 22.0 ], + "text" : "* filtpitch" + } + + } +, { + "box" : { + "id" : "obj-85", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 613.0, 501.0, 47.0, 22.0 ], + "text" : "r filtenv" + } + + } +, { + "box" : { + "id" : "obj-84", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 543.5, 525.0, 65.0, 22.0 ], + "text" : "* amppitch" + } + + } +, { + "box" : { + "id" : "obj-83", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 543.5, 501.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 533.0, 586.75, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-80", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 690.0, 601.0, 84.0, 22.0 ], + "text" : "param lfopitch" + } + + } +, { + "box" : { + "id" : "obj-79", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 690.0, 578.0, 83.0, 22.0 ], + "text" : "param filtpitch" + } + + } +, { + "box" : { + "id" : "obj-78", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 690.0, 557.0, 95.0, 22.0 ], + "text" : "param amppitch" + } + + } +, { + "box" : { + "id" : "obj-77", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1250.5, 160.0, 31.0, 22.0 ], + "text" : "r vel" + } + + } +, { + "box" : { + "id" : "obj-76", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1240.0, 185.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-75", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 851.5, 150.0, 31.0, 22.0 ], + "text" : "r vel" + } + + } +, { + "box" : { + "id" : "obj-74", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 841.0, 175.5, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-72", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1030.5, 609.0, 150.0, 20.0 ], + "text" : "LFO" + } + + } +, { + "box" : { + "id" : "obj-71", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 989.5, 603.0, 31.0, 22.0 ], + "text" : "s lfo" + } + + } +, { + "box" : { + "id" : "obj-70", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1017.5, 486.0, 39.0, 22.0 ], + "text" : "r gate" + } + + } +, { + "box" : { + "id" : "obj-69", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 109.0, 154.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 264.0, 47.0, 28.0, 22.0 ], + "text" : "in 2" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 130.0, 469.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 112.25, 25.0, 56.0, 20.0 ], + "text" : "retrigger" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 67.0, 107.0, 35.0, 22.0 ], + "text" : "== 0" + } + + } +, { + "box" : { + "id" : "obj-49", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 177.0, 469.0, 195.0, 20.0 ], + "text" : "pow scaling for LFO Fade-in" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 14.0, + "id" : "obj-46", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 483.0, 22.5, 195.0, 22.0 ], + "text" : "LFO Fade-in" + } + + } +, { + "box" : { + "id" : "obj-45", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 483.0, 41.5, 202.0, 33.0 ], + "text" : "Creates a fade-in signal from 0 to 1 in a specified amount of time. " + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 23.25, 25.0, 43.0, 20.0 ], + "text" : "trigger" + } + + } +, { + "box" : { + "id" : "obj-40", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 302.0, 25.0, 79.0, 20.0 ], + "text" : "time in ms" + } + + } +, { + "box" : { + "id" : "obj-38", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.0, 206.0, 29.5, 22.0 ], + "text" : "/" + } + + } +, { + "box" : { + "id" : "obj-37", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 130.0, 369.0, 49.0, 22.0 ], + "text" : "clip 0 1" + } + + } +, { + "box" : { + "id" : "obj-35", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 282.0, 254.5, 243.0, 33.0 ], + "text" : "either stop counting when target value was reached or increase count" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 290.0, 167.0, 239.0, 20.0 ], + "text" : "steps to increase the counter per sample" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 85.0, 292.0, 46.0, 22.0 ], + "text" : "history" + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 85.0, 260.0, 187.0, 22.0 ], + "text" : "? 0" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 85.0, 225.0, 35.0, 22.0 ], + "text" : ">= 1" + } + + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 374.5, 107.0, 70.0, 22.0 ], + "text" : "samplerate" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.0, 167.0, 29.5, 22.0 ], + "text" : "/" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 264.0, 107.0, 72.0, 22.0 ], + "text" : "mstosamps" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 3, + "outlettype" : [ "", "", "" ], + "patching_rect" : [ 130.0, 329.0, 91.0, 22.0 ], + "text" : "counter @init 1" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 130.0, 518.0, 37.0, 22.0 ], + "text" : "out 1" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 67.0, 25.0, 30.0, 22.0 ], + "text" : "in 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-13", 1 ], + "midpoints" : [ 76.5, 167.5, 175.5, 167.5 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 1 ], + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-38", 0 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "midpoints" : [ 384.0, 147.0, 262.5, 147.0 ], + "order" : 1, + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-38", 1 ], + "midpoints" : [ 384.0, 197.0, 273.0, 197.0 ], + "order" : 0, + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "midpoints" : [ 139.5, 405.0, 67.0, 405.0, 67.0, 207.0, 94.5, 207.0 ], + "order" : 2, + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "order" : 0, + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "order" : 1, + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 1 ], + "source" : [ "obj-38", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-8", 0 ] + } + + } + ], + "styles" : [ { + "name" : "AudioStatus_Menu", + "default" : { + "bgfillcolor" : { + "type" : "color", + "color" : [ 0.294118, 0.313726, 0.337255, 1 ], + "color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Luca", + "default" : { + "selectioncolor" : [ 0.720698, 0.16723, 0.080014, 1.0 ], + "textcolor_inverse" : [ 0.239216, 0.254902, 0.278431, 1.0 ], + "bgfillcolor" : { + "type" : "gradient", + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "color2" : [ 0.65098, 0.666667, 0.662745, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } +, + "accentcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ], + "color" : [ 0.475135, 0.293895, 0.251069, 1.0 ], + "bgcolor" : [ 0.904179, 0.895477, 0.842975, 0.56 ], + "fontname" : [ "Open Sans Semibold" ], + "elementcolor" : [ 0.786675, 0.801885, 0.845022, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Matt", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "dark-night-patch", + "default" : { + "patchlinecolor" : [ 0.439216, 0.74902, 0.254902, 0.898039 ], + "textcolor" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "bgfillcolor" : { + "type" : "gradient", + "color1" : [ 0.376471, 0.384314, 0.4, 1.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39 + } +, + "accentcolor" : [ 0.952941, 0.564706, 0.098039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "ksliderWhite", + "default" : { + "color" : [ 1.0, 1.0, 1.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBlue-1", + "default" : { + "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBrown-1", + "default" : { + "accentcolor" : [ 0.654902, 0.572549, 0.376471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjCyan-1", + "default" : { + "accentcolor" : [ 0.029546, 0.773327, 0.821113, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjGreen-1", + "default" : { + "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjRed-1", + "default" : { + "accentcolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-1", + "default" : { + "fontsize" : [ 12.059008 ], + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-2", + "default" : { + "fontsize" : [ 12.059008 ], + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "numberGold-1", + "default" : { + "accentcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "rsliderGold", + "default" : { + "color" : [ 0.646639, 0.821777, 0.854593, 1.0 ], + "bgcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "test", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 1017.5, 510.0, 103.0, 22.0 ], + "text" : "gen @title fade-in" + } + + } +, { + "box" : { + "id" : "obj-68", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1101.5, 486.0, 79.0, 22.0 ], + "text" : "param fadein" + } + + } +, { + "box" : { + "id" : "obj-67", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1002.5, 438.0, 32.0, 22.0 ], + "text" : "r trig" + } + + } +, { + "box" : { + "id" : "obj-66", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 989.5, 462.0, 32.0, 22.0 ], + "text" : "gate" + } + + } +, { + "box" : { + "id" : "obj-65", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 989.5, 410.0, 86.0, 22.0 ], + "text" : "param lforetrig" + } + + } +, { + "box" : { + "id" : "obj-64", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1134.5, 514.0, 67.0, 22.0 ], + "text" : "param rate" + } + + } +, { + "box" : { + "id" : "obj-63", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 989.5, 569.0, 75.0, 22.0 ], + "text" : "gen @file lfo" + } + + } +, { + "box" : { + "id" : "obj-62", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 59.0, 104.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 84.0, 106.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "fontsize" : 10.0, + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 222.166626000000008, 103.0, 61.0, 20.0 ], + "text" : "param time" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-36", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 222.166626000000008, 134.333313000000004, 62.0, 20.0 ], + "text" : "mstosamps" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 182.0, 56.0, 20.0 ], + "text" : "slide" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 61.0, 27.0, 20.0 ], + "text" : "in 1" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 203.0, 281.0, 33.0, 20.0 ], + "text" : "out 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 2 ], + "order" : 0, + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "order" : 1, + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "source" : [ "obj-6", 0 ] + } + + } + ], + "styles" : [ { + "name" : "AudioStatus_Menu", + "default" : { + "bgfillcolor" : { + "type" : "color", + "color" : [ 0.294118, 0.313726, 0.337255, 1 ], + "color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Luca", + "default" : { + "selectioncolor" : [ 0.720698, 0.16723, 0.080014, 1.0 ], + "textcolor_inverse" : [ 0.239216, 0.254902, 0.278431, 1.0 ], + "bgfillcolor" : { + "type" : "gradient", + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "color2" : [ 0.65098, 0.666667, 0.662745, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } +, + "accentcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ], + "color" : [ 0.475135, 0.293895, 0.251069, 1.0 ], + "bgcolor" : [ 0.904179, 0.895477, 0.842975, 0.56 ], + "fontname" : [ "Open Sans Semibold" ], + "elementcolor" : [ 0.786675, 0.801885, 0.845022, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Matt", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "dark-night-patch", + "default" : { + "patchlinecolor" : [ 0.439216, 0.74902, 0.254902, 0.898039 ], + "textcolor" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "bgfillcolor" : { + "type" : "gradient", + "color1" : [ 0.376471, 0.384314, 0.4, 1.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39 + } +, + "accentcolor" : [ 0.952941, 0.564706, 0.098039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "ksliderWhite", + "default" : { + "color" : [ 1.0, 1.0, 1.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBlue-1", + "default" : { + "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBrown-1", + "default" : { + "accentcolor" : [ 0.654902, 0.572549, 0.376471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjCyan-1", + "default" : { + "accentcolor" : [ 0.029546, 0.773327, 0.821113, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjGreen-1", + "default" : { + "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjRed-1", + "default" : { + "accentcolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-1", + "default" : { + "fontsize" : [ 12.059008 ], + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-2", + "default" : { + "fontsize" : [ 12.059008 ], + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "numberGold-1", + "default" : { + "accentcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "rsliderGold", + "default" : { + "color" : [ 0.646639, 0.821777, 0.854593, 1.0 ], + "bgcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "test", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 252.0, 183.0, 160.0, 22.0 ], + "text" : "gen @title smooth @time 10" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 176.0, 350.75, 29.5, 22.0 ], + "text" : "/" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 176.0, 309.5, 32.0, 22.0 ], + "text" : "floor" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 252.0, 217.0, 39.0, 22.0 ], + "text" : "+ 256" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 252.0, 153.0, 30.0, 22.0 ], + "text" : "* 64" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 252.0, 119.0, 37.0, 22.0 ], + "text" : "noise" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 176.0, 231.0, 28.0, 22.0 ], + "text" : "in 1" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 176.0, 273.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 176.0, 418.0, 35.0, 22.0 ], + "text" : "out 1" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 176.0, 418.0, 35.0, 22.0 ], + "text" : "out 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 1 ], + "order" : 1, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "order" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 31.0, 716.0, 108.0, 22.0 ], + "text" : "gen @title bitcrush" + } + + } +, { + "box" : { + "id" : "obj-61", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 690.0, 649.0, 95.0, 22.0 ], + "text" : "param osc2tune" + } + + } +, { + "box" : { + "id" : "obj-60", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 606.0, 644.0, 68.0, 22.0 ], + "text" : "+ osc2tune" + } + + } +, { + "box" : { + "id" : "obj-59", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 690.0, 625.0, 95.0, 22.0 ], + "text" : "param osc1tune" + } + + } +, { + "box" : { + "id" : "obj-58", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 533.0, 644.0, 68.0, 22.0 ], + "text" : "+ osc1tune" + } + + } +, { + "box" : { + "id" : "obj-54", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 158.0, 938.0, 157.0, 22.0 ], + "text" : "gen @file smooth @time 10" + } + + } +, { + "box" : { + "id" : "obj-48", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 94.5, 939.0, 157.0, 22.0 ], + "text" : "gen @file smooth @time 10" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 94.5, 784.0, 75.0, 22.0 ], + "text" : "param cutoff" + } + + } +, { + "box" : { + "id" : "obj-53", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 444.0, 311.0, 48.0, 22.0 ], + "text" : "r pitch2" + } + + } +, { + "box" : { + "id" : "obj-52", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 236.0, 48.0, 22.0 ], + "text" : "r pitch1" + } + + } +, { + "box" : { + "id" : "obj-51", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 606.0, 668.0, 50.0, 22.0 ], + "text" : "s pitch2" + } + + } +, { + "box" : { + "id" : "obj-39", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 533.0, 668.0, 50.0, 22.0 ], + "text" : "s pitch1" + } + + } +, { + "box" : { + "id" : "obj-50", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 40.5, 1226.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-49", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 218.0, 809.0, 102.0, 22.0 ], + "text" : "param resonance" + } + + } +, { + "box" : { + "id" : "obj-47", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 475.399999999999977, 368.0, 41.0, 22.0 ], + "text" : "* sync" + } + + } +, { + "box" : { + "id" : "obj-46", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 316.5, 14.0, 132.0, 22.0 ], + "text" : "param sync @default 0" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 506.800000000000011, 154.0, 87.0, 22.0 ], + "text" : "param osc2pw" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 538.200000000000045, 252.0, 123.0, 22.0 ], + "text" : "param osc2waveform" + } + + } +, { + "box" : { + "id" : "obj-42", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 601.0, 300.0, 100.0, 22.0 ], + "text" : "param osc2index" + } + + } +, { + "box" : { + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 569.600000000000023, 276.0, 95.0, 22.0 ], + "text" : "param osc2ratio" + } + + } +, { + "box" : { + "id" : "obj-44", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 444.0, 341.0, 32.0, 22.0 ], + "text" : "mtof" + } + + } +, { + "box" : { + "id" : "obj-45", + "maxclass" : "newobj", + "numinlets" : 6, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 444.0, 398.0, 176.0, 22.0 ], + "text" : "gen @file oscillator @title osc 2" + } + + } +, { + "box" : { + "id" : "obj-40", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 3, + "outlettype" : [ "", "", "" ], + "patching_rect" : [ 31.0, 965.0, 146.0, 22.0 ], + "text" : "gen @file filter @title filter" + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 841.0, 230.0, 59.0, 22.0 ], + "text" : "r ampenv" + } + + } +, { + "box" : { + "id" : "obj-38", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 93.799999999999997, 154.0, 87.0, 22.0 ], + "text" : "param osc1pw" + } + + } +, { + "box" : { + "id" : "obj-37", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 125.199999999999989, 252.0, 123.0, 22.0 ], + "text" : "param osc1waveform" + } + + } +, { + "box" : { + "id" : "obj-36", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 188.0, 300.0, 100.0, 22.0 ], + "text" : "param osc1index" + } + + } +, { + "box" : { + "id" : "obj-35", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 156.599999999999994, 276.0, 95.0, 22.0 ], + "text" : "param osc1ratio" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1308.0, 166.0, 150.0, 34.0 ], + "text" : "Filter Envelope\n" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 923.0, 175.0, 150.0, 20.0 ], + "text" : "Amp Envelope" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1281.0, 96.0, 32.0, 22.0 ], + "text" : "r trig" + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1240.0, 96.0, 39.0, 22.0 ], + "text" : "r gate" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1240.0, 210.0, 49.0, 22.0 ], + "text" : "s filtenv" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 841.0, 200.0, 61.0, 22.0 ], + "text" : "s ampenv" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1322.0, 24.0, 154.0, 22.0 ], + "text" : "in 8 @comment filter attack" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1445.0, 96.0, 165.0, 22.0 ], + "text" : "in 11 @comment fiter release" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1404.0, 72.0, 167.0, 22.0 ], + "text" : "in 10 @comment filter sustain" + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1363.0, 48.0, 154.0, 22.0 ], + "text" : "in 9 @comment filter decay" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 6, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 1240.0, 131.0, 224.0, 22.0 ], + "text" : "gen @file envelope @title filter envelope" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 34.0, 84.0, 33.0, 22.0 ], + "text" : "s vel" + } + + } +, { + "box" : { + "id" : "obj-26", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 296.0, 32.0, 22.0 ], + "text" : "mtof" + } + + } +, { + "box" : { + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 1262.0, 28.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 34.0, 49.0, 39.0, 22.0 ], + "text" : "/ 127." + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 6, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 31.0, 398.0, 176.0, 22.0 ], + "text" : "gen @file oscillator @title osc 1" + } + + } +, { + "box" : { + "id" : "obj-21", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 169.0, 95.0, 35.0, 22.0 ], + "text" : "s trig" + } + + } +, { + "box" : { + "id" : "obj-20", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 169.0, 69.0, 35.0, 22.0 ], + "text" : "? 1 0" + } + + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 31.0, 1293.0, 155.0, 22.0 ], + "text" : "out 1 @comment signal out" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 841.0, 264.0, 149.0, 22.0 ], + "text" : "out 2 @comment busy out" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 169.0, 43.0, 35.0, 22.0 ], + "text" : "delta" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 169.0, 14.0, 130.0, 22.0 ], + "text" : "in 3 @comment trigger" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 81.5, 49.0, 41.0, 22.0 ], + "text" : "s gate" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 34.0, 14.0, 136.0, 22.0 ], + "text" : "in 2 @comment velocity" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 923.0, 9.0, 155.0, 22.0 ], + "text" : "in 4 @comment amp attack" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1046.0, 81.0, 162.0, 22.0 ], + "text" : "in 7 @comment amp release" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1005.0, 57.0, 161.0, 22.0 ], + "text" : "in 6 @comment amp sustain" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 964.0, 33.0, 155.0, 22.0 ], + "text" : "in 5 @comment amp decay" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 882.0, 86.0, 32.0, 22.0 ], + "text" : "r trig" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 6, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 841.0, 121.0, 224.0, 22.0 ], + "text" : "gen @file envelope @title amp envelope" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 533.0, 473.0, 121.0, 22.0 ], + "text" : "in 1 @comment pitch" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 841.0, 86.0, 39.0, 22.0 ], + "text" : "r gate" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-81", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 3 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-101", 0 ], + "source" : [ "obj-100", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-106", 0 ], + "source" : [ "obj-101", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-103", 0 ], + "source" : [ "obj-102", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-106", 0 ], + "source" : [ "obj-103", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-105", 0 ], + "source" : [ "obj-104", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-106", 0 ], + "source" : [ "obj-105", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-107", 0 ], + "source" : [ "obj-106", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 2 ], + "source" : [ "obj-107", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 4 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 5 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-91", 0 ], + "source" : [ "obj-120", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-120", 0 ], + "source" : [ "obj-121", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-123", 0 ], + "source" : [ "obj-122", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-121", 0 ], + "source" : [ "obj-123", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-125", 0 ], + "source" : [ "obj-124", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-121", 0 ], + "source" : [ "obj-125", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-127", 0 ], + "source" : [ "obj-126", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-121", 0 ], + "source" : [ "obj-127", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 2 ], + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-63", 2 ], + "source" : [ "obj-134", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-138", 0 ], + "source" : [ "obj-137", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-141", 0 ], + "source" : [ "obj-138", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-140", 0 ], + "source" : [ "obj-139", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "order" : 0, + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "order" : 1, + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-141", 0 ], + "source" : [ "obj-140", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-134", 0 ], + "source" : [ "obj-141", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-143", 0 ], + "source" : [ "obj-142", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-148", 0 ], + "source" : [ "obj-143", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-145", 0 ], + "source" : [ "obj-144", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-148", 0 ], + "source" : [ "obj-145", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-147", 0 ], + "source" : [ "obj-146", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-148", 0 ], + "source" : [ "obj-147", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-150", 0 ], + "source" : [ "obj-148", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 2 ], + "source" : [ "obj-150", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-152", 0 ], + "source" : [ "obj-151", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-153", 0 ], + "source" : [ "obj-152", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-160", 0 ], + "source" : [ "obj-153", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-155", 0 ], + "source" : [ "obj-154", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-153", 0 ], + "source" : [ "obj-155", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-153", 0 ], + "source" : [ "obj-156", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-156", 0 ], + "source" : [ "obj-157", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 5 ], + "source" : [ "obj-160", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-168", 0 ], + "source" : [ "obj-161", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-161", 0 ], + "source" : [ "obj-162", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-162", 0 ], + "source" : [ "obj-163", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-161", 0 ], + "source" : [ "obj-164", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-164", 0 ], + "source" : [ "obj-165", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-161", 0 ], + "source" : [ "obj-166", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-166", 0 ], + "source" : [ "obj-167", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 2 ], + "source" : [ "obj-168", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-173", 0 ], + "source" : [ "obj-169", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 0 ], + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-169", 0 ], + "source" : [ "obj-170", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-173", 0 ], + "source" : [ "obj-171", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-171", 0 ], + "source" : [ "obj-172", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-176", 0 ], + "source" : [ "obj-173", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-173", 0 ], + "source" : [ "obj-174", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-174", 0 ], + "source" : [ "obj-175", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 5 ], + "source" : [ "obj-176", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-191", 0 ], + "source" : [ "obj-190", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-196", 0 ], + "source" : [ "obj-191", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-193", 0 ], + "source" : [ "obj-192", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-196", 0 ], + "source" : [ "obj-193", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-195", 0 ], + "source" : [ "obj-194", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-196", 0 ], + "source" : [ "obj-195", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-197", 0 ], + "source" : [ "obj-196", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-197", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-199", 0 ], + "source" : [ "obj-198", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-202", 0 ], + "source" : [ "obj-199", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-20", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-201", 0 ], + "source" : [ "obj-200", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-203", 0 ], + "source" : [ "obj-201", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-204", 0 ], + "source" : [ "obj-202", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-204", 0 ], + "source" : [ "obj-203", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-205", 1 ], + "source" : [ "obj-204", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-48", 0 ], + "source" : [ "obj-205", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-22", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 3 ], + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-24", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-19", 0 ], + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-168", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 1 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 4 ], + "source" : [ "obj-35", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-160", 0 ], + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 3 ], + "source" : [ "obj-37", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-150", 0 ], + "source" : [ "obj-38", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-76", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-92", 0 ], + "source" : [ "obj-40", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-93", 0 ], + "source" : [ "obj-40", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-94", 0 ], + "source" : [ "obj-40", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 3 ], + "source" : [ "obj-41", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-176", 0 ], + "source" : [ "obj-42", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 4 ], + "source" : [ "obj-43", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 0 ], + "source" : [ "obj-44", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 1 ], + "source" : [ "obj-45", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-45", 1 ], + "source" : [ "obj-47", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-40", 1 ], + "source" : [ "obj-48", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-197", 0 ], + "source" : [ "obj-49", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-74", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 1 ], + "source" : [ "obj-50", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "source" : [ "obj-52", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-44", 0 ], + "source" : [ "obj-53", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-40", 2 ], + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-205", 0 ], + "source" : [ "obj-55", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-62", 0 ], + "source" : [ "obj-56", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-39", 0 ], + "source" : [ "obj-58", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-51", 0 ], + "source" : [ "obj-60", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-40", 0 ], + "source" : [ "obj-62", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-71", 0 ], + "source" : [ "obj-63", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-134", 0 ], + "source" : [ "obj-64", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-66", 0 ], + "source" : [ "obj-65", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-63", 0 ], + "source" : [ "obj-66", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-66", 1 ], + "source" : [ "obj-67", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-69", 1 ], + "source" : [ "obj-68", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-63", 1 ], + "source" : [ "obj-69", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 2 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-69", 0 ], + "source" : [ "obj-70", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-74", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-74", 1 ], + "source" : [ "obj-75", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "source" : [ "obj-76", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-76", 1 ], + "source" : [ "obj-77", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 5 ], + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-58", 0 ], + "order" : 2, + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-60", 0 ], + "order" : 0, + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-89", 0 ], + "order" : 1, + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-84", 0 ], + "source" : [ "obj-83", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-90", 0 ], + "source" : [ "obj-84", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-86", 0 ], + "source" : [ "obj-85", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-90", 0 ], + "source" : [ "obj-86", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-88", 0 ], + "source" : [ "obj-87", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-90", 0 ], + "source" : [ "obj-88", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 4 ], + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 1 ], + "source" : [ "obj-90", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 2 ], + "source" : [ "obj-91", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "source" : [ "obj-92", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-93", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 1 ], + "source" : [ "obj-94", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-99", 0 ] + } + + } + ] + } + +} diff --git a/envelope.gendsp b/envelope.gendsp new file mode 100644 index 0000000..807fe21 --- /dev/null +++ b/envelope.gendsp @@ -0,0 +1,242 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 59.0, 104.0, 780.0, 569.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 445.0, 90.0, 291.0, 22.0 ], + "text" : "in 6 @min 0.1 @default 150. @comment release" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 362.0, 62.0, 326.0, 22.0 ], + "text" : "in 5 @min 0. @max 1. @default 0.5 @comment sustain" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 279.0, 38.0, 261.0, 22.0 ], + "text" : "in 4 @min 0.1 @default 100. @comment decay" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 196.0, 14.0, 248.0, 22.0 ], + "text" : "in 3 @min 0.1 @default 1. @comment attack" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 30.0, 46.0, 35.0, 22.0 ], + "text" : "? 1 0" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 445.0, 465.0, 137.0, 22.0 ], + "text" : "out 2 @comment ad out" + } + + } +, { + "box" : { + "id" : "obj-6", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 25.0, 500.0, 169.0, 33.0 ], + "text" : "Peter McCulloch, 2015\npeter.mcculloch@gmail.com" + } + + } +, { + "box" : { + "code" : "History ad(0);\r\nHistory asr(0);\r\nHistory atk_pulse(0);\r\nHistory eoa(0);\r\nHistory triggered(0);\r\nHistory gate_hist(0);\r\nHistory sustain(0.5);\r\nHistory dcy(1000);\r\nParam attack_lockout(0); \t// If attack_lockout is on, the attack segment MUST complete \r\n\t\t\t\t\t\t\t// before the release or decay can be triggered\r\n\r\n/* Constants\r\n * ============================================================================================= \r\n * Each iteration of the slide will take us ~63% of the remaining distance. \r\n * To avoid asymptotically approaching our target value (which would make the timing values feel wrong)\r\n * we aim for a value above (rising) or below (falling) our target and then clip the results.\r\n *\r\n * After 3 iterations of the RC accumulator, the accumulator will be ~95% of the way there. \r\n * By deliberately overshooting our target value by the inverse of this value, we get there right on time. \r\n * (The bottom part of the fraction is the ~95% part) \r\n *\r\n * It is important that this constant be precise\r\n * because it will effect the timing precision of the envelope considerably! (i.e. errors compound)\r\n */\r\niter = 1 - (1/e); \t\t\t\t\t\t\t\t\t\t\t\t// 0.63212055882856 \r\n\r\n// The fractional term is the remaining distance for each iteration (1 the first time, 1/e the second...)\r\nhigh_target = 1./(iter*(1/1) + iter*(1/e) + iter*(1/(e*e))); \t\t// Going up... (~1.05)\r\nlow_target = 1.-high_target; \t\t\t// Going down... (~-0.05)\r\n\r\nsmoothing = 1 -(1/mstosamps(20.));\r\n\r\ndo_trig = (delta(in2>0) > 0); // Read from the trigger inlet\r\n\r\ngate_in = in1 > 0;\r\n\r\n// If triggered, or attack hasn't ended and gate still active or in lockout mode\r\natk_pulse = (do_trig || !eoa) && (gate_in || attack_lockout); \r\n\r\nattack = mstosamps(in3);\r\nrelease = mstosamps(in6);\r\ndcy = gate_in*mstosamps(in4); // Short-circuits so that it uses release time when gate is low\r\nsustain = mix(in5,sustain,smoothing);\r\n\r\npuls = atk_pulse > 0 ? high_target : low_target;\r\n\r\nasr_gate = gate_in || atk_pulse ? high_target : low_target;\r\n// If you ONLY \r\n// asr_gate = (in1 > 0) ? high_target : low_target;\r\n\r\n// Clamp so that on overshoot values hit min/max\r\nad = clamp(slide(puls,attack,dcy),0.,1.);\r\nasr = clamp(slide(asr_gate,attack,release),0.,1.); // in1 acts as a gate signal\r\n\r\neoa = !atk_pulse || (ad >= 1.);\r\n\r\n\r\nout1 = mix(ad,asr,sustain); // blend the two envelopes based on the sustain value\r\nout2 = ad;\r\n", + "fontface" : 0, + "fontname" : "", + "fontsize" : 12.0, + "id" : "obj-5", + "maxclass" : "codebox", + "numinlets" : 6, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 30.0, 128.0, 434.0, 319.0 ] + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 30.0, 14.0, 119.0, 22.0 ], + "text" : "in 1 @comment gate" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 113.0, 38.0, 130.0, 22.0 ], + "text" : "in 2 @comment trigger" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 30.0, 465.0, 147.0, 22.0 ], + "text" : "out 1 @comment adsr out" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 3 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 4 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 5 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-5", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 2 ], + "source" : [ "obj-9", 0 ] + } + + } + ], + "autosave" : 0 + } + +} diff --git a/filter.gendsp b/filter.gendsp new file mode 100644 index 0000000..44e93cf --- /dev/null +++ b/filter.gendsp @@ -0,0 +1,965 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 4, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 0.0, 0.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-64", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 13.0, 509.0, 150.0, 60.0 ], + "text" : "This is Algorithm 1 from https://cytomic.com/files/dsp/SvfLinearTrapOptimised2.pdf" + } + + } +, { + "box" : { + "id" : "obj-63", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 343.0, 441.0, 150.0, 34.0 ], + "text" : "int_2 = 2*low - int_2\n" + } + + } +, { + "box" : { + "id" : "obj-62", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.5, 470.0, 29.5, 22.0 ], + "text" : "-" + } + + } +, { + "box" : { + "id" : "obj-61", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.5, 437.0, 23.0, 22.0 ], + "text" : "* 2" + } + + } +, { + "box" : { + "id" : "obj-60", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 17.0, 433.0, 150.0, 20.0 ], + "text" : "int_1 = 2*band - int_1" + } + + } +, { + "box" : { + "id" : "obj-59", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 54.0, 403.0, 29.5, 22.0 ], + "text" : "-" + } + + } +, { + "box" : { + "id" : "obj-58", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 54.0, 378.0, 23.0, 22.0 ], + "text" : "* 2" + } + + } +, { + "box" : { + "id" : "obj-57", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 231.0, 522.0, 186.0, 34.0 ], + "text" : "high = in - (2 - 2*R)*band - low\n" + } + + } +, { + "box" : { + "id" : "obj-56", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 180.0, 378.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 169.5, 470.0, 29.5, 22.0 ], + "text" : "-" + } + + } +, { + "box" : { + "id" : "obj-54", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 180.0, 437.0, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-53", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 253.5, 396.0, 141.0, 22.0 ], + "text" : "out 1 @comment low out" + } + + } +, { + "box" : { + "id" : "obj-52", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 128.0, 597.0, 150.0, 22.0 ], + "text" : "out 2 @comment band out" + } + + } +, { + "box" : { + "id" : "obj-51", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.5, 366.0, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-50", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 266.25, 307.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-49", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 253.5, 331.0, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-47", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 322.0, 317.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-46", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 290.0, 366.0, 184.0, 34.0 ], + "text" : "low = Int_2 + b*Int_1 + c*V_3\n" + } + + } +, { + "box" : { + "id" : "obj-45", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 103.5, 621.0, 150.0, 20.0 ], + "text" : "band = a*Int_1 + b*V" + } + + } +, { + "box" : { + "id" : "obj-43", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 191.0, 85.0, 150.0, 20.0 ], + "text" : "g = Tan(pi*F_c/F_sr)" + } + + } +, { + "box" : { + "id" : "obj-42", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 393.5, 206.0, 140.0, 47.0 ], + "text" : "a = 1/(1 + g*(g+ 2 - 2*R)\nb = g*a\nc = g*b" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 41.0, 219.0, 111.5, 20.0 ], + "text" : "V = In - Int_2" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 128.0, 341.0, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 128.0, 305.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 163.75, 305.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 128.0, 219.0, 29.5, 22.0 ], + "text" : "-" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 138.5, 182.0, 80.0, 22.0 ], + "text" : "history integ2" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 174.25, 274.0, 80.0, 22.0 ], + "text" : "history integ1" + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 128.0, 154.0, 123.0, 22.0 ], + "text" : "in 1 @comment Input" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 332.5, 281.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-26", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 343.0, 243.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 169.5, 500.0, 146.0, 22.0 ], + "text" : "out 3 @comment high out" + } + + } +, { + "box" : { + "id" : "obj-21", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 353.5, 159.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 364.0, 135.0, 29.5, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 353.5, 183.0, 26.0, 22.0 ], + "text" : "+ 1" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 353.5, 206.0, 25.0, 22.0 ], + "text" : "!/ 1" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 374.5, 87.0, 23.0, 22.0 ], + "text" : "* 2" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 374.5, 111.0, 26.0, 22.0 ], + "text" : "!- 2" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 374.5, 63.0, 269.0, 22.0 ], + "text" : "in 3 @min 0. @max 1. @default 0. @comment R" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 311.5, 85.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 311.5, 109.0, 45.0, 22.0 ], + "text" : "fasttan" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 298.5, 61.0, 19.0, 22.0 ], + "text" : "pi" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 322.0, 61.0, 29.5, 22.0 ], + "text" : "/" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 322.0, 37.0, 346.0, 22.0 ], + "text" : "in 2 @min 0. @default 18000. @max 18000. @comment Cutoff" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 332.5, 13.0, 68.0, 22.0 ], + "text" : "samplerate" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-14", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 1 ], + "order" : 0, + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 1 ], + "midpoints" : [ 384.0, 135.0, 200.0, 135.0 ], + "order" : 1, + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 1 ], + "order" : 0, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "midpoints" : [ 363.0, 239.0, 173.25, 239.0 ], + "order" : 1, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 1 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "source" : [ "obj-21", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 1 ], + "order" : 0, + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 1 ], + "midpoints" : [ 352.5, 268.5, 148.0, 268.5 ], + "order" : 2, + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-50", 1 ], + "midpoints" : [ 352.5, 268.5, 286.25, 268.5 ], + "order" : 1, + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 1 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "order" : 1, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 0 ], + "midpoints" : [ 137.5, 184.0, 34.0, 184.0, 34.0, 261.0, 9.0, 261.0, 9.0, 465.0, 179.0, 465.0 ], + "order" : 0, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 1 ], + "order" : 1, + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-50", 0 ], + "midpoints" : [ 183.75, 302.5, 275.75, 302.5 ], + "order" : 0, + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-59", 1 ], + "midpoints" : [ 183.75, 297.0, 75.0, 297.0, 75.0, 399.0, 74.0, 399.0 ], + "order" : 2, + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 1 ], + "order" : 2, + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-49", 0 ], + "midpoints" : [ 148.0, 210.0, 263.0, 210.0 ], + "order" : 1, + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-62", 1 ], + "midpoints" : [ 148.0, 216.0, 309.0, 216.0, 309.0, 351.0, 486.0, 351.0, 486.0, 467.0, 273.5, 467.0 ], + "order" : 0, + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "order" : 1, + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "midpoints" : [ 137.5, 257.5, 331.5, 257.5 ], + "order" : 0, + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 1 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "source" : [ "obj-33", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-52", 0 ], + "order" : 1, + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 0 ], + "order" : 0, + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-58", 0 ], + "order" : 2, + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-51", 1 ], + "midpoints" : [ 331.5, 359.0, 273.5, 359.0 ], + "source" : [ "obj-47", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-51", 0 ], + "source" : [ "obj-49", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 1 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-49", 1 ], + "source" : [ "obj-50", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-53", 0 ], + "order" : 1, + "source" : [ "obj-51", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 1 ], + "order" : 2, + "source" : [ "obj-51", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-61", 0 ], + "order" : 0, + "source" : [ "obj-51", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 1 ], + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "source" : [ "obj-55", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-56", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-59", 0 ], + "source" : [ "obj-58", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "midpoints" : [ 63.5, 426.0, 46.0, 426.0, 46.0, 247.0, 183.75, 247.0 ], + "source" : [ "obj-59", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-62", 0 ], + "source" : [ "obj-61", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "midpoints" : [ 263.0, 497.0, 147.0, 497.0, 147.0, 497.0, 3.0, 497.0, 3.0, 177.0, 148.0, 177.0 ], + "source" : [ "obj-62", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 1 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "order" : 0, + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "order" : 1, + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "order" : 2, + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "order" : 3, + "source" : [ "obj-9", 0 ] + } + + } + ] + } + +} diff --git a/lfo.gendsp b/lfo.gendsp new file mode 100644 index 0000000..3262d4e --- /dev/null +++ b/lfo.gendsp @@ -0,0 +1,170 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 84.0, 129.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 111.0, 231.0, 28.0, 22.0 ], + "text" : "in 3" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 137.0, 231.0, 28.0, 22.0 ], + "text" : "in 1" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 111.0, 266.0, 45.0, 22.0 ], + "text" : "phasor" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 111.0, 290.0, 36.0, 22.0 ], + "text" : "cycle" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 111.0, 354.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 121.5, 320.0, 28.0, 22.0 ], + "text" : "in 2" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 111.0, 385.0, 35.0, 22.0 ], + "text" : "out 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-8", 1 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-24", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 1 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-8", 0 ] + } + + } + ] + } + +} diff --git a/oscillator.gendsp b/oscillator.gendsp new file mode 100644 index 0000000..8e1a1fa --- /dev/null +++ b/oscillator.gendsp @@ -0,0 +1,611 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 4, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 0.0, 0.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-18", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 695.0, 322.0, 236.0, 20.0 ], + "text" : "square wave: Peter McCulloch" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 295.0, 237.0, 128.0, 22.0 ], + "text" : "out 2 @comment sync" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 295.0, 190.5, 29.5, 22.0 ], + "text" : "<" + } + + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 295.0, 213.0, 35.0, 22.0 ], + "text" : "? 1 0" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 25.0, 939.0, 150.0, 20.0 ], + "text" : "waveform select" + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 636.0, 171.0, 150.0, 20.0 ], + "text" : "pulse width" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 250.75, 120.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 261.25, 96.0, 238.0, 22.0 ], + "text" : "in 6 @comment index @default 0. @min 0." + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 209.5, 58.0, 184.0, 22.0 ], + "text" : "in 5 @comment ratio @default 1." + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 199.25, 88.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 199.25, 144.0, 29.5, 22.0 ], + "text" : "*" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 199.25, 120.0, 36.0, 22.0 ], + "text" : "cycle" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 647.0, 201.0, 354.0, 22.0 ], + "text" : "in 3 @comment pulse width @min 0.01 @max 0.99 @default 0.5" + } + + } +, { + "box" : { + "code" : "// phase\r\np = in1;\r\n// phase increment\r\nT0 = in2;\r\nT2 = 2*T0;\r\nT3 = 3*T0;\r\n// samples per period\r\nP0 = 1/T0;\r\n\r\n\r\n// \"pulse\" width\r\nw = in3;\r\nA = 2/w;\r\nB = 2/(w-1);\r\nC = 0.5*A*B;\r\nDC = 1.5*T0;\r\nP1 = C*P0;\r\nP2 = P1*P0;\r\nP3 = P2*P0/12;\r\n\r\nif (p < w)\r\n{\r\n\tif (p < T0)\r\n\t{\r\n\t\tout1 = B*p - B*DC - 1 - P3*p*p*p*p;\r\n\t}\r\n\telse if (p < T2)\r\n\t{\r\n\t\tout1 = B*p - B*DC - 1 + 2*P3*p*p*p*p - P2*p*p*p + 1.5*P1*p*p - C*p + 0.25*C*T0;\r\n\t}\r\n\telse if (p < T3)\r\n\t{\r\n\t\tout1 = B*p - B*DC - 1 - P3*p*p*p*p + P2*p*p*p - 4.5*P1*p*p + 7*C*p - 3.75*C*T0;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tout1 = A*p - A*DC - 1;\r\n\t}\r\n}\r\nelse\r\n{\r\n\tpw = p - w;\r\n\t\r\n\tif (pw < T0)\r\n\t{\r\n\t\tout1 = A*pw - A*DC + 1 + P3*pw*pw*pw*pw; \r\n\t}\r\n\telse if (pw < T2)\r\n\t{\r\n\t\tout1 = A*pw - A*DC + 1 - 2*P3*pw*pw*pw*pw + P2*pw*pw*pw - 1.5*P1*pw*pw + C*pw - 0.25*C*T0;\r\n\t}\r\n\telse if (pw < T3)\r\n\t{\r\n\t\tout1 = A*pw - A*DC + 1 + P3*pw*pw*pw*pw - P2*pw*pw*pw + 4.5*P1*pw*pw - 7*C*pw + 3.75*C*T0;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tout1 = B*pw - B*DC + 1;\r\n\t}\n}\r\n\r\n\n\r\n", + "fontface" : 0, + "fontname" : "", + "fontsize" : 12.0, + "id" : "obj-11", + "maxclass" : "codebox", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 319.0, 574.0, 785.0, 478.0 ] + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 1014.0, 26.0, 22.0 ], + "text" : "+ 1" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 972.0, 266.0, 22.0 ], + "text" : "in 4 @comment waveform min 0 max 1 default 0" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 31.0, 1076.0, 61.0, 22.0 ], + "text" : "selector 2" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 1046.0, 23.0, 22.0 ], + "text" : "* 2" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 31.0, 1113.0, 155.0, 22.0 ], + "text" : "out 1 @comment signal out" + } + + } +, { + "box" : { + "code" : "// phase\r\np = in1;\r\n// pulse width\r\nw = in3;\r\n\r\n// phase increment\r\nT0 = in2;\r\n// samples per period\r\nP0 = 1/T0;\r\n\r\nT2 = 2*T0;\r\nT3 = 3*T0;\r\n// transition polynomial coefficients\r\nP2 = (P0*P0)/2;\r\nP3 = (P0*P0*P0)/6;\r\n\r\n// low first\r\nif (p < w)\r\n{\r\n\t// begin with high-to-low transition\r\n\t// first sample\r\n\tif (p < T0)\r\n\t{\r\n\t\tout1 = -(p*p*p)*P3 + w;\r\n\t}\r\n\t// second sample\r\n\telse if (p < T2)\r\n\t{\r\n\t\tout1 = 2*(p*p*p)*P3 - 3*(p*p)*P2 + 1.5*p*P0 + w - 0.5;\r\n\t}\r\n\t// third sample\r\n\telse if (p < T3)\r\n\t{\r\n\t\tout1 = -(p*p*p)*P3 + 3*(p*p)*P2 - 4.5*p*P0 + w + 3.5;\r\n\t}\r\n\t// output low\r\n\telse\r\n\t{\r\n\t\t// compensate for DC offset\r\n\t\tout1 = w - 1;\r\n\t}\r\n}\r\n// output high\r\nelse\r\n{\r\n\t// this is the distance from the discontinuity\r\n\tpw = p-w;\r\n\t\r\n\t// first sample\r\n\tif (pw < T0)\r\n\t{\r\n\t\tout1 = (pw*pw*pw)*P3 + w - 1;\r\n\t}\r\n\t// second sample\r\n\telse if (pw < T2)\r\n\t{\r\n\t\tout1 = -2*(pw*pw*pw)*P3 + 3*(pw*pw)*P2 - 1.5*pw*P0 + w - 0.5;\r\n\t}\r\n\t// third sample\r\n\telse if (pw < T3)\r\n\t{\r\n\t\toutw = (pw*pw*pw)*P3 - 3*(pw*pw)*P2 + 4.5*pw*P0 + w - 4.5;\r\n\t}\r\n\t// output high\r\n\telse\r\n\t{\r\n\t\tout1 = w;\r\n\t}\r\n}\r\n// still need to scale by 2 for correct amplitude", + "fontface" : 0, + "fontname" : "", + "fontsize" : 12.0, + "id" : "obj-20", + "maxclass" : "codebox", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 266.0, 614.0, 280.0 ] + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 101.0, 190.5, 186.0, 22.0 ], + "text" : "in 2 @comment sync @default 0." + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 349.5, 218.0, 29.5, 22.0 ], + "text" : "/" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 360.0, 186.0, 70.0, 22.0 ], + "text" : "samplerate" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 218.0, 68.0, 22.0 ], + "text" : "phasor" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 52.0, 25.0, 353.0, 22.0 ], + "text" : "in 1 @comment frequency @min 0. @max 20000. @default 440." + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "midpoints" : [ 61.5, 174.5, 359.0, 174.5 ], + "order" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "midpoints" : [ 61.5, 84.0, 195.0, 84.0, 195.0, 84.0, 208.75, 84.0 ], + "order" : 1, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "order" : 2, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 2 ], + "midpoints" : [ 328.5, 1062.0, 82.5, 1062.0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 2 ], + "midpoints" : [ 656.5, 234.0, 1094.5, 234.0 ], + "order" : 0, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 2 ], + "order" : 1, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 1 ], + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 1 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 1 ], + "midpoints" : [ 359.0, 252.0, 678.0, 252.0, 678.0, 558.0, 711.5, 558.0 ], + "order" : 0, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 1 ], + "order" : 2, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 1 ], + "midpoints" : [ 359.0, 250.0, 338.5, 250.0, 338.5, 178.0, 315.0, 178.0 ], + "order" : 1, + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 1 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 1 ], + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-20", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-24", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "midpoints" : [ 208.75, 182.5, 61.5, 182.5 ], + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-19", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-17", 0 ], + "order" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "order" : 1, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "midpoints" : [ 61.5, 249.0, 39.0, 249.0, 39.0, 558.0, 328.5, 558.0 ], + "order" : 0, + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 0 ], + "order" : 2, + "source" : [ "obj-9", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "midpoints" : [ 61.5, 256.0, 186.0, 256.0, 186.0, 256.0, 281.0, 256.0, 281.0, 179.0, 304.5, 179.0 ], + "order" : 1, + "source" : [ "obj-9", 0 ] + } + + } + ], + "styles" : [ { + "name" : "AudioStatus_Menu", + "default" : { + "bgfillcolor" : { + "type" : "color", + "color" : [ 0.294118, 0.313726, 0.337255, 1 ], + "color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBlue-1", + "default" : { + "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjGreen-1", + "default" : { + "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-1", + "default" : { + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ], + "fontsize" : [ 12.059008 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } + +} diff --git a/smooth.gendsp b/smooth.gendsp new file mode 100644 index 0000000..5a85eae --- /dev/null +++ b/smooth.gendsp @@ -0,0 +1,323 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 1, + "revision" : 4, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "dsp.gen", + "rect" : [ 84.0, 129.0, 600.0, 450.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "fontsize" : 10.0, + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 222.166626000000008, 103.0, 61.0, 20.0 ], + "text" : "param time" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-36", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 222.166626000000008, 134.333313000000004, 62.0, 20.0 ], + "text" : "mstosamps" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 182.0, 56.0, 20.0 ], + "text" : "slide" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 61.0, 27.0, 20.0 ], + "text" : "in 1" + } + + } +, { + "box" : { + "fontsize" : 10.0, + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 203.0, 281.0, 33.0, 20.0 ], + "text" : "out 1" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 2 ], + "order" : 0, + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "order" : 1, + "source" : [ "obj-36", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "source" : [ "obj-6", 0 ] + } + + } + ], + "styles" : [ { + "name" : "AudioStatus_Menu", + "default" : { + "bgfillcolor" : { + "type" : "color", + "color" : [ 0.294118, 0.313726, 0.337255, 1 ], + "color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Luca", + "default" : { + "accentcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ], + "bgcolor" : [ 0.904179, 0.895477, 0.842975, 0.56 ], + "color" : [ 0.475135, 0.293895, 0.251069, 1.0 ], + "elementcolor" : [ 0.786675, 0.801885, 0.845022, 1.0 ], + "selectioncolor" : [ 0.720698, 0.16723, 0.080014, 1.0 ], + "textcolor_inverse" : [ 0.239216, 0.254902, 0.278431, 1.0 ], + "fontname" : [ "Open Sans Semibold" ], + "bgfillcolor" : { + "type" : "gradient", + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "color2" : [ 0.65098, 0.666667, 0.662745, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39, + "autogradient" : 0 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "Matt", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "dark-night-patch", + "default" : { + "accentcolor" : [ 0.952941, 0.564706, 0.098039, 1.0 ], + "textcolor" : [ 0.862745, 0.870588, 0.878431, 1.0 ], + "patchlinecolor" : [ 0.439216, 0.74902, 0.254902, 0.898039 ], + "bgfillcolor" : { + "type" : "gradient", + "color1" : [ 0.376471, 0.384314, 0.4, 1.0 ], + "color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "angle" : 270.0, + "proportion" : 0.39 + } + + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "ksliderWhite", + "default" : { + "color" : [ 1.0, 1.0, 1.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBlue-1", + "default" : { + "accentcolor" : [ 0.317647, 0.654902, 0.976471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjBrown-1", + "default" : { + "accentcolor" : [ 0.654902, 0.572549, 0.376471, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjCyan-1", + "default" : { + "accentcolor" : [ 0.029546, 0.773327, 0.821113, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjGreen-1", + "default" : { + "accentcolor" : [ 0.0, 0.533333, 0.168627, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjRed-1", + "default" : { + "accentcolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-1", + "default" : { + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ], + "fontsize" : [ 12.059008 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "newobjYellow-2", + "default" : { + "accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ], + "fontsize" : [ 12.059008 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "numberGold-1", + "default" : { + "accentcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "rsliderGold", + "default" : { + "bgcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ], + "color" : [ 0.646639, 0.821777, 0.854593, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "test", + "default" : { + "fontface" : [ 1 ], + "fontsize" : [ 10.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } + +}