Changed the pitch bend normalization to an input float
This commit is contained in:
parent
df7e9feb98
commit
7243e7aaa0
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue