Fix! correct key transposition on Midiwriter
This commit is contained in:
parent
dcc5a67818
commit
9fe631f7a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue