Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
255 lines (232 sloc) 5.04 KB
{
"patcher" : {
"fileversion" : 1,
"rect" : [ 221.0, 83.0, 360.0, 330.0 ],
"bglocked" : 0,
"defrect" : [ 221.0, 83.0, 360.0, 330.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "" ],
"id" : "obj-1",
"patching_rect" : [ 106.0, 27.0, 25.0, 25.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"comment" : ""
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"fontname" : "Arial",
"outlettype" : [ "bang", "int" ],
"id" : "obj-7",
"fontsize" : 12.0,
"patching_rect" : [ 43.0, 175.0, 32.5, 20.0 ],
"numinlets" : 1,
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "gate",
"fontname" : "Arial",
"outlettype" : [ "" ],
"id" : "obj-6",
"fontsize" : 12.0,
"patching_rect" : [ 90.0, 81.0, 34.0, 20.0 ],
"numinlets" : 2,
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "This patch takes an integer as input on the left inlet.\n\nThe output will alternate between the input integer and 0\n\nIf 0 is sent as input, then the blinking will stop\n\nThis requires that there is a pulsing 1/0 signal being sent into the right inlet.",
"linecount" : 15,
"fontname" : "Arial",
"id" : "obj-23",
"fontsize" : 12.0,
"patching_rect" : [ 179.0, 55.0, 140.0, 213.0 ],
"numinlets" : 1,
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 1 0",
"fontname" : "Arial",
"outlettype" : [ "bang", "bang", "" ],
"id" : "obj-20",
"fontsize" : 12.0,
"patching_rect" : [ 90.0, 145.0, 62.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 3
}
}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-18",
"patching_rect" : [ 90.0, 111.0, 20.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-5",
"patching_rect" : [ 65.0, 284.0, 25.0, 25.0 ],
"numinlets" : 1,
"numoutlets" : 0,
"comment" : ""
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"fontname" : "Arial",
"outlettype" : [ "" ],
"id" : "obj-4",
"fontsize" : 12.0,
"patching_rect" : [ 113.0, 229.0, 32.5, 18.0 ],
"numinlets" : 2,
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "128",
"fontname" : "Arial",
"outlettype" : [ "" ],
"id" : "obj-3",
"fontsize" : 12.0,
"patching_rect" : [ 43.0, 233.0, 32.5, 18.0 ],
"numinlets" : 2,
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "" ],
"id" : "obj-2",
"patching_rect" : [ 43.0, 25.0, 25.0, 25.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"comment" : ""
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-6", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 122.5, 270.0, 74.5, 270.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 52.5, 268.0, 74.5, 268.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 1 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-7", 1 ],
"destination" : [ "obj-3", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}
}