mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-01 22:47:26 +00:00
Rename CentToHertz to CentsToHertz
This commit is contained in:
@@ -81,7 +81,7 @@ namespace
|
|||||||
return std::pow(10.0f, (dbsplValue - 100.0f) / 20.0f);
|
return std::pow(10.0f, (dbsplValue - 100.0f) / 20.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
float CentToHertz(const float cents)
|
float CentsToHertz(const float cents)
|
||||||
{
|
{
|
||||||
return std::pow(2.0f, cents / 1200.0f);
|
return std::pow(2.0f, cents / 1200.0f);
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,7 @@ namespace
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = static_cast<uint16_t>(CentToHertz(centValue) * static_cast<float>(std::numeric_limits<int16_t>::max()));
|
value = static_cast<uint16_t>(CentsToHertz(centValue) * static_cast<float>(std::numeric_limits<int16_t>::max()));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user