Skip to content

Commit

Permalink
Create 264.midi-learn pattr-control active test
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Sep 24, 2015
1 parent e907e1d commit f1caefe
Showing 1 changed file with 219 additions and 24 deletions.
243 changes: 219 additions & 24 deletions patchers/264.midi-learn.maxpat
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,189 @@
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-70",
"id" : "obj-43",
"maxclass" : "newobj",
"numinlets" : 1,
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 300.0, 555.0, 72.0, 20.0 ],
"text" : "loadmess 1"
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 9,
"architecture" : "x86"
}
,
"rect" : [ 25.0, 69.0, 181.0, 179.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-58",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "int" ],
"patching_rect" : [ 135.0, 45.0, 32.5, 20.0 ],
"text" : "t b i"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-54",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 15.0, 75.0, 32.5, 20.0 ],
"text" : "i 0"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 15.0, 105.0, 154.0, 20.0 ],
"text" : "if $i1 | $i2 > 0 then 1 else 0"
}

}
, {
"box" : {
"comment" : "Controller number",
"id" : "obj-5",
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 15.0, 15.0, 25.0, 25.0 ]
}

}
, {
"box" : {
"comment" : "MIDI channel",
"id" : "obj-35",
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 135.0, 15.0, 25.0, 25.0 ]
}

}
, {
"box" : {
"comment" : "pattr-control gate switch — 1 if midi-learn is in use; 0 if not",
"id" : "obj-38",
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 15.0, 135.0, 25.0, 25.0 ]
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-58", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-35", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-38", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-5", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-54", 0 ]
}

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

}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-58", 0 ]
}

}
]
}
,
"patching_rect" : [ 300.0, 555.0, 71.0, 20.0 ],
"saved_object_attributes" : {
"default_fontface" : 0,
"default_fontname" : "Arial",
"default_fontsize" : 12.0,
"description" : "",
"digest" : "",
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"globalpatchername" : "",
"tags" : ""
}
,
"text" : "p is-active?"
}

}
Expand Down Expand Up @@ -112,7 +288,7 @@
}
,
"text" : "autopattr",
"varname" : "u909009979"
"varname" : "u395003872"
}

}
Expand Down Expand Up @@ -385,7 +561,7 @@
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 345.0, 315.0, 50.0, 18.0 ],
"patching_rect" : [ 360.0, 315.0, 50.0, 18.0 ],
"presentation" : 1,
"presentation_rect" : [ -7.0, 1.0, 35.0, 18.0 ],
"text" : " ",
Expand Down Expand Up @@ -495,7 +671,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 465.0, 285.0, 96.0, 20.0 ],
"patching_rect" : [ 480.0, 285.0, 96.0, 20.0 ],
"text" : "loadmess set \" \""
}

Expand All @@ -509,7 +685,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 345.0, 285.0, 109.0, 20.0 ],
"patching_rect" : [ 360.0, 285.0, 109.0, 20.0 ],
"text" : "sprintf set %ld:%ld"
}

Expand All @@ -523,7 +699,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 345.0, 255.0, 50.0, 20.0 ],
"patching_rect" : [ 360.0, 255.0, 50.0, 20.0 ],
"text" : "pak 0 0"
}

Expand Down Expand Up @@ -592,7 +768,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 330.0, 195.0, 25.0, 25.0 ]
"patching_rect" : [ 345.0, 195.0, 25.0, 25.0 ]
}

}
Expand Down Expand Up @@ -635,7 +811,7 @@
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 330.0, 225.0, 37.0, 20.0 ],
"patching_rect" : [ 345.0, 225.0, 37.0, 20.0 ],
"triscale" : 0.9,
"varname" : "#1-264ml-chan"
}
Expand Down Expand Up @@ -733,7 +909,7 @@
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 375.0, 75.0, 37.0, 20.0 ],
"patching_rect" : [ 390.0, 75.0, 37.0, 20.0 ],
"triscale" : 0.9
}

Expand All @@ -748,7 +924,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 360.0, 195.0, 34.0, 20.0 ],
"patching_rect" : [ 375.0, 195.0, 34.0, 20.0 ],
"text" : "gate"
}

Expand Down Expand Up @@ -1036,7 +1212,7 @@
"destination" : [ "obj-24", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 339.5, 372.5, 278.5, 372.5 ],
"midpoints" : [ 354.5, 372.5, 278.5, 372.5 ],
"source" : [ "obj-10", 0 ]
}

Expand All @@ -1049,6 +1225,15 @@
"source" : [ "obj-10", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-43", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-10", 0 ]
}

}
, {
"patchline" : {
Expand All @@ -1067,6 +1252,16 @@
"source" : [ "obj-11", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-43", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 219.5, 249.5, 309.5, 249.5 ],
"source" : [ "obj-11", 0 ]
}

}
, {
"patchline" : {
Expand Down Expand Up @@ -1318,7 +1513,7 @@
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 99.5, 191.0, 369.5, 191.0 ],
"midpoints" : [ 99.5, 191.0, 384.5, 191.0 ],
"source" : [ "obj-36", 0 ]
}

Expand Down Expand Up @@ -1367,6 +1562,15 @@
"source" : [ "obj-41", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-78", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-43", 0 ]
}

}
, {
"patchline" : {
Expand Down Expand Up @@ -1403,15 +1607,6 @@
"source" : [ "obj-69", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-78", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-70", 0 ]
}

}
, {
"patchline" : {
Expand Down

0 comments on commit f1caefe

Please sign in to comment.