I am quite new in programming and I found one piece of code that I can't understand. The code is from book:
Will Pirkle - Designing Audio Effect Plug-Ins in C++ With Digital Audio Signal Processing Theory - 2012.pdf
there is method to detect envelope, and one line of that method (for RMS detection) is:
`fInput = pow((float)fabs(fInput) * (float)fabs(fInput), (float)0.5);`
So this is actually something like: (x*x)^0.5
So it's just `x`.
So in my opinion it doesn't make a sense, because it's exactly the same as:
`fInput = (float)fabs(fInput);`
Where I am wrong? Please help me, I try to figure it out for 2 days and can't find the answer.
Do you really asking me that? 🙂
If I say I stolen. Would you believe me? 🙂 Maybe I am joking.
Actually I don't have your book. I was looking in the google about Lagrange interpolation. And in some way I found that:
And there is method `inline double lagrpol(double* x, double* y, int n, double xbar)`
I was looking further and when I pasted in the google that:
inline double lagrpol(double* x, double* y, int n, double xbar)
I found that:
Sorry for that, it's not my fault I found that. I use JUCE framework for audio programming. But sometimes you digging in the internet and bam, you are on the side you shouldn't be.Â
But if it's problem for you I will never back to that forum until I buy your book (maybe some time I will buy it, I've seen there some interesting subjects).
Actually I've already found the solution for my "audio dynamic processing" questions on other forum.
The CEnvelopeDetector block diagram and code are incorrect in the 1st edition of the FX book.Â
The RMS (square root) block was in the wrong location. If you check the CEnvelopeDetector code in pluginconstants.h you can see that the square root has been moved within the code.Â
Yes, having my book copied and stolen by thousands of people does not make me feel like writing any more books in the future... I don't think that people understand this (note that this website, and RackAFX are free from advertisements - who do you think has to pay for this?)
- Will Pirkle
Hello, great thanks for your reply.
Yes I'm not real creator who sell his work, so I really don't understand your point of view - of course I know what you mean, but don't know all details regarding to that subject.
But I understand your pain. I would like to help you in any way, but don't know how. I will promise that if I find again somewhere your book I will report it to you.
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Moderators: W Pirkle: 690