pepijndevos
Member
Hi all,
I'm trying to use the Teensy as a sound card without any physical sound device.
I read the note that you need to use one non-USB input, but I'm not sure what that means, and I can't get it to work.
In fact, I can't get any of the examples to work, because they all rely on an external sound board.
In the end I will be connecting potentiometers to the ADC pins to control the pitch and volume of various notes.
I may be able to use an ADC input to modulate some synth, but it seems hardcoded to use A2, so that's useless when I need more than one.
But even if I add an ADC input, I basically get nothing.
What I want is to be able to just have an USB output and a bunch of synths that I control myself.
Is that at all possible?
I'm trying to use the Teensy as a sound card without any physical sound device.
I read the note that you need to use one non-USB input, but I'm not sure what that means, and I can't get it to work.
In fact, I can't get any of the examples to work, because they all rely on an external sound board.
In the end I will be connecting potentiometers to the ADC pins to control the pitch and volume of various notes.
I may be able to use an ADC input to modulate some synth, but it seems hardcoded to use A2, so that's useless when I need more than one.
But even if I add an ADC input, I basically get nothing.
What I want is to be able to just have an USB output and a bunch of synths that I control myself.
Is that at all possible?
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=680,309
AudioInputAnalog adc1; //xy=708,243
AudioOutputUSB usb1; //xy=968,283
AudioConnection patchCord1(sine1, 0, usb1, 1);
AudioConnection patchCord2(adc1, 0, usb1, 0);
// GUItool: end automatically generated code
void setup() {
sine1.amplitude(1);
sine1.frequency(600);
}
void loop() {
}