Safe Haskell | Safe-Inferred |
---|
Enumerations of the unary and binary math unit generators.
- data Unary
- = Neg
- | Not
- | IsNil
- | NotNil
- | BitNot
- | Abs
- | AsFloat
- | AsInt
- | Ceil
- | Floor
- | Frac
- | Sign
- | Squared
- | Cubed
- | Sqrt
- | Exp
- | Recip
- | MIDICPS
- | CPSMIDI
- | MIDIRatio
- | RatioMIDI
- | DbAmp
- | AmpDb
- | OctCPS
- | CPSOct
- | Log
- | Log2
- | Log10
- | Sin
- | Cos
- | Tan
- | ArcSin
- | ArcCos
- | ArcTan
- | SinH
- | CosH
- | TanH
- | Rand
- | Rand2
- | LinRand
- | BiLinRand
- | Sum3Rand
- | Distort
- | SoftClip
- | Coin
- | DigitValue
- | Silence
- | Thru
- | RectWindow
- | HanWindow
- | WelchWindow
- | TriWindow
- | Ramp
- | SCurve
- data Binary
- = Add
- | Sub
- | Mul
- | IDiv
- | FDiv
- | Mod
- | EQ_
- | NE
- | LT_
- | GT_
- | LE
- | GE
- | Min
- | Max
- | BitAnd
- | BitOr
- | BitXor
- | LCM
- | GCD
- | Round
- | RoundUp
- | Trunc
- | Atan2
- | Hypot
- | Hypotx
- | Pow
- | ShiftLeft
- | ShiftRight
- | UnsignedShift
- | Fill
- | Ring1
- | Ring2
- | Ring3
- | Ring4
- | DifSqr
- | SumSqr
- | SqrSum
- | SqrDif
- | AbsDif
- | Thresh
- | AMClip
- | ScaleNeg
- | Clip2
- | Excess
- | Fold2
- | Wrap2
- | FirstArg
- | RandRange
- | ExpRandRange
- unaryTable :: [(Int, String)]
- unaryName :: Int -> String
- binaryTable :: [(Int, String)]
- binaryName :: Int -> String
- rlookup :: Eq b => b -> [(a, b)] -> Maybe a
- binaryIndex :: String -> Int
- unaryIndex :: String -> Int
Documentation
Enumeration of SC3
unary operator UGens.
Enumeration of SC3
unary operator UGens.
unaryTable :: [(Int, String)]Source
Table of symbolic names for standard unary operators.
binaryTable :: [(Int, String)]Source
Table of symbolic names for standard binary operators.
binaryName :: Int -> StringSource
Lookup possibly symbolic name for standard binary operators.
map binaryName [1,2,8] == ["-","*","<"]
binaryIndex :: String -> IntSource
Given name of binary operator derive index.
map binaryIndex ["*","Mul","Ring1"] == [2,2,30]
unaryIndex :: String -> IntSource
Given name of unary operator derive index.
map unaryIndex ["-","Neg","Cubed"] == [0,0,13]