csound-expression-typed-0.2.7: typed core for the library csound-expression
Safe HaskellNone
LanguageHaskell2010

Csound.Typed.Types

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

withDs :: Tuple a => a -> [D] -> a Source #

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

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.

withD :: Tuple a => a -> D -> a Source #

Appends an init value which is a number.

withSig :: Tuple a => a -> Sig -> a Source #

Appends an init value which is a signal.

withTab :: Tuple a => a -> Tab -> a Source #

Appends an init value which is a table.

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

Events

Arrays

Arguments for monophonic synths

Signal space (generic signal transformers)

Tab helpers