"line" superemposed over "waveform~" to show existing location of playback

Jun 11, 2011 at 12:36pm

"line" superemposed over "waveform~" to show existing location of playback

i am trying to have “line” superemposed over “waveform~” to show existing location of playback, graphically in waveform~

my problem is that i cant seem to get the “counter” object, that is driving “line,” working correctly. it is operating too slow…

patch pasted below:

{
“boxes” : [ {
"box" : {
"maxclass" : "comment",
"text" : "*colour code:naqua - user interfacenred - focus of this inquerynwhite - sends and receives",
"linecount" : 4,
"patching_rect" : [ 14.0, 98.0, 518.0, 62.0 ],
“numoutlets” : 0,
“id” : “obj-10″,
“fontname” : “Arial”,
“presentation_rect” : [ 14.0, 81.0, 0.0, 0.0 ],
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “goalnto have “line” superemposed over “waveform~” to show existing location of playback, graphically in waveform~nnproblemni cant seem to get the “counter” object, that is driving “line,” working correctly”,
“linecount” : 5,
“patching_rect” : [ 14.0, 9.0, 647.0, 75.0 ],
“numoutlets” : 0,
“id” : “obj-34″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “control “line” for waveform~ based on transport tempo”,
“patching_rect” : [ 663.0, 238.0, 313.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-33″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “< -- sample load",
“patching_rect” : [ 272.0, 202.0, 176.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-32″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

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

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “r a”,
“patching_rect” : [ 915.0, 283.0, 25.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-28″,
“fontname” : “Arial”,
“color” : [ 1.0, 1.0, 1.0, 1.0 ],
“fontsize” : 12.0,
“numinlets” : 0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “s a”,
“patching_rect” : [ 51.0, 459.0, 27.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-27″,
“fontname” : “Arial”,
“color” : [ 1.0, 1.0, 1.0, 1.0 ],
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “line generator based on tempo”,
“patching_rect” : [ 668.0, 271.0, 176.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-26″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “read”,
“patching_rect” : [ 236.0, 203.0, 35.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-2″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“bgcolor” : [ 0.047059, 0.913725, 0.913725, 1.0 ],
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “buffer~ sample1″,
“patching_rect” : [ 236.0, 265.0, 97.0, 20.0 ],
“numoutlets” : 2,
“outlettype” : [ "float", "bang" ],
“id” : “obj-125″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “name sample1″,
“patching_rect” : [ 236.0, 293.0, 89.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-22″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “waveform select size”,
“patching_rect” : [ 523.0, 403.0, 122.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-18″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “* 120″,
“patching_rect” : [ 51.0, 436.0, 39.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "int" ],
“id” : “obj-11″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “120.”,
“patching_rect” : [ 743.0, 382.0, 50.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-9″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

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

}
, {
“box” : {
“maxclass” : “toggle”,
“patching_rect” : [ 698.0, 329.0, 20.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "int" ],
“id” : “obj-49″,
“bgcolor” : [ 0.047059, 0.913725, 0.913725, 1.0 ],
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “metro 4n @quantize 4n @active 1″,
“patching_rect” : [ 720.0, 309.0, 186.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "bang" ],
“id” : “obj-44″,
“fontname” : “Arial”,
“fontsize” : 11.595187,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “button”,
“patching_rect” : [ 720.0, 334.0, 20.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "bang" ],
“id” : “obj-46″,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “transport”,
“patching_rect” : [ 720.0, 359.0, 127.0, 20.0 ],
“numoutlets” : 9,
“outlettype” : [ "int", "int", "float", "float", "float", "", "int", "float", "" ],
“id” : “obj-47″,
“fontname” : “Arial”,
“fontsize” : 11.595187,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “dac~”,
“patching_rect” : [ 132.0, 484.0, 37.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-39″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

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

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “-”,
“patching_rect” : [ 473.0, 380.0, 63.5, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "int" ],
“id” : “obj-1″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

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

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “counter”,
“patching_rect” : [ 705.0, 483.0, 73.0, 20.0 ],
“numoutlets” : 4,
“outlettype” : [ "int", "", "", "int" ],
“id” : “obj-133″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 5
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “line $1″,
“patching_rect” : [ 705.0, 529.0, 46.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-5″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“bgcolor” : [ 1.0, 0.0, 0.0, 1.0 ],
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “number”,
“patching_rect” : [ 360.0, 395.454529, 38.0, 20.0 ],
“numoutlets” : 2,
“triangle” : 0,
“outlettype” : [ "int", "bang" ],
“id” : “obj-195″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “number”,
“patching_rect” : [ 319.0, 395.454529, 42.0, 20.0 ],
“numoutlets” : 2,
“triangle” : 0,
“outlettype” : [ "int", "bang" ],
“id” : “obj-194″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “loadbang”,
“patching_rect” : [ 105.0, 376.454529, 60.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "bang" ],
“id” : “obj-77″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sig~”,
“patching_rect” : [ 51.0, 408.454529, 33.0, 20.0 ],
“numoutlets” : 1,
“outlettype” : [ "signal" ],
“id” : “obj-42″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “flonum”,
“patching_rect” : [ 51.0, 371.454529, 50.0, 20.0 ],
“numoutlets” : 2,
“outlettype” : [ "float", "bang" ],
“id” : “obj-48″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “loop 1, 0.”,
“patching_rect” : [ 105.0, 413.454529, 60.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-51″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “groove~ sample1 2″,
“patching_rect” : [ 105.0, 437.454529, 113.0, 20.0 ],
“numoutlets” : 3,
“outlettype” : [ "signal", "signal", "signal" ],
“id” : “obj-52″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 3
}

}
, {
“box” : {
“maxclass” : “waveform~”,
“patching_rect” : [ 236.0, 324.454529, 226.0, 43.938435 ],
“waveformcolor” : [ 0.0, 0.0, 0.0, 1.0 ],
“labelbgcolor” : [ 1.0, 1.0, 1.0, 1.0 ],
“vlabels” : 1,
“numoutlets” : 6,
“textcolor” : [ ],
“ticks” : 1,
“selectioncolor” : [ 0.0, 0.0, 0.0, 0.501961 ],
“quiet” : 1,
“outlettype” : [ "float", "float", "float", "float", "list", "" ],
“id” : “obj-13″,
“buffername” : “sample1″,
“tickmarkcolor” : [ 0.0, 0.0, 0.0, 1.0 ],
“bgcolor” : [ 1.0, 1.0, 1.0, 1.0 ],
“setmode” : 1,
“numinlets” : 5
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “setmin $1″,
“patching_rect” : [ 705.0, 460.0, 63.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-4″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “tempo $1″,
“patching_rect” : [ 915.0, 329.0, 59.0, 18.0 ],
“numoutlets” : 1,
“outlettype” : [ "" ],
“id” : “obj-8″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 2
}

}
, {
“box” : {
“maxclass” : “panel”,
“patching_rect” : [ 663.0, 264.0, 317.0, 301.0 ],
“numoutlets” : 0,
“id” : “obj-25″,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “sample ctrl”,
“patching_rect” : [ 46.0, 324.0, 176.0, 20.0 ],
“numoutlets” : 0,
“id” : “obj-30″,
“fontname” : “Arial”,
“fontsize” : 12.0,
“numinlets” : 1
}

}
, {
“box” : {
“maxclass” : “panel”,
“patching_rect” : [ 42.0, 316.0, 183.0, 200.0 ],
“numoutlets” : 0,
“id” : “obj-31″,
“numinlets” : 1
}

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

}
, {
“patchline” : {
“source” : [ "obj-77", 0 ],
“destination” : [ "obj-29", 0 ],
“hidden” : 0,
“midpoints” : [ 114.5, 399.0, 103.0, 399.0, 103.0, 347.0, 60.5, 347.0 ]
}

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-22", 0 ],
“destination” : [ "obj-13", 0 ],
“hidden” : 0,
“midpoints” : [ 245.5, 316.227264, 245.5, 316.227264 ]
}

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

}
, {
“patchline” : {
“source” : [ "obj-125", 1 ],
“destination” : [ "obj-22", 0 ],
“hidden” : 0,
“midpoints” : [ 323.5, 288.5, 245.5, 288.5 ]
}

}
, {
“patchline” : {
“source” : [ "obj-46", 0 ],
“destination” : [ "obj-133", 0 ],
“hidden” : 0,
“midpoints” : [ 729.5, 356.0, 714.5, 356.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-48", 0 ],
“destination” : [ "obj-11", 0 ],
“hidden” : 0,
“midpoints” : [ 60.5, 405.0, 45.0, 405.0, 45.0, 431.0, 60.5, 431.0 ]
}

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-195", 0 ],
“destination” : [ "obj-133", 4 ],
“hidden” : 0,
“midpoints” : [ 369.5, 441.227264, 768.5, 441.227264 ]
}

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-13", 3 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ 369.700012, 373.696472, 482.5, 373.696472 ]
}

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

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

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

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-13", 3 ],
“destination” : [ "obj-52", 2 ],
“hidden” : 0,
“midpoints” : [ 369.700012, 384.423737, 208.5, 384.423737 ]
}

}
, {
“patchline” : {
“source” : [ "obj-13", 2 ],
“destination” : [ "obj-52", 1 ],
“hidden” : 0,
“midpoints” : [ 328.299988, 384.423737, 161.5, 384.423737 ]
}

}
, {
“patchline” : {
“source” : [ "obj-5", 0 ],
“destination” : [ "obj-13", 0 ],
“hidden” : 0,
“midpoints” : [ 714.5, 557.0, 694.0, 557.0, 694.0, 314.454529, 245.5, 314.454529 ]
}

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

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

}
, {
“patchline” : {
“source” : [ "obj-194", 0 ],
“destination” : [ "obj-4", 0 ],
“hidden” : 0,
“midpoints” : [ 328.5, 437.727264, 714.5, 437.727264 ]
}

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

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

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

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

}
]
}

#57562
Jun 11, 2011 at 1:13pm

Copy Compressed from the Edit menu is better for posting to the forum. I think this will do what you want. I am not sure how others do it but that should work.

– Pasted Max Patch, click to expand. –
#206231
Jun 11, 2011 at 1:13pm

Copy Compressed from the Edit menu is better for posting to the forum. I think this will do what you want. I am not sure how others do it but that should work.

– Pasted Max Patch, click to expand. –
#206329
Jun 11, 2011 at 7:08pm
#206232
Jun 11, 2011 at 7:08pm
#206332

You must be logged in to reply to this topic.