kopia lustrzana https://github.com/jameshball/osci-render
Replace std min with juce jmin
rodzic
a786f0edab
commit
3c0bda1984
|
@ -29,7 +29,7 @@ private:
|
|||
int versionHint;
|
||||
|
||||
double linearSpeedToActualSpeed(double rotateSpeed) {
|
||||
double actualSpeed = (std::exp(3 * std::min(10.0, std::abs(rotateSpeed))) - 1) / 50000;
|
||||
double actualSpeed = (std::exp(3 * juce::jmin(10.0, std::abs(rotateSpeed))) - 1) / 50000;
|
||||
if (rotateSpeed < 0) {
|
||||
actualSpeed *= -1;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue