csound-expression-typed-0.0.5.3: typed core for the library csound-expression

Safe HaskellNone

Csound.Typed.Types

Contents

Synopsis

Primitives

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 -> aSource

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)

withDs :: Tuple a => a -> [D] -> aSource

A special case of withInits. Here all inits are numbers.

withSigs :: Tuple a => a -> [Sig] -> aSource

A special case of withInits. Here all inits are signals.

withTabs :: Tuple a => a -> [Tab] -> aSource

A special case of withInits. Here all inits are arrays.

withD :: Tuple a => a -> D -> aSource

Appends an init value which is a number.

withSig :: Tuple a => a -> Sig -> aSource

Appends an init value which is a signal.

withTab :: Tuple a => a -> Tab -> aSource

Appends an init value which is a table.

withSeed :: SE Sig -> D -> SigSource

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

Events