madzo0omadz
Member
Hello guys,
I posted before about Teensy 3.2 and Audio shields and I'm pretty much a pro at them now. It is quiet a hassle to connect the Teensy to two Audio shields (needed for 4 analog input, 2 analog output). I was thinking would it be possible to have all the processing done on the Teensy 3.6 instead of the Teensy3.2 and its Audio shields?
Using the Teensy Audio development GUI, here is the list of Audio specific members I use:
// GUItool: begin automatically generated code
AudioInputI2SQuad i2s_quad1; //xy=269,392
AudioFilterBiquad biquad1; //xy=450,309
AudioFilterBiquad biquad2; //xy=467,491
AudioMixer4 mixer1; //xy=718,351
AudioMixer4 mixer2; //xy=720,445
AudioOutputI2SQuad i2s_quad2; //xy=911,405
AudioConnection patchCord1(i2s_quad1, 0, mixer1, 0);
AudioConnection patchCord2(i2s_quad1, 0, biquad1, 0);
AudioConnection patchCord3(i2s_quad1, 1, mixer2, 0);
AudioConnection patchCord4(i2s_quad1, 1, biquad2, 0);
AudioConnection patchCord5(i2s_quad1, 2, mixer1, 1);
AudioConnection patchCord6(i2s_quad1, 3, mixer2, 1);
AudioConnection patchCord7(biquad1, 0, mixer1, 2);
AudioConnection patchCord8(biquad2, 0, mixer2, 2);
AudioConnection patchCord9(mixer1, 0, i2s_quad2, 0);
AudioConnection patchCord10(mixer1, 0, i2s_quad2, 2);
AudioConnection patchCord11(mixer2, 0, i2s_quad2, 1);
AudioConnection patchCord12(mixer2, 0, i2s_quad2, 3);
AudioControlSGTL5000 sgtl5000_1; //xy=251,227
AudioControlSGTL5000 sgtl5000_2; //xy=581,235
The Audio specific functions I use are:
biquad1.setNotch (0,freq2,0.05);
biquad1.setNotch
sgtl5000_1.eqSelect(3);
sgtl5000_1.eqBands(0,-0.4,-0.5,-0.4,-0.2); //115Hz, 330Hz, 990Hz, 3kHz, 8.8kHz
I know that the SGTLs are the codecs specifically found on the Audio cards, but would there be a Teensy 3.6 equivalent equalizer or so to do the same functionality as those above? or even does that function work on the Teensy 3.6 right away without the need of those Audio Shield specific codecs?
Also, can the Teensy 3.6 support 4 analog channels input and 2 analog channels output?
I posted before about Teensy 3.2 and Audio shields and I'm pretty much a pro at them now. It is quiet a hassle to connect the Teensy to two Audio shields (needed for 4 analog input, 2 analog output). I was thinking would it be possible to have all the processing done on the Teensy 3.6 instead of the Teensy3.2 and its Audio shields?
Using the Teensy Audio development GUI, here is the list of Audio specific members I use:
// GUItool: begin automatically generated code
AudioInputI2SQuad i2s_quad1; //xy=269,392
AudioFilterBiquad biquad1; //xy=450,309
AudioFilterBiquad biquad2; //xy=467,491
AudioMixer4 mixer1; //xy=718,351
AudioMixer4 mixer2; //xy=720,445
AudioOutputI2SQuad i2s_quad2; //xy=911,405
AudioConnection patchCord1(i2s_quad1, 0, mixer1, 0);
AudioConnection patchCord2(i2s_quad1, 0, biquad1, 0);
AudioConnection patchCord3(i2s_quad1, 1, mixer2, 0);
AudioConnection patchCord4(i2s_quad1, 1, biquad2, 0);
AudioConnection patchCord5(i2s_quad1, 2, mixer1, 1);
AudioConnection patchCord6(i2s_quad1, 3, mixer2, 1);
AudioConnection patchCord7(biquad1, 0, mixer1, 2);
AudioConnection patchCord8(biquad2, 0, mixer2, 2);
AudioConnection patchCord9(mixer1, 0, i2s_quad2, 0);
AudioConnection patchCord10(mixer1, 0, i2s_quad2, 2);
AudioConnection patchCord11(mixer2, 0, i2s_quad2, 1);
AudioConnection patchCord12(mixer2, 0, i2s_quad2, 3);
AudioControlSGTL5000 sgtl5000_1; //xy=251,227
AudioControlSGTL5000 sgtl5000_2; //xy=581,235
The Audio specific functions I use are:
biquad1.setNotch (0,freq2,0.05);
biquad1.setNotch
sgtl5000_1.eqSelect(3);
sgtl5000_1.eqBands(0,-0.4,-0.5,-0.4,-0.2); //115Hz, 330Hz, 990Hz, 3kHz, 8.8kHz
I know that the SGTLs are the codecs specifically found on the Audio cards, but would there be a Teensy 3.6 equivalent equalizer or so to do the same functionality as those above? or even does that function work on the Teensy 3.6 right away without the need of those Audio Shield specific codecs?
Also, can the Teensy 3.6 support 4 analog channels input and 2 analog channels output?