-- | SC3 UGen bindings (auto-generated).
module Sound.SC3.UGen.Bindings.DB where

import Sound.SC3.Common.Enum
import Sound.SC3.Common.Envelope
import Sound.SC3.Common.Rate
import Sound.SC3.Common.UId
import Sound.SC3.UGen.Type
import Sound.SC3.UGen.UGen

-- | Audio to control rate converter.
--
--  A2K [KR] in=0.0
a2k :: UGen -> UGen
a2k :: UGen -> UGen
a2k UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"A2K" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | FIXME: APF purpose.
--
--  APF [KR,AR] in=0.0 freq=440.0 radius=0.8;    FILTER: TRUE
apf :: UGen -> UGen -> UGen -> UGen
apf :: UGen -> UGen -> UGen -> UGen
apf UGen
in_ UGen
freq UGen
radius = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"APF" [UGen
in_,UGen
freq,UGen
radius] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Schroeder allpass delay line with cubic interpolation.
--
--  AllpassC [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
allpassC :: UGen -> UGen -> UGen -> UGen -> UGen
allpassC :: UGen -> UGen -> UGen -> UGen -> UGen
allpassC UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"AllpassC" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Schroeder allpass delay line with linear interpolation.
--
--  AllpassL [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
allpassL :: UGen -> UGen -> UGen -> UGen -> UGen
allpassL :: UGen -> UGen -> UGen -> UGen -> UGen
allpassL UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"AllpassL" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Schroeder allpass delay line with no interpolation.
--
--  AllpassN [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
allpassN :: UGen -> UGen -> UGen -> UGen -> UGen
allpassN :: UGen -> UGen -> UGen -> UGen -> UGen
allpassN UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"AllpassN" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Basic psychoacoustic amplitude compensation.
--
--  AmpComp [IR,KR,AR] freq=0.0 root=0.0 exp=0.3333
ampComp :: Rate -> UGen -> UGen -> UGen -> UGen
ampComp :: Rate -> UGen -> UGen -> UGen -> UGen
ampComp Rate
rate UGen
freq UGen
root UGen
exp_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"AmpComp" [UGen
freq,UGen
root,UGen
exp_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Basic psychoacoustic amplitude compensation (ANSI A-weighting curve).
--
--  AmpCompA [IR,KR,AR] freq=1000.0 root=0.0 minAmp=0.32 rootAmp=1.0
ampCompA :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
ampCompA :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
ampCompA Rate
rate UGen
freq UGen
root UGen
minAmp UGen
rootAmp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"AmpCompA" [UGen
freq,UGen
root,UGen
minAmp,UGen
rootAmp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Amplitude follower
--
--  Amplitude [KR,AR] in=0.0 attackTime=1.0e-2 releaseTime=1.0e-2
amplitude :: Rate -> UGen -> UGen -> UGen -> UGen
amplitude :: Rate -> UGen -> UGen -> UGen -> UGen
amplitude Rate
rate UGen
in_ UGen
attackTime UGen
releaseTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Amplitude" [UGen
in_,UGen
attackTime,UGen
releaseTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | All Pass Filter
--
--  BAllPass [AR] in=0.0 freq=1200.0 rq=1.0;    FILTER: TRUE
bAllPass :: UGen -> UGen -> UGen -> UGen
bAllPass :: UGen -> UGen -> UGen -> UGen
bAllPass UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BAllPass" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Band Pass Filter
--
--  BBandPass [AR] in=0.0 freq=1200.0 bw=1.0;    FILTER: TRUE
bBandPass :: UGen -> UGen -> UGen -> UGen
bBandPass :: UGen -> UGen -> UGen -> UGen
bBandPass UGen
in_ UGen
freq UGen
bw = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BBandPass" [UGen
in_,UGen
freq,UGen
bw] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Band reject filter
--
--  BBandStop [AR] in=0.0 freq=1200.0 bw=1.0;    FILTER: TRUE
bBandStop :: UGen -> UGen -> UGen -> UGen
bBandStop :: UGen -> UGen -> UGen -> UGen
bBandStop UGen
in_ UGen
freq UGen
bw = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BBandStop" [UGen
in_,UGen
freq,UGen
bw] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 12db/oct rolloff - 2nd order resonant  Hi Pass Filter
--
--  BHiPass [AR] in=0.0 freq=1200.0 rq=1.0;    FILTER: TRUE
bHiPass :: UGen -> UGen -> UGen -> UGen
bHiPass :: UGen -> UGen -> UGen -> UGen
bHiPass UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BHiPass" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Hi Shelf
--
--  BHiShelf [AR] in=0.0 freq=1200.0 rs=1.0 db=0.0;    FILTER: TRUE
bHiShelf :: UGen -> UGen -> UGen -> UGen -> UGen
bHiShelf :: UGen -> UGen -> UGen -> UGen -> UGen
bHiShelf UGen
in_ UGen
freq UGen
rs UGen
db = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BHiShelf" [UGen
in_,UGen
freq,UGen
rs,UGen
db] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 12db/oct rolloff - 2nd order resonant Low Pass Filter
--
--  BLowPass [AR] in=0.0 freq=1200.0 rq=1.0;    FILTER: TRUE
bLowPass :: UGen -> UGen -> UGen -> UGen
bLowPass :: UGen -> UGen -> UGen -> UGen
bLowPass UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BLowPass" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Low Shelf
--
--  BLowShelf [AR] in=0.0 freq=1200.0 rs=1.0 db=0.0;    FILTER: TRUE
bLowShelf :: UGen -> UGen -> UGen -> UGen -> UGen
bLowShelf :: UGen -> UGen -> UGen -> UGen -> UGen
bLowShelf UGen
in_ UGen
freq UGen
rs UGen
db = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BLowShelf" [UGen
in_,UGen
freq,UGen
rs,UGen
db] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2nd order Butterworth bandpass filter.
--
--  BPF [KR,AR] in=0.0 freq=440.0 rq=1.0;    FILTER: TRUE
bpf :: UGen -> UGen -> UGen -> UGen
bpf :: UGen -> UGen -> UGen -> UGen
bpf UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BPF" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two zero fixed midpass.
--
--  BPZ2 [KR,AR] in=0.0;    FILTER: TRUE
bpz2 :: UGen -> UGen
bpz2 :: UGen -> UGen
bpz2 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BPZ2" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Parametric equalizer
--
--  BPeakEQ [AR] in=0.0 freq=1200.0 rq=1.0 db=0.0;    FILTER: TRUE
bPeakEQ :: UGen -> UGen -> UGen -> UGen -> UGen
bPeakEQ :: UGen -> UGen -> UGen -> UGen -> UGen
bPeakEQ UGen
in_ UGen
freq UGen
rq UGen
db = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BPeakEQ" [UGen
in_,UGen
freq,UGen
rq,UGen
db] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2nd order Butterworth band reject filter.
--
--  BRF [KR,AR] in=0.0 freq=440.0 rq=1.0;    FILTER: TRUE
brf :: UGen -> UGen -> UGen -> UGen
brf :: UGen -> UGen -> UGen -> UGen
brf UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BRF" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two zero fixed midcut.
--
--  BRZ2 [KR,AR] in=0.0;    FILTER: TRUE
brz2 :: UGen -> UGen
brz2 :: UGen -> UGen
brz2 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"BRZ2" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Stereo signal balancer
--
--  Balance2 [KR,AR] left=0.0 right=0.0 pos=0.0 level=1.0;    FILTER: TRUE
balance2 :: UGen -> UGen -> UGen -> UGen -> UGen
balance2 :: UGen -> UGen -> UGen -> UGen -> UGen
balance2 UGen
left UGen
right UGen
pos UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"Balance2" [UGen
left,UGen
right,UGen
pos,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | physical model of bouncing object
--
--  Ball [KR,AR] in=0.0 g=1.0 damp=0.0 friction=1.0e-2
ball :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
ball :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
ball Rate
rate UGen
in_ UGen
g UGen
damp UGen
friction_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Ball" [UGen
in_,UGen
g,UGen
damp,UGen
friction_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Autocorrelation beat tracker
--
--  BeatTrack [KR] chain=0.0 lock=0.0
beatTrack :: Rate -> UGen -> UGen -> UGen
beatTrack :: Rate -> UGen -> UGen -> UGen
beatTrack Rate
rate UGen
chain UGen
lock = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BeatTrack" [UGen
chain,UGen
lock] Maybe [UGen]
forall a. Maybe a
Nothing Int
4 (Int -> Special
Special Int
0) UGenId
NoId

-- | Template matching beat tracker
--
--  BeatTrack2 [KR] busindex=0.0 numfeatures=0.0 windowsize=2.0 phaseaccuracy=2.0e-2 lock=0.0 weightingscheme=0.0
beatTrack2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
beatTrack2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
beatTrack2 Rate
rate UGen
busindex UGen
numfeatures UGen
windowsize UGen
phaseaccuracy UGen
lock UGen
weightingscheme = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BeatTrack2" [UGen
busindex,UGen
numfeatures,UGen
windowsize,UGen
phaseaccuracy,UGen
lock,UGen
weightingscheme] Maybe [UGen]
forall a. Maybe a
Nothing Int
6 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2D Ambisonic B-format panner.
--
--  BiPanB2 [KR,AR] inA=0.0 inB=0.0 azimuth=0.0 gain=1.0
biPanB2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
biPanB2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
biPanB2 Rate
rate UGen
inA UGen
inB UGen
azimuth UGen
gain = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BiPanB2" [UGen
inA,UGen
inB,UGen
azimuth,UGen
gain] Maybe [UGen]
forall a. Maybe a
Nothing Int
3 (Int -> Special
Special Int
0) UGenId
NoId

-- | Apply a binary operation to the values of an input UGen
--
--  BinaryOpUGen [] a=0.0 b=0.0;    FILTER: TRUE
binaryOpUGen :: UGen -> UGen -> UGen
binaryOpUGen :: UGen -> UGen -> UGen
binaryOpUGen UGen
a UGen
b = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR,Rate
DR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"BinaryOpUGen" [UGen
a,UGen
b] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Band limited impulse oscillator.
--
--  Blip [KR,AR] freq=440.0 numharm=200.0
blip :: Rate -> UGen -> UGen -> UGen
blip :: Rate -> UGen -> UGen -> UGen
blip Rate
rate UGen
freq UGen
numharm = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Blip" [UGen
freq,UGen
numharm] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | (Undocumented class)
--
--  BlockSize [IR]
blockSize :: UGen
blockSize :: UGen
blockSize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"BlockSize" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Brown Noise.
--
--  BrownNoise [KR,AR] ;    NONDET
brownNoise :: ID a => a -> Rate -> UGen
brownNoise :: a -> Rate -> UGen
brownNoise a
z Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BrownNoise" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Buffer based all pass delay line with cubic interpolation.
--
--  BufAllpassC [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufAllpassC :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassC :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassC UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufAllpassC" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based all pass delay line with linear interpolation.
--
--  BufAllpassL [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufAllpassL :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassL :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassL UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufAllpassL" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based all pass delay line with no interpolation.
--
--  BufAllpassN [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufAllpassN :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassN :: UGen -> UGen -> UGen -> UGen -> UGen
bufAllpassN UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufAllpassN" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Current number of channels of soundfile in buffer.
--
--  BufChannels [IR,KR] bufnum=0.0
bufChannels :: Rate -> UGen -> UGen
bufChannels :: Rate -> UGen -> UGen
bufChannels Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufChannels" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based comb delay line with cubic interpolation.
--
--  BufCombC [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufCombC :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombC :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombC UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufCombC" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based comb delay line with linear interpolation.
--
--  BufCombL [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufCombL :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombL :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombL UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufCombL" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based comb delay line with no interpolation.
--
--  BufCombN [AR] buf=0.0 in=0.0 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
bufCombN :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombN :: UGen -> UGen -> UGen -> UGen -> UGen
bufCombN UGen
buf UGen
in_ UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufCombN" [UGen
buf,UGen
in_,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based simple delay line with cubic interpolation.
--
--  BufDelayC [KR,AR] buf=0.0 in=0.0 delaytime=0.2;    FILTER: TRUE
bufDelayC :: UGen -> UGen -> UGen -> UGen
bufDelayC :: UGen -> UGen -> UGen -> UGen
bufDelayC UGen
buf UGen
in_ UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufDelayC" [UGen
buf,UGen
in_,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based simple delay line with linear interpolation.
--
--  BufDelayL [KR,AR] buf=0.0 in=0.0 delaytime=0.2;    FILTER: TRUE
bufDelayL :: UGen -> UGen -> UGen -> UGen
bufDelayL :: UGen -> UGen -> UGen -> UGen
bufDelayL UGen
buf UGen
in_ UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufDelayL" [UGen
buf,UGen
in_,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer based simple delay line with no interpolation.
--
--  BufDelayN [KR,AR] buf=0.0 in=0.0 delaytime=0.2;    FILTER: TRUE
bufDelayN :: UGen -> UGen -> UGen -> UGen
bufDelayN :: UGen -> UGen -> UGen -> UGen
bufDelayN UGen
buf UGen
in_ UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"BufDelayN" [UGen
buf,UGen
in_,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Current duration of soundfile in buffer.
--
--  BufDur [IR,KR] bufnum=0.0
bufDur :: Rate -> UGen -> UGen
bufDur :: Rate -> UGen -> UGen
bufDur Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufDur" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Current number of frames allocated in the buffer.
--
--  BufFrames [IR,KR] bufnum=0.0
bufFrames :: Rate -> UGen -> UGen
bufFrames :: Rate -> UGen -> UGen
bufFrames Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufFrames" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer rate scaling in respect to server samplerate.
--
--  BufRateScale [IR,KR] bufnum=0.0
bufRateScale :: Rate -> UGen -> UGen
bufRateScale :: Rate -> UGen -> UGen
bufRateScale Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufRateScale" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer reading oscillator.
--
--  BufRd [KR,AR] bufnum=0.0 phase=0.0 loop=1.0 interpolation=2.0;    NC INPUT: True, ENUMERATION INPUTS: 2=Loop, 3=Interpolation
bufRd :: Int -> Rate -> UGen -> UGen -> Loop UGen -> Interpolation UGen -> UGen
bufRd :: Int
-> Rate -> UGen -> UGen -> Loop UGen -> Interpolation UGen -> UGen
bufRd Int
numChannels Rate
rate UGen
bufnum UGen
phase Loop UGen
loop Interpolation UGen
interpolation = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufRd" [UGen
bufnum,UGen
phase,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop,Interpolation UGen -> UGen
forall t. Num t => Interpolation t -> t
from_interpolation Interpolation UGen
interpolation] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer sample rate.
--
--  BufSampleRate [IR,KR] bufnum=0.0
bufSampleRate :: Rate -> UGen -> UGen
bufSampleRate :: Rate -> UGen -> UGen
bufSampleRate Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufSampleRate" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Current number of samples in buffer.
--
--  BufSamples [IR,KR] bufnum=0.0
bufSamples :: Rate -> UGen -> UGen
bufSamples :: Rate -> UGen -> UGen
bufSamples Rate
rate UGen
bufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"BufSamples" [UGen
bufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Buffer writing oscillator.
--
--  BufWr [KR,AR] bufnum=0.0 phase=0.0 loop=1.0 *inputArray=0.0;    MCE=1, FILTER: TRUE, REORDERS INPUTS: [3,0,1,2], ENUMERATION INPUTS: 2=Loop
bufWr :: UGen -> UGen -> Loop UGen -> UGen -> UGen
bufWr :: UGen -> UGen -> Loop UGen -> UGen -> UGen
bufWr UGen
bufnum UGen
phase Loop UGen
loop UGen
inputArray = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
3]) String
"BufWr" [UGen
bufnum,UGen
phase,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
inputArray]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Chorusing wavetable oscillator.
--
--  COsc [KR,AR] bufnum=0.0 freq=440.0 beats=0.5
cOsc :: Rate -> UGen -> UGen -> UGen -> UGen
cOsc :: Rate -> UGen -> UGen -> UGen -> UGen
cOsc Rate
rate UGen
bufnum UGen
freq UGen
beats = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"COsc" [UGen
bufnum,UGen
freq,UGen
beats] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Test for infinity, not-a-number, and denormals
--
--  CheckBadValues [KR,AR] in=0.0 id=0.0 post=2.0;    FILTER: TRUE
checkBadValues :: UGen -> UGen -> UGen -> UGen
checkBadValues :: UGen -> UGen -> UGen -> UGen
checkBadValues UGen
in_ UGen
id_ UGen
post = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"CheckBadValues" [UGen
in_,UGen
id_,UGen
post] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Clip a signal outside given thresholds.
--
--  Clip [IR,KR,AR] in=0.0 lo=0.0 hi=1.0;    FILTER: TRUE
clip :: UGen -> UGen -> UGen -> UGen
clip :: UGen -> UGen -> UGen -> UGen
clip UGen
in_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Clip" [UGen
in_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Clip Noise.
--
--  ClipNoise [KR,AR] ;    NONDET
clipNoise :: ID a => a -> Rate -> UGen
clipNoise :: a -> Rate -> UGen
clipNoise a
z Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"ClipNoise" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Statistical gate.
--
--  CoinGate [KR,AR] prob=0.0 in=0.0;    FILTER: TRUE, NONDET
coinGate :: ID a => a -> UGen -> UGen -> UGen
coinGate :: a -> UGen -> UGen -> UGen
coinGate a
z UGen
prob UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"CoinGate" [UGen
prob,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Comb delay line with cubic interpolation.
--
--  CombC [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
combC :: UGen -> UGen -> UGen -> UGen -> UGen
combC :: UGen -> UGen -> UGen -> UGen -> UGen
combC UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"CombC" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Comb delay line with linear interpolation.
--
--  CombL [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
combL :: UGen -> UGen -> UGen -> UGen -> UGen
combL :: UGen -> UGen -> UGen -> UGen -> UGen
combL UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"CombL" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Comb delay line with no interpolation.
--
--  CombN [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0;    FILTER: TRUE
combN :: UGen -> UGen -> UGen -> UGen -> UGen
combN :: UGen -> UGen -> UGen -> UGen -> UGen
combN UGen
in_ UGen
maxdelaytime UGen
delaytime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"CombN" [UGen
in_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Compressor, expander, limiter, gate, ducker
--
--  Compander [AR] in=0.0 control=0.0 thresh=0.5 slopeBelow=1.0 slopeAbove=1.0 clampTime=1.0e-2 relaxTime=0.1;    FILTER: TRUE
compander :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
compander :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
compander UGen
in_ UGen
control_ UGen
thresh UGen
slopeBelow UGen
slopeAbove UGen
clampTime UGen
relaxTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Compander" [UGen
in_,UGen
control_,UGen
thresh,UGen
slopeBelow,UGen
slopeAbove,UGen
clampTime,UGen
relaxTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Compressor, expander, limiter, gate, ducker.
--
--  CompanderD [AR] in=0.0 thresh=0.5 slopeBelow=1.0 slopeAbove=1.0 clampTime=1.0e-2 relaxTime=1.0e-2
companderD :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
companderD :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
companderD Rate
rate UGen
in_ UGen
thresh UGen
slopeBelow UGen
slopeAbove UGen
clampTime UGen
relaxTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"CompanderD" [UGen
in_,UGen
thresh,UGen
slopeBelow,UGen
slopeAbove,UGen
clampTime,UGen
relaxTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Duration of one block
--
--  ControlDur [IR]
controlDur :: UGen
controlDur :: UGen
controlDur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"ControlDur" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Server control rate.
--
--  ControlRate [IR]
controlRate :: UGen
controlRate :: UGen
controlRate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"ControlRate" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Real-time convolver.
--
--  Convolution [AR] in=0.0 kernel=0.0 framesize=512.0
convolution :: Rate -> UGen -> UGen -> UGen -> UGen
convolution :: Rate -> UGen -> UGen -> UGen -> UGen
convolution Rate
rate UGen
in_ UGen
kernel UGen
framesize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Convolution" [UGen
in_,UGen
kernel,UGen
framesize] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Real-time fixed kernel convolver.
--
--  Convolution2 [AR] in=0.0 kernel=0.0 trigger=0.0 framesize=2048.0
convolution2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
convolution2 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
convolution2 Rate
rate UGen
in_ UGen
kernel UGen
trigger UGen
framesize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Convolution2" [UGen
in_,UGen
kernel,UGen
trigger,UGen
framesize] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Real-time convolver with linear interpolation
--
--  Convolution2L [AR] in=0.0 kernel=0.0 trigger=0.0 framesize=2048.0 crossfade=1.0
convolution2L :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
convolution2L :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
convolution2L Rate
rate UGen
in_ UGen
kernel UGen
trigger UGen
framesize UGen
crossfade = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Convolution2L" [UGen
in_,UGen
kernel,UGen
trigger,UGen
framesize,UGen
crossfade] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Time based convolver.
--
--  Convolution3 [KR,AR] in=0.0 kernel=0.0 trigger=0.0 framesize=2048.0
convolution3 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
convolution3 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
convolution3 Rate
rate UGen
in_ UGen
kernel UGen
trigger UGen
framesize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Convolution3" [UGen
in_,UGen
kernel,UGen
trigger,UGen
framesize] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Chaotic noise function.
--
--  Crackle [KR,AR] chaosParam=1.5
crackle :: Rate -> UGen -> UGen
crackle :: Rate -> UGen -> UGen
crackle Rate
rate UGen
chaosParam = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Crackle" [UGen
chaosParam] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Cusp map chaotic generator
--
--  CuspL [AR] freq=22050.0 a=1.0 b=1.9 xi=0.0
cuspL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
cuspL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
cuspL Rate
rate UGen
freq UGen
a UGen
b UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"CuspL" [UGen
freq,UGen
a,UGen
b,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Cusp map chaotic generator
--
--  CuspN [AR] freq=22050.0 a=1.0 b=1.9 xi=0.0
cuspN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
cuspN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
cuspN Rate
rate UGen
freq UGen
a UGen
b UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"CuspN" [UGen
freq,UGen
a,UGen
b,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Create a constant amplitude signal
--
--  DC [KR,AR] in=0.0
dc :: Rate -> UGen -> UGen
dc :: Rate -> UGen -> UGen
dc Rate
rate UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"DC" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand rate brownian movement generator.
--
--  Dbrown [DR] length=1.0e8 lo=0.0 hi=1.0 step=1.0e-2;    REORDERS INPUTS: [1,2,3,0], DEMAND/NONDET
dbrown :: ID a => a -> UGen -> UGen -> UGen -> UGen -> UGen
dbrown :: a -> UGen -> UGen -> UGen -> UGen -> UGen
dbrown a
z UGen
length_ UGen
lo UGen
hi UGen
step = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dbrown" [UGen
length_,UGen
lo,UGen
hi,UGen
step] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Buffer read demand ugen
--
--  Dbufrd [DR] bufnum=0.0 phase=0.0 loop=1.0;    ENUMERATION INPUTS: 2=Loop, DEMAND/NONDET
dbufrd :: ID a => a -> UGen -> UGen -> Loop UGen -> UGen
dbufrd :: a -> UGen -> UGen -> Loop UGen -> UGen
dbufrd a
z UGen
bufnum UGen
phase Loop UGen
loop = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dbufrd" [UGen
bufnum,UGen
phase,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Buffer write demand ugen
--
--  Dbufwr [DR] bufnum=0.0 phase=0.0 loop=1.0 input=0.0;    REORDERS INPUTS: [3,0,1,2], ENUMERATION INPUTS: 3=Loop, DEMAND/NONDET
dbufwr :: ID a => a -> UGen -> UGen -> UGen -> Loop UGen -> UGen
dbufwr :: a -> UGen -> UGen -> UGen -> Loop UGen -> UGen
dbufwr a
z UGen
bufnum UGen
phase UGen
loop Loop UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dbufwr" [UGen
bufnum,UGen
phase,UGen
loop,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
input] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Constrain a demand-rate stream to a given sum
--
--  Dconst [DR] sum=0.0 in=0.0 tolerance=1.0e-3;    DEMAND/NONDET
dconst :: ID a => a -> UGen -> UGen -> UGen -> UGen
dconst :: a -> UGen -> UGen -> UGen -> UGen
dconst a
z UGen
sum_ UGen
in_ UGen
tolerance = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dconst" [UGen
sum_,UGen
in_,UGen
tolerance] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Exponential decay
--
--  Decay [KR,AR] in=0.0 decayTime=1.0;    FILTER: TRUE
decay :: UGen -> UGen -> UGen
decay :: UGen -> UGen -> UGen
decay UGen
in_ UGen
decayTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Decay" [UGen
in_,UGen
decayTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential decay
--
--  Decay2 [KR,AR] in=0.0 attackTime=1.0e-2 decayTime=1.0;    FILTER: TRUE
decay2 :: UGen -> UGen -> UGen -> UGen
decay2 :: UGen -> UGen -> UGen -> UGen
decay2 UGen
in_ UGen
attackTime UGen
decayTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Decay2" [UGen
in_,UGen
attackTime,UGen
decayTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2D Ambisonic B-format decoder.
--
--  DecodeB2 [KR,AR] w=0.0 x=0.0 y=0.0 orientation=0.5;    NC INPUT: True
decodeB2 :: Int -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen
decodeB2 :: Int -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen
decodeB2 Int
numChannels Rate
rate UGen
w UGen
x UGen
y UGen
orientation = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"DecodeB2" [UGen
w,UGen
x,UGen
y,UGen
orientation] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Convert signal to modal pitch.
--
--  DegreeToKey [KR,AR] bufnum=0.0 in=0.0 octave=12.0;    FILTER: TRUE
degreeToKey :: UGen -> UGen -> UGen -> UGen
degreeToKey :: UGen -> UGen -> UGen -> UGen
degreeToKey UGen
bufnum UGen
in_ UGen
octave = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"DegreeToKey" [UGen
bufnum,UGen
in_,UGen
octave] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Tap a delay line from a DelTapWr UGen
--
--  DelTapRd [KR,AR] buffer=0.0 phase=0.0 delTime=0.0 interp=1.0;    FILTER: TRUE
delTapRd :: UGen -> UGen -> UGen -> UGen -> UGen
delTapRd :: UGen -> UGen -> UGen -> UGen -> UGen
delTapRd UGen
buffer UGen
phase UGen
delTime UGen
interp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"DelTapRd" [UGen
buffer,UGen
phase,UGen
delTime,UGen
interp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Write to a buffer for a DelTapRd UGen
--
--  DelTapWr [KR,AR] buffer=0.0 in=0.0;    FILTER: TRUE
delTapWr :: UGen -> UGen -> UGen
delTapWr :: UGen -> UGen -> UGen
delTapWr UGen
buffer UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"DelTapWr" [UGen
buffer,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Single sample delay.
--
--  Delay1 [KR,AR] in=0.0;    FILTER: TRUE
delay1 :: UGen -> UGen
delay1 :: UGen -> UGen
delay1 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Delay1" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two sample delay.
--
--  Delay2 [KR,AR] in=0.0;    FILTER: TRUE
delay2 :: UGen -> UGen
delay2 :: UGen -> UGen
delay2 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Delay2" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Simple delay line with cubic interpolation.
--
--  DelayC [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2;    FILTER: TRUE
delayC :: UGen -> UGen -> UGen -> UGen
delayC :: UGen -> UGen -> UGen -> UGen
delayC UGen
in_ UGen
maxdelaytime UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"DelayC" [UGen
in_,UGen
maxdelaytime,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Simple delay line with linear interpolation.
--
--  DelayL [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2;    FILTER: TRUE
delayL :: UGen -> UGen -> UGen -> UGen
delayL :: UGen -> UGen -> UGen -> UGen
delayL UGen
in_ UGen
maxdelaytime UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"DelayL" [UGen
in_,UGen
maxdelaytime,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Simple delay line with no interpolation.
--
--  DelayN [KR,AR] in=0.0 maxdelaytime=0.2 delaytime=0.2;    FILTER: TRUE
delayN :: UGen -> UGen -> UGen -> UGen
delayN :: UGen -> UGen -> UGen -> UGen
delayN UGen
in_ UGen
maxdelaytime UGen
delaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"DelayN" [UGen
in_,UGen
maxdelaytime,UGen
delaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand results from demand rate UGens.
--
--  Demand [KR,AR] trig=0.0 reset=0.0 *demandUGens=0.0;    MCE=1, FILTER: TRUE
demand :: UGen -> UGen -> UGen -> UGen
demand :: UGen -> UGen -> UGen -> UGen
demand UGen
trig_ UGen
reset UGen
demandUGens = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Demand" [UGen
trig_,UGen
reset] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
demandUGens]) ([UGen] -> Int
forall (t :: * -> *) a. Foldable t => t a -> Int
length (UGen -> [UGen]
mceChannels UGen
demandUGens) Int -> Int -> Int
forall a. Num a => a -> a -> a
+ Int
0) (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand rate envelope generator
--
--  DemandEnvGen [KR,AR] level=0.0 dur=0.0 shape=1.0 curve=0.0 gate=1.0 reset=1.0 levelScale=1.0 levelBias=0.0 timeScale=1.0 doneAction=0.0;    ENUMERATION INPUTS: 9=DoneAction
demandEnvGen :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
demandEnvGen :: Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> DoneAction UGen
-> UGen
demandEnvGen Rate
rate UGen
level UGen
dur UGen
shape UGen
curve UGen
gate_ UGen
reset UGen
levelScale UGen
levelBias UGen
timeScale DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"DemandEnvGen" [UGen
level,UGen
dur,UGen
shape,UGen
curve,UGen
gate_,UGen
reset,UGen
levelScale,UGen
levelBias,UGen
timeScale,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Search a buffer for a value
--
--  DetectIndex [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
detectIndex :: UGen -> UGen -> UGen
detectIndex :: UGen -> UGen -> UGen
detectIndex UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"DetectIndex" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Detect when input falls below an amplitude threshold
--
--  DetectSilence [KR,AR] in=0.0 amp=1.0e-4 time=0.1 doneAction=0.0;    FILTER: TRUE, ENUMERATION INPUTS: 3=DoneAction
detectSilence :: UGen -> UGen -> UGen -> DoneAction UGen -> UGen
detectSilence :: UGen -> UGen -> UGen -> DoneAction UGen -> UGen
detectSilence UGen
in_ UGen
amp UGen
time DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"DetectSilence" [UGen
in_,UGen
amp,UGen
time,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand rate geometric series UGen.
--
--  Dgeom [DR] length=1.0e8 start=1.0 grow=2.0;    REORDERS INPUTS: [1,2,0], DEMAND/NONDET
dgeom :: ID a => a -> UGen -> UGen -> UGen -> UGen
dgeom :: a -> UGen -> UGen -> UGen -> UGen
dgeom a
z UGen
length_ UGen
start UGen
grow = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dgeom" [UGen
length_,UGen
start,UGen
grow] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate brownian movement generator.
--
--  Dibrown [DR] length=1.0e8 lo=0.0 hi=1.0 step=1.0e-2;    REORDERS INPUTS: [1,2,3,0], DEMAND/NONDET
dibrown :: ID a => a -> UGen -> UGen -> UGen -> UGen -> UGen
dibrown :: a -> UGen -> UGen -> UGen -> UGen -> UGen
dibrown a
z UGen
length_ UGen
lo UGen
hi UGen
step = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dibrown" [UGen
length_,UGen
lo,UGen
hi,UGen
step] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Stream in audio from a file.
--
--  DiskIn [AR] bufnum=0.0 loop=0.0;    NC INPUT: True, ENUMERATION INPUTS: 1=Loop
diskIn :: Int -> UGen -> Loop UGen -> UGen
diskIn :: Int -> UGen -> Loop UGen -> UGen
diskIn Int
numChannels UGen
bufnum Loop UGen
loop = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"DiskIn" [UGen
bufnum,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Record to a soundfile to disk.
--
--  DiskOut [AR] bufnum=0.0 *channelsArray=0.0;    MCE=1
diskOut :: UGen -> UGen -> UGen
diskOut :: UGen -> UGen -> UGen
diskOut UGen
bufnum UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"DiskOut" [UGen
bufnum] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand rate white noise random generator.
--
--  Diwhite [DR] length=1.0e8 lo=0.0 hi=1.0;    REORDERS INPUTS: [1,2,0], DEMAND/NONDET
diwhite :: ID a => a -> UGen -> UGen -> UGen -> UGen
diwhite :: a -> UGen -> UGen -> UGen -> UGen
diwhite a
z UGen
length_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Diwhite" [UGen
length_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Monitors another UGen to see when it is finished
--
--  Done [KR] src=0.0
done :: UGen -> UGen
done :: UGen -> UGen
done UGen
src = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Done" [UGen
src] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Print the current output value of a demand rate UGen
--
--  Dpoll [DR] in=0.0 label=0.0 run=1.0 trigid=-1.0;    DEMAND/NONDET
dpoll :: ID a => a -> UGen -> UGen -> UGen -> UGen -> UGen
dpoll :: a -> UGen -> UGen -> UGen -> UGen -> UGen
dpoll a
z UGen
in_ UGen
label_ UGen
run UGen
trigid = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dpoll" [UGen
in_,UGen
label_,UGen
run,UGen
trigid] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate random sequence generator.
--
--  Drand [DR] repeats=1.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
drand :: ID a => a -> UGen -> UGen -> UGen
drand :: a -> UGen -> UGen -> UGen
drand a
z UGen
repeats UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Drand" [UGen
repeats] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | demand rate reset
--
--  Dreset [DR] in=0.0 reset=0.0;    DEMAND/NONDET
dreset :: ID a => a -> UGen -> UGen -> UGen
dreset :: a -> UGen -> UGen -> UGen
dreset a
z UGen
in_ UGen
reset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dreset" [UGen
in_,UGen
reset] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate sequence generator.
--
--  Dseq [DR] repeats=1.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dseq :: ID a => a -> UGen -> UGen -> UGen
dseq :: a -> UGen -> UGen -> UGen
dseq a
z UGen
repeats UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dseq" [UGen
repeats] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate sequence generator.
--
--  Dser [DR] repeats=1.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dser :: ID a => a -> UGen -> UGen -> UGen
dser :: a -> UGen -> UGen -> UGen
dser a
z UGen
repeats UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dser" [UGen
repeats] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate arithmetic series UGen.
--
--  Dseries [DR] length=1.0e8 start=1.0 step=1.0;    REORDERS INPUTS: [1,2,0], DEMAND/NONDET
dseries :: ID a => a -> UGen -> UGen -> UGen -> UGen
dseries :: a -> UGen -> UGen -> UGen -> UGen
dseries a
z UGen
length_ UGen
start UGen
step = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dseries" [UGen
length_,UGen
start,UGen
step] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate random sequence generator
--
--  Dshuf [DR] repeats=1.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dshuf :: ID a => a -> UGen -> UGen -> UGen
dshuf :: a -> UGen -> UGen -> UGen
dshuf a
z UGen
repeats UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dshuf" [UGen
repeats] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate input replicator
--
--  Dstutter [DR] n=0.0 in=0.0;    DEMAND/NONDET
dstutter :: ID a => a -> UGen -> UGen -> UGen
dstutter :: a -> UGen -> UGen -> UGen
dstutter a
z UGen
n UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dstutter" [UGen
n,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate generator for embedding different inputs
--
--  Dswitch [DR] index=0.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dswitch :: ID a => a -> UGen -> UGen -> UGen
dswitch :: a -> UGen -> UGen -> UGen
dswitch a
z UGen
index_ UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dswitch" [UGen
index_] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand rate generator for switching between inputs.
--
--  Dswitch1 [DR] index=0.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dswitch1 :: ID a => a -> UGen -> UGen -> UGen
dswitch1 :: a -> UGen -> UGen -> UGen
dswitch1 a
z UGen
index_ UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dswitch1" [UGen
index_] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Return the same unique series of values for several demand streams
--
--  Dunique [DR] source=0.0 maxBufferSize=1024.0 protected=1.0;    DEMAND/NONDET
dunique :: ID a => a -> UGen -> UGen -> UGen -> UGen
dunique :: a -> UGen -> UGen -> UGen -> UGen
dunique a
z UGen
source UGen
maxBufferSize UGen
protected = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dunique" [UGen
source,UGen
maxBufferSize,UGen
protected] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Random impulses.
--
--  Dust [KR,AR] density=0.0;    NONDET
dust :: ID a => a -> Rate -> UGen -> UGen
dust :: a -> Rate -> UGen -> UGen
dust a
z Rate
rate UGen
density = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Dust" [UGen
density] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Random impulses.
--
--  Dust2 [KR,AR] density=0.0;    NONDET
dust2 :: ID a => a -> Rate -> UGen -> UGen
dust2 :: a -> Rate -> UGen -> UGen
dust2 a
z Rate
rate UGen
density = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Dust2" [UGen
density] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Demand results from demand rate UGens.
--
--  Duty [KR,AR] dur=1.0 reset=0.0 doneAction=0.0 level=1.0;    REORDERS INPUTS: [0,1,3,2], ENUMERATION INPUTS: 2=DoneAction
duty :: Rate -> UGen -> UGen -> DoneAction UGen -> UGen -> UGen
duty :: Rate -> UGen -> UGen -> DoneAction UGen -> UGen -> UGen
duty Rate
rate UGen
dur UGen
reset DoneAction UGen
doneAction UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Duty" [UGen
dur,UGen
reset,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand rate white noise random generator.
--
--  Dwhite [DR] length=1.0e8 lo=0.0 hi=1.0;    REORDERS INPUTS: [1,2,0], DEMAND/NONDET
dwhite :: ID a => a -> UGen -> UGen -> UGen -> UGen
dwhite :: a -> UGen -> UGen -> UGen -> UGen
dwhite a
z UGen
length_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dwhite" [UGen
length_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

{-
-- | Demand rate weighted random sequence generator
--
--  Dwrand [DR] repeats=1.0 weights=0.0 *list=0.0;    MCE=1, REORDERS INPUTS: [2,1,0], DEMAND/NONDET
dwrand :: ID a => a -> UGen -> UGen -> UGen -> UGen
dwrand z repeats weights list_ = mkUGen Nothing [DR] (Left DR) "Dwrand" [repeats,weights] (Just [list_]) 1 (Special 0) (toUId z)
-}

-- | Demand rate random sequence generator.
--
--  Dxrand [DR] repeats=1.0 *list=0.0;    MCE=1, REORDERS INPUTS: [1,0], DEMAND/NONDET
dxrand :: ID a => a -> UGen -> UGen -> UGen
dxrand :: a -> UGen -> UGen -> UGen
dxrand a
z UGen
repeats UGen
list_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
DR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
DR) String
"Dxrand" [UGen
repeats] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
list_]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Envelope generator
--
--  EnvGen [KR,AR] gate=1.0 levelScale=1.0 levelBias=0.0 timeScale=1.0 doneAction=0.0 *envelope=0.0;    MCE=1, REORDERS INPUTS: [5,0,1,2,3,4,5], ENUMERATION INPUTS: 4=DoneAction, 5=Envelope
envGen :: Rate -> UGen -> UGen -> UGen -> UGen -> DoneAction UGen -> Envelope UGen -> UGen
envGen :: Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> DoneAction UGen
-> Envelope UGen
-> UGen
envGen Rate
rate UGen
gate_ UGen
levelScale UGen
levelBias UGen
timeScale DoneAction UGen
doneAction Envelope UGen
envelope_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"EnvGen" [UGen
gate_,UGen
levelScale,UGen
levelBias,UGen
timeScale,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [Envelope UGen -> UGen
envelope_to_ugen Envelope UGen
envelope_]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential single random number generator.
--
--  ExpRand [IR] lo=1.0e-2 hi=1.0;    NONDET
expRand :: ID a => a -> UGen -> UGen -> UGen
expRand :: a -> UGen -> UGen -> UGen
expRand a
z UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"ExpRand" [UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Feedback sine with chaotic phase indexing
--
--  FBSineC [AR] freq=22050.0 im=1.0 fb=0.1 a=1.1 c=0.5 xi=0.1 yi=0.1
fbSineC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineC :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineC Rate
rate UGen
freq UGen
im UGen
fb UGen
a UGen
c UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"FBSineC" [UGen
freq,UGen
im,UGen
fb,UGen
a,UGen
c,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Feedback sine with chaotic phase indexing
--
--  FBSineL [AR] freq=22050.0 im=1.0 fb=0.1 a=1.1 c=0.5 xi=0.1 yi=0.1
fbSineL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineL :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineL Rate
rate UGen
freq UGen
im UGen
fb UGen
a UGen
c UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"FBSineL" [UGen
freq,UGen
im,UGen
fb,UGen
a,UGen
c,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Feedback sine with chaotic phase indexing
--
--  FBSineN [AR] freq=22050.0 im=1.0 fb=0.1 a=1.1 c=0.5 xi=0.1 yi=0.1
fbSineN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineN :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fbSineN Rate
rate UGen
freq UGen
im UGen
fb UGen
a UGen
c UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"FBSineN" [UGen
freq,UGen
im,UGen
fb,UGen
a,UGen
c,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Fast Fourier Transform
--
--  FFT [KR] buffer=0.0 in=0.0 hop=0.5 wintype=0.0 active=1.0 winsize=0.0
fft :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fft :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
fft UGen
buffer UGen
in_ UGen
hop UGen
wintype UGen
active UGen
winsize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"FFT" [UGen
buffer,UGen
in_,UGen
hop,UGen
wintype,UGen
active,UGen
winsize] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | First order filter section.
--
--  FOS [KR,AR] in=0.0 a0=0.0 a1=0.0 b1=0.0;    FILTER: TRUE
fos :: UGen -> UGen -> UGen -> UGen -> UGen
fos :: UGen -> UGen -> UGen -> UGen -> UGen
fos UGen
in_ UGen
a0 UGen
a1 UGen
b1 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"FOS" [UGen
in_,UGen
a0,UGen
a1,UGen
b1] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Fast sine oscillator.
--
--  FSinOsc [KR,AR] freq=440.0 iphase=0.0
fSinOsc :: Rate -> UGen -> UGen -> UGen
fSinOsc :: Rate -> UGen -> UGen -> UGen
fSinOsc Rate
rate UGen
freq UGen
iphase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"FSinOsc" [UGen
freq,UGen
iphase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Fold a signal outside given thresholds.
--
--  Fold [IR,KR,AR] in=0.0 lo=0.0 hi=1.0;    FILTER: TRUE
fold :: UGen -> UGen -> UGen -> UGen
fold :: UGen -> UGen -> UGen -> UGen
fold UGen
in_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Fold" [UGen
in_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Formant oscillator
--
--  Formant [AR] fundfreq=440.0 formfreq=1760.0 bwfreq=880.0
formant :: Rate -> UGen -> UGen -> UGen -> UGen
formant :: Rate -> UGen -> UGen -> UGen -> UGen
formant Rate
rate UGen
fundfreq UGen
formfreq UGen
bwfreq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Formant" [UGen
fundfreq,UGen
formfreq,UGen
bwfreq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | FOF-like filter.
--
--  Formlet [KR,AR] in=0.0 freq=440.0 attacktime=1.0 decaytime=1.0;    FILTER: TRUE
formlet :: UGen -> UGen -> UGen -> UGen -> UGen
formlet :: UGen -> UGen -> UGen -> UGen -> UGen
formlet UGen
in_ UGen
freq UGen
attacktime UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Formlet" [UGen
in_,UGen
freq,UGen
attacktime,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | When triggered, frees a node.
--
--  Free [KR] trig=0.0 id=0.0;    FILTER: TRUE
free :: UGen -> UGen -> UGen
free :: UGen -> UGen -> UGen
free UGen
trig_ UGen
id_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Free" [UGen
trig_,UGen
id_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | When triggered, free enclosing synth.
--
--  FreeSelf [KR] in=0.0
freeSelf :: UGen -> UGen
freeSelf :: UGen -> UGen
freeSelf UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"FreeSelf" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Free the enclosing synth when a UGen is finished
--
--  FreeSelfWhenDone [KR] src=0.0
freeSelfWhenDone :: UGen -> UGen
freeSelfWhenDone :: UGen -> UGen
freeSelfWhenDone UGen
src = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"FreeSelfWhenDone" [UGen
src] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A reverb
--
--  FreeVerb [AR] in=0.0 mix=0.33 room=0.5 damp=0.5;    FILTER: TRUE
freeVerb :: UGen -> UGen -> UGen -> UGen -> UGen
freeVerb :: UGen -> UGen -> UGen -> UGen -> UGen
freeVerb UGen
in_ UGen
mix UGen
room UGen
damp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"FreeVerb" [UGen
in_,UGen
mix,UGen
room,UGen
damp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A two-channel reverb
--
--  FreeVerb2 [AR] in=0.0 in2=0.0 mix=0.33 room=0.5 damp=0.5;    FILTER: TRUE
freeVerb2 :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
freeVerb2 :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
freeVerb2 UGen
in_ UGen
in2 UGen
mix UGen
room UGen
damp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"FreeVerb2" [UGen
in_,UGen
in2,UGen
mix,UGen
room,UGen
damp] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Frequency Shifter.
--
--  FreqShift [AR] in=0.0 freq=0.0 phase=0.0
freqShift :: UGen -> UGen -> UGen -> UGen
freqShift :: UGen -> UGen -> UGen -> UGen
freqShift UGen
in_ UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"FreqShift" [UGen
in_,UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A two-channel reverb
--
--  GVerb [AR] in=0.0 roomsize=10.0 revtime=3.0 damping=0.5 inputbw=0.5 spread=15.0 drylevel=1.0 earlyreflevel=0.7 taillevel=0.5 maxroomsize=300.0;    FILTER: TRUE
gVerb :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
gVerb :: UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
gVerb UGen
in_ UGen
roomsize UGen
revtime UGen
damping UGen
inputbw UGen
spread UGen
drylevel UGen
earlyreflevel UGen
taillevel UGen
maxroomsize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"GVerb" [UGen
in_,UGen
roomsize,UGen
revtime,UGen
damping,UGen
inputbw,UGen
spread,UGen
drylevel,UGen
earlyreflevel,UGen
taillevel,UGen
maxroomsize] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Gate or hold.
--
--  Gate [KR,AR] in=0.0 trig=0.0;    FILTER: TRUE
gate :: UGen -> UGen -> UGen
gate :: UGen -> UGen -> UGen
gate UGen
in_ UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Gate" [UGen
in_,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Gingerbreadman map chaotic generator
--
--  GbmanL [AR] freq=22050.0 xi=1.2 yi=2.1
gbmanL :: Rate -> UGen -> UGen -> UGen -> UGen
gbmanL :: Rate -> UGen -> UGen -> UGen -> UGen
gbmanL Rate
rate UGen
freq UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"GbmanL" [UGen
freq,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Gingerbreadman map chaotic generator
--
--  GbmanN [AR] freq=22050.0 xi=1.2 yi=2.1
gbmanN :: Rate -> UGen -> UGen -> UGen -> UGen
gbmanN :: Rate -> UGen -> UGen -> UGen -> UGen
gbmanN Rate
rate UGen
freq UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"GbmanN" [UGen
freq,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Dynamic stochastic synthesis generator.
--
--  Gendy1 [KR,AR] ampdist=1.0 durdist=1.0 adparam=1.0 ddparam=1.0 minfreq=440.0 maxfreq=660.0 ampscale=0.5 durscale=0.5 initCPs=12.0 knum=0.0;    NONDET
gendy1 :: ID a => a -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
gendy1 :: a
-> Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
gendy1 a
z Rate
rate UGen
ampdist UGen
durdist UGen
adparam UGen
ddparam UGen
minfreq UGen
maxfreq UGen
ampscale UGen
durscale UGen
initCPs UGen
knum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Gendy1" [UGen
ampdist,UGen
durdist,UGen
adparam,UGen
ddparam,UGen
minfreq,UGen
maxfreq,UGen
ampscale,UGen
durscale,UGen
initCPs,UGen
knum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Dynamic stochastic synthesis generator.
--
--  Gendy2 [KR,AR] ampdist=1.0 durdist=1.0 adparam=1.0 ddparam=1.0 minfreq=440.0 maxfreq=660.0 ampscale=0.5 durscale=0.5 initCPs=12.0 knum=0.0 a=1.17 c=0.31;    NONDET
gendy2 :: ID a => a -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
gendy2 :: a
-> Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
gendy2 a
z Rate
rate UGen
ampdist UGen
durdist UGen
adparam UGen
ddparam UGen
minfreq UGen
maxfreq UGen
ampscale UGen
durscale UGen
initCPs UGen
knum UGen
a UGen
c = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Gendy2" [UGen
ampdist,UGen
durdist,UGen
adparam,UGen
ddparam,UGen
minfreq,UGen
maxfreq,UGen
ampscale,UGen
durscale,UGen
initCPs,UGen
knum,UGen
a,UGen
c] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Dynamic stochastic synthesis generator.
--
--  Gendy3 [KR,AR] ampdist=1.0 durdist=1.0 adparam=1.0 ddparam=1.0 freq=440.0 ampscale=0.5 durscale=0.5 initCPs=12.0 knum=0.0;    NONDET
gendy3 :: ID a => a -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
gendy3 :: a
-> Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
gendy3 a
z Rate
rate UGen
ampdist UGen
durdist UGen
adparam UGen
ddparam UGen
freq UGen
ampscale UGen
durscale UGen
initCPs UGen
knum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Gendy3" [UGen
ampdist,UGen
durdist,UGen
adparam,UGen
ddparam,UGen
freq,UGen
ampscale,UGen
durscale,UGen
initCPs,UGen
knum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Granular synthesis with sound stored in a buffer
--
--  GrainBuf [AR] trigger=0.0 dur=1.0 sndbuf=0.0 rate=1.0 pos=0.0 interp=2.0 pan=0.0 envbufnum=-1.0 maxGrains=512.0;    NC INPUT: True
grainBuf :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainBuf :: Int
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
grainBuf Int
numChannels UGen
trigger UGen
dur UGen
sndbuf UGen
rate_ UGen
pos UGen
interp UGen
pan UGen
envbufnum UGen
maxGrains = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"GrainBuf" [UGen
trigger,UGen
dur,UGen
sndbuf,UGen
rate_,UGen
pos,UGen
interp,UGen
pan,UGen
envbufnum,UGen
maxGrains] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Granular synthesis with frequency modulated sine tones
--
--  GrainFM [AR] trigger=0.0 dur=1.0 carfreq=440.0 modfreq=200.0 index=1.0 pan=0.0 envbufnum=-1.0 maxGrains=512.0;    NC INPUT: True
grainFM :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainFM :: Int
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
grainFM Int
numChannels UGen
trigger UGen
dur UGen
carfreq UGen
modfreq UGen
index_ UGen
pan UGen
envbufnum UGen
maxGrains = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"GrainFM" [UGen
trigger,UGen
dur,UGen
carfreq,UGen
modfreq,UGen
index_,UGen
pan,UGen
envbufnum,UGen
maxGrains] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Granulate an input signal
--
--  GrainIn [AR] trigger=0.0 dur=1.0 in=0.0 pan=0.0 envbufnum=-1.0 maxGrains=512.0;    NC INPUT: True
grainIn :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainIn :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainIn Int
numChannels UGen
trigger UGen
dur UGen
in_ UGen
pan UGen
envbufnum UGen
maxGrains = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"GrainIn" [UGen
trigger,UGen
dur,UGen
in_,UGen
pan,UGen
envbufnum,UGen
maxGrains] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Granular synthesis with sine tones
--
--  GrainSin [AR] trigger=0.0 dur=1.0 freq=440.0 pan=0.0 envbufnum=-1.0 maxGrains=512.0;    NC INPUT: True
grainSin :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainSin :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
grainSin Int
numChannels UGen
trigger UGen
dur UGen
freq UGen
pan UGen
envbufnum UGen
maxGrains = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"GrainSin" [UGen
trigger,UGen
dur,UGen
freq,UGen
pan,UGen
envbufnum,UGen
maxGrains] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Gray Noise.
--
--  GrayNoise [KR,AR] ;    NONDET
grayNoise :: ID a => a -> Rate -> UGen
grayNoise :: a -> Rate -> UGen
grayNoise a
z Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"GrayNoise" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | 2nd order Butterworth highpass filter.
--
--  HPF [KR,AR] in=0.0 freq=440.0;    FILTER: TRUE
hpf :: UGen -> UGen -> UGen
hpf :: UGen -> UGen -> UGen
hpf UGen
in_ UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"HPF" [UGen
in_,UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two point difference filter
--
--  HPZ1 [KR,AR] in=0.0;    FILTER: TRUE
hpz1 :: UGen -> UGen
hpz1 :: UGen -> UGen
hpz1 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"HPZ1" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two zero fixed midcut.
--
--  HPZ2 [KR,AR] in=0.0;    FILTER: TRUE
hpz2 :: UGen -> UGen
hpz2 :: UGen -> UGen
hpz2 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"HPZ2" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Scrambled value with a hash function.
--
--  Hasher [KR,AR] in=0.0;    FILTER: TRUE
hasher :: UGen -> UGen
hasher :: UGen -> UGen
hasher UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Hasher" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Henon map chaotic generator
--
--  HenonC [AR] freq=22050.0 a=1.4 b=0.3 x0=0.0 x1=0.0
henonC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonC Rate
rate UGen
freq UGen
a UGen
b UGen
x0 UGen
x1 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"HenonC" [UGen
freq,UGen
a,UGen
b,UGen
x0,UGen
x1] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Henon map chaotic generator
--
--  HenonL [AR] freq=22050.0 a=1.4 b=0.3 x0=0.0 x1=0.0
henonL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonL Rate
rate UGen
freq UGen
a UGen
b UGen
x0 UGen
x1 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"HenonL" [UGen
freq,UGen
a,UGen
b,UGen
x0,UGen
x1] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Henon map chaotic generator
--
--  HenonN [AR] freq=22050.0 a=1.4 b=0.3 x0=0.0 x1=0.0
henonN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
henonN Rate
rate UGen
freq UGen
a UGen
b UGen
x0 UGen
x1 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"HenonN" [UGen
freq,UGen
a,UGen
b,UGen
x0,UGen
x1] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Applies the Hilbert transform to an input signal.
--
--  Hilbert [AR] in=0.0;    FILTER: TRUE
hilbert :: UGen -> UGen
hilbert :: UGen -> UGen
hilbert UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Hilbert" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Envelope generator for polling values from an Env
--
--  IEnvGen [KR,AR] index=0.0 *envelope=0.0;    MCE=1, REORDERS INPUTS: [1,0], ENUMERATION INPUTS: 1=Envelope
iEnvGen :: Rate -> UGen -> Envelope UGen -> UGen
iEnvGen :: Rate -> UGen -> Envelope UGen -> UGen
iEnvGen Rate
rate UGen
index_ Envelope UGen
envelope_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"IEnvGen" [UGen
index_] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [Envelope UGen -> UGen
envelope_to_ienvgen_ugen Envelope UGen
envelope_]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Inverse Fast Fourier Transform
--
--  IFFT [KR,AR] buffer=0.0 wintype=0.0 winsize=0.0
ifft :: UGen -> UGen -> UGen -> UGen
ifft :: UGen -> UGen -> UGen -> UGen
ifft UGen
buffer UGen
wintype UGen
winsize = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"IFFT" [UGen
buffer,UGen
wintype,UGen
winsize] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Single integer random number generator.
--
--  IRand [IR] lo=0.0 hi=127.0;    NONDET
iRand :: ID a => a -> UGen -> UGen -> UGen
iRand :: a -> UGen -> UGen -> UGen
iRand a
z UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"IRand" [UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Impulse oscillator.
--
--  Impulse [KR,AR] freq=440.0 phase=0.0
impulse :: Rate -> UGen -> UGen -> UGen
impulse :: Rate -> UGen -> UGen -> UGen
impulse Rate
rate UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Impulse" [UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Read a signal from a bus.
--
--  In [KR,AR] bus=0.0;    NC INPUT: True
in' :: Int -> Rate -> UGen -> UGen
in' :: Int -> Rate -> UGen -> UGen
in' Int
numChannels Rate
rate UGen
bus = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"In" [UGen
bus] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Read signal from a bus with a current or one cycle old timestamp.
--
--  InFeedback [AR] bus=0.0;    NC INPUT: True
inFeedback :: Int -> UGen -> UGen
inFeedback :: Int -> UGen -> UGen
inFeedback Int
numChannels UGen
bus = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"InFeedback" [UGen
bus] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Tests if a signal is within a given range.
--
--  InRange [IR,KR,AR] in=0.0 lo=0.0 hi=1.0;    FILTER: TRUE
inRange :: UGen -> UGen -> UGen -> UGen
inRange :: UGen -> UGen -> UGen -> UGen
inRange UGen
in_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"InRange" [UGen
in_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Test if a point is within a given rectangle.
--
--  InRect [KR,AR] x=0.0 y=0.0 rect=0.0
inRect :: Rate -> UGen -> UGen -> UGen -> UGen
inRect :: Rate -> UGen -> UGen -> UGen -> UGen
inRect Rate
rate UGen
x UGen
y UGen
rect = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"InRect" [UGen
x,UGen
y,UGen
rect] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Generate a trigger anytime a bus is set.
--
--  InTrig [KR] bus=0.0;    NC INPUT: True
inTrig :: Int -> UGen -> UGen
inTrig :: Int -> UGen -> UGen
inTrig Int
numChannels UGen
bus = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"InTrig" [UGen
bus] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Index into a table with a signal
--
--  Index [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
index :: UGen -> UGen -> UGen
index :: UGen -> UGen -> UGen
index UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"Index" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Finds the (lowest) point in the Buffer at which the input signal lies in-between the two values
--
--  IndexInBetween [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
indexInBetween :: UGen -> UGen -> UGen
indexInBetween :: UGen -> UGen -> UGen
indexInBetween UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"IndexInBetween" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Index into a table with a signal, linear interpolated
--
--  IndexL [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
indexL :: UGen -> UGen -> UGen
indexL :: UGen -> UGen -> UGen
indexL UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"IndexL" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Base class for info ugens
--
--  InfoUGenBase [IR]
infoUGenBase :: Rate -> UGen
infoUGenBase :: Rate -> UGen
infoUGenBase Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"InfoUGenBase" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A leaky integrator.
--
--  Integrator [KR,AR] in=0.0 coef=1.0;    FILTER: TRUE
integrator :: UGen -> UGen -> UGen
integrator :: UGen -> UGen -> UGen
integrator UGen
in_ UGen
coef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Integrator" [UGen
in_,UGen
coef] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Control to audio rate converter.
--
--  K2A [AR] in=0.0
k2a :: UGen -> UGen
k2a :: UGen -> UGen
k2a UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"K2A" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Respond to the state of a key
--
--  KeyState [KR] keycode=0.0 minval=0.0 maxval=1.0 lag=0.2
keyState :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
keyState :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
keyState Rate
rate UGen
keycode UGen
minval UGen
maxval UGen
lag_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"KeyState" [UGen
keycode,UGen
minval,UGen
maxval,UGen
lag_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Key tracker
--
--  KeyTrack [KR] chain=0.0 keydecay=2.0 chromaleak=0.5
keyTrack :: Rate -> UGen -> UGen -> UGen -> UGen
keyTrack :: Rate -> UGen -> UGen -> UGen -> UGen
keyTrack Rate
rate UGen
chain UGen
keydecay UGen
chromaleak = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"KeyTrack" [UGen
chain,UGen
keydecay,UGen
chromaleak] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sine oscillator bank
--
--  Klang [AR] freqscale=1.0 freqoffset=0.0 *specificationsArrayRef=0.0;    MCE=1, REORDERS INPUTS: [2,0,1]
klang :: Rate -> UGen -> UGen -> UGen -> UGen
klang :: Rate -> UGen -> UGen -> UGen -> UGen
klang Rate
rate UGen
freqscale UGen
freqoffset UGen
specificationsArrayRef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Klang" [UGen
freqscale,UGen
freqoffset] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
specificationsArrayRef]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Bank of resonators
--
--  Klank [AR] input=0.0 freqscale=1.0 freqoffset=0.0 decayscale=1.0 *specificationsArrayRef=0.0;    MCE=1, FILTER: TRUE, REORDERS INPUTS: [4,0,1,2,3]
klank :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
klank :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
klank UGen
input UGen
freqscale UGen
freqoffset UGen
decayscale UGen
specificationsArrayRef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Klank" [UGen
input,UGen
freqscale,UGen
freqoffset,UGen
decayscale] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
specificationsArrayRef]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Clipped noise
--
--  LFClipNoise [KR,AR] freq=500.0;    NONDET
lfClipNoise :: ID a => a -> Rate -> UGen -> UGen
lfClipNoise :: a -> Rate -> UGen -> UGen
lfClipNoise a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFClipNoise" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | A sine like shape made of two cubic pieces
--
--  LFCub [KR,AR] freq=440.0 iphase=0.0
lfCub :: Rate -> UGen -> UGen -> UGen
lfCub :: Rate -> UGen -> UGen -> UGen
lfCub Rate
rate UGen
freq UGen
iphase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFCub" [UGen
freq,UGen
iphase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Dynamic clipped noise
--
--  LFDClipNoise [KR,AR] freq=500.0;    NONDET
lfdClipNoise :: ID a => a -> Rate -> UGen -> UGen
lfdClipNoise :: a -> Rate -> UGen -> UGen
lfdClipNoise a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFDClipNoise" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Dynamic step noise
--
--  LFDNoise0 [KR,AR] freq=500.0;    NONDET
lfdNoise0 :: ID a => a -> Rate -> UGen -> UGen
lfdNoise0 :: a -> Rate -> UGen -> UGen
lfdNoise0 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFDNoise0" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Dynamic ramp noise
--
--  LFDNoise1 [KR,AR] freq=500.0;    NONDET
lfdNoise1 :: ID a => a -> Rate -> UGen -> UGen
lfdNoise1 :: a -> Rate -> UGen -> UGen
lfdNoise1 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFDNoise1" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Dynamic cubic noise
--
--  LFDNoise3 [KR,AR] freq=500.0;    NONDET
lfdNoise3 :: ID a => a -> Rate -> UGen -> UGen
lfdNoise3 :: a -> Rate -> UGen -> UGen
lfdNoise3 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFDNoise3" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Gaussian function oscillator
--
--  LFGauss [KR,AR] duration=1.0 width=0.1 iphase=0.0 loop=1.0 doneAction=0.0;    ENUMERATION INPUTS: 3=Loop, 4=DoneAction
lfGauss :: Rate -> UGen -> UGen -> UGen -> Loop UGen -> DoneAction UGen -> UGen
lfGauss :: Rate
-> UGen -> UGen -> UGen -> Loop UGen -> DoneAction UGen -> UGen
lfGauss Rate
rate UGen
duration UGen
width UGen
iphase Loop UGen
loop DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFGauss" [UGen
duration,UGen
width,UGen
iphase,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Step noise
--
--  LFNoise0 [KR,AR] freq=500.0;    NONDET
lfNoise0 :: ID a => a -> Rate -> UGen -> UGen
lfNoise0 :: a -> Rate -> UGen -> UGen
lfNoise0 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFNoise0" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Ramp noise
--
--  LFNoise1 [KR,AR] freq=500.0;    NONDET
lfNoise1 :: ID a => a -> Rate -> UGen -> UGen
lfNoise1 :: a -> Rate -> UGen -> UGen
lfNoise1 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFNoise1" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Quadratic noise.
--
--  LFNoise2 [KR,AR] freq=500.0;    NONDET
lfNoise2 :: ID a => a -> Rate -> UGen -> UGen
lfNoise2 :: a -> Rate -> UGen -> UGen
lfNoise2 a
z Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFNoise2" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Parabolic oscillator
--
--  LFPar [KR,AR] freq=440.0 iphase=0.0
lfPar :: Rate -> UGen -> UGen -> UGen
lfPar :: Rate -> UGen -> UGen -> UGen
lfPar Rate
rate UGen
freq UGen
iphase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFPar" [UGen
freq,UGen
iphase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | pulse oscillator
--
--  LFPulse [KR,AR] freq=440.0 iphase=0.0 width=0.5
lfPulse :: Rate -> UGen -> UGen -> UGen -> UGen
lfPulse :: Rate -> UGen -> UGen -> UGen -> UGen
lfPulse Rate
rate UGen
freq UGen
iphase UGen
width = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFPulse" [UGen
freq,UGen
iphase,UGen
width] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sawtooth oscillator
--
--  LFSaw [KR,AR] freq=440.0 iphase=0.0
lfSaw :: Rate -> UGen -> UGen -> UGen
lfSaw :: Rate -> UGen -> UGen -> UGen
lfSaw Rate
rate UGen
freq UGen
iphase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFSaw" [UGen
freq,UGen
iphase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Triangle oscillator
--
--  LFTri [KR,AR] freq=440.0 iphase=0.0
lfTri :: Rate -> UGen -> UGen -> UGen
lfTri :: Rate -> UGen -> UGen -> UGen
lfTri Rate
rate UGen
freq UGen
iphase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LFTri" [UGen
freq,UGen
iphase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2nd order Butterworth lowpass filter
--
--  LPF [KR,AR] in=0.0 freq=440.0;    FILTER: TRUE
lpf :: UGen -> UGen -> UGen
lpf :: UGen -> UGen -> UGen
lpf UGen
in_ UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LPF" [UGen
in_,UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two point average filter
--
--  LPZ1 [KR,AR] in=0.0;    FILTER: TRUE
lpz1 :: UGen -> UGen
lpz1 :: UGen -> UGen
lpz1 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LPZ1" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two zero fixed lowpass
--
--  LPZ2 [KR,AR] in=0.0;    FILTER: TRUE
lpz2 :: UGen -> UGen
lpz2 :: UGen -> UGen
lpz2 UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LPZ2" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  Lag [KR,AR] in=0.0 lagTime=0.1;    FILTER: TRUE
lag :: UGen -> UGen -> UGen
lag :: UGen -> UGen -> UGen
lag UGen
in_ UGen
lagTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Lag" [UGen
in_,UGen
lagTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  Lag2 [KR,AR] in=0.0 lagTime=0.1;    FILTER: TRUE
lag2 :: UGen -> UGen -> UGen
lag2 :: UGen -> UGen -> UGen
lag2 UGen
in_ UGen
lagTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Lag2" [UGen
in_,UGen
lagTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  Lag2UD [KR,AR] in=0.0 lagTimeU=0.1 lagTimeD=0.1;    FILTER: TRUE
lag2UD :: UGen -> UGen -> UGen -> UGen
lag2UD :: UGen -> UGen -> UGen -> UGen
lag2UD UGen
in_ UGen
lagTimeU UGen
lagTimeD = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Lag2UD" [UGen
in_,UGen
lagTimeU,UGen
lagTimeD] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  Lag3 [KR,AR] in=0.0 lagTime=0.1;    FILTER: TRUE
lag3 :: UGen -> UGen -> UGen
lag3 :: UGen -> UGen -> UGen
lag3 UGen
in_ UGen
lagTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Lag3" [UGen
in_,UGen
lagTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  Lag3UD [KR,AR] in=0.0 lagTimeU=0.1 lagTimeD=0.1;    FILTER: TRUE
lag3UD :: UGen -> UGen -> UGen -> UGen
lag3UD :: UGen -> UGen -> UGen -> UGen
lag3UD UGen
in_ UGen
lagTimeU UGen
lagTimeD = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Lag3UD" [UGen
in_,UGen
lagTimeU,UGen
lagTimeD] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Read a control signal from a bus with a lag
--
--  LagIn [KR] bus=0.0 lag=0.1;    NC INPUT: True
lagIn :: Int -> UGen -> UGen -> UGen
lagIn :: Int -> UGen -> UGen -> UGen
lagIn Int
numChannels UGen
bus UGen
lag_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"LagIn" [UGen
bus,UGen
lag_] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential lag
--
--  LagUD [KR,AR] in=0.0 lagTimeU=0.1 lagTimeD=0.1;    FILTER: TRUE
lagUD :: UGen -> UGen -> UGen -> UGen
lagUD :: UGen -> UGen -> UGen -> UGen
lagUD UGen
in_ UGen
lagTimeU UGen
lagTimeD = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LagUD" [UGen
in_,UGen
lagTimeU,UGen
lagTimeD] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Output the last value before the input changed
--
--  LastValue [KR,AR] in=0.0 diff=1.0e-2;    FILTER: TRUE
lastValue :: UGen -> UGen -> UGen
lastValue :: UGen -> UGen -> UGen
lastValue UGen
in_ UGen
diff = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LastValue" [UGen
in_,UGen
diff] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sample and hold
--
--  Latch [KR,AR] in=0.0 trig=0.0;    FILTER: TRUE
latch :: UGen -> UGen -> UGen
latch :: UGen -> UGen -> UGen
latch UGen
in_ UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"Latch" [UGen
in_,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Latoocarfian chaotic generator
--
--  LatoocarfianC [AR] freq=22050.0 a=1.0 b=3.0 c=0.5 d=0.5 xi=0.5 yi=0.5
latoocarfianC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianC :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianC Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
d UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LatoocarfianC" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
d,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Latoocarfian chaotic generator
--
--  LatoocarfianL [AR] freq=22050.0 a=1.0 b=3.0 c=0.5 d=0.5 xi=0.5 yi=0.5
latoocarfianL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianL :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianL Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
d UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LatoocarfianL" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
d,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Latoocarfian chaotic generator
--
--  LatoocarfianN [AR] freq=22050.0 a=1.0 b=3.0 c=0.5 d=0.5 xi=0.5 yi=0.5
latoocarfianN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianN :: Rate
-> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
latoocarfianN Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
d UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LatoocarfianN" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
d,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Remove DC
--
--  LeakDC [KR,AR] in=0.0 coef=0.995;    FILTER: TRUE
leakDC :: UGen -> UGen -> UGen
leakDC :: UGen -> UGen -> UGen
leakDC UGen
in_ UGen
coef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LeakDC" [UGen
in_,UGen
coef] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Output least changed
--
--  LeastChange [KR,AR] a=0.0 b=0.0
leastChange :: Rate -> UGen -> UGen -> UGen
leastChange :: Rate -> UGen -> UGen -> UGen
leastChange Rate
rate UGen
a UGen
b = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LeastChange" [UGen
a,UGen
b] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Peak limiter
--
--  Limiter [AR] in=0.0 level=1.0 dur=1.0e-2;    FILTER: TRUE
limiter :: UGen -> UGen -> UGen -> UGen
limiter :: UGen -> UGen -> UGen -> UGen
limiter UGen
in_ UGen
level UGen
dur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Limiter" [UGen
in_,UGen
level,UGen
dur] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Linear congruential chaotic generator
--
--  LinCongC [AR] freq=22050.0 a=1.1 c=0.13 m=1.0 xi=0.0
linCongC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongC Rate
rate UGen
freq UGen
a UGen
c UGen
m UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LinCongC" [UGen
freq,UGen
a,UGen
c,UGen
m,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Linear congruential chaotic generator
--
--  LinCongL [AR] freq=22050.0 a=1.1 c=0.13 m=1.0 xi=0.0
linCongL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongL Rate
rate UGen
freq UGen
a UGen
c UGen
m UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LinCongL" [UGen
freq,UGen
a,UGen
c,UGen
m,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Linear congruential chaotic generator
--
--  LinCongN [AR] freq=22050.0 a=1.1 c=0.13 m=1.0 xi=0.0
linCongN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linCongN Rate
rate UGen
freq UGen
a UGen
c UGen
m UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LinCongN" [UGen
freq,UGen
a,UGen
c,UGen
m,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Map a linear range to an exponential range
--
--  LinExp [IR,KR,AR] in=0.0 srclo=0.0 srchi=1.0 dstlo=1.0 dsthi=2.0;    FILTER: TRUE
linExp :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linExp :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
linExp UGen
in_ UGen
srclo UGen
srchi UGen
dstlo UGen
dsthi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LinExp" [UGen
in_,UGen
srclo,UGen
srchi,UGen
dstlo,UGen
dsthi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two channel linear pan.
--
--  LinPan2 [KR,AR] in=0.0 pos=0.0 level=1.0;    FILTER: TRUE
linPan2 :: UGen -> UGen -> UGen -> UGen
linPan2 :: UGen -> UGen -> UGen -> UGen
linPan2 UGen
in_ UGen
pos UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LinPan2" [UGen
in_,UGen
pos,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Skewed random number generator.
--
--  LinRand [IR] lo=0.0 hi=1.0 minmax=0.0;    NONDET
linRand :: ID a => a -> UGen -> UGen -> UGen -> UGen
linRand :: a -> UGen -> UGen -> UGen -> UGen
linRand a
z UGen
lo UGen
hi UGen
minmax = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"LinRand" [UGen
lo,UGen
hi,UGen
minmax] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Two channel linear crossfade.
--
--  LinXFade2 [KR,AR] inA=0.0 inB=0.0 pan=0.0 level=1.0;    FILTER: TRUE, PSUEDO INPUTS: [3]
linXFade2 :: UGen -> UGen -> UGen -> UGen
linXFade2 :: UGen -> UGen -> UGen -> UGen
linXFade2 UGen
inA UGen
inB UGen
pan = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"LinXFade2" [UGen
inA,UGen
inB,UGen
pan] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Line generator.
--
--  Line [KR,AR] start=0.0 end=1.0 dur=1.0 doneAction=0.0;    ENUMERATION INPUTS: 3=DoneAction
line :: Rate -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
line :: Rate -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
line Rate
rate UGen
start UGen
end UGen
dur DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Line" [UGen
start,UGen
end,UGen
dur,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Simple linear envelope generator.
--
--  Linen [KR] gate=1.0 attackTime=1.0e-2 susLevel=1.0 releaseTime=1.0 doneAction=0.0;    ENUMERATION INPUTS: 4=DoneAction
linen :: UGen -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
linen :: UGen -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
linen UGen
gate_ UGen
attackTime UGen
susLevel UGen
releaseTime DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Linen" [UGen
gate_,UGen
attackTime,UGen
susLevel,UGen
releaseTime,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Allocate a buffer local to the synth
--
--  LocalBuf [IR] numChannels=1.0 numFrames=1.0;    REORDERS INPUTS: [1,0], NONDET
localBuf :: ID a => a -> UGen -> UGen -> UGen
localBuf :: a -> UGen -> UGen -> UGen
localBuf a
z UGen
numChannels UGen
numFrames = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"LocalBuf" [UGen
numChannels,UGen
numFrames] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Define and read from buses local to a synth.
--
--  LocalIn [KR,AR] *default=0.0;    MCE=1, NC INPUT: True
localIn :: Int -> Rate -> UGen -> UGen
localIn :: Int -> Rate -> UGen -> UGen
localIn Int
numChannels Rate
rate UGen
default_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LocalIn" [] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
default_]) Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Write to buses local to a synth.
--
--  LocalOut [KR,AR] *channelsArray=0.0;    MCE=1, FILTER: TRUE
localOut :: UGen -> UGen
localOut :: UGen -> UGen
localOut UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"LocalOut" [] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Chaotic noise function
--
--  Logistic [KR,AR] chaosParam=3.0 freq=1000.0 init=0.5
logistic :: Rate -> UGen -> UGen -> UGen -> UGen
logistic :: Rate -> UGen -> UGen -> UGen -> UGen
logistic Rate
rate UGen
chaosParam UGen
freq UGen
init_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Logistic" [UGen
chaosParam,UGen
freq,UGen
init_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Lorenz chaotic generator
--
--  LorenzL [AR] freq=22050.0 s=10.0 r=28.0 b=2.667 h=5.0e-2 xi=0.1 yi=0.0 zi=0.0
lorenzL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
lorenzL :: Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
lorenzL Rate
rate UGen
freq UGen
s UGen
r UGen
b UGen
h UGen
xi UGen
yi UGen
zi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"LorenzL" [UGen
freq,UGen
s,UGen
r,UGen
b,UGen
h,UGen
xi,UGen
yi,UGen
zi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Extraction of instantaneous loudness in sones
--
--  Loudness [KR] chain=0.0 smask=0.25 tmask=1.0
loudness :: UGen -> UGen -> UGen -> UGen
loudness :: UGen -> UGen -> UGen -> UGen
loudness UGen
chain UGen
smask UGen
tmask = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Loudness" [UGen
chain,UGen
smask,UGen
tmask] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Mel frequency cepstral coefficients
--
--  MFCC [KR] chain=0.0 numcoeff=13.0
mfcc :: Rate -> UGen -> UGen -> UGen
mfcc :: Rate -> UGen -> UGen -> UGen
mfcc Rate
rate UGen
chain UGen
numcoeff = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"MFCC" [UGen
chain,UGen
numcoeff] Maybe [UGen]
forall a. Maybe a
Nothing Int
13 (Int -> Special
Special Int
0) UGenId
NoId

-- | Reduce precision.
--
--  MantissaMask [KR,AR] in=0.0 bits=3.0;    FILTER: TRUE
mantissaMask :: UGen -> UGen -> UGen
mantissaMask :: UGen -> UGen -> UGen
mantissaMask UGen
in_ UGen
bits = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"MantissaMask" [UGen
in_,UGen
bits] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Median filter.
--
--  Median [KR,AR] length=3.0 in=0.0;    FILTER: TRUE
median :: UGen -> UGen -> UGen
median :: UGen -> UGen -> UGen
median UGen
length_ UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"Median" [UGen
length_,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Parametric filter.
--
--  MidEQ [KR,AR] in=0.0 freq=440.0 rq=1.0 db=0.0;    FILTER: TRUE
midEQ :: UGen -> UGen -> UGen -> UGen -> UGen
midEQ :: UGen -> UGen -> UGen -> UGen -> UGen
midEQ UGen
in_ UGen
freq UGen
rq UGen
db = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"MidEQ" [UGen
in_,UGen
freq,UGen
rq,UGen
db] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Minimum difference of two values in modulo arithmetics
--
--  ModDif [IR,KR,AR] x=0.0 y=0.0 mod=1.0
modDif :: UGen -> UGen -> UGen -> UGen
modDif :: UGen -> UGen -> UGen -> UGen
modDif UGen
x UGen
y UGen
mod_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"ModDif" [UGen
x,UGen
y,UGen
mod_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Moog VCF implementation, designed by Federico Fontana
--
--  MoogFF [KR,AR] in=0.0 freq=100.0 gain=2.0 reset=0.0;    FILTER: TRUE
moogFF :: UGen -> UGen -> UGen -> UGen -> UGen
moogFF :: UGen -> UGen -> UGen -> UGen -> UGen
moogFF UGen
in_ UGen
freq UGen
gain UGen
reset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"MoogFF" [UGen
in_,UGen
freq,UGen
gain,UGen
reset] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Output most changed.
--
--  MostChange [KR,AR] a=0.0 b=0.0;    FILTER: TRUE
mostChange :: UGen -> UGen -> UGen
mostChange :: UGen -> UGen -> UGen
mostChange UGen
a UGen
b = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"MostChange" [UGen
a,UGen
b] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Mouse button UGen.
--
--  MouseButton [KR] minval=0.0 maxval=1.0 lag=0.2
mouseButton :: Rate -> UGen -> UGen -> UGen -> UGen
mouseButton :: Rate -> UGen -> UGen -> UGen -> UGen
mouseButton Rate
rate UGen
minval UGen
maxval UGen
lag_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"MouseButton" [UGen
minval,UGen
maxval,UGen
lag_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Cursor tracking UGen.
--
--  MouseX [KR] minval=0.0 maxval=1.0 warp=0.0 lag=0.2;    ENUMERATION INPUTS: 2=Warp
mouseX :: Rate -> UGen -> UGen -> Warp UGen -> UGen -> UGen
mouseX :: Rate -> UGen -> UGen -> Warp UGen -> UGen -> UGen
mouseX Rate
rate UGen
minval UGen
maxval Warp UGen
warp UGen
lag_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"MouseX" [UGen
minval,UGen
maxval,Warp UGen -> UGen
forall t. Num t => Warp t -> t
from_warp Warp UGen
warp,UGen
lag_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Cursor tracking UGen.
--
--  MouseY [KR] minval=0.0 maxval=1.0 warp=0.0 lag=0.2;    ENUMERATION INPUTS: 2=Warp
mouseY :: Rate -> UGen -> UGen -> Warp UGen -> UGen -> UGen
mouseY :: Rate -> UGen -> UGen -> Warp UGen -> UGen -> UGen
mouseY Rate
rate UGen
minval UGen
maxval Warp UGen
warp UGen
lag_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"MouseY" [UGen
minval,UGen
maxval,Warp UGen -> UGen
forall t. Num t => Warp t -> t
from_warp Warp UGen
warp,UGen
lag_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sum of uniform distributions.
--
--  NRand [IR] lo=0.0 hi=1.0 n=0.0;    NONDET
nRand :: ID a => a -> UGen -> UGen -> UGen -> UGen
nRand :: a -> UGen -> UGen -> UGen -> UGen
nRand a
z UGen
lo UGen
hi UGen
n = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NRand" [UGen
lo,UGen
hi,UGen
n] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | (Undocumented class)
--
--  NodeID [IR]
nodeID :: Rate -> UGen
nodeID :: Rate -> UGen
nodeID Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"NodeID" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Flattens dynamics.
--
--  Normalizer [AR] in=0.0 level=1.0 dur=1.0e-2;    FILTER: TRUE
normalizer :: UGen -> UGen -> UGen -> UGen
normalizer :: UGen -> UGen -> UGen -> UGen
normalizer UGen
in_ UGen
level UGen
dur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Normalizer" [UGen
in_,UGen
level,UGen
dur] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of audio busses.
--
--  NumAudioBuses [IR]
numAudioBuses :: UGen
numAudioBuses :: UGen
numAudioBuses = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumAudioBuses" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of open buffers.
--
--  NumBuffers [IR]
numBuffers :: UGen
numBuffers :: UGen
numBuffers = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumBuffers" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of control busses.
--
--  NumControlBuses [IR]
numControlBuses :: UGen
numControlBuses :: UGen
numControlBuses = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumControlBuses" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of input busses.
--
--  NumInputBuses [IR]
numInputBuses :: UGen
numInputBuses :: UGen
numInputBuses = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumInputBuses" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of output busses.
--
--  NumOutputBuses [IR]
numOutputBuses :: UGen
numOutputBuses :: UGen
numOutputBuses = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumOutputBuses" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of currently running synths.
--
--  NumRunningSynths [IR,KR]
numRunningSynths :: UGen
numRunningSynths :: UGen
numRunningSynths = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"NumRunningSynths" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Write a signal to a bus with sample accurate timing.
--
--  OffsetOut [KR,AR] bus=0.0 *channelsArray=0.0;    MCE=1, FILTER: TRUE
offsetOut :: UGen -> UGen -> UGen
offsetOut :: UGen -> UGen -> UGen
offsetOut UGen
bus UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"OffsetOut" [UGen
bus] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | One pole filter.
--
--  OnePole [KR,AR] in=0.0 coef=0.5;    FILTER: TRUE
onePole :: UGen -> UGen -> UGen
onePole :: UGen -> UGen -> UGen
onePole UGen
in_ UGen
coef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"OnePole" [UGen
in_,UGen
coef] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | One zero filter.
--
--  OneZero [KR,AR] in=0.0 coef=0.5;    FILTER: TRUE
oneZero :: UGen -> UGen -> UGen
oneZero :: UGen -> UGen -> UGen
oneZero UGen
in_ UGen
coef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"OneZero" [UGen
in_,UGen
coef] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Onset detector
--
--  Onsets [KR] chain=0.0 threshold=0.5 odftype=3.0 relaxtime=1.0 floor=0.1 mingap=10.0 medianspan=11.0 whtype=1.0 rawodf=0.0
onsets :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
onsets :: UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
onsets UGen
chain UGen
threshold UGen
odftype UGen
relaxtime UGen
floor_ UGen
mingap UGen
medianspan UGen
whtype UGen
rawodf = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Onsets" [UGen
chain,UGen
threshold,UGen
odftype,UGen
relaxtime,UGen
floor_,UGen
mingap,UGen
medianspan,UGen
whtype,UGen
rawodf] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Interpolating wavetable oscillator.
--
--  Osc [KR,AR] bufnum=0.0 freq=440.0 phase=0.0
osc :: Rate -> UGen -> UGen -> UGen -> UGen
osc :: Rate -> UGen -> UGen -> UGen -> UGen
osc Rate
rate UGen
bufnum UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Osc" [UGen
bufnum,UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Noninterpolating wavetable oscillator.
--
--  OscN [KR,AR] bufnum=0.0 freq=440.0 phase=0.0
oscN :: Rate -> UGen -> UGen -> UGen -> UGen
oscN :: Rate -> UGen -> UGen -> UGen -> UGen
oscN Rate
rate UGen
bufnum UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"OscN" [UGen
bufnum,UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Write a signal to a bus.
--
--  Out [KR,AR] bus=0.0 *channelsArray=0.0;    MCE=1, FILTER: TRUE
out :: UGen -> UGen -> UGen
out :: UGen -> UGen -> UGen
out UGen
bus UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"Out" [UGen
bus] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Very fast sine grain with a parabolic envelope
--
--  PSinGrain [AR] freq=440.0 dur=0.2 amp=0.1
pSinGrain :: Rate -> UGen -> UGen -> UGen -> UGen
pSinGrain :: Rate -> UGen -> UGen -> UGen -> UGen
pSinGrain Rate
rate UGen
freq UGen
dur UGen
amp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"PSinGrain" [UGen
freq,UGen
dur,UGen
amp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Complex addition.
--
--  PV_Add [KR] bufferA=0.0 bufferB=0.0
pv_Add :: UGen -> UGen -> UGen
pv_Add :: UGen -> UGen -> UGen
pv_Add UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Add" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Scramble bins.
--
--  PV_BinScramble [KR] buffer=0.0 wipe=0.0 width=0.2 trig=0.0;    NONDET
pv_BinScramble :: ID a => a -> UGen -> UGen -> UGen -> UGen -> UGen
pv_BinScramble :: a -> UGen -> UGen -> UGen -> UGen -> UGen
pv_BinScramble a
z UGen
buffer UGen
wipe UGen
width UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_BinScramble" [UGen
buffer,UGen
wipe,UGen
width,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Shift and stretch bin position.
--
--  PV_BinShift [KR] buffer=0.0 stretch=1.0 shift=0.0 interp=0.0
pv_BinShift :: UGen -> UGen -> UGen -> UGen -> UGen
pv_BinShift :: UGen -> UGen -> UGen -> UGen -> UGen
pv_BinShift UGen
buffer UGen
stretch UGen
shift UGen
interp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_BinShift" [UGen
buffer,UGen
stretch,UGen
shift,UGen
interp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Combine low and high bins from two inputs.
--
--  PV_BinWipe [KR] bufferA=0.0 bufferB=0.0 wipe=0.0
pv_BinWipe :: UGen -> UGen -> UGen -> UGen
pv_BinWipe :: UGen -> UGen -> UGen -> UGen
pv_BinWipe UGen
bufferA UGen
bufferB UGen
wipe = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_BinWipe" [UGen
bufferA,UGen
bufferB,UGen
wipe] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Zero bins.
--
--  PV_BrickWall [KR] buffer=0.0 wipe=0.0
pv_BrickWall :: UGen -> UGen -> UGen
pv_BrickWall :: UGen -> UGen -> UGen
pv_BrickWall UGen
buffer UGen
wipe = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_BrickWall" [UGen
buffer,UGen
wipe] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Complex plane attack.
--
--  PV_ConformalMap [KR] buffer=0.0 areal=0.0 aimag=0.0
pv_ConformalMap :: UGen -> UGen -> UGen -> UGen
pv_ConformalMap :: UGen -> UGen -> UGen -> UGen
pv_ConformalMap UGen
buffer UGen
areal UGen
aimag = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_ConformalMap" [UGen
buffer,UGen
areal,UGen
aimag] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Complex conjugate
--
--  PV_Conj [KR] buffer=0.0
pv_Conj :: UGen -> UGen
pv_Conj :: UGen -> UGen
pv_Conj UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Conj" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Copy an FFT buffer
--
--  PV_Copy [KR] bufferA=0.0 bufferB=0.0
pv_Copy :: UGen -> UGen -> UGen
pv_Copy :: UGen -> UGen -> UGen
pv_Copy UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Copy" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Copy magnitudes and phases.
--
--  PV_CopyPhase [KR] bufferA=0.0 bufferB=0.0
pv_CopyPhase :: UGen -> UGen -> UGen
pv_CopyPhase :: UGen -> UGen -> UGen
pv_CopyPhase UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_CopyPhase" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Random phase shifting.
--
--  PV_Diffuser [KR] buffer=0.0 trig=0.0
pv_Diffuser :: UGen -> UGen -> UGen
pv_Diffuser :: UGen -> UGen -> UGen
pv_Diffuser UGen
buffer UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Diffuser" [UGen
buffer,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Complex division
--
--  PV_Div [KR] bufferA=0.0 bufferB=0.0
pv_Div :: UGen -> UGen -> UGen
pv_Div :: UGen -> UGen -> UGen
pv_Div UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Div" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

{-
-- | FFT onset detector.
--
--  PV_HainsworthFoote [KR,AR] maxSize=0.0
pv_HainsworthFoote :: UGen -> UGen
pv_HainsworthFoote maxSize = mkUGen Nothing [KR,AR] (Left KR) "PV_HainsworthFoote" [maxSize] Nothing 1 (Special 0) NoId

-- | FFT feature detector for onset detection.
--
--  PV_JensenAndersen [KR,AR] maxSize=0.0
pv_JensenAndersen :: UGen -> UGen
pv_JensenAndersen maxSize = mkUGen Nothing [KR,AR] (Left KR) "PV_JensenAndersen" [maxSize] Nothing 1 (Special 0) NoId
-}

-- | Pass bins which are a local maximum.
--
--  PV_LocalMax [KR] buffer=0.0 threshold=0.0
pv_LocalMax :: UGen -> UGen -> UGen
pv_LocalMax :: UGen -> UGen -> UGen
pv_LocalMax UGen
buffer UGen
threshold = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_LocalMax" [UGen
buffer,UGen
threshold] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pass bins above a threshold.
--
--  PV_MagAbove [KR] buffer=0.0 threshold=0.0
pv_MagAbove :: UGen -> UGen -> UGen
pv_MagAbove :: UGen -> UGen -> UGen
pv_MagAbove UGen
buffer UGen
threshold = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagAbove" [UGen
buffer,UGen
threshold] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pass bins below a threshold.
--
--  PV_MagBelow [KR] buffer=0.0 threshold=0.0
pv_MagBelow :: UGen -> UGen -> UGen
pv_MagBelow :: UGen -> UGen -> UGen
pv_MagBelow UGen
buffer UGen
threshold = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagBelow" [UGen
buffer,UGen
threshold] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Clip bins to a threshold.
--
--  PV_MagClip [KR] buffer=0.0 threshold=0.0
pv_MagClip :: UGen -> UGen -> UGen
pv_MagClip :: UGen -> UGen -> UGen
pv_MagClip UGen
buffer UGen
threshold = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagClip" [UGen
buffer,UGen
threshold] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Division of magnitudes
--
--  PV_MagDiv [KR] bufferA=0.0 bufferB=0.0 zeroed=1.0e-4
pv_MagDiv :: UGen -> UGen -> UGen -> UGen
pv_MagDiv :: UGen -> UGen -> UGen -> UGen
pv_MagDiv UGen
bufferA UGen
bufferB UGen
zeroed = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagDiv" [UGen
bufferA,UGen
bufferB,UGen
zeroed] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Freeze magnitudes.
--
--  PV_MagFreeze [KR] buffer=0.0 freeze=0.0
pv_MagFreeze :: UGen -> UGen -> UGen
pv_MagFreeze :: UGen -> UGen -> UGen
pv_MagFreeze UGen
buffer UGen
freeze = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagFreeze" [UGen
buffer,UGen
freeze] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Multiply magnitudes.
--
--  PV_MagMul [KR] bufferA=0.0 bufferB=0.0
pv_MagMul :: UGen -> UGen -> UGen
pv_MagMul :: UGen -> UGen -> UGen
pv_MagMul UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagMul" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Multiply magnitudes by noise.
--
--  PV_MagNoise [KR] buffer=0.0
pv_MagNoise :: UGen -> UGen
pv_MagNoise :: UGen -> UGen
pv_MagNoise UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagNoise" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | shift and stretch magnitude bin position.
--
--  PV_MagShift [KR] buffer=0.0 stretch=1.0 shift=0.0
pv_MagShift :: UGen -> UGen -> UGen -> UGen
pv_MagShift :: UGen -> UGen -> UGen -> UGen
pv_MagShift UGen
buffer UGen
stretch UGen
shift = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagShift" [UGen
buffer,UGen
stretch,UGen
shift] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Average magnitudes across bins.
--
--  PV_MagSmear [KR] buffer=0.0 bins=0.0
pv_MagSmear :: UGen -> UGen -> UGen
pv_MagSmear :: UGen -> UGen -> UGen
pv_MagSmear UGen
buffer UGen
bins = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagSmear" [UGen
buffer,UGen
bins] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Square magnitudes.
--
--  PV_MagSquared [KR] buffer=0.0
pv_MagSquared :: UGen -> UGen
pv_MagSquared :: UGen -> UGen
pv_MagSquared UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_MagSquared" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Maximum magnitude.
--
--  PV_Max [KR] bufferA=0.0 bufferB=0.0
pv_Max :: UGen -> UGen -> UGen
pv_Max :: UGen -> UGen -> UGen
pv_Max UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Max" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Minimum magnitude.
--
--  PV_Min [KR] bufferA=0.0 bufferB=0.0
pv_Min :: UGen -> UGen -> UGen
pv_Min :: UGen -> UGen -> UGen
pv_Min UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Min" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Complex multiply.
--
--  PV_Mul [KR] bufferA=0.0 bufferB=0.0
pv_Mul :: UGen -> UGen -> UGen
pv_Mul :: UGen -> UGen -> UGen
pv_Mul UGen
bufferA UGen
bufferB = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_Mul" [UGen
bufferA,UGen
bufferB] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Shift phase.
--
--  PV_PhaseShift [KR] buffer=0.0 shift=0.0 integrate=0.0
pv_PhaseShift :: UGen -> UGen -> UGen -> UGen
pv_PhaseShift :: UGen -> UGen -> UGen -> UGen
pv_PhaseShift UGen
buffer UGen
shift UGen
integrate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_PhaseShift" [UGen
buffer,UGen
shift,UGen
integrate] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Shift phase by 270 degrees.
--
--  PV_PhaseShift270 [KR] buffer=0.0
pv_PhaseShift270 :: UGen -> UGen
pv_PhaseShift270 :: UGen -> UGen
pv_PhaseShift270 UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_PhaseShift270" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Shift phase by 90 degrees.
--
--  PV_PhaseShift90 [KR] buffer=0.0
pv_PhaseShift90 :: UGen -> UGen
pv_PhaseShift90 :: UGen -> UGen
pv_PhaseShift90 UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_PhaseShift90" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pass random bins.
--
--  PV_RandComb [KR] buffer=0.0 wipe=0.0 trig=0.0;    NONDET
pv_RandComb :: ID a => a -> UGen -> UGen -> UGen -> UGen
pv_RandComb :: a -> UGen -> UGen -> UGen -> UGen
pv_RandComb a
z UGen
buffer UGen
wipe UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_RandComb" [UGen
buffer,UGen
wipe,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Crossfade in random bin order.
--
--  PV_RandWipe [KR] bufferA=0.0 bufferB=0.0 wipe=0.0 trig=0.0;    NONDET
pv_RandWipe :: ID a => a -> UGen -> UGen -> UGen -> UGen -> UGen
pv_RandWipe :: a -> UGen -> UGen -> UGen -> UGen -> UGen
pv_RandWipe a
z UGen
bufferA UGen
bufferB UGen
wipe UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_RandWipe" [UGen
bufferA,UGen
bufferB,UGen
wipe,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Make gaps in spectrum.
--
--  PV_RectComb [KR] buffer=0.0 numTeeth=0.0 phase=0.0 width=0.5
pv_RectComb :: UGen -> UGen -> UGen -> UGen -> UGen
pv_RectComb :: UGen -> UGen -> UGen -> UGen -> UGen
pv_RectComb UGen
buffer UGen
numTeeth UGen
phase UGen
width = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_RectComb" [UGen
buffer,UGen
numTeeth,UGen
phase,UGen
width] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Make gaps in spectrum.
--
--  PV_RectComb2 [KR] bufferA=0.0 bufferB=0.0 numTeeth=0.0 phase=0.0 width=0.5
pv_RectComb2 :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pv_RectComb2 :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pv_RectComb2 UGen
bufferA UGen
bufferB UGen
numTeeth UGen
phase UGen
width = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PV_RectComb2" [UGen
bufferA,UGen
bufferB,UGen
numTeeth,UGen
phase,UGen
width] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two channel equal power pan.
--
--  Pan2 [KR,AR] in=0.0 pos=0.0 level=1.0;    FILTER: TRUE
pan2 :: UGen -> UGen -> UGen -> UGen
pan2 :: UGen -> UGen -> UGen -> UGen
pan2 UGen
in_ UGen
pos UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Pan2" [UGen
in_,UGen
pos,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Four channel equal power pan.
--
--  Pan4 [KR,AR] in=0.0 xpos=0.0 ypos=0.0 level=1.0
pan4 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
pan4 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
pan4 Rate
rate UGen
in_ UGen
xpos UGen
ypos UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Pan4" [UGen
in_,UGen
xpos,UGen
ypos,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
4 (Int -> Special
Special Int
0) UGenId
NoId

-- | Azimuth panner
--
--  PanAz [KR,AR] in=0.0 pos=0.0 level=1.0 width=2.0 orientation=0.5;    NC INPUT: True, FILTER: TRUE
panAz :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
panAz :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
panAz Int
numChannels UGen
in_ UGen
pos UGen
level UGen
width UGen
orientation = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"PanAz" [UGen
in_,UGen
pos,UGen
level,UGen
width,UGen
orientation] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Ambisonic B-format panner.
--
--  PanB [KR,AR] in=0.0 azimuth=0.0 elevation=0.0 gain=1.0
panB :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
panB :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
panB Rate
rate UGen
in_ UGen
azimuth UGen
elevation UGen
gain = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"PanB" [UGen
in_,UGen
azimuth,UGen
elevation,UGen
gain] Maybe [UGen]
forall a. Maybe a
Nothing Int
4 (Int -> Special
Special Int
0) UGenId
NoId

-- | 2D Ambisonic B-format panner.
--
--  PanB2 [KR,AR] in=0.0 azimuth=0.0 gain=1.0
panB2 :: Rate -> UGen -> UGen -> UGen -> UGen
panB2 :: Rate -> UGen -> UGen -> UGen -> UGen
panB2 Rate
rate UGen
in_ UGen
azimuth UGen
gain = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"PanB2" [UGen
in_,UGen
azimuth,UGen
gain] Maybe [UGen]
forall a. Maybe a
Nothing Int
3 (Int -> Special
Special Int
0) UGenId
NoId

-- | Real-time partitioned convolution
--
--  PartConv [AR] in=0.0 fftsize=0.0 irbufnum=0.0
partConv :: UGen -> UGen -> UGen -> UGen
partConv :: UGen -> UGen -> UGen -> UGen
partConv UGen
in_ UGen
fftsize UGen
irbufnum = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"PartConv" [UGen
in_,UGen
fftsize,UGen
irbufnum] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | When triggered, pauses a node.
--
--  Pause [KR] gate=0.0 id=0.0
pause :: UGen -> UGen -> UGen
pause :: UGen -> UGen -> UGen
pause UGen
gate_ UGen
id_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Pause" [UGen
gate_,UGen
id_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | When triggered, pause enclosing synth.
--
--  PauseSelf [KR] in=0.0
pauseSelf :: UGen -> UGen
pauseSelf :: UGen -> UGen
pauseSelf UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PauseSelf" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | FIXME: PauseSelfWhenDone purpose.
--
--  PauseSelfWhenDone [KR] src=0.0
pauseSelfWhenDone :: UGen -> UGen
pauseSelfWhenDone :: UGen -> UGen
pauseSelfWhenDone UGen
src = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"PauseSelfWhenDone" [UGen
src] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Track peak signal amplitude.
--
--  Peak [KR,AR] in=0.0 trig=0.0;    FILTER: TRUE
peak :: UGen -> UGen -> UGen
peak :: UGen -> UGen -> UGen
peak UGen
in_ UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Peak" [UGen
in_,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Track peak signal amplitude.
--
--  PeakFollower [KR,AR] in=0.0 decay=0.999;    FILTER: TRUE
peakFollower :: UGen -> UGen -> UGen
peakFollower :: UGen -> UGen -> UGen
peakFollower UGen
in_ UGen
decay_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"PeakFollower" [UGen
in_,UGen
decay_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A resettable linear ramp between two levels.
--
--  Phasor [KR,AR] trig=0.0 rate=1.0 start=0.0 end=1.0 resetPos=0.0
phasor :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
phasor :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
phasor Rate
rate UGen
trig_ UGen
rate_ UGen
start UGen
end UGen
resetPos = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Phasor" [UGen
trig_,UGen
rate_,UGen
start,UGen
end,UGen
resetPos] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pink Noise.
--
--  PinkNoise [KR,AR] ;    NONDET
pinkNoise :: ID a => a -> Rate -> UGen
pinkNoise :: a -> Rate -> UGen
pinkNoise a
z Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"PinkNoise" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Autocorrelation pitch follower
--
--  Pitch [KR] in=0.0 initFreq=440.0 minFreq=60.0 maxFreq=4000.0 execFreq=100.0 maxBinsPerOctave=16.0 median=1.0 ampThreshold=1.0e-2 peakThreshold=0.5 downSample=1.0 clar=0.0
pitch :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pitch :: UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
pitch UGen
in_ UGen
initFreq UGen
minFreq UGen
maxFreq UGen
execFreq UGen
maxBinsPerOctave UGen
median_ UGen
ampThreshold UGen
peakThreshold UGen
downSample UGen
clar = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"Pitch" [UGen
in_,UGen
initFreq,UGen
minFreq,UGen
maxFreq,UGen
execFreq,UGen
maxBinsPerOctave,UGen
median_,UGen
ampThreshold,UGen
peakThreshold,UGen
downSample,UGen
clar] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Time domain pitch shifter.
--
--  PitchShift [AR] in=0.0 windowSize=0.2 pitchRatio=1.0 pitchDispersion=0.0 timeDispersion=0.0;    FILTER: TRUE
pitchShift :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pitchShift :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pitchShift UGen
in_ UGen
windowSize UGen
pitchRatio UGen
pitchDispersion UGen
timeDispersion = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"PitchShift" [UGen
in_,UGen
windowSize,UGen
pitchRatio,UGen
pitchDispersion,UGen
timeDispersion] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sample playback oscillator.
--
--  PlayBuf [KR,AR] bufnum=0.0 rate=1.0 trigger=1.0 startPos=0.0 loop=0.0 doneAction=0.0;    NC INPUT: True, ENUMERATION INPUTS: 4=Loop, 5=DoneAction
playBuf :: Int -> Rate -> UGen -> UGen -> UGen -> UGen -> Loop UGen -> DoneAction UGen -> UGen
playBuf :: Int
-> Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> Loop UGen
-> DoneAction UGen
-> UGen
playBuf Int
numChannels Rate
rate UGen
bufnum UGen
rate_ UGen
trigger UGen
startPos Loop UGen
loop DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"PlayBuf" [UGen
bufnum,UGen
rate_,UGen
trigger,UGen
startPos,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | A Karplus-Strong UGen
--
--  Pluck [AR] in=0.0 trig=1.0 maxdelaytime=0.2 delaytime=0.2 decaytime=1.0 coef=0.5;    FILTER: TRUE
pluck :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pluck :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
pluck UGen
in_ UGen
trig_ UGen
maxdelaytime UGen
delaytime UGen
decaytime UGen
coef = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Pluck" [UGen
in_,UGen
trig_,UGen
maxdelaytime,UGen
delaytime,UGen
decaytime,UGen
coef] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

{-
-- | Print the current output value of a UGen
--
--  Poll [KR,AR] trig=0.0 in=0.0 trigid=-1.0 label=0.0;    FILTER: TRUE, REORDERS INPUTS: [0,1,3,2]
poll :: UGen -> UGen -> UGen -> UGen -> UGen
poll trig_ in_ trigid label_ = mkUGen Nothing [KR,AR] (Right [1]) "Poll" [trig_,in_,trigid,label_] Nothing 1 (Special 0) NoId
-}

-- | Band limited pulse wave.
--
--  Pulse [KR,AR] freq=440.0 width=0.5
pulse :: Rate -> UGen -> UGen -> UGen
pulse :: Rate -> UGen -> UGen -> UGen
pulse Rate
rate UGen
freq UGen
width = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Pulse" [UGen
freq,UGen
width] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pulse counter.
--
--  PulseCount [KR,AR] trig=0.0 reset=0.0;    FILTER: TRUE
pulseCount :: UGen -> UGen -> UGen
pulseCount :: UGen -> UGen -> UGen
pulseCount UGen
trig_ UGen
reset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"PulseCount" [UGen
trig_,UGen
reset] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pulse divider.
--
--  PulseDivider [KR,AR] trig=0.0 div=2.0 start=0.0;    FILTER: TRUE
pulseDivider :: UGen -> UGen -> UGen -> UGen
pulseDivider :: UGen -> UGen -> UGen -> UGen
pulseDivider UGen
trig_ UGen
div_ UGen
start = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"PulseDivider" [UGen
trig_,UGen
div_,UGen
start] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | General quadratic map chaotic generator
--
--  QuadC [AR] freq=22050.0 a=1.0 b=-1.0 c=-0.75 xi=0.0
quadC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadC :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadC Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"QuadC" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | General quadratic map chaotic generator
--
--  QuadL [AR] freq=22050.0 a=1.0 b=-1.0 c=-0.75 xi=0.0
quadL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadL Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"QuadL" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | General quadratic map chaotic generator
--
--  QuadN [AR] freq=22050.0 a=1.0 b=-1.0 c=-0.75 xi=0.0
quadN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
quadN Rate
rate UGen
freq UGen
a UGen
b UGen
c UGen
xi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"QuadN" [UGen
freq,UGen
a,UGen
b,UGen
c,UGen
xi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A resonant high pass filter.
--
--  RHPF [KR,AR] in=0.0 freq=440.0 rq=1.0;    FILTER: TRUE
rhpf :: UGen -> UGen -> UGen -> UGen
rhpf :: UGen -> UGen -> UGen -> UGen
rhpf UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"RHPF" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | A resonant low pass filter.
--
--  RLPF [KR,AR] in=0.0 freq=440.0 rq=1.0;    FILTER: TRUE
rlpf :: UGen -> UGen -> UGen -> UGen
rlpf :: UGen -> UGen -> UGen -> UGen
rlpf UGen
in_ UGen
freq UGen
rq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"RLPF" [UGen
in_,UGen
freq,UGen
rq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Number of radians per sample.
--
--  RadiansPerSample [IR]
radiansPerSample :: UGen
radiansPerSample :: UGen
radiansPerSample = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"RadiansPerSample" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Break a continuous signal into line segments
--
--  Ramp [KR,AR] in=0.0 lagTime=0.1;    FILTER: TRUE
ramp :: UGen -> UGen -> UGen
ramp :: UGen -> UGen -> UGen
ramp UGen
in_ UGen
lagTime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Ramp" [UGen
in_,UGen
lagTime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Single random number generator.
--
--  Rand [IR] lo=0.0 hi=1.0;    NONDET
rand :: ID a => a -> UGen -> UGen -> UGen
rand :: a -> UGen -> UGen -> UGen
rand a
z UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"Rand" [UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Set the synth's random generator ID.
--
--  RandID [IR,KR] id=0.0
randID :: Rate -> UGen -> UGen
randID :: Rate -> UGen -> UGen
randID Rate
rate UGen
id_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"RandID" [UGen
id_] Maybe [UGen]
forall a. Maybe a
Nothing Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sets the synth's random generator seed.
--
--  RandSeed [IR,KR,AR] trig=0.0 seed=56789.0
randSeed :: Rate -> UGen -> UGen -> UGen
randSeed :: Rate -> UGen -> UGen -> UGen
randSeed Rate
rate UGen
trig_ UGen
seed = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"RandSeed" [UGen
trig_,UGen
seed] Maybe [UGen]
forall a. Maybe a
Nothing Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Record or overdub into a Buffer.
--
--  RecordBuf [KR,AR] bufnum=0.0 offset=0.0 recLevel=1.0 preLevel=0.0 run=1.0 loop=1.0 trigger=1.0 doneAction=0.0 *inputArray=0.0;    MCE=1, REORDERS INPUTS: [8,0,1,2,3,4,5,6,7], ENUMERATION INPUTS: 5=Loop, 7=DoneAction
recordBuf :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> Loop UGen -> UGen -> DoneAction UGen -> UGen -> UGen
recordBuf :: Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> Loop UGen
-> UGen
-> DoneAction UGen
-> UGen
-> UGen
recordBuf Rate
rate UGen
bufnum UGen
offset UGen
recLevel UGen
preLevel UGen
run Loop UGen
loop UGen
trigger DoneAction UGen
doneAction UGen
inputArray = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"RecordBuf" [UGen
bufnum,UGen
offset,UGen
recLevel,UGen
preLevel,UGen
run,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop,UGen
trigger,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
inputArray]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Send signal to a bus, overwriting previous contents.
--
--  ReplaceOut [KR,AR] bus=0.0 *channelsArray=0.0;    MCE=1, FILTER: TRUE
replaceOut :: UGen -> UGen -> UGen
replaceOut :: UGen -> UGen -> UGen
replaceOut UGen
bus UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"ReplaceOut" [UGen
bus] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Resonant filter.
--
--  Resonz [KR,AR] in=0.0 freq=440.0 bwr=1.0;    FILTER: TRUE
resonz :: UGen -> UGen -> UGen -> UGen
resonz :: UGen -> UGen -> UGen -> UGen
resonz UGen
in_ UGen
freq UGen
bwr = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Resonz" [UGen
in_,UGen
freq,UGen
bwr] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Ringing filter.
--
--  Ringz [KR,AR] in=0.0 freq=440.0 decaytime=1.0;    FILTER: TRUE
ringz :: UGen -> UGen -> UGen -> UGen
ringz :: UGen -> UGen -> UGen -> UGen
ringz UGen
in_ UGen
freq UGen
decaytime = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Ringz" [UGen
in_,UGen
freq,UGen
decaytime] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Rotate a sound field.
--
--  Rotate2 [KR,AR] x=0.0 y=0.0 pos=0.0;    FILTER: TRUE
rotate2 :: UGen -> UGen -> UGen -> UGen
rotate2 :: UGen -> UGen -> UGen -> UGen
rotate2 UGen
x UGen
y UGen
pos = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"Rotate2" [UGen
x,UGen
y,UGen
pos] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Track maximum level.
--
--  RunningMax [KR,AR] in=0.0 trig=0.0;    FILTER: TRUE
runningMax :: UGen -> UGen -> UGen
runningMax :: UGen -> UGen -> UGen
runningMax UGen
in_ UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"RunningMax" [UGen
in_,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Track minimum level.
--
--  RunningMin [KR,AR] in=0.0 trig=0.0;    FILTER: TRUE
runningMin :: UGen -> UGen -> UGen
runningMin :: UGen -> UGen -> UGen
runningMin UGen
in_ UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"RunningMin" [UGen
in_,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Running sum over n frames
--
--  RunningSum [KR,AR] in=0.0 numsamp=40.0;    FILTER: TRUE
runningSum :: UGen -> UGen -> UGen
runningSum :: UGen -> UGen -> UGen
runningSum UGen
in_ UGen
numsamp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"RunningSum" [UGen
in_,UGen
numsamp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Second order filter section (biquad).
--
--  SOS [KR,AR] in=0.0 a0=0.0 a1=0.0 a2=0.0 b1=0.0 b2=0.0;    FILTER: TRUE
sos :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
sos :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
sos UGen
in_ UGen
a0 UGen
a1 UGen
a2 UGen
b1 UGen
b2 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"SOS" [UGen
in_,UGen
a0,UGen
a1,UGen
a2,UGen
b1,UGen
b2] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Duration of one sample.
--
--  SampleDur [IR]
sampleDur :: UGen
sampleDur :: UGen
sampleDur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"SampleDur" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Server sample rate.
--
--  SampleRate [IR]
sampleRate :: UGen
sampleRate :: UGen
sampleRate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"SampleRate" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Remove infinity, NaN, and denormals
--
--  Sanitize [KR,AR] in=0.0 replace=0.0
sanitize :: UGen -> UGen -> UGen
sanitize :: UGen -> UGen -> UGen
sanitize UGen
in_ UGen
replace = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Sanitize" [UGen
in_,UGen
replace] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Band limited sawtooth.
--
--  Saw [KR,AR] freq=440.0
saw :: Rate -> UGen -> UGen
saw :: Rate -> UGen -> UGen
saw Rate
rate UGen
freq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Saw" [UGen
freq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Schmidt trigger.
--
--  Schmidt [IR,KR,AR] in=0.0 lo=0.0 hi=1.0;    FILTER: TRUE
schmidt :: UGen -> UGen -> UGen -> UGen
schmidt :: UGen -> UGen -> UGen -> UGen
schmidt UGen
in_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Schmidt" [UGen
in_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Select output from an array of inputs.
--
--  Select [IR,KR,AR] which=0.0 *array=0.0;    MCE=1, FILTER: TRUE
select :: UGen -> UGen -> UGen
select :: UGen -> UGen -> UGen
select UGen
which UGen
array = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"Select" [UGen
which] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
array]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Send a trigger message from the server back to the client.
--
--  SendTrig [KR,AR] in=0.0 id=0.0 value=0.0;    FILTER: TRUE
sendTrig :: UGen -> UGen -> UGen -> UGen
sendTrig :: UGen -> UGen -> UGen -> UGen
sendTrig UGen
in_ UGen
id_ UGen
value = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"SendTrig" [UGen
in_,UGen
id_,UGen
value] Maybe [UGen]
forall a. Maybe a
Nothing Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Set-reset flip flop.
--
--  SetResetFF [KR,AR] trig=0.0 reset=0.0;    FILTER: TRUE
setResetFF :: UGen -> UGen -> UGen
setResetFF :: UGen -> UGen -> UGen
setResetFF UGen
trig_ UGen
reset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"SetResetFF" [UGen
trig_,UGen
reset] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Wave shaper.
--
--  Shaper [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
shaper :: UGen -> UGen -> UGen
shaper :: UGen -> UGen -> UGen
shaper UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"Shaper" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Interpolating sine wavetable oscillator.
--
--  SinOsc [KR,AR] freq=440.0 phase=0.0
sinOsc :: Rate -> UGen -> UGen -> UGen
sinOsc :: Rate -> UGen -> UGen -> UGen
sinOsc Rate
rate UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SinOsc" [UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Feedback FM oscillator
--
--  SinOscFB [KR,AR] freq=440.0 feedback=0.0
sinOscFB :: Rate -> UGen -> UGen -> UGen
sinOscFB :: Rate -> UGen -> UGen -> UGen
sinOscFB Rate
rate UGen
freq UGen
feedback = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SinOscFB" [UGen
freq,UGen
feedback] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Slew rate limiter.
--
--  Slew [KR,AR] in=0.0 up=1.0 dn=1.0;    FILTER: TRUE
slew :: UGen -> UGen -> UGen -> UGen
slew :: UGen -> UGen -> UGen -> UGen
slew UGen
in_ UGen
up UGen
dn = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Slew" [UGen
in_,UGen
up,UGen
dn] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Slope of signal
--
--  Slope [KR,AR] in=0.0;    FILTER: TRUE
slope :: UGen -> UGen
slope :: UGen -> UGen
slope UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Slope" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Spectral centroid
--
--  SpecCentroid [KR] buffer=0.0
specCentroid :: Rate -> UGen -> UGen
specCentroid :: Rate -> UGen -> UGen
specCentroid Rate
rate UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SpecCentroid" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Spectral Flatness measure
--
--  SpecFlatness [KR] buffer=0.0
specFlatness :: Rate -> UGen -> UGen
specFlatness :: Rate -> UGen -> UGen
specFlatness Rate
rate UGen
buffer = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SpecFlatness" [UGen
buffer] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Find a percentile of FFT magnitude spectrum
--
--  SpecPcile [KR] buffer=0.0 fraction=0.5 interpolate=0.0
specPcile :: Rate -> UGen -> UGen -> UGen -> UGen
specPcile :: Rate -> UGen -> UGen -> UGen -> UGen
specPcile Rate
rate UGen
buffer UGen
fraction UGen
interpolate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SpecPcile" [UGen
buffer,UGen
fraction,UGen
interpolate] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | physical model of resonating spring
--
--  Spring [KR,AR] in=0.0 spring=1.0 damp=0.0
spring :: Rate -> UGen -> UGen -> UGen -> UGen
spring :: Rate -> UGen -> UGen -> UGen -> UGen
spring Rate
rate UGen
in_ UGen
spring_ UGen
damp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Spring" [UGen
in_,UGen
spring_,UGen
damp] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Standard map chaotic generator
--
--  StandardL [AR] freq=22050.0 k=1.0 xi=0.5 yi=0.0
standardL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
standardL :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
standardL Rate
rate UGen
freq UGen
k UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"StandardL" [UGen
freq,UGen
k,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Standard map chaotic generator
--
--  StandardN [AR] freq=22050.0 k=1.0 xi=0.5 yi=0.0
standardN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
standardN :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
standardN Rate
rate UGen
freq UGen
k UGen
xi UGen
yi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"StandardN" [UGen
freq,UGen
k,UGen
xi,UGen
yi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Pulse counter.
--
--  Stepper [KR,AR] trig=0.0 reset=0.0 min=0.0 max=7.0 step=1.0 resetval=0.0;    FILTER: TRUE
stepper :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
stepper :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
stepper UGen
trig_ UGen
reset UGen
min_ UGen
max_ UGen
step UGen
resetval = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Stepper" [UGen
trig_,UGen
reset,UGen
min_,UGen
max_,UGen
step,UGen
resetval] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Stereo real-time convolver with linear interpolation
--
--  StereoConvolution2L [AR] in=0.0 kernelL=0.0 kernelR=0.0 trigger=0.0 framesize=2048.0 crossfade=1.0
stereoConvolution2L :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
stereoConvolution2L :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
stereoConvolution2L Rate
rate UGen
in_ UGen
kernelL UGen
kernelR UGen
trigger UGen
framesize UGen
crossfade = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"StereoConvolution2L" [UGen
in_,UGen
kernelL,UGen
kernelR,UGen
trigger,UGen
framesize,UGen
crossfade] Maybe [UGen]
forall a. Maybe a
Nothing Int
2 (Int -> Special
Special Int
0) UGenId
NoId

-- | Offset from synth start within one sample.
--
--  SubsampleOffset [IR]
subsampleOffset :: UGen
subsampleOffset :: UGen
subsampleOffset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"SubsampleOffset" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sum three signals
--
--  Sum3 [] in0=0.0 in1=0.0 in2=0.0;    FILTER: TRUE
sum3 :: UGen -> UGen -> UGen -> UGen
sum3 :: UGen -> UGen -> UGen -> UGen
sum3 UGen
in0 UGen
in1 UGen
in2 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR,Rate
DR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1,Int
2]) String
"Sum3" [UGen
in0,UGen
in1,UGen
in2] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Sum four signals
--
--  Sum4 [] in0=0.0 in1=0.0 in2=0.0 in3=0.0;    FILTER: TRUE
sum4 :: UGen -> UGen -> UGen -> UGen -> UGen
sum4 :: UGen -> UGen -> UGen -> UGen -> UGen
sum4 UGen
in0 UGen
in1 UGen
in2 UGen
in3 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR,Rate
DR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1,Int
2,Int
3]) String
"Sum4" [UGen
in0,UGen
in1,UGen
in2,UGen
in3] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Triggered linear ramp
--
--  Sweep [KR,AR] trig=0.0 rate=1.0;    FILTER: TRUE
sweep :: UGen -> UGen -> UGen
sweep :: UGen -> UGen -> UGen
sweep UGen
trig_ UGen
rate_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Sweep" [UGen
trig_,UGen
rate_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Hard sync sawtooth wave.
--
--  SyncSaw [KR,AR] syncFreq=440.0 sawFreq=440.0
syncSaw :: Rate -> UGen -> UGen -> UGen
syncSaw :: Rate -> UGen -> UGen -> UGen
syncSaw Rate
rate UGen
syncFreq UGen
sawFreq = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"SyncSaw" [UGen
syncFreq,UGen
sawFreq] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Control rate trigger to audio rate trigger converter
--
--  T2A [AR] in=0.0 offset=0.0
t2a :: UGen -> UGen -> UGen
t2a :: UGen -> UGen -> UGen
t2a UGen
in_ UGen
offset = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"T2A" [UGen
in_,UGen
offset] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Audio rate trigger to control rate trigger converter
--
--  T2K [KR] in=0.0
t2k :: UGen -> UGen
t2k :: UGen -> UGen
t2k UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"T2K" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | physical model of bouncing object
--
--  TBall [KR,AR] in=0.0 g=10.0 damp=0.0 friction=1.0e-2
tBall :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
tBall :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
tBall Rate
rate UGen
in_ UGen
g UGen
damp UGen
friction_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"TBall" [UGen
in_,UGen
g,UGen
damp,UGen
friction_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Trigger delay.
--
--  TDelay [KR,AR] in=0.0 dur=0.1;    FILTER: TRUE
tDelay :: UGen -> UGen -> UGen
tDelay :: UGen -> UGen -> UGen
tDelay UGen
in_ UGen
dur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"TDelay" [UGen
in_,UGen
dur] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Demand results as trigger from demand rate UGens.
--
--  TDuty [KR,AR] dur=1.0 reset=0.0 doneAction=0.0 level=1.0 gapFirst=0.0;    REORDERS INPUTS: [0,1,3,2,4], ENUMERATION INPUTS: 2=DoneAction
tDuty :: Rate -> UGen -> UGen -> DoneAction UGen -> UGen -> UGen -> UGen
tDuty :: Rate -> UGen -> UGen -> DoneAction UGen -> UGen -> UGen -> UGen
tDuty Rate
rate UGen
dur UGen
reset DoneAction UGen
doneAction UGen
level UGen
gapFirst = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"TDuty" [UGen
dur,UGen
reset,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction,UGen
level,UGen
gapFirst] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Triggered exponential random number generator.
--
--  TExpRand [KR,AR] lo=1.0e-2 hi=1.0 trig=0.0;    FILTER: TRUE, NONDET
tExpRand :: ID a => a -> UGen -> UGen -> UGen -> UGen
tExpRand :: a -> UGen -> UGen -> UGen -> UGen
tExpRand a
z UGen
lo UGen
hi UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
2]) String
"TExpRand" [UGen
lo,UGen
hi,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Buffer granulator.
--
--  TGrains [AR] trigger=0.0 bufnum=0.0 rate=1.0 centerPos=0.0 dur=0.1 pan=0.0 amp=0.1 interp=4.0;    NC INPUT: True
tGrains :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
tGrains :: Int
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
tGrains Int
numChannels UGen
trigger UGen
bufnum UGen
rate_ UGen
centerPos UGen
dur UGen
pan UGen
amp UGen
interp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"TGrains" [UGen
trigger,UGen
bufnum,UGen
rate_,UGen
centerPos,UGen
dur,UGen
pan,UGen
amp,UGen
interp] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Triggered integer random number generator.
--
--  TIRand [KR,AR] lo=0.0 hi=127.0 trig=0.0;    FILTER: TRUE, NONDET
tiRand :: ID a => a -> UGen -> UGen -> UGen -> UGen
tiRand :: a -> UGen -> UGen -> UGen -> UGen
tiRand a
z UGen
lo UGen
hi UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
2]) String
"TIRand" [UGen
lo,UGen
hi,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Triggered random number generator.
--
--  TRand [KR,AR] lo=0.0 hi=1.0 trig=0.0;    FILTER: TRUE, NONDET
tRand :: ID a => a -> UGen -> UGen -> UGen -> UGen
tRand :: a -> UGen -> UGen -> UGen -> UGen
tRand a
z UGen
lo UGen
hi UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
2]) String
"TRand" [UGen
lo,UGen
hi,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Triggered windex.
--
--  TWindex [KR,AR] in=0.0 normalize=0.0 *array=0.0;    MCE=1, FILTER: TRUE, REORDERS INPUTS: [0,2,1], NONDET
tWindex :: ID a => a -> UGen -> UGen -> UGen -> UGen
tWindex :: a -> UGen -> UGen -> UGen -> UGen
tWindex a
z UGen
in_ UGen
normalize UGen
array = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"TWindex" [UGen
in_,UGen
normalize] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
array]) Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Returns time since last triggered.
--
--  Timer [KR,AR] trig=0.0;    FILTER: TRUE
timer :: UGen -> UGen
timer :: UGen -> UGen
timer UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Timer" [UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Toggle flip flop.
--
--  ToggleFF [KR,AR] trig=0.0;    FILTER: TRUE
toggleFF :: UGen -> UGen
toggleFF :: UGen -> UGen
toggleFF UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"ToggleFF" [UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Timed trigger.
--
--  Trig [KR,AR] in=0.0 dur=0.1;    FILTER: TRUE
trig :: UGen -> UGen -> UGen
trig :: UGen -> UGen -> UGen
trig UGen
in_ UGen
dur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Trig" [UGen
in_,UGen
dur] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Timed trigger.
--
--  Trig1 [KR,AR] in=0.0 dur=0.1;    FILTER: TRUE
trig1 :: UGen -> UGen -> UGen
trig1 :: UGen -> UGen -> UGen
trig1 UGen
in_ UGen
dur = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Trig1" [UGen
in_,UGen
dur] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two pole filter.
--
--  TwoPole [KR,AR] in=0.0 freq=440.0 radius=0.8;    FILTER: TRUE
twoPole :: UGen -> UGen -> UGen -> UGen
twoPole :: UGen -> UGen -> UGen -> UGen
twoPole UGen
in_ UGen
freq UGen
radius = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"TwoPole" [UGen
in_,UGen
freq,UGen
radius] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Two zero filter.
--
--  TwoZero [KR,AR] in=0.0 freq=440.0 radius=0.8;    FILTER: TRUE
twoZero :: UGen -> UGen -> UGen -> UGen
twoZero :: UGen -> UGen -> UGen -> UGen
twoZero UGen
in_ UGen
freq UGen
radius = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"TwoZero" [UGen
in_,UGen
freq,UGen
radius] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Apply a unary operation to the values of an input ugen
--
--  UnaryOpUGen [] a=0.0;    FILTER: TRUE
unaryOpUGen :: UGen -> UGen
unaryOpUGen :: UGen -> UGen
unaryOpUGen UGen
a = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR,Rate
DR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"UnaryOpUGen" [UGen
a] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Stream in audio from a file, with variable rate
--
--  VDiskIn [AR] bufnum=0.0 rate=1.0 loop=0.0 sendID=0.0;    NC INPUT: True, ENUMERATION INPUTS: 2=Loop
vDiskIn :: Int -> UGen -> UGen -> Loop UGen -> UGen -> UGen
vDiskIn :: Int -> UGen -> UGen -> Loop UGen -> UGen -> UGen
vDiskIn Int
numChannels UGen
bufnum UGen
rate_ Loop UGen
loop UGen
sendID = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"VDiskIn" [UGen
bufnum,UGen
rate_,Loop UGen -> UGen
forall t. Num t => Loop t -> t
from_loop Loop UGen
loop,UGen
sendID] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | Variable wavetable oscillator.
--
--  VOsc [KR,AR] bufpos=0.0 freq=440.0 phase=0.0
vOsc :: Rate -> UGen -> UGen -> UGen -> UGen
vOsc :: Rate -> UGen -> UGen -> UGen -> UGen
vOsc Rate
rate UGen
bufpos UGen
freq UGen
phase = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"VOsc" [UGen
bufpos,UGen
freq,UGen
phase] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Three variable wavetable oscillators.
--
--  VOsc3 [KR,AR] bufpos=0.0 freq1=110.0 freq2=220.0 freq3=440.0
vOsc3 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
vOsc3 :: Rate -> UGen -> UGen -> UGen -> UGen -> UGen
vOsc3 Rate
rate UGen
bufpos UGen
freq1 UGen
freq2 UGen
freq3 = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"VOsc3" [UGen
bufpos,UGen
freq1,UGen
freq2,UGen
freq3] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Variable shaped lag
--
--  VarLag [KR,AR] in=0.0 time=0.1 curvature=0.0 warp=5.0 start=0.0;    FILTER: TRUE
varLag :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
varLag :: UGen -> UGen -> UGen -> UGen -> UGen -> UGen
varLag UGen
in_ UGen
time UGen
curvature UGen
warp UGen
start = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"VarLag" [UGen
in_,UGen
time,UGen
curvature,UGen
warp,UGen
start] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Variable duty saw
--
--  VarSaw [KR,AR] freq=440.0 iphase=0.0 width=0.5
varSaw :: Rate -> UGen -> UGen -> UGen -> UGen
varSaw :: Rate -> UGen -> UGen -> UGen -> UGen
varSaw Rate
rate UGen
freq UGen
iphase UGen
width = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"VarSaw" [UGen
freq,UGen
iphase,UGen
width] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | The Vibrato oscillator models a slow frequency modulation.
--
--  Vibrato [KR,AR] freq=440.0 rate=6.0 depth=2.0e-2 delay=0.0 onset=0.0 rateVariation=4.0e-2 depthVariation=0.1 iphase=0.0 trig=0.0;    NONDET
vibrato :: ID a => a -> Rate -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
vibrato :: a
-> Rate
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
vibrato a
z Rate
rate UGen
freq UGen
rate_ UGen
depth UGen
delay UGen
onset UGen
rateVariation UGen
depthVariation UGen
iphase UGen
trig_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"Vibrato" [UGen
freq,UGen
rate_,UGen
depth,UGen
delay,UGen
onset,UGen
rateVariation,UGen
depthVariation,UGen
iphase,UGen
trig_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Warp a buffer with a time pointer
--
--  Warp1 [AR] bufnum=0.0 pointer=0.0 freqScale=1.0 windowSize=0.2 envbufnum=-1.0 overlaps=8.0 windowRandRatio=0.0 interp=1.0;    NC INPUT: True
warp1 :: Int -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen -> UGen
warp1 :: Int
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
-> UGen
warp1 Int
numChannels UGen
bufnum UGen
pointer UGen
freqScale UGen
windowSize UGen
envbufnum UGen
overlaps UGen
windowRandRatio UGen
interp = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
AR) String
"Warp1" [UGen
bufnum,UGen
pointer,UGen
freqScale,UGen
windowSize,UGen
envbufnum,UGen
overlaps,UGen
windowRandRatio,UGen
interp] Maybe [UGen]
forall a. Maybe a
Nothing Int
numChannels (Int -> Special
Special Int
0) UGenId
NoId

-- | White noise.
--
--  WhiteNoise [KR,AR] ;    NONDET
whiteNoise :: ID a => a -> Rate -> UGen
whiteNoise :: a -> Rate -> UGen
whiteNoise a
z Rate
rate = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"WhiteNoise" [] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) (a -> UGenId
forall a. ID a => a -> UGenId
toUId a
z)

-- | Wrap a signal outside given thresholds.
--
--  Wrap [IR,KR,AR] in=0.0 lo=0.0 hi=1.0;    FILTER: TRUE
wrap :: UGen -> UGen -> UGen -> UGen
wrap :: UGen -> UGen -> UGen -> UGen
wrap UGen
in_ UGen
lo UGen
hi = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"Wrap" [UGen
in_,UGen
lo,UGen
hi] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Index into a table with a signal.
--
--  WrapIndex [KR,AR] bufnum=0.0 in=0.0;    FILTER: TRUE
wrapIndex :: UGen -> UGen -> UGen
wrapIndex :: UGen -> UGen -> UGen
wrapIndex UGen
bufnum UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
1]) String
"WrapIndex" [UGen
bufnum,UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Equal power two channel cross fade.
--
--  XFade2 [KR,AR] inA=0.0 inB=0.0 pan=0.0 level=1.0;    FILTER: TRUE
xFade2 :: UGen -> UGen -> UGen -> UGen -> UGen
xFade2 :: UGen -> UGen -> UGen -> UGen -> UGen
xFade2 UGen
inA UGen
inB UGen
pan UGen
level = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1]) String
"XFade2" [UGen
inA,UGen
inB,UGen
pan,UGen
level] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Exponential line generator.
--
--  XLine [KR,AR] start=1.0 end=2.0 dur=1.0 doneAction=0.0;    ENUMERATION INPUTS: 3=DoneAction
xLine :: Rate -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
xLine :: Rate -> UGen -> UGen -> UGen -> DoneAction UGen -> UGen
xLine Rate
rate UGen
start UGen
end UGen
dur DoneAction UGen
doneAction = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
rate) String
"XLine" [UGen
start,UGen
end,UGen
dur,DoneAction UGen -> UGen
forall t. Num t => DoneAction t -> t
from_done_action DoneAction UGen
doneAction] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Send signal to a bus, crossfading with previous contents.
--
--  XOut [KR,AR] bus=0.0 xfade=0.0 *channelsArray=0.0;    MCE=1, FILTER: TRUE
xOut :: UGen -> UGen -> UGen -> UGen
xOut :: UGen -> UGen -> UGen -> UGen
xOut UGen
bus UGen
xfade UGen
input = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
2]) String
"XOut" [UGen
bus,UGen
xfade] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
input]) Int
0 (Int -> Special
Special Int
0) UGenId
NoId

-- | Zero crossing frequency follower
--
--  ZeroCrossing [KR,AR] in=0.0;    FILTER: TRUE
zeroCrossing :: UGen -> UGen
zeroCrossing :: UGen -> UGen
zeroCrossing UGen
in_ = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0]) String
"ZeroCrossing" [UGen
in_] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | LocalBuf count
--
--  MaxLocalBufs [IR,KR] count=0.0
maxLocalBufs :: UGen -> UGen
maxLocalBufs :: UGen -> UGen
maxLocalBufs UGen
count = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
KR) String
"MaxLocalBufs" [UGen
count] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Multiply add
--
--  MulAdd [IR,KR,AR] in=0.0 mul=0.0 add=0.0;    FILTER: TRUE
mulAdd :: UGen -> UGen -> UGen -> UGen
mulAdd :: UGen -> UGen -> UGen -> UGen
mulAdd UGen
in_ UGen
mul UGen
add = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR,Rate
KR,Rate
AR] ([Int] -> Either Rate [Int]
forall a b. b -> Either a b
Right [Int
0,Int
1,Int
2]) String
"MulAdd" [UGen
in_,UGen
mul,UGen
add] Maybe [UGen]
forall a. Maybe a
Nothing Int
1 (Int -> Special
Special Int
0) UGenId
NoId

-- | Set local buffer
--
--  SetBuf [IR] buf=0.0 offset=0.0 length=0.0 *array=0.0;    MCE=1, REORDERS INPUTS: [0,1,2,3]
setBuf :: UGen -> UGen -> UGen -> UGen -> UGen
setBuf :: UGen -> UGen -> UGen -> UGen -> UGen
setBuf UGen
buf UGen
offset UGen
length_ UGen
array = Maybe ([Sample] -> Sample)
-> [Rate]
-> Either Rate [Int]
-> String
-> [UGen]
-> Maybe [UGen]
-> Int
-> Special
-> UGenId
-> UGen
mkUGen Maybe ([Sample] -> Sample)
forall a. Maybe a
Nothing [Rate
IR] (Rate -> Either Rate [Int]
forall a b. a -> Either a b
Left Rate
IR) String
"SetBuf" [UGen
buf,UGen
offset,UGen
length_] ([UGen] -> Maybe [UGen]
forall a. a -> Maybe a
Just [UGen
array]) Int
1 (Int -> Special
Special Int
0) UGenId
NoId