Hi all, I'm having problems programming sound effects into a guitar pedal I am building. I'm using Teensy 3.2 without audio shield, just using filters and adc-dac.
I am unable to control many effects including reverb parameters (they are stuck at max) and waveshaper. The waveshape example shown below has no effect on the sine-wave generated and I am wondering if it is a hardware issue. If somebody could test the example below on a 3.6 (or even 3.2 with shield?) and let me know if it works then I would be very grateful and can figure out where to go with my project.
Waveshape example - https://github.com/dxinteractive/Tee...ster/README.md
I've spent a lot of time on this project so It would be a shame to get stuck now. Thanks for any help.
I am unable to control many effects including reverb parameters (they are stuck at max) and waveshaper. The waveshape example shown below has no effect on the sine-wave generated and I am wondering if it is a hardware issue. If somebody could test the example below on a 3.6 (or even 3.2 with shield?) and let me know if it works then I would be very grateful and can figure out where to go with my project.
Waveshape example - https://github.com/dxinteractive/Tee...ster/README.md
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#include "effect_waveshaper.h"
AudioSynthWaveform waveform;
AudioEffectWaveshaper waveshaper;
AudioOutputI2S output;
AudioConnection patchCord1(waveform, 0, waveshaper, 0);
AudioConnection patchCord2(waveshaper, 0, output, 0);
AudioControlSGTL5000 audioAdaptor;
float WAVESHAPE_EXAMPLE[17] = {
-0.588,
-0.579,
-0.549,
-0.488,
-0.396,
-0.320,
-0.228,
-0.122,
0,
0.122,
0.228,
0.320,
0.396,
0.488,
0.549,
0.579,
0.588
};
void setup() {
AudioMemory(40);
audioAdaptor.enable();
waveform.begin(1.0, 200.0, WAVEFORM_SINE);
waveshaper.shape(WAVESHAPE_EXAMPLE, 17);
}
void loop() {
}
I've spent a lot of time on this project so It would be a shame to get stuck now. Thanks for any help.