Forums > MaxMSP

Viewing waveform and position during soundfile playback.

Apr 11 2011 | 7:47 pm

Hi all,

How do I playback a soundfile with a waveform display like a sequencer? ie. Waveform with cursor displaying current position in the file. I have looked at the waveform~ object but it doesn’t seem to be able to do what I want.

Thanks in advance,


Apr 11 2011 | 7:55 pm

Have you used the [set] message to your own [buffer] object? I use a slider object, with a transparent background and its max val set to the buffer size, laid over the waveform object for this type of thing; or just use the selection start and end points


Apr 12 2011 | 1:33 am

heres how i do it: with [waveform~] you can draw a vertical line anywhere you want by sending a message like "line 999.99" (where nines represent time in ms). the [groove~] object indicates its current position with a ramp of 0. to 1. from the right outlet. so multiplying the ramp value by total buffer length (ms) gives you the current position. make the line location a variable (line $1) with your product and you get a nice playhead with no extra ui objects.


  1. playhead.png


Apr 12 2011 | 3:55 pm

Thanks guys! Both very helpful replies. Exactly what I needed.

Aug 10 2015 | 2:29 am

Sorry to join a thread 4 years late! But I am having an issue where the line $1 message to the waveform is great in mono, but in a poly context the messages are fighting with each other, do you know how to separate these messages? Either so only the last one shows or so they are layered on top of each other?

Many thanks for any help

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP