From 947aec13a01658eba34390daee0baa145d76b280 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 16 Mar 2019 20:30:50 +0000 Subject: [PATCH] add amp control --- src/Sound/Tidal/Params.hs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Sound/Tidal/Params.hs b/src/Sound/Tidal/Params.hs index 5b0488511..a554cc9a1 100644 --- a/src/Sound/Tidal/Params.hs +++ b/src/Sound/Tidal/Params.hs @@ -58,6 +58,11 @@ to = pF "to" accelerate :: Pattern Double -> ControlPattern accelerate = pF "accelerate" + +-- | Amplitude; like @gain@, but linear. +amp :: Pattern Double -> ControlPattern +amp = pF "amp" + -- | a pattern of numbers to specify the attack time (in seconds) of an envelope applied to each sample. Only takes effect if `release` is also specified. attack :: Pattern Double -> ControlPattern attack = pF "attack" @@ -160,9 +165,13 @@ dry = pF "dry" -} end :: Pattern Double -> ControlPattern end = pF "end" --- | a pattern of numbers that specify volume. Values less than 1 make the sound quieter. Values greater than 1 make the sound louder. + +-- | a pattern of numbers that specify volume. Values less than 1 make +-- the sound quieter. Values greater than 1 make the sound louder. For +-- the linear equivalent, see @amp@. gain :: Pattern Double -> ControlPattern gain = pF "gain" + gate :: Pattern Double -> ControlPattern gate = pF "gate" hatgrain :: Pattern Double -> ControlPattern