Module
WAGS.Create.Optionals
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
This module provides functions for the construction of audio units that more closely resemble the overloaded constructors of the Web Audio API.
#Allpass Source
data Allpass
Constructors
Instances
(Paramable a) => ConvertOption Allpass "freq" a AudioParameter
(Paramable a) => ConvertOption Allpass "q" a AudioParameter
(ConvertOptionsWithDefaults Allpass (Record AllpassOptional) (Record provided) (Record AllpassAll)) => AllpassCtor (Record provided) (b -> Tuple (Allpass AudioParameter AudioParameter) b)
(Paramable a) => AllpassCtor a (b -> Tuple (Allpass AudioParameter AudioParameter) b)
#AllpassOptional Source
type AllpassOptional = (q :: AudioParameter)
#AllpassAll Source
type AllpassAll = (freq :: AudioParameter | AllpassOptional)
#AllpassCtor Source
class AllpassCtor i allpass | i -> allpass where
Members
allpass :: i -> allpass
Instances
(ConvertOptionsWithDefaults Allpass (Record AllpassOptional) (Record provided) (Record AllpassAll)) => AllpassCtor (Record provided) (b -> Tuple (Allpass AudioParameter AudioParameter) b)
(Paramable a) => AllpassCtor a (b -> Tuple (Allpass AudioParameter AudioParameter) b)
#CAllpass Source
type CAllpass a = (Allpass AudioParameter AudioParameter) /\ a
#Bandpass Source
data Bandpass
Constructors
Instances
(Paramable a) => ConvertOption Bandpass "freq" a AudioParameter
(Paramable a) => ConvertOption Bandpass "q" a AudioParameter
(ConvertOptionsWithDefaults Bandpass (Record BandpassOptional) (Record provided) (Record BandpassAll)) => BandpassCtor (Record provided) (b -> Tuple (Bandpass AudioParameter AudioParameter) b)
(Paramable a) => BandpassCtor a (b -> Tuple (Bandpass AudioParameter AudioParameter) b)
#BandpassOptional Source
type BandpassOptional = (q :: AudioParameter)
#BandpassAll Source
type BandpassAll = (freq :: AudioParameter | BandpassOptional)
#BandpassCtor Source
class BandpassCtor i bandpass | i -> bandpass where
Members
bandpass :: i -> bandpass
Create a bandpass filter, connecting it to another unit
bandpass { freq: 440.0 } { sinOsc: unit } bandpass { freq: 440.0, q: 1.0 } { sinOsc: unit } bandpass 440.0 { sinOsc: unit }
Instances
(ConvertOptionsWithDefaults Bandpass (Record BandpassOptional) (Record provided) (Record BandpassAll)) => BandpassCtor (Record provided) (b -> Tuple (Bandpass AudioParameter AudioParameter) b)
(Paramable a) => BandpassCtor a (b -> Tuple (Bandpass AudioParameter AudioParameter) b)
#CBandpass Source
type CBandpass a = (Bandpass AudioParameter AudioParameter) /\ a
#Constant Source
data Constant
Constructors
Instances
(Paramable a) => ConvertOption Constant "offset" a AudioParameter
ConvertOption Constant "onOff" OnOff APOnOff
ConvertOption Constant "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults Constant (Record ConstantOptional) (Record provided) (Record ConstantAll)) => ConstantCtor (Record provided) (Tuple (Constant APOnOff AudioParameter) (Record ()))
(Paramable a) => ConstantCtor a (Tuple (Constant APOnOff AudioParameter) (Record ()))
#ConstantOptional Source
type ConstantOptional = (onOff :: APOnOff)
#ConstantAll Source
type ConstantAll = (offset :: AudioParameter | ConstantOptional)
#ConstantCtor Source
class ConstantCtor i o | i -> o where
Members
constant :: i -> o
Make a constant value
constant 0.5
Instances
(ConvertOptionsWithDefaults Constant (Record ConstantOptional) (Record provided) (Record ConstantAll)) => ConstantCtor (Record provided) (Tuple (Constant APOnOff AudioParameter) (Record ()))
(Paramable a) => ConstantCtor a (Tuple (Constant APOnOff AudioParameter) (Record ()))
#CConvolver Source
type CConvolver a b = (Convolver a) /\ b
#delay Source
delay :: forall a b. Paramable a => a -> b -> (Delay AudioParameter) /\ b
Make a delay unit.
delay 0.5 (playBuf "track")
#DynamicsCompressor Source
data DynamicsCompressor
Constructors
Instances
(Paramable a) => ConvertOption DynamicsCompressor "threshold" a AudioParameter
(Paramable a) => ConvertOption DynamicsCompressor "knee" a AudioParameter
(Paramable a) => ConvertOption DynamicsCompressor "ratio" a AudioParameter
(Paramable a) => ConvertOption DynamicsCompressor "attack" a AudioParameter
(Paramable a) => ConvertOption DynamicsCompressor "release" a AudioParameter
(ConvertOptionsWithDefaults DynamicsCompressor (Record DynamicsCompressorOptional) (Record provided) (Record DynamicsCompressorAll)) => DynamicsCompressorCtor (Record provided) (b -> Tuple (DynamicsCompressor AudioParameter AudioParameter AudioParameter AudioParameter AudioParameter) b)
#DynamicsCompressorOptional Source
type DynamicsCompressorOptional = (attack :: AudioParameter, knee :: AudioParameter, ratio :: AudioParameter, release :: AudioParameter, threshold :: AudioParameter)
#DynamicsCompressorCtor Source
class DynamicsCompressorCtor i compressor | i -> compressor where
Members
compressor :: i -> compressor
Make a compressor.
compressor { threshold: -10.0 } { buf: playBuf "track" } compressor { knee: 20.0, ratio: 10.0 } { buf: playBuf "track" } compressor { attack: 0.01, release: 0.3 } { buf: playBuf "track" }
Instances
#mix Source
mix :: forall a. a -> (Gain AudioParameter) /\ a
Mix together several audio units
mix (playBuf (Proxy :: _ "hello") /\ playBuf (Proxy :: _ "world") /\ unit)
#Mix Source
type Mix = Gain AudioParameter
#Highpass Source
data Highpass
Constructors
Instances
(Paramable a) => ConvertOption Highpass "freq" a AudioParameter
(Paramable a) => ConvertOption Highpass "q" a AudioParameter
(ConvertOptionsWithDefaults Highpass (Record HighpassOptional) (Record provided) (Record HighpassAll)) => HighpassCtor (Record provided) (b -> Tuple (Highpass AudioParameter AudioParameter) b)
(Paramable a) => HighpassCtor a (b -> Tuple (Highpass AudioParameter AudioParameter) b)
#HighpassOptional Source
type HighpassOptional = (q :: AudioParameter)
#HighpassAll Source
type HighpassAll = (freq :: AudioParameter | HighpassOptional)
#HighpassCtor Source
class HighpassCtor i highpass | i -> highpass where
Members
highpass :: i -> highpass
Make a highpass filter
highpass { freq: 440.0 } { osc: sinOsc 440.0 } highpass { freq: 440.0, q: 1.0 } { osc: sinOsc 440.0 } highpass 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Highpass (Record HighpassOptional) (Record provided) (Record HighpassAll)) => HighpassCtor (Record provided) (b -> Tuple (Highpass AudioParameter AudioParameter) b)
(Paramable a) => HighpassCtor a (b -> Tuple (Highpass AudioParameter AudioParameter) b)
#CHighpass Source
type CHighpass a = (Highpass AudioParameter AudioParameter) /\ a
#Highshelf Source
data Highshelf
Constructors
Instances
(Paramable a) => ConvertOption Highshelf "freq" a AudioParameter
(Paramable a) => ConvertOption Highshelf "gain" a AudioParameter
(ConvertOptionsWithDefaults Highshelf (Record HighshelfOptional) (Record provided) (Record HighshelfAll)) => HighshelfCtor (Record provided) (b -> Tuple (Highshelf AudioParameter AudioParameter) b)
(Paramable a) => HighshelfCtor a (b -> Tuple (Highshelf AudioParameter AudioParameter) b)
#HighshelfOptional Source
type HighshelfOptional = (gain :: AudioParameter)
#HighshelfAll Source
type HighshelfAll = (freq :: AudioParameter | HighshelfOptional)
#HighshelfCtor Source
class HighshelfCtor i highshelf | i -> highshelf where
Members
highshelf :: i -> highshelf
Make a highshelf filter
highshelf { freq: 440.0 } { osc: sinOsc 440.0 } highshelf { freq: 440.0, gain: 1.0 } { osc: sinOsc 440.0 } highshelf 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Highshelf (Record HighshelfOptional) (Record provided) (Record HighshelfAll)) => HighshelfCtor (Record provided) (b -> Tuple (Highshelf AudioParameter AudioParameter) b)
(Paramable a) => HighshelfCtor a (b -> Tuple (Highshelf AudioParameter AudioParameter) b)
#CHighshelf Source
type CHighshelf a = (Highshelf AudioParameter AudioParameter) /\ a
#LoopBuf Source
data LoopBuf
Constructors
Instances
(Paramable a) => ConvertOption LoopBuf "playbackRate" a AudioParameter
ConvertOption LoopBuf "onOff" OnOff APOnOff
ConvertOption LoopBuf "onOff" APOnOff APOnOff
ConvertOption LoopBuf "loopStart" Number Number
ConvertOption LoopBuf "loopEnd" Number Number
(ConvertOptionsWithDefaults LoopBuf (Record LoopBufOptional) (Record provided) (Record LoopBufAll)) => LoopBufCtor (Record provided) (String -> Tuple (LoopBuf String APOnOff AudioParameter Number Number) (Record ()))
LoopBufCtor String (Tuple (LoopBuf String APOnOff AudioParameter Number Number) (Record ()))
#LoopBufOptional Source
type LoopBufOptional = (loopEnd :: Number, loopStart :: Number, onOff :: APOnOff, playbackRate :: AudioParameter)
#LoopBufAll Source
type LoopBufAll = LoopBufOptional
#LoopBufCtor Source
class LoopBufCtor i loopBuf | i -> loopBuf where
Members
loopBuf :: i -> loopBuf
Make a looping buffer.
loopBuf { playbackRate: 1.0 } "track" loopBuf { playbackRate: 1.0, loopStart: 0.5 } "track" loopBuf "track"
Instances
(ConvertOptionsWithDefaults LoopBuf (Record LoopBufOptional) (Record provided) (Record LoopBufAll)) => LoopBufCtor (Record provided) (String -> Tuple (LoopBuf String APOnOff AudioParameter Number Number) (Record ()))
LoopBufCtor String (Tuple (LoopBuf String APOnOff AudioParameter Number Number) (Record ()))
#Lowpass Source
data Lowpass
Constructors
Instances
(Paramable a) => ConvertOption Lowpass "freq" a AudioParameter
(Paramable a) => ConvertOption Lowpass "q" a AudioParameter
(ConvertOptionsWithDefaults Lowpass (Record LowpassOptional) (Record provided) (Record LowpassAll)) => LowpassCtor (Record provided) (b -> Tuple (Lowpass AudioParameter AudioParameter) b)
(Paramable a) => LowpassCtor a (b -> Tuple (Lowpass AudioParameter AudioParameter) b)
#LowpassOptional Source
type LowpassOptional = (q :: AudioParameter)
#LowpassAll Source
type LowpassAll = (freq :: AudioParameter | LowpassOptional)
#LowpassCtor Source
class LowpassCtor i lowpass | i -> lowpass where
Members
lowpass :: i -> lowpass
Make a lowpass filter
lowpass { freq: 440.0 } { osc: sinOsc 440.0 } lowpass { freq: 440.0, q: 1.0 } { osc: sinOsc 440.0 } lowpass 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Lowpass (Record LowpassOptional) (Record provided) (Record LowpassAll)) => LowpassCtor (Record provided) (b -> Tuple (Lowpass AudioParameter AudioParameter) b)
(Paramable a) => LowpassCtor a (b -> Tuple (Lowpass AudioParameter AudioParameter) b)
#CLowpass Source
type CLowpass a = (Lowpass AudioParameter AudioParameter) /\ a
#Lowshelf Source
data Lowshelf
Constructors
Instances
(Paramable a) => ConvertOption Lowshelf "freq" a AudioParameter
(Paramable a) => ConvertOption Lowshelf "gain" a AudioParameter
(ConvertOptionsWithDefaults Lowshelf (Record LowshelfOptional) (Record provided) (Record LowshelfAll)) => LowshelfCtor (Record provided) (b -> Tuple (Lowshelf AudioParameter AudioParameter) b)
(Paramable a) => LowshelfCtor a (b -> Tuple (Lowshelf AudioParameter AudioParameter) b)
#LowshelfOptional Source
type LowshelfOptional = (gain :: AudioParameter)
#LowshelfAll Source
type LowshelfAll = (freq :: AudioParameter | LowshelfOptional)
#LowshelfCtor Source
class LowshelfCtor i lowshelf | i -> lowshelf where
Members
lowshelf :: i -> lowshelf
Make a lowshelf filter
lowshelf { freq: 440.0 } { osc: sinOsc 440.0 } lowshelf { freq: 440.0, gain: 1.0 } { osc: sinOsc 440.0 } lowshelf 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Lowshelf (Record LowshelfOptional) (Record provided) (Record LowshelfAll)) => LowshelfCtor (Record provided) (b -> Tuple (Lowshelf AudioParameter AudioParameter) b)
(Paramable a) => LowshelfCtor a (b -> Tuple (Lowshelf AudioParameter AudioParameter) b)
#CLowshelf Source
type CLowshelf a = (Lowshelf AudioParameter AudioParameter) /\ a
#microphone Source
microphone :: Microphone /\ (Record ())
#CMicrophone Source
type CMicrophone = Microphone /\ (Record ())
#Notch Source
data Notch
Constructors
Instances
(Paramable a) => ConvertOption Notch "freq" a AudioParameter
(Paramable a) => ConvertOption Notch "q" a AudioParameter
(ConvertOptionsWithDefaults Notch (Record NotchOptional) (Record provided) (Record NotchAll)) => NotchCtor (Record provided) (b -> Tuple (Notch AudioParameter AudioParameter) b)
(Paramable a) => NotchCtor a (b -> Tuple (Notch AudioParameter AudioParameter) b)
#NotchOptional Source
type NotchOptional = (q :: AudioParameter)
#NotchAll Source
type NotchAll = (freq :: AudioParameter | NotchOptional)
#NotchCtor Source
class NotchCtor i notch | i -> notch where
Members
notch :: i -> notch
Make a notch (band-reject) filter
notch { freq: 440.0 } { osc: sinOsc 440.0 } notch { freq: 440.0, gain: 1.0 } { osc: sinOsc 440.0 } notch 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Notch (Record NotchOptional) (Record provided) (Record NotchAll)) => NotchCtor (Record provided) (b -> Tuple (Notch AudioParameter AudioParameter) b)
(Paramable a) => NotchCtor a (b -> Tuple (Notch AudioParameter AudioParameter) b)
#CNotch Source
type CNotch a = (Notch AudioParameter AudioParameter) /\ a
#Peaking Source
data Peaking
Constructors
Instances
(Paramable a) => ConvertOption Peaking "freq" a AudioParameter
(Paramable a) => ConvertOption Peaking "q" a AudioParameter
(Paramable a) => ConvertOption Peaking "gain" a AudioParameter
(ConvertOptionsWithDefaults Peaking (Record PeakingOptional) (Record provided) (Record PeakingAll)) => PeakingCtor (Record provided) (b -> Tuple (Peaking AudioParameter AudioParameter AudioParameter) b)
(Paramable a) => PeakingCtor a (b -> Tuple (Peaking AudioParameter AudioParameter AudioParameter) b)
#PeakingOptional Source
type PeakingOptional = (gain :: AudioParameter, q :: AudioParameter)
#PeakingAll Source
type PeakingAll = (freq :: AudioParameter | PeakingOptional)
#PeakingCtor Source
class PeakingCtor i peaking | i -> peaking where
Members
peaking :: i -> peaking
Make a peaking filter
peaking { freq: 440.0 } { osc: sinOsc 440.0 } peaking { freq: 440.0, gain: 1.0 } { osc: sinOsc 440.0 } peaking 440.0 { osc: sinOsc 440.0 }
Instances
(ConvertOptionsWithDefaults Peaking (Record PeakingOptional) (Record provided) (Record PeakingAll)) => PeakingCtor (Record provided) (b -> Tuple (Peaking AudioParameter AudioParameter AudioParameter) b)
(Paramable a) => PeakingCtor a (b -> Tuple (Peaking AudioParameter AudioParameter AudioParameter) b)
#CPeaking Source
type CPeaking a = (Peaking AudioParameter AudioParameter AudioParameter) /\ a
#CanBeCoercedToPeriodicOsc Source
class CanBeCoercedToPeriodicOsc (canBeCoercedToPeriodicOsc :: Type)
Instances
CanBeCoercedToPeriodicOsc String
CanBeCoercedToPeriodicOsc (Tuple (Vec size Number) (Vec size Number))
#PeriodicOsc Source
data PeriodicOsc
Constructors
Instances
(Paramable a) => ConvertOption PeriodicOsc "freq" a AudioParameter
ConvertOption PeriodicOsc "onOff" OnOff APOnOff
ConvertOption PeriodicOsc "onOff" APOnOff APOnOff
(CanBeCoercedToPeriodicOsc wave) => ConvertOption PeriodicOsc "waveform" wave wave
(ConvertOptionsWithDefaults PeriodicOsc (Record PeriodicOscOptional) (Record provided) (Record (PeriodicOscAll wave))) => PeriodicOscCtor (Record provided) (Tuple (PeriodicOsc wave APOnOff AudioParameter) (Record ()))
(CanBeCoercedToPeriodicOsc wave, Paramable a) => PeriodicOscCtor wave (a -> Tuple (PeriodicOsc wave APOnOff AudioParameter) (Record ()))
#PeriodicOscOptional Source
type PeriodicOscOptional = (onOff :: APOnOff)
#PeriodicOscAll Source
type PeriodicOscAll wave = (freq :: AudioParameter, wave :: wave | PeriodicOscOptional)
#PeriodicOscCtor Source
class PeriodicOscCtor i o | i -> o where
Members
periodicOsc :: i -> o
Make a periodicOsc value
periodicOsc "my-osc" 0.5
Instances
(ConvertOptionsWithDefaults PeriodicOsc (Record PeriodicOscOptional) (Record provided) (Record (PeriodicOscAll wave))) => PeriodicOscCtor (Record provided) (Tuple (PeriodicOsc wave APOnOff AudioParameter) (Record ()))
(CanBeCoercedToPeriodicOsc wave, Paramable a) => PeriodicOscCtor wave (a -> Tuple (PeriodicOsc wave APOnOff AudioParameter) (Record ()))
#CPeriodicOsc Source
type CPeriodicOsc periodicOsc = (PeriodicOsc periodicOsc APOnOff AudioParameter) /\ (Record ())
#PlayBuf Source
data PlayBuf
Constructors
Instances
(Paramable a) => ConvertOption PlayBuf "playbackRate" a AudioParameter
ConvertOption PlayBuf "onOff" OnOff APOnOff
ConvertOption PlayBuf "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults PlayBuf (Record PlayBufOptional) (Record provided) (Record PlayBufAll)) => PlayBufCtor (Record provided) (String -> Tuple (PlayBuf String Number APOnOff AudioParameter) (Record ()))
PlayBufCtor String (Tuple (PlayBuf String Number APOnOff AudioParameter) (Record ()))
#PlayBufOptional Source
type PlayBufOptional = (bufferOffset :: Number, onOff :: APOnOff, playbackRate :: AudioParameter)
#PlayBufAll Source
type PlayBufAll = PlayBufOptional
#PlayBufCtor Source
class PlayBufCtor i playBuf | i -> playBuf where
Members
playBuf :: i -> playBuf
Make a unit that plays from a buffer.
playBuf { playbackRate: 1.0 } "track" playBuf { playbackRate: 1.0, bufferOffset: 0.5 } "track" playBuf "track"
Instances
(ConvertOptionsWithDefaults PlayBuf (Record PlayBufOptional) (Record provided) (Record PlayBufAll)) => PlayBufCtor (Record provided) (String -> Tuple (PlayBuf String Number APOnOff AudioParameter) (Record ()))
PlayBufCtor String (Tuple (PlayBuf String Number APOnOff AudioParameter) (Record ()))
#SawtoothOsc Source
data SawtoothOsc
Constructors
Instances
(Paramable a) => ConvertOption SawtoothOsc "freq" a AudioParameter
ConvertOption SawtoothOsc "onOff" OnOff APOnOff
ConvertOption SawtoothOsc "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults SawtoothOsc (Record SawtoothOscOptional) (Record provided) (Record SawtoothOscAll)) => SawtoothOscCtor (Record provided) (Tuple (SawtoothOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SawtoothOscCtor a (Tuple (SawtoothOsc APOnOff AudioParameter) (Record ()))
#SawtoothOscOptional Source
type SawtoothOscOptional = (onOff :: APOnOff)
#SawtoothOscAll Source
type SawtoothOscAll = (freq :: AudioParameter | SawtoothOscOptional)
#SawtoothOscCtor Source
class SawtoothOscCtor i o | i -> o where
Members
sawtoothOsc :: i -> o
Make a sawtoothOsc value
sawtoothOsc 0.5
Instances
(ConvertOptionsWithDefaults SawtoothOsc (Record SawtoothOscOptional) (Record provided) (Record SawtoothOscAll)) => SawtoothOscCtor (Record provided) (Tuple (SawtoothOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SawtoothOscCtor a (Tuple (SawtoothOsc APOnOff AudioParameter) (Record ()))
#CSawtoothOsc Source
type CSawtoothOsc = (SawtoothOsc APOnOff AudioParameter) /\ (Record ())
#SinOsc Source
data SinOsc
Constructors
Instances
(Paramable a) => ConvertOption SinOsc "freq" a AudioParameter
ConvertOption SinOsc "onOff" OnOff APOnOff
ConvertOption SinOsc "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults SinOsc (Record SinOscOptional) (Record provided) (Record SinOscAll)) => SinOscCtor (Record provided) (Tuple (SinOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SinOscCtor a (Tuple (SinOsc APOnOff AudioParameter) (Record ()))
#SinOscOptional Source
type SinOscOptional = (onOff :: APOnOff)
#SinOscAll Source
type SinOscAll = (freq :: AudioParameter | SinOscOptional)
#SinOscCtor Source
class SinOscCtor i o | i -> o where
Members
sinOsc :: i -> o
Make a sinOsc value
sinOsc 0.5
Instances
(ConvertOptionsWithDefaults SinOsc (Record SinOscOptional) (Record provided) (Record SinOscAll)) => SinOscCtor (Record provided) (Tuple (SinOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SinOscCtor a (Tuple (SinOsc APOnOff AudioParameter) (Record ()))
#SquareOsc Source
data SquareOsc
Constructors
Instances
(Paramable a) => ConvertOption SquareOsc "freq" a AudioParameter
ConvertOption SquareOsc "onOff" OnOff APOnOff
ConvertOption SquareOsc "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults SquareOsc (Record SquareOscOptional) (Record provided) (Record SquareOscAll)) => SquareOscCtor (Record provided) (Tuple (SquareOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SquareOscCtor a (Tuple (SquareOsc APOnOff AudioParameter) (Record ()))
#SquareOscOptional Source
type SquareOscOptional = (onOff :: APOnOff)
#SquareOscAll Source
type SquareOscAll = (freq :: AudioParameter | SquareOscOptional)
#SquareOscCtor Source
class SquareOscCtor i o | i -> o where
Members
squareOsc :: i -> o
Make a squareOsc value
squareOsc 0.5
Instances
(ConvertOptionsWithDefaults SquareOsc (Record SquareOscOptional) (Record provided) (Record SquareOscAll)) => SquareOscCtor (Record provided) (Tuple (SquareOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => SquareOscCtor a (Tuple (SquareOsc APOnOff AudioParameter) (Record ()))
#CSquareOsc Source
type CSquareOsc = (SquareOsc APOnOff AudioParameter) /\ (Record ())
#pan Source
pan :: forall a b. Paramable a => a -> b -> (StereoPanner AudioParameter) /\ b
Pan audio.
pan 0.5 { buf: playBuf "my-track" }
#CStereoPanner Source
type CStereoPanner a = (StereoPanner AudioParameter) /\ a
#TriangleOsc Source
data TriangleOsc
Constructors
Instances
(Paramable a) => ConvertOption TriangleOsc "freq" a AudioParameter
ConvertOption TriangleOsc "onOff" OnOff APOnOff
ConvertOption TriangleOsc "onOff" APOnOff APOnOff
(ConvertOptionsWithDefaults TriangleOsc (Record TriangleOscOptional) (Record provided) (Record TriangleOscAll)) => TriangleOscCtor (Record provided) (Tuple (TriangleOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => TriangleOscCtor a (Tuple (TriangleOsc APOnOff AudioParameter) (Record ()))
#TriangleOscOptional Source
type TriangleOscOptional = (onOff :: APOnOff)
#TriangleOscAll Source
type TriangleOscAll = (freq :: AudioParameter | TriangleOscOptional)
#TriangleOscCtor Source
class TriangleOscCtor i o | i -> o where
Members
triangleOsc :: i -> o
Make a triangleOsc value
triangleOsc 0.5
Instances
(ConvertOptionsWithDefaults TriangleOsc (Record TriangleOscOptional) (Record provided) (Record TriangleOscAll)) => TriangleOscCtor (Record provided) (Tuple (TriangleOsc APOnOff AudioParameter) (Record ()))
(Paramable a) => TriangleOscCtor a (Tuple (TriangleOsc APOnOff AudioParameter) (Record ()))
#CTriangleOsc Source
type CTriangleOsc = (TriangleOsc APOnOff AudioParameter) /\ (Record ())
#waveShaper Source
waveShaper :: forall a b c. IsSymbol a => IsOversample b => Proxy a -> b -> c -> (WaveShaper a b) /\ c
Apply distorion to audio
waveShaper (Proxy :: _ "my-wave") OversampleNone { buf: playBuf "my-track" }
#CWaveShaper Source
type CWaveShaper a b c = (WaveShaper a b) /\ c
- Modules
- FRP.
Event. MIDI - WAGS.
Change - WAGS.
Change. Optionals - WAGS.
Comonad - WAGS.
Connect - WAGS.
Control. Functions - WAGS.
Control. Functions. Validated - WAGS.
Control. Indexed - WAGS.
Control. Types - WAGS.
Create - WAGS.
Create. Optionals - WAGS.
CreateT - WAGS.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Edgeable - WAGS.
Graph. AudioUnit - WAGS.
Graph. Edge - WAGS.
Graph. Graph - WAGS.
Graph. Node - WAGS.
Graph. Oversample - WAGS.
Graph. Paramable - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Math - WAGS.
Patch - WAGS.
Rendered - WAGS.
Run - WAGS.
Util - WAGS.
Validation
Create an allpass filter, connecting it to another unit