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 AllpassConstructors
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 whereMembers
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 BandpassConstructors
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 whereMembers
bandpass :: i -> bandpassCreate 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 ConstantConstructors
Instances
(Paramable a) => ConvertOption Constant "offset" a AudioParameterConvertOption Constant "onOff" OnOff APOnOffConvertOption 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 whereMembers
constant :: i -> oMake 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) /\ bMake a delay unit.
delay 0.5 (playBuf "track")
#DynamicsCompressor Source
data DynamicsCompressorConstructors
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 whereMembers
compressor :: i -> compressorMake 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) /\ aMix together several audio units
mix (playBuf (Proxy :: _ "hello") /\ playBuf (Proxy :: _ "world") /\ unit)
#Mix Source
type Mix = Gain AudioParameter#Highpass Source
data HighpassConstructors
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 whereMembers
highpass :: i -> highpassMake 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 HighshelfConstructors
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 whereMembers
highshelf :: i -> highshelfMake 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 LoopBufConstructors
Instances
(Paramable a) => ConvertOption LoopBuf "playbackRate" a AudioParameterConvertOption LoopBuf "onOff" OnOff APOnOffConvertOption LoopBuf "onOff" APOnOff APOnOffConvertOption LoopBuf "loopStart" Number NumberConvertOption 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 whereMembers
loopBuf :: i -> loopBufMake 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 LowpassConstructors
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 whereMembers
lowpass :: i -> lowpassMake 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 LowshelfConstructors
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 whereMembers
lowshelf :: i -> lowshelfMake 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 NotchConstructors
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 whereMembers
notch :: i -> notchMake 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 PeakingConstructors
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 whereMembers
peaking :: i -> peakingMake 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 StringCanBeCoercedToPeriodicOsc (Tuple (Vec size Number) (Vec size Number))
#PeriodicOsc Source
data PeriodicOscConstructors
Instances
(Paramable a) => ConvertOption PeriodicOsc "freq" a AudioParameterConvertOption PeriodicOsc "onOff" OnOff APOnOffConvertOption 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 whereMembers
periodicOsc :: i -> oMake 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 PlayBufConstructors
Instances
(Paramable a) => ConvertOption PlayBuf "playbackRate" a AudioParameterConvertOption PlayBuf "onOff" OnOff APOnOffConvertOption 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 whereMembers
playBuf :: i -> playBufMake 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 SawtoothOscConstructors
Instances
(Paramable a) => ConvertOption SawtoothOsc "freq" a AudioParameterConvertOption SawtoothOsc "onOff" OnOff APOnOffConvertOption 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 whereMembers
sawtoothOsc :: i -> oMake 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 SinOscConstructors
Instances
(Paramable a) => ConvertOption SinOsc "freq" a AudioParameterConvertOption SinOsc "onOff" OnOff APOnOffConvertOption 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 whereMembers
sinOsc :: i -> oMake 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 SquareOscConstructors
Instances
(Paramable a) => ConvertOption SquareOsc "freq" a AudioParameterConvertOption SquareOsc "onOff" OnOff APOnOffConvertOption 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 whereMembers
squareOsc :: i -> oMake 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) /\ bPan audio.
pan 0.5 { buf: playBuf "my-track" }
#CStereoPanner Source
type CStereoPanner a = (StereoPanner AudioParameter) /\ a#TriangleOsc Source
data TriangleOscConstructors
Instances
(Paramable a) => ConvertOption TriangleOsc "freq" a AudioParameterConvertOption TriangleOsc "onOff" OnOff APOnOffConvertOption 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 whereMembers
triangleOsc :: i -> oMake 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) /\ cApply 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