synthesizer-dimensional-0.8.1.1: Audio signal processing with static physical dimensions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Synthesizer.Dimensional.Amplitude

Synopsis

Documentation

data Abstract Source #

Can be used as amplitude value for enumeration types such as Bool and Ordering and other types, where a numeric amplitude makes no sense. It is essential in T. It would be a bad idea to omit the Abstract parameter in dimensional causal processes since the correspondence between amplitude type and sample type would be lost.

Constructors

Abstract 

Instances

Instances details
C Abstract Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

Primitive Abstract Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

newtype Numeric amp Source #

Constructors

Numeric amp 

Instances

Instances details
Functor Numeric Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

Methods

fmap :: (a -> b) -> Numeric a -> Numeric b #

(<$) :: a -> Numeric b -> Numeric a #

(IsScalar v, C y) => C y (Numeric (T v y)) Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude.Flat

Methods

toScalar :: Numeric (T v y) -> y

amplifySample :: Numeric (T v y) -> y -> y Source #

amplify :: Transform sig y => Numeric (T v y) -> sig y -> sig y

C (Numeric amp) Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

type Dimensional v y = Numeric (T v y) Source #

data Flat y Source #

Flat y is quite the same as Dimensional Dim.Scalar y but in some cases it allows a little more efficient processing. It should not be mixed up with Abstract. Flat y is reserved for numeric amplitudes.

Constructors

Flat 

Instances

Instances details
C y => C y (Flat y) Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude.Flat

Methods

toScalar :: Flat y -> y

amplifySample :: Flat y -> y -> y Source #

amplify :: Transform sig y => Flat y -> sig y -> sig y

C (Flat y) Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

Primitive (Flat y) Source # 
Instance details

Defined in Synthesizer.Dimensional.Amplitude

Methods

primitive :: Flat y Source #

class C amp Source #

This class is used to make mapAmplitude both flexible and a bit safe. Its instances are dimensional numbers Numeric and Abstract. It should not be necessary to add more instances.

class Primitive amp where Source #

This class is used for append and map that expect that the amplitude value does carry not more information than that expressed by the type. It should not be necessary to add more instances.

Methods

primitive :: amp Source #