Bläddra i källkod

Add comment to filter example

dds
PaulStoffregen 10 år sedan
förälder
incheckning
8cac457d8f
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. +1
    -1
      Audio.cpp
  2. +2
    -0
      examples/Filter/Filter.ino

+ 1
- 1
Audio.cpp Visa fil

@@ -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 Visa fil

@@ -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};


Laddar…
Avbryt
Spara