hdf-0.15: HDF: Uniform Rate Audio Signal Processing in Haskell

Safe HaskellSafe-Inferred
LanguageHaskell98

Sound.DF.Uniform.LL.K

Contents

Description

Data flow wire values.

Synopsis

Vector

data V_Id Source

Vector identifier.

Constructors

V_Id Id 

Instances

data Vec a Source

Vector type.

Constructors

Vec V_Id Int [a] 

Instances

Eq a => Eq (Vec a) 
Ord a => Ord (Vec a) 
Show a => Show (Vec a) 
K' (Vec Float) 
Typeable (* -> *) Vec 

vec_id :: Vec t -> Id Source

Id of V_Id of Vec.

vec_concise :: Vec a -> String Source

Concise pretty printer and Show instance for Vec.

vec_concise (Vec (V_Id 0) 1 [0]) == "vec(0,1)"

K

data K Source

Sum type for wire values. N = nil, B = boolean, I = integer, F = floating point, V = vector (array).

Constructors

N () 
B Bool 
I Int32 
F Float 
V (Vec Float) 

Instances

k_typeOf :: K -> TypeRep Source

Typeable instance for K.

map k_typeOf [B False,I 0,F 0.0] == [bool_t,int32_t,float_t]

k_concise :: K -> String Source

Concise pretty printer and Show instance for K.

TypeRep constants

Type classes

class (Typeable a, Eq a, Ord a, Show a) => K' a where Source

Class for values that can be lifted to K.

Methods

to_k :: a -> K Source

Instances

class (K' a, Ord a) => K_Ord a Source

Composite of Ord and K'.

class (K_Ord a, Num a) => K_Num a Source

Composite of K_Ord and Num.

Instances