Playhead in waveform object

michaellcs's icon

Hi guys, I am new to this software and I have a pretty simple question for those who are more familiar with the software than me.

how to create a playhead on the waveform so that it can show the playing position on the waveform? I know this is pretty simple but i have no idea what's the problem with my patching. I use buffer to store the audio samples and use sfplay to playback the audio sample.

MIB's icon

are you using the object [waveform~]?? if so send it the "line" message with the position (in msec) where to show the playhead...

michaellcs's icon

Ok i got a little confused here.

yes im using waveform~ object. so do you mean that i get the position from sfplay~ object the go through a line message then send into a slider which on top of the waveform display? This is what I was trying to do just now but I can't get it work. I'm sorry that I know this is quite a simple stuff but I am new to this software so I still need some time to understand its concept.

Truly appreciate your reply anyway.

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

something like this maybe???

Roman Thilenius's icon

sfplay~ does not seem to fit to waveform~ and buffer~. to play form a buffer~, use the [play~] object.

in order to create a "playhead" with waveform~, you could use the "markers" message to the waveform object.

Stephane Morisse's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This ?

Stephane Morisse's icon
Max Patch
Copy patch and select New From Clipboard in Max.

And a [groove~] version

michaellcs's icon

Sorry I was busy on my other school projects. I just managed to try it out just now. Both are working perfectly. Thanks so much for your advice.

KrisW's icon

Stephane ! this is great