new audio project

Status
Not open for further replies.

quanghai

New member
i am looking to build a test fixtures for work with a Teency 3.2. I need to check the audio quality of two amps. I would like to generate a .5V RMS 1kHz tone and use the stereo code from the Audio Libs.
1. can I do this without a flash card.

2. the Audio design tool comes up with:#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioInputAnalogStereo adcs2; //xy=119,121
AudioOutputUSB usb1; //xy=339,118
AudioAnalyzeRMS rms3; //xy=360,161
AudioAnalyzeRMS rms4; //xy=383,196
AudioConnection patchCord1(adcs2, 0, rms3, 0);
AudioConnection patchCord2(adcs2, 1, rms4, 0);
// GUItool: end automatically generated code


3. the Pass/Fail output from the Teency will be a string of Serial RGB LEDS, so at this time I am only looking for an RMS measurement of each channel.
4. I am looking to do a one shot measurement and display the results.

how do I can I get an explanation of all the functions for the Audio.h lib?
 
You want to add a sine generator in the gui, and have a look at the information in the right hand panel for setting it up, along with most of the other blocks listed there. You will need something to match the teensy to the line level signal for the amps, so a Teensy audio shield may help keep things tidy though if you are good at analogue design you can use the onboard DAC/ADC.
 
1. yes.
2. With the AudioOutputUSB alone, it won't work. You'll have to add another output object, for example I2S, even if you don't use it, but it's needed for the master timing.
3. Where is the problem?
4. Ok...

In the audio design tool, you'll find the detailed explanation of all connexions and functions/methods of the selected audio object in the right side bar. More info, a video tutorial, etc. can be found on this site: https://www.pjrc.com/teensy/td_libs_Audio.html
 
how do I can I get an explanation of all the functions for the Audio.h lib?

This tutorial covers the general concepts and a lot of the features.

https://www.pjrc.com/store/audio_tutorial_kit.html

All the details are covered in the design tool documentation panel. But you need to click on every single object. There's a *lot* of documentation!

In addition to the design tool, these pages have extra info that doesn't really fit into the documentation for the individual objects.

https://www.pjrc.com/teensy/td_libs_AudioConnection.html
https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html
https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html
 
Status
Not open for further replies.
Back
Top