Mercurial > hg > vamp-plugin-sdk
diff examples/PercussionOnsetDetector.cpp @ 82:c8b48bc6db3d
* Add sdkstatic target
author | cannam |
---|---|
date | Wed, 19 Sep 2007 14:04:12 +0000 |
parents | aa64a46320d4 |
children | a5187dad96cd |
line wrap: on
line diff
--- a/examples/PercussionOnsetDetector.cpp Tue Sep 18 14:57:08 2007 +0000 +++ b/examples/PercussionOnsetDetector.cpp Wed Sep 19 14:04:12 2007 +0000 @@ -239,6 +239,7 @@ float real = inputBuffers[0][i*2]; float imag = inputBuffers[0][i*2 + 1]; + float sqrmag = real * real + imag * imag; if (m_priorMagnitudes[i] > 0.f) {