Copy paste this into a max patch and you will get the idea of how to intergrate it into the patch.
Edit: i should not that this only works in relative mode and NOT in absolute mode. Relative mode is the future anyway, so stick with it
Code: Select all
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "Cue Play",
"id" : "obj-9",
"numinlets" : 1,
"patching_rect" : [ 172.0, 471.0, 51.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 0,
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "Cue Drop",
"id" : "obj-7",
"numinlets" : 1,
"patching_rect" : [ 172.0, 415.0, 54.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 0,
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "button",
"id" : "obj-6",
"numinlets" : 1,
"patching_rect" : [ 231.0, 471.0, 20.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}
}
, {
"box" : {
"maxclass" : "button",
"id" : "obj-4",
"numinlets" : 1,
"patching_rect" : [ 231.0, 415.0, 20.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend cue",
"id" : "obj-3",
"numinlets" : 1,
"patching_rect" : [ 270.0, 522.0, 100.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "message",
"id" : "obj-2",
"numinlets" : 2,
"patching_rect" : [ 270.0, 490.0, 50.0, 16.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0.",
"id" : "obj-1",
"numinlets" : 2,
"patching_rect" : [ 269.0, 452.0, 50.0, 16.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "- 0.",
"id" : "obj-327",
"numinlets" : 2,
"patching_rect" : [ 300.0, 416.0, 100.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "float" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t f i",
"id" : "obj-324",
"numinlets" : 1,
"patching_rect" : [ 300.0, 397.0, 100.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 2,
"outlettype" : [ "float", "int" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "if $f1>0 then $f1",
"id" : "obj-321",
"numinlets" : 1,
"patching_rect" : [ 300.0, 378.0, 100.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "snapshot~ 1",
"id" : "obj-288",
"numinlets" : 2,
"patching_rect" : [ 300.0, 321.0, 71.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "float" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "expr $f1*11.60997732426/$f2",
"linecount" : 2,
"id" : "obj-320",
"numinlets" : 2,
"patching_rect" : [ 300.0, 348.0, 119.0, 29.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 10.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route msec_time duration msec_duration msec_remainder file_type bitrate vinyl_metric vinyl_position read",
"id" : "obj-173",
"numinlets" : 1,
"patching_rect" : [ 436.0, 323.0, 775.0, 19.0 ],
"fontname" : "Sans Serif",
"numoutlets" : 10,
"outlettype" : [ "", "", "", "", "", "", "", "", "", "" ],
"fontsize" : 11.0
}
}
, {
"box" : {
"maxclass" : "newobj",
"varname" : "mptcfs_sa~",
"text" : "mptcfs_sa~",
"id" : "obj-5",
"numinlets" : 7,
"patching_rect" : [ 30.0, 301.0, 424.0, 18.0 ],
"fontname" : "Arial Bold",
"numoutlets" : 7,
"outlettype" : [ "signal", "signal", "signal", "signal", "signal", "list", "list" ],
"fontsize" : 10.0
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 279.5, 551.0, 5.0, 551.0, 5.0, 278.0, 39.5, 278.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-2", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-327", 0 ],
"destination" : [ "obj-1", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-173", 2 ],
"destination" : [ "obj-320", 1 ],
"hidden" : 0,
"midpoints" : [ 613.5, 345.0, 409.5, 345.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-320", 0 ],
"destination" : [ "obj-321", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-288", 0 ],
"destination" : [ "obj-320", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-5", 4 ],
"destination" : [ "obj-288", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-5", 6 ],
"destination" : [ "obj-173", 0 ],
"hidden" : 1,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-324", 0 ],
"destination" : [ "obj-327", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-324", 1 ],
"destination" : [ "obj-327", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-321", 0 ],
"destination" : [ "obj-324", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}