kopia lustrzana https://github.com/jameshball/osci-render
Fully traverse magnitudes array
rodzic
a02ea96617
commit
ad08fc1dab
|
@ -62,7 +62,7 @@ public class FrequencyAnalyser<S> implements Runnable {
|
||||||
double maxLeft = Double.NEGATIVE_INFINITY;
|
double maxLeft = Double.NEGATIVE_INFINITY;
|
||||||
int maxRightIndex = 0;
|
int maxRightIndex = 0;
|
||||||
double maxRight = Double.NEGATIVE_INFINITY;
|
double maxRight = Double.NEGATIVE_INFINITY;
|
||||||
for (int i = 1; i < leftMags.length; i++) {
|
for (int i = 0; i < leftMags.length; i++) {
|
||||||
if (bins[i] < 20 || bins[i] > 20000) {
|
if (bins[i] < 20 || bins[i] > 20000) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue