diff options
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index ceb593f4c3..a739b59088 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -167,9 +167,8 @@ Amp::apply_gain (BufferSet& bufs, nframes_t nframes, gain_t initial, gain_t targ Evoral::MIDIEvent<MidiBuffer::TimeType> ev = *m; if (ev.is_note_on()) { - gain_t scale = delta * (ev.time()/nframes); - std::cerr << "scale by " << scale << " for " << ev.time() << " of " << nframes << std::endl; - ev.scale_velocity (scale); + gain_t scale = delta * (ev.time()/(double) nframes); + ev.scale_velocity (initial+scale); } } } |