-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Our note velocity go from 0 - 200 but midi note velocity is 0 - 127. In our export code we set anything over 127 to 127 so a track using the full range in lmms will export wrong.
lmms/plugins/MidiExport/MidiExport.cpp
Line 277 in 7f0593c
mnote.volume = qMin(qRound(base_volume * LocaleHelper::toDouble(note.attribute("vol", "100"))), 127); |
Example issue reported in the forum: https://lmms.io/forum/viewtopic.php?f=7&t=29497
Can we just divide note velocity in two when exporting?
Example, crude but working:
mnote.volume = qMin(qRound(base_volume * 0.635 * LocaleHelper::toDouble(note.attribute("vol", "100"))), 127);