Module
Ocarina.Core
- Package
- purescript-ocarina
- Repository
- mikesol/purescript-ocarina
#Allpass Source
newtype Allpass parameter
Constructors
Allpass (Variant (frequency :: AudioParameter parameter, q :: AudioParameter parameter))
Instances
#AudibleChild Source
type AudibleChild :: forall k. k -> Type -> Type
type AudibleChild outputChannels payload = Child Void (Node outputChannels payload)
#AudioCancel' Source
type AudioCancel' = { o :: Number }
#AudioCancel Source
#AudioEnvelope Source
#AudioInterpret Source
newtype AudioInterpret payload
Constructors
AudioInterpret { connectXToY :: ConnectXToY -> payload, deleteFromCache :: DeleteFromCache -> payload, disconnectXFromY :: DisconnectXFromY -> payload, ids :: ST Global String, makeAllpass :: MakeAllpass -> payload, makeAnalyser :: MakeAnalyser -> payload, makeAudioWorkletNode :: MakeAudioWorkletNode -> payload, makeBandpass :: MakeBandpass -> payload, makeConstant :: MakeConstant -> payload, makeConvolver :: MakeConvolver -> payload, makeDelay :: MakeDelay -> payload, makeDynamicsCompressor :: MakeDynamicsCompressor -> payload, makeGain :: MakeGain -> payload, makeHighpass :: MakeHighpass -> payload, makeHighshelf :: MakeHighshelf -> payload, makeIIRFilter :: MakeIIRFilter -> payload, makeLoopBuf :: MakeLoopBuf -> payload, makeLowpass :: MakeLowpass -> payload, makeLowshelf :: MakeLowshelf -> payload, makeMediaElement :: MakeMediaElement -> payload, makeMicrophone :: MakeMicrophone -> payload, makeNotch :: MakeNotch -> payload, makePeaking :: MakePeaking -> payload, makePeriodicOsc :: MakePeriodicOsc -> payload, makePlayBuf :: MakePlayBuf -> payload, makeRecorder :: MakeRecorder -> payload, makeSawtoothOsc :: MakeSawtoothOsc -> payload, makeSinOsc :: MakeSinOsc -> payload, makeSpeaker :: MakeSpeaker -> payload, makeSquareOsc :: MakeSquareOsc -> payload, makeStereoPanner :: MakeStereoPanner -> payload, makeTriangleOsc :: MakeTriangleOsc -> payload, makeWaveShaper :: MakeWaveShaper -> payload, setAnalyserNodeCb :: SetAnalyserNodeCb -> payload, setAttack :: SetAttack -> payload, setAudioWorkletParameter :: SetAudioWorkletParameter -> payload, setBuffer :: SetBuffer -> payload, setBufferOffset :: SetBufferOffset -> payload, setConvolverBuffer :: SetConvolverBuffer -> payload, setDelay :: SetDelay -> payload, setDuration :: SetDuration -> payload, setFrequency :: SetFrequency -> payload, setGain :: SetGain -> payload, setKnee :: SetKnee -> payload, setLoopEnd :: SetLoopEnd -> payload, setLoopStart :: SetLoopStart -> payload, setMediaRecorderCb :: SetMediaRecorderCb -> payload, setOffset :: SetOffset -> payload, setOnOff :: SetOnOff -> payload, setPan :: SetPan -> payload, setPeriodicOsc :: SetPeriodicOsc -> payload, setPlaybackRate :: SetPlaybackRate -> payload, setQ :: SetQ -> payload, setRatio :: SetRatio -> payload, setRelease :: SetRelease -> payload, setThreshold :: SetThreshold -> payload, setWaveShaperCurve :: SetWaveShaperCurve -> payload }
Instances
Newtype (AudioInterpret payload) _
#AudioNumeric' Source
type AudioNumeric' = { n :: Number, o :: Number, t :: Transition }
#AudioNumeric Source
newtype AudioNumeric
Constructors
Instances
Newtype AudioNumeric _
ToAudioParameter AudioNumeric p
(Cons "n" Number r' r) => OpticN AudioNumeric
#AudioOnOff Source
#AudioParameter Source
newtype AudioParameter payload
Constructors
AudioParameter (Variant (cancel :: AudioCancel, envelope :: AudioEnvelope, numeric :: AudioNumeric, sudden :: AudioSudden, unit :: AudioUnit payload))
Instances
(TypeEquals p0 p1) => ToAudioParameter (AudioParameter p0) p1
#AudioSudden' Source
type AudioSudden' = { n :: Number }
#AudioSudden Source
newtype AudioSudden
Constructors
Instances
Newtype AudioSudden _
ToAudioParameter AudioSudden p
(Cons "n" Number r' r) => OpticN AudioSudden
#AudioUnit' Source
type AudioUnit' payload = { u :: Audible D1 payload }
#AudioUnit Source
newtype AudioUnit payload
Constructors
AudioUnit (AudioUnit' payload)
Instances
(TypeEquals p0 p1) => ToAudioParameter (AudioUnit p0) p1
#AudioWorkletNode Source
newtype AudioWorkletNode :: Row Type -> Type
newtype AudioWorkletNode parameterData
Constructors
AudioWorkletNode (Variant parameterData)
Instances
Newtype (AudioWorkletNode parameterData) _
#AudioWorkletNodeOptions_ Source
newtype AudioWorkletNodeOptions_ param
Constructors
AudioWorkletNodeOptions_ { name :: String, numberOfInputs :: Int, numberOfOutputs :: Int, outputChannelCount :: Array Int, parameterData :: Object param, processorOptions :: Foreign }
Instances
Newtype (AudioWorkletNodeOptions_ param) _
(Eq param) => Eq (AudioWorkletNodeOptions_ param)
(Ord param) => Ord (AudioWorkletNodeOptions_ param)
(Show param) => Show (AudioWorkletNodeOptions_ param)
#Bandpass Source
newtype Bandpass payload
Constructors
Bandpass (Variant (frequency :: AudioParameter payload, q :: AudioParameter payload))
Instances
#ConnectXToY Source
type ConnectXToY = Record ConnectXToY_
#ConnectXToY_ Source
type ConnectXToY_ :: Row Type
type ConnectXToY_ = (from :: String, to :: String)
#Constant Source
newtype Constant payload
Constructors
Constant (Variant (offset :: AudioParameter payload, onOff :: AudioOnOff))
Instances
#DeleteFromCache Source
type DeleteFromCache = { id :: String }
#DisconnectXFromY_ Source
type DisconnectXFromY_ :: Row Type
type DisconnectXFromY_ = (from :: String, to :: String)
#DynamicsCompressor Source
newtype DynamicsCompressor payload
Constructors
DynamicsCompressor (Variant (attack :: AudioParameter payload, knee :: AudioParameter payload, ratio :: AudioParameter payload, release :: AudioParameter payload, threshold :: AudioParameter payload))
Instances
Newtype (DynamicsCompressor payload) _
#FFIAudioParameter Source
newtype FFIAudioParameter
Constructors
FFIAudioParameter (Variant (cancel :: AudioCancel, envelope :: AudioEnvelope, numeric :: AudioNumeric, sudden :: AudioSudden, unit :: FFIAudioUnit))
#FFIAudioUnit' Source
type FFIAudioUnit' = { i :: String }
#Highpass Source
newtype Highpass payload
Constructors
Highpass (Variant (frequency :: AudioParameter payload, q :: AudioParameter payload))
Instances
#Highshelf Source
newtype Highshelf payload
Constructors
Highshelf (Variant (frequency :: AudioParameter payload, gain :: AudioParameter payload))
Instances
#InitialAudioParameter Source
type InitialAudioParameter = Number
#InitializeAllpass Source
newtype InitializeAllpass
Constructors
InitializeAllpass { frequency :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializeAnalyser Source
newtype InitializeAnalyser
Constructors
InitializeAnalyser { cb :: AnalyserNodeCb, channelCount :: Int, channelCountMode :: ChannelCountMode, channelInterpretation :: ChannelInterpretation, fftSize :: Po2, maxDecibels :: Number, minDecibels :: Number, smoothingTimeConstant :: Number }
Instances
#InitializeAudioWorkletNode Source
newtype InitializeAudioWorkletNode :: Symbol -> Type -> Type -> Type -> Row Type -> Row Type -> Type
newtype InitializeAudioWorkletNode (name :: Symbol) numberOfInputs numberOfOutputs outputChannelCount parameterData processorOptions
Constructors
InitializeAudioWorkletNode { name :: Proxy name, numberOfInputs :: numberOfInputs, numberOfOutputs :: numberOfOutputs, outputChannelCount :: outputChannelCount, parameterData :: Record parameterData, processorOptions :: Record processorOptions }
Instances
Newtype (InitializeAudioWorkletNode name numberOfInputs numberOfOutputs outputChannelCount parameterData processorOptions) _
#InitializeBandpass Source
newtype InitializeBandpass
Constructors
InitializeBandpass { frequency :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializeConstant Source
newtype InitializeConstant
Constructors
InitializeConstant { offset :: InitialAudioParameter }
Instances
#InitializeConvolver Source
newtype InitializeConvolver
Constructors
InitializeConvolver { buffer :: BrowserAudioBuffer }
Instances
#InitializeDelay Source
newtype InitializeDelay
Constructors
InitializeDelay { delayTime :: InitialAudioParameter, maxDelayTime :: InitialAudioParameter }
Instances
#InitializeDynamicsCompressor Source
newtype InitializeDynamicsCompressor
Constructors
InitializeDynamicsCompressor { attack :: InitialAudioParameter, knee :: InitialAudioParameter, ratio :: InitialAudioParameter, release :: InitialAudioParameter, threshold :: InitialAudioParameter }
Instances
#InitializeGain Source
#InitializeHighpass Source
newtype InitializeHighpass
Constructors
InitializeHighpass { frequency :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializeHighshelf Source
newtype InitializeHighshelf
Constructors
InitializeHighshelf { frequency :: InitialAudioParameter, gain :: InitialAudioParameter }
Instances
#InitializeIIRFilter Source
newtype InitializeIIRFilter :: Int -> Int -> Type
newtype InitializeIIRFilter (feedforward :: Int) (feedback :: Int)
Constructors
InitializeIIRFilter { feedback :: Vect feedback Number, feedforward :: Vect feedforward Number }
Instances
Newtype (InitializeIIRFilter feedforward feedback) _
#InitializeLoopBuf Source
newtype InitializeLoopBuf
Constructors
InitializeLoopBuf { buffer :: BrowserAudioBuffer, duration :: Maybe Number, loopEnd :: Number, loopStart :: Number, playbackRate :: InitialAudioParameter }
Instances
#InitializeLowpass Source
newtype InitializeLowpass
Constructors
InitializeLowpass { frequency :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializeLowshelf Source
newtype InitializeLowshelf
Constructors
InitializeLowshelf { frequency :: InitialAudioParameter, gain :: InitialAudioParameter }
Instances
#InitializeMediaElement Source
newtype InitializeMediaElement
Constructors
InitializeMediaElement { element :: BrowserMediaElement }
Instances
#InitializeMicrophone Source
newtype InitializeMicrophone
Constructors
InitializeMicrophone { microphone :: BrowserMicrophone }
Instances
#InitializeNotch Source
newtype InitializeNotch
Constructors
InitializeNotch { frequency :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializePeaking Source
newtype InitializePeaking
Constructors
InitializePeaking { frequency :: InitialAudioParameter, gain :: InitialAudioParameter, q :: InitialAudioParameter }
Instances
#InitializePeriodicOsc Source
newtype InitializePeriodicOsc
Constructors
InitializePeriodicOsc { frequency :: InitialAudioParameter, spec :: PeriodicOscSpec }
Instances
#InitializePlayBuf Source
newtype InitializePlayBuf
Constructors
InitializePlayBuf { buffer :: BrowserAudioBuffer, bufferOffset :: Number, duration :: Maybe Number, playbackRate :: InitialAudioParameter }
Instances
#InitializeRecorder Source
#InitializeSawtoothOsc Source
newtype InitializeSawtoothOsc
Constructors
InitializeSawtoothOsc { frequency :: InitialAudioParameter }
Instances
#InitializeSinOsc Source
newtype InitializeSinOsc
Constructors
InitializeSinOsc { frequency :: InitialAudioParameter }
Instances
#InitializeSquareOsc Source
newtype InitializeSquareOsc
Constructors
InitializeSquareOsc { frequency :: InitialAudioParameter }
Instances
#InitializeStereoPanner Source
newtype InitializeStereoPanner
Constructors
InitializeStereoPanner { pan :: InitialAudioParameter }
Instances
#InitializeTriangleOsc Source
newtype InitializeTriangleOsc
Constructors
InitializeTriangleOsc { frequency :: InitialAudioParameter }
Instances
#InitializeWaveShaper Source
newtype InitializeWaveShaper
Constructors
InitializeWaveShaper { curve :: BrowserFloatArray, oversample :: Oversample }
Instances
#LoopBuf Source
newtype LoopBuf payload
Constructors
LoopBuf (Variant (buffer :: BrowserAudioBuffer, loopEnd :: Number, loopStart :: Number, onOff :: AudioOnOff, playbackRate :: AudioParameter payload))
Instances
#Lowpass Source
newtype Lowpass payload
Constructors
Lowpass (Variant (frequency :: AudioParameter payload, q :: AudioParameter payload))
Instances
#Lowshelf Source
newtype Lowshelf payload
Constructors
Lowshelf (Variant (frequency :: AudioParameter payload, gain :: AudioParameter payload))
Instances
#MakeAudioWorkletNode_ Source
type MakeAudioWorkletNode_ param = { id :: String, options :: AudioWorkletNodeOptions_ param, parent :: Maybe String, scope :: Maybe String }
#MakeConstant_ Source
type MakeConstant_ :: Type -> Row Type
type MakeConstant_ param = (id :: String, offset :: param, parent :: Maybe String, scope :: Maybe String)
#MakeConvolver Source
type MakeConvolver = { buffer :: BrowserAudioBuffer, id :: String, parent :: Maybe String, scope :: Maybe String }
#MakeLoopBuf_ Source
type MakeLoopBuf_ :: Type -> Row Type
type MakeLoopBuf_ param = (buffer :: BrowserAudioBuffer, duration :: Maybe Number, id :: String, loopEnd :: Number, loopStart :: Number, parent :: Maybe String, playbackRate :: param, scope :: Maybe String)
#MakeMediaElement Source
type MakeMediaElement = { element :: BrowserMediaElement, id :: String, parent :: Maybe String, scope :: Maybe String }
#MakeMicrophone Source
type MakeMicrophone = { id :: String, microphone :: BrowserMicrophone, parent :: Maybe String, scope :: Maybe String }
#MakePeriodicOsc_ Source
type MakePeriodicOsc_ :: Type -> Row Type
type MakePeriodicOsc_ param = (frequency :: param, id :: String, parent :: Maybe String, scope :: Maybe String, spec :: PeriodicOscSpec)
#MakePlayBuf_ Source
type MakePlayBuf_ :: Type -> Row Type
type MakePlayBuf_ param = (buffer :: BrowserAudioBuffer, bufferOffset :: Number, duration :: Maybe Number, id :: String, parent :: Maybe String, playbackRate :: param, scope :: Maybe String)
#MakeRecorder Source
type MakeRecorder = { cb :: MediaRecorderCb, id :: String, parent :: Maybe String, scope :: Maybe String }
#MakeSawtoothOsc_ Source
type MakeSawtoothOsc_ :: Type -> Row Type
type MakeSawtoothOsc_ param = (frequency :: param, id :: String, parent :: Maybe String, scope :: Maybe String)
#MakeSinOsc Source
type MakeSinOsc = Record (MakeSinOsc_ InitialAudioParameter)
#MakeSinOsc_ Source
type MakeSinOsc_ :: Type -> Row Type
type MakeSinOsc_ param = (frequency :: param, id :: String, parent :: Maybe String, scope :: Maybe String)
#MakeSpeaker Source
type MakeSpeaker = { id :: String }
#MakeSquareOsc_ Source
type MakeSquareOsc_ :: Type -> Row Type
type MakeSquareOsc_ param = (frequency :: param, id :: String, parent :: Maybe String, scope :: Maybe String)
#MakeTriangleOsc_ Source
type MakeTriangleOsc_ :: Type -> Row Type
type MakeTriangleOsc_ param = (frequency :: param, id :: String, parent :: Maybe String, scope :: Maybe String)
#MakeWaveShaper Source
type MakeWaveShaper = { curve :: BrowserFloatArray, id :: String, oversample :: Oversample, parent :: Maybe String, scope :: Maybe String }
#Notch Source
newtype Notch payload
Constructors
Notch (Variant (frequency :: AudioParameter payload, q :: AudioParameter payload))
Instances
#Oversample Source
newtype Oversample
Constructors
Oversample (Variant ("2x" :: Unit, "4x" :: Unit, none :: Unit))
Instances
#Peaking Source
newtype Peaking payload
Constructors
Peaking (Variant (frequency :: AudioParameter payload, gain :: AudioParameter payload, q :: AudioParameter payload))
Instances
#PeriodicOsc Source
newtype PeriodicOsc payload
Constructors
PeriodicOsc (Variant (frequency :: AudioParameter payload, onOff :: AudioOnOff, spec :: PeriodicOscSpec))
Instances
Newtype (PeriodicOsc payload) _
#PeriodicOscSpec Source
newtype PeriodicOscSpec
Constructors
PeriodicOscSpec (Variant (realImg :: RealImg, wave :: BrowserPeriodicWave))
Instances
#PlayBuf Source
newtype PlayBuf payload
Constructors
PlayBuf (Variant (buffer :: BrowserAudioBuffer, bufferOffset :: Number, duration :: Maybe Number, onOff :: AudioOnOff, playbackRate :: AudioParameter payload))
Instances
#SawtoothOsc Source
newtype SawtoothOsc payload
Constructors
SawtoothOsc (Variant (frequency :: AudioParameter payload, onOff :: AudioOnOff))
Instances
Newtype (SawtoothOsc payload) _
#SetAnalyserNodeCb Source
type SetAnalyserNodeCb = { cb :: AnalyserNodeCb, id :: String }
#SetAttack Source
type SetAttack = { attack :: FFIAudioParameter, id :: String }
#SetAudioWorkletParameter Source
type SetAudioWorkletParameter = { id :: String, paramName :: String, paramValue :: FFIAudioParameter }
#SetBuffer Source
type SetBuffer = { buffer :: BrowserAudioBuffer, id :: String }
#SetBufferOffset Source
type SetBufferOffset = { bufferOffset :: Number, id :: String }
#SetConvolverBuffer Source
type SetConvolverBuffer = { buffer :: BrowserAudioBuffer, id :: String }
#SetDelay Source
type SetDelay = { delayTime :: FFIAudioParameter, id :: String }
#SetFrequency Source
type SetFrequency = { frequency :: FFIAudioParameter, id :: String }
#SetGain Source
type SetGain = { gain :: FFIAudioParameter, id :: String }
#SetKnee Source
type SetKnee = { id :: String, knee :: FFIAudioParameter }
#SetLoopEnd Source
type SetLoopEnd = { id :: String, loopEnd :: Number }
#SetLoopStart Source
type SetLoopStart = { id :: String, loopStart :: Number }
#SetMediaRecorderCb Source
type SetMediaRecorderCb = { cb :: MediaRecorderCb, id :: String }
#SetOffset Source
type SetOffset = { id :: String, offset :: FFIAudioParameter }
#SetOnOff Source
type SetOnOff = { id :: String, onOff :: AudioOnOff }
#SetPan Source
type SetPan = { id :: String, pan :: FFIAudioParameter }
#SetPeriodicOsc Source
type SetPeriodicOsc = { id :: String, spec :: PeriodicOscSpec }
#SetPlaybackRate Source
type SetPlaybackRate = { id :: String, playbackRate :: FFIAudioParameter }
#SetQ Source
type SetQ = { id :: String, q :: FFIAudioParameter }
#SetRatio Source
type SetRatio = { id :: String, ratio :: FFIAudioParameter }
#SetRelease Source
type SetRelease = { id :: String, release :: FFIAudioParameter }
#SetThreshold Source
type SetThreshold = { id :: String, threshold :: FFIAudioParameter }
#SetWaveShaperCurve Source
type SetWaveShaperCurve = { curve :: BrowserFloatArray, id :: String }
#SinOsc Source
newtype SinOsc payload
Constructors
SinOsc (Variant (frequency :: AudioParameter payload, onOff :: AudioOnOff))
Instances
#SquareOsc Source
newtype SquareOsc payload
Constructors
SquareOsc (Variant (frequency :: AudioParameter payload, onOff :: AudioOnOff))
Instances
#StereoPanner Source
newtype StereoPanner payload
Constructors
StereoPanner (Variant (pan :: AudioParameter payload))
Instances
Newtype (StereoPanner payload) _
#Transition Source
newtype Transition
Constructors
Transition (Variant (exponential :: Unit, linear :: Unit, step :: Unit))
#TriangleOsc Source
newtype TriangleOsc parameter
Constructors
TriangleOsc (Variant (frequency :: AudioParameter parameter, onOff :: AudioOnOff))
Instances
Newtype (TriangleOsc parameter) _
#_cancel Source
_cancel :: forall payload. AudioCancel -> AudioParameter payload
#_cancel' Source
_cancel' :: forall payload. AudioCancel' -> AudioParameter payload
#_envelope Source
_envelope :: forall payload. AudioEnvelope -> AudioParameter payload
#_envelope' Source
_envelope' :: forall payload. AudioEnvelope' -> AudioParameter payload
#_fourX Source
_fourX :: Oversample
#_step Source
_step :: Transition
#_none Source
_none :: Oversample
#_numeric Source
_numeric :: forall payload. AudioNumeric -> AudioParameter payload
#_numeric' Source
_numeric' :: forall payload. AudioNumeric' -> AudioParameter payload
#_realImg Source
_realImg :: RealImg -> PeriodicOscSpec
#_sudden Source
_sudden :: forall payload. AudioSudden -> AudioParameter payload
#_sudden' Source
_sudden' :: forall payload. AudioSudden' -> AudioParameter payload
#_twoX Source
_twoX :: Oversample
#_unit Source
_unit :: forall payload. AudioUnit payload -> AudioParameter payload
#_unit' Source
_unit' :: forall payload. AudioUnit' payload -> AudioParameter payload
#apOff Source
apOff :: AudioOnOff
#apOn Source
apOn :: AudioOnOff
#ToAudioOnOff Source
#ToAudioParameter Source
class ToAudioParameter i payload where
Members
toAudioParameter :: i -> AudioParameter payload
Instances
ToAudioParameter Number payload
(TypeEquals p0 p1) => ToAudioParameter (AudioParameter p0) p1
ToAudioParameter AudioNumeric p
ToAudioParameter AudioSudden p
ToAudioParameter AudioCancel p
ToAudioParameter AudioEnvelope p
(TypeEquals p0 p1) => ToAudioParameter (AudioUnit p0) p1
(TypeEquals p0 p1) => ToAudioParameter (Audible D1 p0) p1
#silence Source
silence :: forall outputChannels payload. AudibleChild outputChannels payload
#sound Source
sound :: forall outputChannels payload. Audible outputChannels payload -> AudibleChild outputChannels payload