Module

Audio.Graph.Attributes

Package
purescript-audiograph
Repository
newlandsvalley/purescript-audiograph

#AudioAttribute Source

type AudioAttribute = Variant (audioParams :: List AudioParamDef, biquadFilterType :: BiquadFilterType, bool :: Boolean, number :: Number, oscillatorType :: OscillatorType, string :: String)

the (type of) an attribute of an audio node

#AttributeMap Source

type AttributeMap = Map String AudioAttribute

a map of a set of such (named) attributes

#Time Source

data Time

a time in an audio parameter which can either be absolute or relative

Constructors

#TimeConstant Source

type TimeConstant = Number

a time in an audio parameter which must be an absolute constant value

#getNumber Source

getNumber :: String -> AttributeMap -> Maybe Number

get a named Number attribute

#getString Source

getString :: String -> AttributeMap -> Maybe String

get a named String attribute