fixed mtof() -> Q16n16_mtof() in manual trigger

This commit is contained in:
Oleksiy
2026-09-15 15:55:27 +03:00
parent 0a17cda874
commit b507798c22

View File

@ -276,7 +276,7 @@ void updateControl(){
//Set pitch and play notes on trigger
if (MIDINoteFaded) {
noteFreq = mtof((float) kMapNote(CVInVal << 2) / pitchSubSteps);
noteFreq = Q16n16_mtof((float) kMapNote(CVInVal << 2) / pitchSubSteps);
digitalWrite(LED, !gateInVal);
if (gateInVal && !gateIsHigh) {
gateIsHigh = true;