This commit is contained in:
Louis Dalibard 2024-12-24 17:20:02 +01:00
parent 07fe192d5f
commit 7f57648dbd

View File

@ -12,7 +12,7 @@ import System.Random ( randomRIO )
-- Adjust value according to coefficients -- Adjust value according to coefficients
adjustValue :: Double -> Double-> Double -> Double -> Double adjustValue :: Double -> Double-> Double -> Double -> Double
adjustValue v a b x = v*(a*x+b) adjustValue v a b x = minimum [maximum [0.0, v*(a*x+b)], 100.0]
-- | Extract the primary scale from a pallete. -- | Extract the primary scale from a pallete.
primary :: V.Vector a -> V.Vector a primary :: V.Vector a -> V.Vector a