botoxparty
Member
Hey everyone,
So I have my project working well, except I should be using a Teensy 3.6 because I need longer delay times.
Is there any way to expand the length of the delay on a 3.2 or is it totally dependant on memory rather than timing?
Also another issue that I have is that there's a crunchy sound that builds in the feedback loop.
I've attached a sample of it here:
AUDIO SAMPLE
And here is the code that i'm using.
So I have my project working well, except I should be using a Teensy 3.6 because I need longer delay times.
Is there any way to expand the length of the delay on a 3.2 or is it totally dependant on memory rather than timing?
Also another issue that I have is that there's a crunchy sound that builds in the feedback loop.
I've attached a sample of it here:
AUDIO SAMPLE
And here is the code that i'm using.
Code:
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=165,457
AudioSynthWaveformSine sine2; //xy=186,530
AudioSynthWaveformModulated waveformMod1; //xy=283,320
AudioEffectEnvelope envelope1; //xy=480,328
AudioEffectDelay delay1; //xy=541,571
AudioMixer4 mixer1; //xy=577,446
AudioOutputI2S i2s1; //xy=726,694
AudioConnection patchCord1(sine1, 0, waveformMod1, 0);
AudioConnection patchCord2(sine1, 0, mixer1, 3);
AudioConnection patchCord3(sine2, 0, waveformMod1, 1);
AudioConnection patchCord4(waveformMod1, envelope1);
AudioConnection patchCord5(envelope1, 0, mixer1, 0);
AudioConnection patchCord6(delay1, 0, mixer1, 1);
AudioConnection patchCord7(mixer1, 0, i2s1, 0);
AudioConnection patchCord8(mixer1, delay1);
AudioConnection patchCord9(mixer1, 0, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=333,784
// GUItool: end automatically generated code
void setup() {
Serial.begin(9600);
pinMode(0, INPUT_PULLUP);
pinMode(1, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
delay(300);
Serial.println("Siren");
// Audio connections
AudioMemory(160);
sgtl5000_1.enable();
sgtl5000_1.volume(0.5);
// Configure sine waves
waveformMod1.frequency(261.63);
waveformMod1.amplitude(1.0);
sine1.frequency(20.3); // Sine waves are low frequency oscillators (LFO)
sine2.frequency(1.2);
current_waveform = WAVEFORM_SINE;
waveformMod1.begin(current_waveform);
// delay setup
mixer1.gain(0, 0.5);
mixer1.gain(1, 0.7);
delay1.delay(0, 400);
// envelope setup
envelope1.attack(200);
envelope1.decay(200);
// drum setup
// drum1.frequency(1000);
// drum1.length(350);
}