From 3f35528f18eb756dfb2b0660a15b3379de4179ac Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 13 Nov 2012 19:23:16 +0000 Subject: revert to a 0..2 scale for MIDI velocity control, so that we can increase MIDI note velocities as well as deccrease them (note: this will make the use of MIDI CC #7 a bit more complex) git-svn-id: svn://localhost/ardour2/branches/3.0@13483 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/amp.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libs/ardour/ardour/amp.h') diff --git a/libs/ardour/ardour/amp.h b/libs/ardour/ardour/amp.h index dcffb1bcdb..23cc0ad0a8 100644 --- a/libs/ardour/ardour/amp.h +++ b/libs/ardour/ardour/amp.h @@ -105,14 +105,6 @@ public: static const float max_gain_coefficient; - inline static float gain_coefficient_to_midi_velocity_factor (gain_t v) { - return (v/max_gain_coefficient); - } - - inline static gain_t midi_velocity_factor_to_gain_coefficient (float v) { - return v * max_gain_coefficient; - } - private: bool _denormal_protection; bool _apply_gain; -- cgit v1.2.3