Showing multiple playheads in waveform-object

posssu's icon

I'm building a sound-design-patch that will play multiple parts of one buffer with pingpong-loop randomly to create a soundscape (saw this kind of patch in Reaktor once and it was really cool).

I'd like to have all the loops I have in my patch to show their position as playhead cursor in one waveform so that I would see multiple playhead-cursors pingponging within the waveform-object (this is what the Reaktor-patch did).

However, I tried outputting multiple bufferpositions into waveform-object and of course it didn't work, the cursor kept on hopping between the positions so fast that it couldn't be seen enough.

Any ideas how to achieve this?

Alexandre's icon

Perhaps, use several waveform objects, "superimpose" them, and put them all in transparency with background color attribute.

To edit the 3rd loop : "3" -> select 1 2 3 4 5 6 -> "script bringtofront waveform3"-> [thispatcher]

Gregory Taylor's icon

One solution you might consider would be adding a humble slider (or multislider) object whose background and borders have their alpha set to 0. and whose size is the same as the display area of the waveform~ object, then use an info~ object to derive the length of the loaded buffer and use that value to set the range of the slider/multislider. All you'd really need to do would be to make sure the slider/multislider was on the top layer.

Lasse Munk's icon

how do you get one position showing in the waveform?

pdelges's icon

@lmnk: you can use the line message

Roman Thilenius's icon

yes, make a "line".

Lasse Munk's icon

cool! Thanks!