atom-1.0.13: An EDSL for embedded hard realtime applications.

Copyright(c) 2013 Tom Hawkins & Lee Pike
Safe HaskellNone
LanguageHaskell98

Language.Atom.Common.Fader

Description

Fades one signal to another.

Synopsis

Documentation

data Fader Source

Fader object.

data FaderInit Source

Fader initalization.

Constructors

OnA

Start at signal A

OnB

Start at signal B

OnCenter

Start at average of A and B

fader Source

Arguments

:: Name

Name

-> Double

Fade rate

-> FaderInit

Initialization

-> E Double

Signal A

-> E Double

Signal B

-> Atom (Fader, E Double) 

Fader construction

fadeToA :: Fader -> Atom () Source

Fade to signal A.

fadeToB :: Fader -> Atom () Source

Fade to signal B.

fadeToCenter :: Fader -> Atom () Source

Fade to center, i.e. average of signal A and B.