amplitude between zero crossings

kkll's icon

hi,

i would like to get the peak amplitude (or rms - or both :) between individual zero crossings.

that is, have any wave input (complex, sine whatever), then measure the amplitude (peak/rms) between every time it crosses zero..

thnaks,

this is tied in with my earlier quest for time between zero crossings and i was hoping that the answer to that would help me with this, however it doesnt :P
https://cycling74.com/forums/index.php?t=msg&goto=154139&rid=7826&S=5252dd7a8a8117c924d437ab0d09a27d#msg_154139

kkll's icon

oh,
i am on windows xp with max 4.5

:)

kkll's icon

any help at all >.<

i am trying to create a patch that will process a complex wave input, using the time between zero crossings (converted to freq) as an input to a cycle~ ,then use an amplitude setting from within the appropriate section of the wave/input to control the cycle~ amplitude..

effectively smoothing out all those nasty jagged bits in a complex wave :P

digiology's icon

This should simple enough in c++ but in maxmsp I find these seemingly trivial things to be difficult.

May I suggest tracking RMS using average~ in RMS mode (and perhaps low pass filtering the input signal). Not quite what you're looking for but I think the result will be similar.

Ross

digiology's icon

*duplicate post*