Key Cad Demos:
https://www.youtube.com/watch?v=ReTs2OePhmw
https://www.youtube.com/watch?v=60OLTPxHyzQ
finish this one *****
CLASS ON THURSDAY - organized code more and fixed the glitch
#include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h>
// GUItool: begin automatically generated code // Class , object AudioSynthWaveformSine sine1; //xy=249,244 AudioMixer4 mixer1; //xy=447,269 AudioOutputI2S i2s1; //xy=621,281 AudioConnection patchCord1(sine1, 0, mixer1, 0); AudioConnection patchCord2(mixer1, 0, i2s1, 0); AudioConnection patchCord3(mixer1, 0, i2s1, 1); AudioControlSGTL5000 sgtl5000_1; //xy=716,378
float frequency = 440; int arpOrderSelect = 0;
// GUItool: end automatically generated code //KNOBS int potPin1 = A17; // Analog pin for first potentiometer // frequency float lastFrequency = -1;
int potPin2 = A16; // Analog pin for the second potentiometer // resonance float lastResonance = -1;
int potPin3 = A15; // Analog pin for arp speed int arpeggioSpeed = 500; //default speed (eg. 14 notes)
int potPin4 = A13; // Analog pin for arp index int lastArp = 0;