kosua20 / MIDIVisualizer

A small MIDI visualizer tool, using OpenGL
MIT License
1.02k stars 136 forks source link

Velocity and Aftertouch Gradients #77

Open frink opened 3 years ago

frink commented 3 years ago

I've been thinking about how to show Velocity and Aftertouch using the opacity of the notes.

I can imagine this would look stunning as well as highly educational to see how dainty a touch is sometimes required to play certain passages. What do you think?

MysticPiano commented 3 years ago

Velocity can be easily determined from MIDI and is easy to incorporate into MIDI Visualizer, but Aftertouch is not recorded as MIDI, It depends on the MIDI Recorder. Most MIDI Recorders take the Inital velocity and make the sound fade out according to the VST used, and that is not recorded in MIDI, making it a little difficult

frink commented 3 years ago

Aftertouch is its own category of MIDI message like Note-on, Pitch Bend, Control Change, Program Change, etc.

“D” is the letter that designates Channel Aftertouch. “D” is actually the hexadecimal character for the number “13” or 1101 in binary.

9n is a Note-on message An is a Poly aftertouch message Bn is a Control Change message Cn is a Program Change message Dn is a Channel Aftertouch message En is a Pitch Bend message etc.

It's just that many keyboards didn't support it for a while...

lcalder commented 1 year ago

I think the Velocity gradient would be the most useful to the most people and feel this would be a great enhancement. Maybe allow a configurable option to specify Velocity values of 0-127 would be mapped to gradients of x% to 100% opaque so that notes that were very soft could be seen based on user selection...