Fix! correct key transposition on Midiwriter

This commit is contained in:
Hasinjato 2026-09-03 13:57:25 +03:00
parent dcc5a67818
commit 9fe631f7a9

View file

@ -32,7 +32,7 @@ data class MidiPitch (
metaType = type
}
fun setNote(note: String, theDuration: Int) {
val midiPitch = Transpose.transposeToMidi(note, "C", key)
val midiPitch = Transpose.transposeToMidi(note, toKey = "C", fromKey = key)
velocity = if (midiPitch < 0) {
0
} else {