max-mod-enum/ModEnum.maxhelp
2025-07-22 15:27:16 +02:00

1445 lines
37 KiB
Plaintext

{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 0,
"revision" : 5,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 226.0, 100.0, 875.0, 820.0 ],
"gridsize" : [ 15.0, 15.0 ],
"showrootpatcherontab" : 0,
"showontab" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 0,
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 0,
"revision" : 5,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 0.0, 26.0, 875.0, 794.0 ],
"gridsize" : [ 15.0, 15.0 ],
"showontab" : 2,
"boxes" : [ {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-22",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 191.0, 558.0, 22.0 ],
"text" : "The clock time between waveform cycles or randomly chosen values"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-23",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 191.0, 86.0, 22.0 ],
"text" : "00:01:20"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-24",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 191.0, 107.0, 22.0 ],
"text" : "hh:mm:ss"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-19",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 161.0, 558.0, 22.0 ],
"text" : "The musical time between waveform cycles or randomly chosen values"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-20",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 161.0, 86.0, 22.0 ],
"text" : "3.2.0"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-21",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 161.0, 107.0, 22.0 ],
"text" : "bars.beats.ticks"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-18",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 131.0, 558.0, 22.0 ],
"text" : "The frequency, in cycles per seconds, of waveform cycles or randomly chosen values"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-17",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 103.0, 522.0, 22.0 ],
"text" : "The time, in seconds, between waveform cycles or randomly chosen values"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-16",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 76.0, 522.0, 22.0 ],
"text" : "The time, in milliseconds, between waveform cycles or randomly chosen values"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-15",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 223.0, 49.0, 150.0, 22.0 ],
"text" : "DESCRIPTION"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-12",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 131.0, 86.0, 22.0 ],
"text" : "0.2hz"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-13",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 131.0, 86.0, 22.0 ],
"text" : "Hertz"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-10",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 103.0, 86.0, 22.0 ],
"text" : "3s"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-11",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 103.0, 86.0, 22.0 ],
"text" : "seconds"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-9",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 49.0, 86.0, 22.0 ],
"text" : "EXAMPLE"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-8",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 49.0, 86.0, 22.0 ],
"text" : "UNIT"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-7",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 128.0, 76.0, 86.0, 22.0 ],
"text" : "5100ms"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-6",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 76.0, 86.0, 22.0 ],
"text" : "milliseconds"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-14",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 11.0, 626.0, 22.0 ],
"text" : "Regardless of the shape of your modulator, you can use any of the following timebase formats:"
}
}
],
"lines" : [ ],
"originid" : "pat-649"
}
,
"patching_rect" : [ 279.166679978370667, 34.722223877906799, 67.0, 22.0 ],
"text" : "p timebase",
"varname" : "basic[2]"
}
}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 0,
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 0,
"revision" : 5,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 226.0, 126.0, 875.0, 794.0 ],
"gridsize" : [ 15.0, 15.0 ],
"showontab" : 2,
"boxes" : [ {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-23",
"linecount" : 10,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 8.108107566833496, 831.08102560043335, 864.0, 163.0 ],
"text" : "Enumerators take the continuous output of a modulator and turn it into discrete parameter results. \n\nFor the first enumerator, a modulator is emitting a square wave for the `scale` parameter of DJster instance 4, and this wave goes between 0 and 1. Internally, the system recognizes when a modulator and enumerator are marked with the same instance and parameter and it links them. So, when at 0, this gets enumerated to the `major` argument as it is between the -0,5 and 0,5 breakpoints. When at 1, it gets enumerated to the `minor` breakpoint.\n\nThe second shows how to move between numerous arguments. Once again, a modulator is defined with the same instance number and parameter. This time, this modulator is a saw wave going between 0 and 3. The corresponding enumerator now features many more breakpoints spanning the entire length of this saw wave."
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 55.405401706695557, 51.351347923278809, 62.0, 22.0 ],
"text" : "r common"
}
}
, {
"box" : {
"id" : "obj-32",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 524.324289321899414, 54.054050445556641, 80.0, 22.0 ],
"text" : "4 scale major"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubble" : 1,
"id" : "obj-24",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 640.540497779846191, 32.432430267333984, 151.0, 37.0 ],
"text" : "Imagine this is the web interface"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-22",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "bang" ],
"patching_rect" : [ 258.108090877532959, 28.378376483917236, 42.0, 22.0 ],
"text" : "t b b b"
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 393.243216991424561, 54.054050445556641, 131.0, 22.0 ],
"text" : "3 melodic_cohesion 50"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 393.243216991424561, 87.837831974029541, 90.0, 22.0 ],
"text" : "prepend param"
}
}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 527.026991844177246, 20.27026891708374, 104.0, 22.0 ],
"text" : "2 event_length 20"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 393.243216991424561, 20.27026891708374, 110.0, 22.0 ],
"text" : "1 pulse_length 200"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "panel",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 393.243216991424561, 13.51351261138916, 248.0, 74.0 ]
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 258.108090877532959, 59.459455490112305, 67.0, 22.0 ],
"text" : "delay 3000"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 259.459442138671875, 9.459458827972412, 58.0, 22.0 ],
"text" : "loadbang"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 258.108090877532959, 85.135129451751709, 73.0, 22.0 ],
"text" : "viewMode 1"
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 833.783728122711182, 748.648598670959473, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-9",
"linecount" : 2,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 663.513469219207764, 748.648598670959473, 50.0, 35.0 ],
"text" : "tonic_pitch 25"
}
}
, {
"box" : {
"id" : "obj-6",
"linecount" : 2,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 491.89185905456543, 748.648598670959473, 50.0, 35.0 ],
"text" : "scale minor"
}
}
, {
"box" : {
"id" : "obj-7",
"linecount" : 5,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 320.270248889923096, 748.648598670959473, 50.0, 76.0 ],
"text" : "melodic_cohesion 0.393701"
}
}
, {
"box" : {
"id" : "obj-5",
"linecount" : 4,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 148.648638725280762, 748.648598670959473, 50.0, 62.0 ],
"text" : "event_length -5.867437"
}
}
, {
"box" : {
"id" : "obj-3",
"linecount" : 4,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 29.729727745056152, 748.648598670959473, 60.0, 62.0 ],
"text" : "pulse_length -94.506308"
}
}
, {
"box" : {
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"id" : "obj-1",
"lockeddragscroll" : 0,
"lockedsize" : 0,
"maxclass" : "bpatcher",
"name" : "ModEnum.maxpat",
"numinlets" : 1,
"numoutlets" : 6,
"offset" : [ 0.0, 0.0 ],
"outlettype" : [ "", "", "", "", "", "" ],
"patching_rect" : [ 8.108107566833496, 117.567559719085693, 876.0, 621.0 ],
"varname" : "ModEnum",
"viewvisibility" : 1
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-3", 1 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"source" : [ "obj-1", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 1 ],
"source" : [ "obj-1", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 1 ],
"source" : [ "obj-1", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"source" : [ "obj-1", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 1 ],
"source" : [ "obj-1", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-22", 0 ],
"hidden" : 1,
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"hidden" : 1,
"source" : [ "obj-14", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"hidden" : 1,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"hidden" : 1,
"order" : 2,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"hidden" : 1,
"order" : 0,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"hidden" : 1,
"source" : [ "obj-22", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"hidden" : 1,
"order" : 1,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"hidden" : 1,
"source" : [ "obj-4", 0 ]
}
}
],
"originid" : "pat-651"
}
,
"patching_rect" : [ 181.944453120231628, 34.722223877906799, 86.0, 22.0 ],
"text" : "p enumerators",
"varname" : "basic[1]"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 0,
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 0,
"revision" : 5,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 0.0, 26.0, 875.0, 794.0 ],
"gridsize" : [ 15.0, 15.0 ],
"showontab" : 2,
"boxes" : [ {
"box" : {
"bubble" : 1,
"bubbleside" : 3,
"fontsize" : 12.0,
"id" : "obj-40",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 11.538462996482849, 435.897490978240967, 45.0, 24.0 ],
"text" : "****"
}
}
, {
"box" : {
"bubble" : 1,
"bubbleside" : 3,
"fontsize" : 12.0,
"id" : "obj-39",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 11.538462996482849, 414.102616429328918, 45.0, 24.0 ],
"text" : "***"
}
}
, {
"box" : {
"bubble" : 1,
"bubbleside" : 3,
"fontsize" : 12.0,
"id" : "obj-38",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 20.141025722026825, 389.74363899230957, 36.0, 24.0 ],
"text" : "**"
}
}
, {
"box" : {
"bubble" : 1,
"bubbleside" : 3,
"fontsize" : 12.0,
"id" : "obj-37",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 20.512823104858398, 369.230815887451172, 35.0, 24.0 ],
"text" : "*"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-35",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 112.820527076721191, 94.871806859970093, 64.0, 22.0 ],
"text" : "s common"
}
}
, {
"box" : {
"id" : "obj-32",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 487.179548740386963, 64.102572202682495, 80.0, 22.0 ],
"text" : "4 scale major"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubble" : 1,
"id" : "obj-31",
"linecount" : 4,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 891.025753617286682, 430.769285202026367, 150.0, 64.0 ],
"text" : "These final two will NOT operate without the Global Transport turned on"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-30",
"linecount" : 7,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 460.102619588375092, 875.641136288642883, 433.333388090133667, 116.0 ],
"text" : "****\nFor the fourth, we are modulating `scale` of the fourth DJster instance with a custom drawn wave. The timebase here is given in \"bars.beats.ticks\" between each waveform cycle. In this situation, the waveform period is one bar, as configured in the Global Transport. This parameter and instance are also defined in enumerators, see the next tab for details."
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubble" : 1,
"id" : "obj-29",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 891.025753617286682, 182.051305055618286, 150.0, 51.0 ],
"text" : "Custom waves may be free drawn OR breakpoint functions"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-26",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 460.102619588375092, 791.02574098110199, 433.333388090133667, 85.0 ],
"text" : "*** \nFor the third, we are modulating the `melodic_cohesion` parameter of the first DJster instance with a custom drawn wave. Here, the timebase argument of `3000ms` means that every 3000 milliseconds, a new random point will be chosed "
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-25",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 31.897437274456024, 875.641136288642883, 421.0, 85.0 ],
"text" : "** \nFor the second, we are modulating the `event_length` parameter of the second DJster instance with Sine Interpolated Noise. Here, the timebase argument of `3000ms` means that every 3000 milliseconds, a new random point will be chosed "
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubble" : 1,
"id" : "obj-24",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 603.846230149269104, 42.307697653770447, 151.0, 37.0 ],
"text" : "Imagine this is the web interface"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-22",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "bang" ],
"patching_rect" : [ 204.0, 42.307697653770447, 42.0, 22.0 ],
"text" : "t b b b"
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.410301446914673, 64.102572202682495, 131.0, 22.0 ],
"text" : "3 melodic_cohesion 50"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.410301446914673, 98.717961192131042, 90.0, 22.0 ],
"text" : "prepend param"
}
}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 489.743651628494263, 30.769234657287598, 104.0, 22.0 ],
"text" : "2 event_length 20"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.410301446914673, 30.769234657287598, 110.0, 22.0 ],
"text" : "1 pulse_length 200"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "panel",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 356.410301446914673, 23.076925992965698, 248.0, 74.0 ]
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-15",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 182.0, 64.102572202682495, 29.5, 22.0 ],
"text" : "1"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 204.0, 15.474360108375549, 67.0, 22.0 ],
"text" : "delay 3000"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 0.99 ],
"bubbleside" : 0,
"fontsize" : 14.0,
"id" : "obj-14",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 31.897437274456024, 791.02574098110199, 416.666719317436218, 85.0 ],
"text" : "* \nFor the first modulator, we are modulating the `pulse_length` parameter of the first DJster instance, using a Sine Wave. For timebase, we have entered `0.1hz` which means this wave will operate with a frequency of 0.1hz, or 0.1 cycles per second"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 204.0, -6.0, 58.0, 22.0 ],
"text" : "loadbang"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 203.730796933174133, 98.717961192131042, 73.0, 22.0 ],
"text" : "viewMode 0"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-12",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.333337545394897, 94.871806859970093, 42.0, 22.0 ],
"text" : "reload"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-51",
"linecount" : 2,
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 29.487183213233948, 8.974360108375549, 160.256430506706238, 35.0 ],
"saved_object_attributes" : {
"client_rect" : [ 113, 112, 658, 432 ],
"parameter_enable" : 0,
"parameter_mappable" : 0,
"storage_rect" : [ 1282, 626, 1887, 1000 ]
}
,
"text" : "pattrstorage myStorage @savemode 3 @greedy 1",
"varname" : "myStorage"
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-10",
"maxclass" : "preset",
"numinlets" : 1,
"numoutlets" : 5,
"outlettype" : [ "preset", "int", "preset", "int", "" ],
"patching_rect" : [ 29.487183213233948, 47.435903429985046, 100.0, 40.0 ],
"pattrstorage" : "myStorage"
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 855.128313183784485, 758.974454879760742, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 683.333419680595398, 758.974454879760742, 93.589755415916443, 22.0 ],
"text" : "tonic_pitch 25"
}
}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 512.820577621459961, 758.974454879760742, 132.05129873752594, 22.0 ],
"text" : "scale minor"
}
}
, {
"box" : {
"id" : "obj-7",
"linecount" : 2,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 341.025684118270874, 758.974454879760742, 112.820527076721191, 35.0 ],
"text" : "melodic_cohesion 50.393701"
}
}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 169.230790615081787, 758.974454879760742, 152.564121842384338, 22.0 ],
"text" : "event_length 17.113697"
}
}
, {
"box" : {
"id" : "obj-3",
"linecount" : 2,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.000006318092346, 758.974454879760742, 108.974372744560242, 35.0 ],
"text" : "pulse_length 201.884844"
}
}
, {
"box" : {
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"id" : "obj-1",
"lockeddragscroll" : 0,
"lockedsize" : 0,
"maxclass" : "bpatcher",
"name" : "ModEnum.maxpat",
"numinlets" : 1,
"numoutlets" : 6,
"offset" : [ 0.0, 0.0 ],
"outlettype" : [ "", "", "", "", "", "" ],
"patching_rect" : [ 29.487183213233948, 126.92309296131134, 876.0, 621.0 ],
"varname" : "ModEnum",
"viewvisibility" : 1
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-3", 1 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"source" : [ "obj-1", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 1 ],
"source" : [ "obj-1", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 1 ],
"source" : [ "obj-1", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"source" : [ "obj-1", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 1 ],
"source" : [ "obj-1", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"hidden" : 1,
"source" : [ "obj-10", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"hidden" : 1,
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"hidden" : 1,
"order" : 1,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-35", 0 ],
"hidden" : 1,
"order" : 0,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"hidden" : 1,
"source" : [ "obj-15", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-22", 0 ],
"hidden" : 1,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"hidden" : 1,
"source" : [ "obj-22", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"hidden" : 1,
"order" : 2,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"hidden" : 1,
"order" : 0,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"hidden" : 1,
"order" : 1,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"hidden" : 1,
"source" : [ "obj-22", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"hidden" : 1,
"source" : [ "obj-4", 0 ]
}
}
],
"originid" : "pat-667"
}
,
"patching_rect" : [ 94.444448947906494, 34.722223877906799, 78.0, 22.0 ],
"text" : "p modulators",
"varname" : "basic"
}
}
],
"lines" : [ ],
"originid" : "pat-647",
"parameters" : {
"obj-4::obj-1::obj-25" : [ "dict", "dict", 0 ],
"obj-5::obj-1::obj-25" : [ "dict[1]", "dict", 0 ],
"parameterbanks" : {
"0" : {
"index" : 0,
"name" : "",
"parameters" : [ "-", "-", "-", "-", "-", "-", "-", "-" ]
}
}
,
"inherited_shortname" : 1
}
,
"dependency_cache" : [ {
"name" : "ModEnum.maxpat",
"bootpath" : "~/Documents/max-mod-enum",
"patcherrelativepath" : ".",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "myStorage.json",
"bootpath" : "~/Documents/max-mod-enum",
"patcherrelativepath" : ".",
"type" : "JSON",
"implicit" : 1
}
],
"autosave" : 0
}
}