Represent Waveforms Layered

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

Hello I need to represent waveforms layered.
I mean two or more samples one above the other, my problem is that I could achieve this with various [waveform~] playing with transparency, but I do not like the way it represents the waveform. (see attached patch to understand what I mean)

I would like it to be just one line and not the way it is illustrated with [waveforms~]

Do you know any alternative method, where the waveform is just one line that is moving between -1 and 1 and every layer can be represented by one color?

Maybe I can play with Jitter ( [jit.buffer~]? ) but I have never used jitter before, can you point me in the right direction?

Thanks

Floating Point's icon

well here is a way of doing it using java-- make sure all the files are in your max search path; it's basically a hack of Emmanuel Jourdan's circular waveform display which was first put forward here:
https://cycling74.com/forums/waveform-display-as-a-circle

I've just 'unwrapped' it and used line segments horizontally, but the maths is all untouched. Also added a frgb message to alter the colour of the waveform outline.

T

4855.waveformline.zip
zip
andgu's icon

Thanks for the answer!

Actually I would like to represent a waveform not only using the external shape but just with the standard method (as in ableton live).

Max Patch
Copy patch and select New From Clipboard in Max.

I reworked a patch that uses jitter found in this topic https://cycling74.com/forums/jit-gl-graph-for-a-waveform-display but I cannot understand a method to overlay more waveforms also maintaining the same absolute time value (short waveform layered is shorter then a longer one)