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.
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.
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 )
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 2
Newest Members:F_Marchal, plenge, Kevin_1, jkarstedt, JohnW, Sean, loss1234, Murray J, Dave, jclounge
Moderators: W Pirkle: 698