mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Fix MIDI metering to not "clip" on many notes.
git-svn-id: svn://localhost/ardour2/trunk@1951 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
10a282777a
commit
e9de0dec8a
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ PeakMeter::run (BufferSet& bufs, nframes_t nframes, nframes_t offset)
|
|||
if ((ev.buffer[0] & 0xF0) == MIDI_CMD_NOTE_ON) {
|
||||
const float normal_vel = ev.buffer[2] / 127.0;
|
||||
if (normal_vel > val)
|
||||
val += normal_vel;
|
||||
val = normal_vel;
|
||||
} else {
|
||||
val += 1.0 / bufs.get_midi(n).capacity();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue