Compare commits
2 Commits
0a17cda874
...
29e5c12777
| Author | SHA1 | Date | |
|---|---|---|---|
| 29e5c12777 | |||
| b507798c22 |
@ -276,7 +276,7 @@ void updateControl(){
|
|||||||
|
|
||||||
//Set pitch and play notes on trigger
|
//Set pitch and play notes on trigger
|
||||||
if (MIDINoteFaded) {
|
if (MIDINoteFaded) {
|
||||||
noteFreq = mtof((float) kMapNote(CVInVal << 2) / pitchSubSteps);
|
noteFreq = Q16n16_mtof((float) kMapNote(CVInVal << 2) / pitchSubSteps);
|
||||||
digitalWrite(LED, !gateInVal);
|
digitalWrite(LED, !gateInVal);
|
||||||
if (gateInVal && !gateIsHigh) {
|
if (gateInVal && !gateIsHigh) {
|
||||||
gateIsHigh = true;
|
gateIsHigh = true;
|
||||||
|
|||||||
@ -4,13 +4,13 @@ const int pitchSubSteps = 16; //set how many steps are there between semitones.
|
|||||||
#define GLIDE_TIME 60
|
#define GLIDE_TIME 60
|
||||||
|
|
||||||
//Hardware Definitions
|
//Hardware Definitions
|
||||||
#define Knob1 A6 //Intensity
|
#define Knob1 A6 //Cutoff
|
||||||
#define Knob2 A4 //Modulator frequency ratio/Harmonics
|
#define Knob2 A4 //Resonance
|
||||||
#define Knob3 A2 //LFO Frequency
|
#define Knob3 A2 //Env.Mod
|
||||||
#define Knob4 A0 //LFO Shape
|
#define Knob4 A0 //Overdrive
|
||||||
#define KnobA A5 //Attack
|
#define KnobA A5 //Attack
|
||||||
#define KnobDR A3 //Decay and Release
|
#define KnobDR A3 //Decay
|
||||||
#define KnobS A1 //Sustain
|
#define KnobS A1 //Accent
|
||||||
#define CVIn A7 //CV input and Pitch knob
|
#define CVIn A7 //CV input and Pitch knob
|
||||||
#define GateIn 10
|
#define GateIn 10
|
||||||
#define EnvSwitch 11
|
#define EnvSwitch 11
|
||||||
|
|||||||
Reference in New Issue
Block a user