Tempo vs. counter

Feb 26, 2009 at 12:52pm

Tempo vs. counter

I am creating a sub-patch to help me in conducting a piece. (We are playing it tonight and they need me to help with some cues which is why I am doing this.) I am using sel to choose the correct event. That is working o.k. What I need to do though is when I get to event 29 I need 4 beats a 50 BPM and then a tempo change to 72 BPM. What I have I am not sure is the best way to achieve this. Can some of you take a look and let me know what you think?

Thanks.
{
“boxes” : [ {
"box" : {
"maxclass" : "comment",
"text" : "72 BPM",
"fontsize" : 12.0,
"id" : "obj-35",
"numinlets" : 1,
"patching_rect" : [ 365.0, 356.0, 53.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “50 BPM”,
“fontsize” : 12.0,
“id” : “obj-34″,
“numinlets” : 1,
“patching_rect” : [ 308.0, 311.0, 56.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “60 BPM”,
“fontsize” : 12.0,
“id” : “obj-33″,
“numinlets” : 1,
“patching_rect” : [ 118.0, 310.0, 59.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 0
}

}
, {
“box” : {
“maxclass” : “number”,
“fontsize” : 12.0,
“id” : “obj-30″,
“numinlets” : 1,
“patching_rect” : [ 250.0, 416.0, 50.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 2,
“outlettype” : [ "int", "bang" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “833″,
“fontsize” : 12.0,
“id” : “obj-28″,
“numinlets” : 2,
“patching_rect” : [ 332.0, 356.0, 32.5, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “stop”,
“fontsize” : 12.0,
“id” : “obj-27″,
“numinlets” : 2,
“patching_rect” : [ 381.0, 282.0, 33.0, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 3″,
“fontsize” : 12.0,
“id” : “obj-26″,
“numinlets” : 2,
“patching_rect” : [ 425.0, 380.0, 36.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 2,
“outlettype” : [ "bang", "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “4″,
“fontsize” : 12.0,
“id” : “obj-18″,
“numinlets” : 2,
“patching_rect” : [ 505.0, 276.0, 32.5, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “50″,
“fontsize” : 12.0,
“id” : “obj-17″,
“numinlets” : 2,
“patching_rect” : [ 452.0, 280.0, 32.5, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “button”,
“id” : “obj-9″,
“numinlets” : 1,
“patching_rect” : [ 424.0, 243.0, 20.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "bang" ]
}

}
, {
“box” : {
“maxclass” : “number”,
“fontsize” : 12.0,
“id” : “obj-8″,
“numinlets” : 1,
“patching_rect” : [ 426.0, 346.0, 50.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 2,
“outlettype” : [ "int", "bang" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “tempo”,
“fontsize” : 12.0,
“id” : “obj-3″,
“numinlets” : 4,
“patching_rect” : [ 425.0, 311.0, 98.5, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "int" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 29″,
“fontsize” : 12.0,
“id” : “obj-25″,
“numinlets” : 2,
“patching_rect” : [ 514.0, 82.0, 43.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 2,
“outlettype” : [ "bang", "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “1200″,
“fontsize” : 12.0,
“id” : “obj-14″,
“numinlets” : 2,
“patching_rect” : [ 271.0, 310.0, 37.0, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “1″,
“fontsize” : 12.0,
“id” : “obj-11″,
“numinlets” : 2,
“patching_rect” : [ 136.0, 286.0, 32.5, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “0″,
“fontsize” : 12.0,
“id” : “obj-10″,
“numinlets” : 2,
“patching_rect” : [ 75.0, 290.0, 32.5, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “outlet”,
“id” : “obj-6″,
“numinlets” : 1,
“patching_rect” : [ 140.0, 419.0, 25.0, 25.0 ],
“numoutlets” : 0,
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “r event”,
“fontsize” : 12.0,
“id” : “obj-5″,
“numinlets” : 0,
“patching_rect” : [ 137.0, 26.0, 47.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “1000″,
“fontsize” : 12.0,
“id” : “obj-2″,
“numinlets” : 2,
“patching_rect” : [ 178.0, 310.0, 37.0, 18.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “metro”,
“fontsize” : 12.0,
“id” : “obj-1″,
“numinlets” : 2,
“patching_rect” : [ 138.0, 366.0, 41.0, 20.0 ],
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [ "bang" ]
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-28", 0 ],
“destination” : [ "obj-30", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-14", 0 ],
“destination” : [ "obj-30", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-2", 0 ],
“destination” : [ "obj-30", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-28", 0 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ 341.5, 388.0, 293.0, 388.0, 293.0, 346.0, 147.5, 346.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-26", 0 ],
“destination” : [ "obj-28", 0 ],
“hidden” : 0,
“midpoints” : [ 434.5, 415.0, 325.0, 415.0, 325.0, 340.0, 341.5, 340.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-26", 0 ],
“destination” : [ "obj-27", 0 ],
“hidden” : 0,
“midpoints” : [ 434.5, 408.0, 367.0, 408.0, 367.0, 267.0, 390.5, 267.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-8", 0 ],
“destination” : [ "obj-26", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-27", 0 ],
“destination” : [ "obj-3", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-9", 0 ],
“destination” : [ "obj-18", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-9", 0 ],
“destination” : [ "obj-17", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-18", 0 ],
“destination” : [ "obj-3", 3 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-17", 0 ],
“destination” : [ "obj-3", 1 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-9", 0 ],
“destination” : [ "obj-3", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-9", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-3", 0 ],
“destination” : [ "obj-8", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-10", 0 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-1", 0 ],
“destination” : [ "obj-6", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-11", 0 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-2", 0 ],
“destination” : [ "obj-1", 1 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-14", 0 ],
“destination” : [ "obj-1", 1 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-14", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-5", 0 ],
“destination” : [ "obj-25", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}

#42541
Feb 26, 2009 at 3:42pm

Maybe like this? Btw, did you notice copy compressed in the edit menu?

– Pasted Max Patch, click to expand. –
#152223
Feb 26, 2009 at 5:12pm

I think that got it. Thanks. I’ll work through it to make sure it connects well with the other stuff.

Thanks too for the compressed text. Didn’t know it was there Razz

#152224

You must be logged in to reply to this topic.