diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ControlBindings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 2e1f9d06..4a0f5f20 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -243,7 +243,7 @@ ControlBindings::control_to_port_value(RunContext& context, normal = (float)value / 16383.0f; break; case Type::MIDI_NOTE: - normal = (value == 0.0f) ? 0.0f : 1.0f; + normal = (value == 0) ? 0.0f : 1.0f; break; default: break; @@ -284,7 +284,7 @@ ControlBindings::port_value_to_control(RunContext& context, } if (port->is_logarithmic()) { - normal = logf(normal * ((float)M_E - 1.0f) + 1.0); + normal = logf(normal * ((float)M_E - 1.0f) + 1.0f); } switch (type) { |