Forums > MaxMSP

Represent Waveforms Layered

January 6, 2013 | 10:45 pm

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)

– Pasted Max Patch, click to expand. –

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


January 7, 2013 | 8:39 am

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:

http://cycling74.com/forums/topic.php?id=30664

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

Attachments:
  1. waveformline.zip

January 7, 2013 | 12:01 pm

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).

I reworked a patch that uses jitter found in this topic http://cycling74.com/forums/topic.php?id=21071 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)

– Pasted Max Patch, click to expand. –

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