Skip to content
Snippets Groups Projects
Commit a460b69e authored by t6's avatar t6
Browse files

updated midside-chorus-reverb

parent 7f5665b4
No related branches found
No related tags found
No related merge requests found
#include <Audio.h> #include <Audio.h>
#include <Wire.h> #include <Wire.h>
#include <SPI.h> #include <SPI.h>
...@@ -5,17 +6,44 @@ ...@@ -5,17 +6,44 @@
#include <SerialFlash.h> #include <SerialFlash.h>
// GUItool: begin automatically generated code // GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=141,57 AudioInputI2S i2s1; //xy=72,94
AudioEffectMidSide midside1; //xy=267,57 AudioEffectMidSide midside1; //xy=198,94
AudioEffectChorus chorus1; //xy=426,50 AudioEffectChorus chorus1; //xy=357,87
AudioEffectReverb reverb1; //xy=429,86 AudioEffectReverb reverb1; //xy=360,123
AudioOutputI2S i2s2; //xy=628,66 AudioOutputI2S i2s2; //xy=559,103
AudioConnection patchCord1(i2s1, 0, midside1, 0); AudioConnection patchCord1(i2s1, 0, midside1, 0);
AudioConnection patchCord2(i2s1, 1, midside1, 1); AudioConnection patchCord2(i2s1, 1, midside1, 1);
AudioConnection patchCord3(midside1, 0, chorus1, 0); AudioConnection patchCord3(midside1, 0, chorus1, 0);
AudioConnection patchCord4(midside1, 1, reverb1, 0); AudioConnection patchCord4(midside1, 1, reverb1, 0);
AudioConnection patchCord5(chorus1, 0, i2s2, 0); AudioConnection patchCord5(chorus1, 0, i2s2, 0);
AudioConnection patchCord6(reverb1, 0, i2s2, 1); AudioConnection patchCord6(reverb1, 0, i2s2, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=1116,33 AudioControlSGTL5000 sgtl5000_1; //xy=1047,70
// GUItool: end automatically generated code // GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
AudioMemory(10);
// pinMode(7, INPUT_PULLUP);
// pinMode(8, INPUT_PULLUP);
Serial.begin(115200);
sgtl5000_1.enable();
sgtl5000_1.volume(0.9);
//use for line input instead of mic:
sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);
// waveform1.begin(WAVEFORM_SINE);
/* delay(1000);
button0.update();
button1.update();
a1history = analogRead(A1);
a2history = analogRead(A2);
a3history = analogRead(A3);
*/
}
void loop() {
// put your main code here, to run repeatedly:
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment