Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Sig
- unSig :: Sig -> GE E
- data D
- unD :: D -> GE E
- data Tab
- unTab :: Tab -> GE E
- newtype Str = Str {}
- newtype Spec = Spec {}
- newtype Wspec = Wspec {}
- data BoolSig
- = BoolSig (GE E)
- | PrimBoolSig Bool
- unBoolSig :: BoolSig -> GE E
- data BoolD
- unBoolD :: BoolD -> GE E
- newtype Unit = Unit {}
- unit :: Unit
- class Val a where
- hideGE :: Val a => GE a -> a
- class (IsPrim a, RealFrac (PrimOf a), Val a) => SigOrD a
- preTab :: TabSize -> Int -> TabArgs -> Tab
- data TabSize
- = SizePlain Int
- | SizeDegree {
- hasGuardPoint :: Bool
- sizeDegree :: Int
- data TabArgs
- = ArgsPlain [Double]
- | ArgsRelative [Double]
- | ArgsGen16 [Double]
- | FileAccess String [Double]
- updateTabSize :: (TabSize -> TabSize) -> Tab -> Tab
- fromPreTab :: PreTab -> GE Gen
- getPreTabUnsafe :: String -> Tab -> PreTab
- skipNorm :: Tab -> Tab
- forceNorm :: Tab -> Tab
- nsamp :: Tab -> D
- ftlen :: Tab -> D
- ftchnls :: Tab -> D
- ftsr :: Tab -> D
- ftcps :: Tab -> D
- double :: Double -> D
- int :: Int -> D
- text :: String -> Str
- idur :: D
- getSampleRate :: D
- getControlRate :: D
- getBlockSize :: D
- getZeroDbfs :: D
- ar :: Sig -> Sig
- kr :: Sig -> Sig
- ir :: Sig -> D
- sig :: D -> Sig
- on0 :: Val a => E -> a
- on1 :: (Val a, Val b) => (E -> E) -> a -> b
- on2 :: (Val a, Val b, Val c) => (E -> E -> E) -> a -> b -> c
- on3 :: (Val a, Val b, Val c, Val d) => (E -> E -> E -> E) -> a -> b -> c -> d
- quot' :: SigOrD a => a -> a -> a
- rem' :: SigOrD a => a -> a -> a
- div' :: SigOrD a => a -> a -> a
- mod' :: SigOrD a => a -> a -> a
- ceil' :: SigOrD a => a -> a
- floor' :: SigOrD a => a -> a
- round' :: SigOrD a => a -> a
- int' :: SigOrD a => a -> a
- frac' :: SigOrD a => a -> a
- when1 :: BoolSig -> SE () -> SE ()
- whens :: [(BoolSig, SE ())] -> SE () -> SE ()
- untilDo :: BoolSig -> SE () -> SE ()
- whileDo :: BoolSig -> SE () -> SE ()
- boolSig :: BoolD -> BoolSig
- equalsTo :: EqB a => a -> a -> BooleanOf a
- notEqualsTo :: EqB a => a -> a -> BooleanOf a
- lessThan :: OrdB a => a -> a -> BooleanOf a
- greaterThan :: OrdB a => a -> a -> BooleanOf a
- lessThanEquals :: OrdB a => a -> a -> BooleanOf a
- greaterThanEquals :: OrdB a => a -> a -> BooleanOf a
Documentation
Signals
Floating Sig Source | |
Fractional Sig Source | |
Num Sig Source | |
IfB Sig Source | |
EqB Sig Source | |
OrdB Sig Source | |
Monoid Sig Source | |
Default Sig Source | |
SigOrD Sig Source | |
Val Sig Source | |
Sigs Sig Source | |
Sigs Sig8 Source | |
Sigs Sig6 Source | |
Sigs Sig4 Source | |
Sigs Sig2 Source | |
Tuple Sig Source | |
PureSingle Sig Source | |
DirtySingle (SE Sig) Source | |
Sigs (Sig8, Sig8) Source | |
DirtyMulti b => DirtyMulti ([Sig] -> b) Source | |
DirtyMulti b => DirtyMulti (Sig -> b) Source | |
PureMulti b => PureMulti ([Sig] -> b) Source | |
PureMulti b => PureMulti (Sig -> b) Source | |
Procedure b => Procedure ([Sig] -> b) Source | |
Procedure b => Procedure (Sig -> b) Source | |
DirtySingle b => DirtySingle ([Sig] -> b) Source | |
DirtySingle b => DirtySingle (Sig -> b) Source | |
PureSingle b => PureSingle ([Sig] -> b) Source | |
PureSingle b => PureSingle (Sig -> b) Source | |
Sigs (Sig8, Sig8, Sig8, Sig8) Source | |
type BooleanOf Sig = BoolSig Source | |
type Snap Sig = D Source |
Constant numbers
Floating D Source | |
Fractional D Source | |
Num D Source | |
IfB D Source | |
EqB D Source | |
OrdB D Source | |
Monoid D Source | |
Default D Source | |
SigOrD D Source | |
Val D Source | |
Arg D Source | |
Tuple D Source | |
PureSingle D Source | |
DirtySingle (SE D) Source | |
DirtyMulti b => DirtyMulti ([D] -> b) Source | |
DirtyMulti b => DirtyMulti (D -> b) Source | |
PureMulti b => PureMulti ([D] -> b) Source | |
PureMulti b => PureMulti (D -> b) Source | |
Procedure b => Procedure ([D] -> b) Source | |
Procedure b => Procedure (D -> b) Source | |
DirtySingle b => DirtySingle ([D] -> b) Source | |
DirtySingle b => DirtySingle (D -> b) Source | |
PureSingle b => PureSingle ([D] -> b) Source | |
PureSingle b => PureSingle (D -> b) Source | |
type BooleanOf D = BoolD Source | |
type Snap D = D Source |
Tables (or arrays)
IfB Tab Source | |
Default Tab Source | |
Val Tab Source | |
Arg Tab Source | |
Tuple Tab Source | |
PureSingle Tab Source | |
DirtySingle (SE Tab) Source | |
DirtyMulti b => DirtyMulti (Tab -> b) Source | |
PureMulti b => PureMulti (Tab -> b) Source | |
Procedure b => Procedure (Tab -> b) Source | |
DirtySingle b => DirtySingle (Tab -> b) Source | |
PureSingle b => PureSingle (Tab -> b) Source | |
type BooleanOf Tab = BoolD Source | |
type Snap Tab = Tab Source |
Strings
IfB Str Source | |
Default Str Source | |
Val Str Source | |
Arg Str Source | |
Tuple Str Source | |
PureSingle Str Source | |
DirtySingle (SE Str) Source | |
DirtyMulti b => DirtyMulti (Str -> b) Source | |
PureMulti b => PureMulti (Str -> b) Source | |
Procedure b => Procedure (Str -> b) Source | |
DirtySingle b => DirtySingle (Str -> b) Source | |
PureSingle b => PureSingle (Str -> b) Source | |
type BooleanOf Str = BoolD Source | |
type Snap Str = Str Source |
Spectrum. It's fsig
in the Csound.
IfB Spec Source | |
Default Spec Source | |
Val Spec Source | |
Tuple Spec Source | |
PureSingle Spec Source | |
DirtySingle (SE Spec) Source | |
DirtyMulti b => DirtyMulti (Spec -> b) Source | |
PureMulti b => PureMulti (Spec -> b) Source | |
Procedure b => Procedure (Spec -> b) Source | |
DirtySingle b => DirtySingle (Spec -> b) Source | |
PureSingle b => PureSingle (Spec -> b) Source | |
type BooleanOf Spec = BoolD Source |
Another type for spectrum. It's wsig
in the Csound.
Val Wspec Source | |
PureSingle Wspec Source | |
DirtySingle (SE Wspec) Source | |
DirtyMulti b => DirtyMulti (Wspec -> b) Source | |
PureMulti b => PureMulti (Wspec -> b) Source | |
Procedure b => Procedure (Wspec -> b) Source | |
DirtySingle b => DirtySingle (Wspec -> b) Source | |
PureSingle b => PureSingle (Wspec -> b) Source |
A signal of booleans.
A constant boolean value.
Csound's empty tuple.
Contains all Csound values.
Tables
fromPreTab :: PreTab -> GE Gen Source
getPreTabUnsafe :: String -> Tab -> PreTab Source
forceNorm :: Tab -> Tab Source
Force normalization (sets table size to positive value).
Might be useful to restore normalization for table doubles
.
nsamp — Returns the number of samples loaded into a stored function table number.
nsamp(x) (init-rate args only)
csound doc: http://www.csounds.com/manual/html/nsamp.html
constructors
constants
getSampleRate :: D Source
getBlockSize :: D Source
getZeroDbfs :: D Source
converters
lifters
numeric funs
logic funs
whens :: [(BoolSig, SE ())] -> SE () -> SE () Source
The chain of when1
s. Tests all the conditions in sequence
if everything is false it invokes the procedure given in the second argument.
notEqualsTo :: EqB a => a -> a -> BooleanOf a infix 4 Source
greaterThan :: OrdB a => a -> a -> BooleanOf a infix 4 Source
lessThanEquals :: OrdB a => a -> a -> BooleanOf a infix 4 Source
greaterThanEquals :: OrdB a => a -> a -> BooleanOf a infix 4 Source