Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Csound.Typed.Types.Prim
- module Csound.Typed.Types.Lift
- withInits :: (Tuple a, Tuple b) => a -> b -> a
- withDs :: Tuple a => a -> [D] -> a
- withSigs :: Tuple a => a -> [Sig] -> a
- withTabs :: Tuple a => a -> [Tab] -> a
- withD :: Tuple a => a -> D -> a
- withSig :: Tuple a => a -> Sig -> a
- withTab :: Tuple a => a -> Tab -> a
- withSeed :: SE Sig -> D -> Sig
- module Csound.Typed.Types.Tuple
- module Csound.Typed.Types.Evt
- module Csound.Typed.Types.Array
- module Csound.Typed.Types.MonoArg
- module Csound.Typed.Types.SigSpace
- getNextGlobalGenId :: SE Int
Primitives
module Csound.Typed.Types.Prim
module Csound.Typed.Types.Lift
Init values
In Csound we can supply an opcodes with initialization arguments. They are optional. To imitate this functionality in haskell we can use these functions.
withInits :: (Tuple a, Tuple b) => a -> b -> a Source #
Appends initialisation arguments. It's up to user to supply arguments with the right types. For example:
oscil 0.5 440 sinWave `withInits` (0.5 :: D)
withSigs :: Tuple a => a -> [Sig] -> a Source #
A special case of withInits
. Here all inits are signals.
withTabs :: Tuple a => a -> [Tab] -> a Source #
A special case of withInits
. Here all inits are arrays.
withSeed :: SE Sig -> D -> Sig Source #
Applies a seed to the random value.
It's equivalent to the withD
but it has a special
meaning of canceling the side effect. When random
opcode is provided with seed value it's no longer
contains a side effect so we don't need to restrict it.
Tuples
module Csound.Typed.Types.Tuple
Events
module Csound.Typed.Types.Evt
Arrays
module Csound.Typed.Types.Array
Arguments for monophonic synths
module Csound.Typed.Types.MonoArg
Signal space (generic signal transformers)
module Csound.Typed.Types.SigSpace