Hi,
The Audio System Design Tool mentions the AudioInputAnalog object, and I was hoping someone could point me to any resources that outline how this object functions. In particular, any pointers about how AudioInputAnalog and analogRead() do/don't work together would be most helpful. So far, I've only been able to find a few forum posts about specialized topics, and no general overviews (besides what's in the Audio System Design Tool).
I'm starting a project where I'd like to use just a Teensy 3.6 and its built in ADCs to receive 1 audio-rate analog input and 3 sub-audio-rate analog inputs (as well as 4 digital ins and 1 audio out). In addition, I'm hoping to record from the audio in, then use the sub-audio ins to control playback parameters, so I won't need to access the audio in and the sub-audio ins at the same time.
If I'm understanding things correctly, AudioInputAnalog is the best ready-made way to handle audio-rate signals, and it only makes use of 1 of the Teensy's 2 ADCs. From the forum posts I've read so far, I can't tell whether it's possible to set things up so that 1 ADC is dedicated to the audio in using AudioInputAnalog while the other is split between the 3 sub-audio ins using analogRead(). Is this possible, and if so does anyone know of some example code that outlines how to do it?
Alternatively, is it possible to reconfigure the ADCs on the fly, so that during loop() my code normally uses analogRead() to access only the sub-audio ins, until a button is pushed and loop() calls a function that (1) sets up an AudioInputAnalog, (2) uses it to access only the audio in, then (3) destroys the AudioInputAnalog and returns to loop()? (Not sure if that makes complete sense, so let me know if there's more I can say to flesh this out). Again, if this is possible does anyone have example code showing how to do it?
Best!
The Audio System Design Tool mentions the AudioInputAnalog object, and I was hoping someone could point me to any resources that outline how this object functions. In particular, any pointers about how AudioInputAnalog and analogRead() do/don't work together would be most helpful. So far, I've only been able to find a few forum posts about specialized topics, and no general overviews (besides what's in the Audio System Design Tool).
I'm starting a project where I'd like to use just a Teensy 3.6 and its built in ADCs to receive 1 audio-rate analog input and 3 sub-audio-rate analog inputs (as well as 4 digital ins and 1 audio out). In addition, I'm hoping to record from the audio in, then use the sub-audio ins to control playback parameters, so I won't need to access the audio in and the sub-audio ins at the same time.
If I'm understanding things correctly, AudioInputAnalog is the best ready-made way to handle audio-rate signals, and it only makes use of 1 of the Teensy's 2 ADCs. From the forum posts I've read so far, I can't tell whether it's possible to set things up so that 1 ADC is dedicated to the audio in using AudioInputAnalog while the other is split between the 3 sub-audio ins using analogRead(). Is this possible, and if so does anyone know of some example code that outlines how to do it?
Alternatively, is it possible to reconfigure the ADCs on the fly, so that during loop() my code normally uses analogRead() to access only the sub-audio ins, until a button is pushed and loop() calls a function that (1) sets up an AudioInputAnalog, (2) uses it to access only the audio in, then (3) destroys the AudioInputAnalog and returns to loop()? (Not sure if that makes complete sense, so let me know if there's more I can say to flesh this out). Again, if this is possible does anyone have example code showing how to do it?
Best!