This commit is contained in:
2025-12-21 12:32:03 +01:00
parent f510de47d1
commit 295d0cf0de
3 changed files with 33 additions and 15 deletions

View File

@@ -49,3 +49,8 @@ export function getRandomNote(min: number, max: number, validNotes?: number[]):
}
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Helper to convert Written note to Sounding note for guitar
// e.g. Input: "C4" (Written) -> Returns C3 (Sounding) MIDI
// But usually we work with MIDI.
// This is just a note for logic: Guitar Sounding = Written - 12.