apply volExp on velocity input - PLEASE READ

DivDispatch::mapVelocity() now takes a float instead of an unsigned char
This commit is contained in:
tildearrow 2023-12-16 19:52:37 -05:00
parent 99dd85bcb4
commit 51b385a1ef
18 changed files with 39 additions and 24 deletions

View file

@ -594,10 +594,10 @@ class DivDispatch {
/**
* map MIDI velocity (from 0 to 127) to chip volume.
* @param ch the chip channel. -1 means N/A.
* @param vel input velocity.
* @param vel input velocity, from 0.0 to 1.0.
* @return output volume.
*/
virtual int mapVelocity(int ch, unsigned char vel);
virtual int mapVelocity(int ch, float vel);
/**
* get the lowest note in a portamento.