Bug (with fix): MidiKeyboardComponent ignores velocity


#1

Hi there!
if I call, for example:

myKeyboardComponent.setVelocity(0.5f, false);

then the first parameter is never used.
The problem is in the updateNoteUnderMouse function, if I change this:

auto eventVelocity = useMousePositionForVelocity ? mousePositionVelocity * velocity : 1.0f;

to this:

auto eventVelocity = useMousePositionForVelocity ? mousePositionVelocity * velocity : velocity;

all works as expected.


#2

Thanks, I’ll get that added.