Changed the pitch bend normalization to an input float

This commit is contained in:
Paul Ferrand 2020-01-05 00:19:49 +01:00
parent df7e9feb98
commit 7243e7aaa0

View file

@ -98,9 +98,9 @@ constexpr float normalizePercents(T percentValue)
* @param bendValue * @param bendValue
* @return constexpr float * @return constexpr float
*/ */
constexpr float normalizeBend(int bendValue) constexpr float normalizeBend(float bendValue)
{ {
return std::min(std::max(static_cast<float>(bendValue), -8191.0f), 8191.0f) / 8191.0f; return std::min(std::max(bendValue, -8191.0f), 8191.0f) / 8191.0f;
} }
/** /**