From c1f56d4d7c12290c06392539f05547a7bd89e5b2 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 6 Jul 2013 01:40:57 +0200 Subject: meter line-up and fall-off standard values & names --- libs/ardour/utils.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/ardour/utils.cc') diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index aedc78988f..e7b7648149 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -442,8 +442,12 @@ meter_falloff_to_float (MeterFalloff falloff) return METER_FALLOFF_SLOWEST; case MeterFalloffSlow: return METER_FALLOFF_SLOW; + case MeterFalloffSlowish: + return METER_FALLOFF_SLOWISH; case MeterFalloffMedium: return METER_FALLOFF_MEDIUM; + case MeterFalloffModerate: + return METER_FALLOFF_MODERATE; case MeterFalloffFast: return METER_FALLOFF_FAST; case MeterFalloffFaster: @@ -467,6 +471,12 @@ meter_falloff_from_float (float val) else if (val <= METER_FALLOFF_SLOW) { return MeterFalloffSlow; } + else if (val <= METER_FALLOFF_SLOWISH) { + return MeterFalloffSlowish; + } + else if (val <= METER_FALLOFF_MODERATE) { + return MeterFalloffModerate; + } else if (val <= METER_FALLOFF_MEDIUM) { return MeterFalloffMedium; } -- cgit v1.2.3