Module: Synthesizer::Modulation::Curve

Defined in:
lib/synthesizer/modulation/curve.rb

Constant Summary collapse

Straight =
->(x) { x }
EaseIn =
->(x) { x ** 2 }
EaseOut =
->(x) { x * (2 - x) }
EaseIn2 =
->(x) { x ** 3 }
EaseOut2 =
->(x) { 1.0 - EaseIn2[1.0 - x]}