Browse Source

Add comment to filter example

dds
PaulStoffregen 10 years ago
parent
commit
8cac457d8f
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      Audio.cpp
  2. +2
    -0
      examples/Filter/Filter.ino

+ 1
- 1
Audio.cpp View File

@@ -2252,7 +2252,7 @@ void AudioAnalyzeToneDetect::set_params(int32_t coef, uint16_t cycles, uint16_t
s2 = 0;
enabled = true;
__enable_irq();
Serial.printf("Tone: coef=%d, ncycles=%d, length=%d\n", coefficient, ncycles, length);
//Serial.printf("Tone: coef=%d, ncycles=%d, length=%d\n", coefficient, ncycles, length);
}

float AudioAnalyzeToneDetect::read(void)

+ 2
- 0
examples/Filter/Filter.ino View File

@@ -6,6 +6,8 @@ const int myInput = AUDIO_INPUT_LINEIN;
//const int myInput = AUDIO_INPUT_MIC;

// each filter requires a set up parameters
// http://forum.pjrc.com/threads/24793-Audio-Library?p=40179&viewfull=1#post40179
//
int myFilterParameters[] = { // lowpass, Fc=800 Hz, Q=0.707
3224322, 6448644, 3224322, 1974735214, -913890679, 0, 0, 0};


Loading…
Cancel
Save