We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23108c9 commit 26e6146Copy full SHA for 26e6146
src/processing/sound/FFT.java
@@ -136,7 +136,7 @@ public static float[] analyzeSample(float[] sample, int numBands) {
136
// the meat of the matter
137
protected static void calculateMagnitudesFromSample(float[] sample, float[] imaginary, float[] target) {
138
if (FFT.checkNumBands(target.length)) {
139
- FourierMath.transform(1, sample.length, sample, imaginary);
+ FourierMath.transform(1, target.length, sample, imaginary);
140
FourierMath.calculateMagnitudes(sample, imaginary, target);
141
// there is an argument for multiplying the normalized spectrum amplitude
142
// values by two, see e.g.:
0 commit comments