Module

Audio.WebAudio.AudioParam

Package
purescript-webaudio
Repository
adkelley/purescript-webaudio

#setTargetAtTime Source

setTargetAtTime :: Value -> Seconds -> Seconds -> AudioParam -> Effect Value

Schedule the start of a change to the value. The change starts at the time specified by the first time parameter and exponentially moves towards the value given by the target AudioParam. The second time parameter defines the exponential decay rate.

#setValueAtTime Source

setValueAtTime :: Value -> Seconds -> AudioParam -> Effect Value

Schedule an instant change to the value at a precise time,

#setValue Source

setValue :: Value -> AudioParam -> Effect Unit

set the value immediately.

#linearRampToValueAtTime Source

linearRampToValueAtTime :: Value -> Seconds -> AudioParam -> Effect Value

Schedule a gradual linear change in the value.

#exponentialRampToValueAtTime Source

exponentialRampToValueAtTime :: Value -> Seconds -> AudioParam -> Effect Value

Schedule a gradual exponential change in the value.

#cancelScheduledValues Source

cancelScheduledValues :: Value -> AudioParam -> Effect Value

Cancel all scheduled future changes to the audio param.