MIDI import/export: map note volume and MIDI velocity with their full range#4785
Conversation
zonkmachine
left a comment
There was a problem hiding this comment.
Tested. Repeated imports/export/import... etc., of a demo project, will create identical exported midi files and identical imported mmps. Volume <-> velocity is correct.
|
I'm going to just go ahead and merge. |
|
According to MIDI 1.0 specification, which might be this one, velocity is not strictly defined, but it should follow a logarithmic scale. I guess velocity = 64 should mean 100% in LMMS. |
Correct. It's basically just info about how fast a key is struck.
And it is. (had to double check...) |
|
Sure, 100% is 64. I was suggesting to consider a logarithmic scale instead of a linear one. |
|
Should we use the algorithm from our favorite free MIDI player? |
… range (LMMS#4785) * MIDI export: map volume to MIDI velocity correctly * MIDI import: map MIDI velocity to note volume with full range
Fixes #4761.