

Is there a way to find the maximum output of one of my equations in real time or directly after playback is stopped?
I was attempting to find the highest and lowest envelope detector values but assigning logic to the detector did not work. So I started researching arrays and vectors. I'm not sure if I'm looking in the right place. Could someone point me in the right direction? Thanks in advance.
Hi Clyde
You might want to check out the DSP mailing list from Columbia; recently there has been a long thread on just this, finding a running max in the most efficient way.
http://music.columbia.edu/cmc/music-dsp/
- Will
The built in CEnvelopeDetector will not hold the peak value for you, but you could certainly modify it to do that (remember: always subclass the built-in objects located in pluginconstants.h/PlugInObjects.cpp if you want to extend their functionality; do not modify the code in those files, as these files are updated with new functions and bug fixes (if any) in future updates of RackAFX).
You would need a variable to store the peak value and you would also want to reset this value on each call to prepareForPlay() so that your max tracks the current audio program material.
Thanks for the note about the book (feel free to leave a post on amazon.com if you'd like )
- Will
Most Users Ever Online: 152
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 1
Members: 768
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 842
Posts: 3347
Moderators: W Pirkle: 689