Reading line I/o on audio shield

Status
Not open for further replies.

Brian44

Member
I wish to read any line input (using teensy 4.0 £ from the audio shield and then write it either to the line or headphone output or both. Are there any primitive functions in C to do this ? Does a simple program exist to do this in the audio library ?
 
This page : pjrc.com/teensy/td_libs_Audio.html

Has link to:
Teensy Audio Library
A toolkit for building streaming audio projects, featuring Polyphonic Playback, Recording, Synthesis, Analysis, Effects, Filtering, Mixing, Multiple Simultaneous Inputs & Outputs, and Flexible Internal Signal Routing.
All audio is CD quality (16 bits, 44.1 kHz) and streams automatically as your Arduino Sketch Runs
Tutorial

Tutorial examples from this video are available in Arduino, from File > Examples > Audio > Tutorial.
Design Tool
Audio System Design Tool
 
Was the second post - a duplicate post - or asking a different question?:
Access to analog input and headphones
Are there primitive functions in the audio lib (or outside it) which will allow me to read single 16 bit values from the line inputs of the audio shield into the Teensy 4.0 and also the complementary...
 
Thanks defragster, Yes. I think that’s the way forward for me. I dismissed the tutorial previously, as being trivial and not the way I need to process my guitar project, however I can see that if I set up a design which uses io to the audio board then I can export that design onto a blank sketch and pick out from it the relevant function calls for my standalone use.
I already have the project irunning on a Due (FFT not fast enough 22mS) also the io on the Due is poor and I’m hoping that the io on the Teensy shield is cd quality as advertised ?
Certainly the Teensy 4.0 processor is incredibly powerful - I can do a 256 point FFT in 124 uS.
 
Fragster. Thanks for your help. I have all the new components purchased for the Teensy 4 + Audio. Have been using the GUI tool and reading the documentation on the Audio chip itself but cannot find a hook to where the audio samples arrive from the line ADC and to where they are dispatched to the DAC.
It appears that they fill a buffer by DMA. Is that so? Can you pinpoint a place where I can collect a 16 bit sample and, once processed, deposit it.
Thanks , Brian Fish
 
Status
Not open for further replies.
Back
Top