Skip to content

Commit

Permalink
bug fixes and help patchers for mc.rotate~ and gridmeter~ examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Place committed Dec 11, 2018
1 parent db981c5 commit 20e92c3
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 1 deletion.
202 changes: 202 additions & 0 deletions help/gridmeter~.maxhelp
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 0,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
}
,
"rect" : [ 59.0, 104.0, 640.0, 480.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" : "",
"boxes" : [ {
"box" : {
"id" : "obj-6",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 33.0, 35.0, 73.0, 20.0 ],
"presentation_rect" : [ 33.0, 35.0, 73.0, 20.0 ],
"style" : "",
"text" : " try 0.1 - 0.9"
}

}
, {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 177.0, 9.0, 80.0, 22.0 ],
"presentation_rect" : [ 177.0, 9.0, 80.0, 22.0 ],
"style" : "",
"text" : "loadmess 0.1"
}

}
, {
"box" : {
"format" : 6,
"id" : "obj-11",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 177.0, 55.0, 50.0, 22.0 ],
"presentation_rect" : [ 177.0, 55.0, 50.0, 22.0 ],
"style" : ""
}

}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 177.0, 93.0, 110.0, 22.0 ],
"presentation_rect" : [ 177.0, 93.0, 110.0, 22.0 ],
"style" : "",
"text" : "deviate $1 float 0.5"
}

}
, {
"box" : {
"format" : 6,
"id" : "obj-14",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 33.0, 71.0, 50.0, 22.0 ],
"presentation_rect" : [ 33.0, 71.0, 50.0, 22.0 ],
"style" : ""
}

}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 32.0, 120.0, 68.0, 22.0 ],
"presentation_rect" : [ 32.0, 120.0, 68.0, 22.0 ],
"style" : "",
"text" : "contrast $1"
}

}
, {
"box" : {
"cellheight" : 10,
"cellwidth" : 14,
"color" : [ 0.702269, 0.811747, 0.303388, 1.0 ],
"dividersize" : 5,
"id" : "obj-1",
"maxclass" : "gridmeter~",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 33.0, 190.0, 138.0, 65.0 ],
"presentation_rect" : [ 33.0, 190.0, 138.0, 65.0 ],
"style" : ""
}

}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "multichannelsignal" ],
"patching_rect" : [ 160.0, 120.0, 146.0, 22.0 ],
"presentation_rect" : [ 160.0, 120.0, 146.0, 22.0 ],
"style" : "",
"text" : "mc.cycle~ 0.6 @chans 32"
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-11", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-12", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-14", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-2", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"source" : [ "obj-3", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-4", 0 ]
}

}
],
"dependency_cache" : [ ],
"autosave" : 0
}

}
125 changes: 125 additions & 0 deletions help/mc.rotate~.maxhelp
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 0,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
}
,
"rect" : [ 59.0, 104.0, 640.0, 480.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" : "",
"boxes" : [ {
"box" : {
"id" : "obj-5",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 227.0, 75.0, 62.0, 22.0 ],
"presentation_rect" : [ 227.0, 75.0, 62.0, 22.0 ],
"style" : "",
"text" : "6 7 8 9 10"
}

}
, {
"box" : {
"cols" : 5,
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "jit.cellblock",
"numinlets" : 2,
"numoutlets" : 4,
"outlettype" : [ "list", "", "", "" ],
"patching_rect" : [ 201.0, 242.0, 382.0, 105.0 ],
"presentation_rect" : [ 201.0, 242.0, 382.0, 105.0 ],
"rows" : 1
}

}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "multichannelsignal" ],
"patching_rect" : [ 201.0, 191.0, 66.0, 22.0 ],
"presentation_rect" : [ 201.0, 191.0, 66.0, 22.0 ],
"style" : "",
"text" : "mc.rotate~"
}

}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "multichannelsignal" ],
"patching_rect" : [ 201.0, 129.0, 100.0, 22.0 ],
"presentation_rect" : [ 201.0, 129.0, 100.0, 22.0 ],
"style" : "",
"text" : "mc.list~ 1 2 3 4 5"
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-1", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-2", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-5", 0 ]
}

}
],
"dependency_cache" : [ ],
"autosave" : 0
}

}
1 change: 1 addition & 0 deletions source/mc/gridmeter~/gridmeter~.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ void *gridmeter_new(t_symbol *s, long argc, t_atom *argv)
gridmeter_initvalues(x);
x->a_obj.z_box.b_firstin = (void *)x;
dsp_setupjbox((t_pxjbox *)x, 1);
x->a_obj.z_misc |= Z_MC_INLETS;

x->a_clock = clock_new(x, (method)gridmeter_tick);
attr_dictionary_process(x, d);
Expand Down
2 changes: 1 addition & 1 deletion source/mc/mc.rotate~/mc.rotate~.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void *mcrotate_new(long size)
x->m_size = CLAMP(size, 1, 512);

dsp_setup((t_pxobject *)x, 1);
x->m_obj.z_misc |= Z_NO_INPLACE;
x->m_obj.z_misc |= Z_NO_INPLACE | Z_MC_INLETS;
outlet_new((t_object *)x, "multichannelsignal");
return x;
}
Expand Down

0 comments on commit 20e92c3

Please sign in to comment.