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
#AudioParamDef Source
data AudioParamDef
an AudioParam definition see https://developer.mozilla.org/en-US/docs/Web/API/AudioParam
Constructors
#TimeConstant Source
type TimeConstant = Number
a time in an audio parameter which must be an absolute constant value
#addFrequency Source
addFrequency :: AttributeMap -> Number -> AttributeMap
#numberAttr Source
numberAttr :: Number -> AudioAttribute
#stringAttr Source
stringAttr :: String -> AudioAttribute
#boolAttr Source
boolAttr :: Boolean -> AudioAttribute
#setOscillatorAttributes Source
setOscillatorAttributes :: Number -> OscillatorNode -> AttributeMap -> Effect Unit
#setGainAttributes Source
setGainAttributes :: Number -> GainNode -> AttributeMap -> Effect Unit
#setDelayAttributes Source
setDelayAttributes :: Number -> DelayNode -> AttributeMap -> Effect Unit