This is so odd... and I can't figure out the problem.
I'm making a simple usb external audio adapter to test out filters for a larger project, but the compiler doesn't recognize the setLowShelf and setHighShelf biquad members. I get the following error: "ExternalTeensySoundCard:49: error: 'class AudioFilterBiquad' has no member named 'setHighShelf'".
There is only a single Audio-master library on the system, and the filter_biquad.h file defines both the setLowShelf and setHighShelf methods, but the IDE just can't find them. Other functions work.
Just a note... the keywords.txt file does not contain KEYWORD2 entries for either, but contains LITERAL1 entries for both.
FILTER_LOSHELF LITERAL1
FILTER_HISHELF LITERAL1
If I add entries for the associated KEYWORD2s, they get highlighted in the IDE, but still get the error and doesn't compile.
Hope somebody can help. Thanks.
I'm making a simple usb external audio adapter to test out filters for a larger project, but the compiler doesn't recognize the setLowShelf and setHighShelf biquad members. I get the following error: "ExternalTeensySoundCard:49: error: 'class AudioFilterBiquad' has no member named 'setHighShelf'".
There is only a single Audio-master library on the system, and the filter_biquad.h file defines both the setLowShelf and setHighShelf methods, but the IDE just can't find them. Other functions work.
Just a note... the keywords.txt file does not contain KEYWORD2 entries for either, but contains LITERAL1 entries for both.
FILTER_LOSHELF LITERAL1
FILTER_HISHELF LITERAL1
If I add entries for the associated KEYWORD2s, they get highlighted in the IDE, but still get the error and doesn't compile.
Hope somebody can help. Thanks.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputUSB usb1; //xy=63.19999694824219,127.19999694824219
AudioInputI2S i2s1; //xy=64.19999694824219,221.1999969482422
AudioFilterBiquad biquad1; //xy=228.1999969482422,323.20001220703125
AudioFilterBiquad biquad2; //xy=225.1999969482422,363.20001220703125
AudioFilterBiquad biquad3; //xy=227.1999969482422,400.20001220703125
AudioFilterBiquad biquad4; //xy=227.1999969482422,438.20001220703125
AudioMixer4 mixer2; //xy=372.20001220703125,283.20001220703125
AudioMixer4 mixer1; //xy=373.20001220703125,215.1999969482422
AudioFilterStateVariable filter1; //xy=534.2000122070312,367.20001220703125
AudioFilterStateVariable filter2; //xy=534.2000122070312,429.20001220703125
AudioOutputUSB usb2; //xy=695.2000122070312,216.1999969482422
AudioOutputI2S i2s2; //xy=695.2000122070312,273
AudioConnection patchCord1(usb1, 0, mixer1, 0);
AudioConnection patchCord2(usb1, 1, mixer2, 0);
AudioConnection patchCord3(i2s1, 0, mixer1, 1);
AudioConnection patchCord4(i2s1, 1, mixer2, 1);
AudioConnection patchCord5(mixer2, 0, usb2, 1);
AudioConnection patchCord6(mixer2, 0, i2s2, 1);
AudioConnection patchCord7(mixer1, 0, usb2, 0);
AudioConnection patchCord8(mixer1, 0, i2s2, 0);
AudioControlSGTL5000 sgtl5000_1; //xy=512.2000122070312,129
// GUItool: end automatically generated code
float freq = 2000.0f;
float tGain = -10.0f;
float slope = 0.05f;
void setup()
{
// Enable the audio shield and set the output volume.
AudioMemory( 10 );
sgtl5000_1.enable();
sgtl5000_1.volume( 0.5 );
sgtl5000_1.inputSelect( AUDIO_INPUT_MIC );
sgtl5000_1.micGain( 36 );
delay( 1000 );
biquad1.setHighShelf( 0, freq, tGain, slope ); //stage, freq, gain, slope
biquad2.setHighShelf( 0, freq, tGain, slope ); //stage, freq, gain, slope
biquad3.setHighShelf( 0, freq, tGain, slope ); //stage, freq, gain, slope
biquad4.setHighShelf( 0, freq, tGain, slope ); //stage, freq, gain, slope
}
void loop()
{
delay( 20 );
}