ShreddinPB
Member
Can you give me a quick update on which of the main programs on this thread to use to reproduce this problem?
I have a sure fire way for you to test it. Working with the stuff from my other thread on audio I have found a way to repeat it.
With this line, everything works as expected but I dont get the very low tones.
Code:
lowBand = myFFT.read(1,3);
If I switch it to this
Code:
lowBand = myFFT.read(0,3);
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
AudioInputAnalog adc1(A1); //xy=244,162
AudioOutputAnalog dac1; //xy=378,229
AudioAnalyzeFFT256 myFFT; //xy=487,155
AudioConnection patchCord1(adc1, myFFT);
float lowBand = 0.0;
float midBand = 0.0;
float highBand = 0.0;
void setup() {
AudioMemory(12);
myFFT.windowFunction(NULL);
}
void loop() {
float n;
int i;
if (myFFT.available()) {
Serial.print("FFT: ");
lowBand = myFFT.read(1,3);
midBand = myFFT.read(4,15);
highBand = myFFT.read(16,90);
Serial.print(lowBand);
Serial.print(" ");
Serial.print(midBand);
Serial.print(" ");
Serial.print(highBand);
Serial.println();
}
}