Compare commits

..

2 Commits

Author SHA1 Message Date
29e5c12777 Fixed comments in config 2026-09-15 16:00:47 +03:00
b507798c22 fixed mtof() -> Q16n16_mtof() in manual trigger 2026-09-15 15:55:27 +03:00
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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