csound-expression-typed-0.2.7.1: typed core for the library csound-expression
Safe HaskellSafe-Inferred
LanguageHaskell2010

Csound.Typed.Control.Evt

Synopsis

Documentation

sched :: (Arg a, Sigs b) => (a -> SE b) -> Evt (Sco a) -> b Source #

sched_ :: Arg a => (a -> SE ()) -> Evt (Sco a) -> SE () Source #

Triggers a procedure on the event stream.

schedBy :: (Arg a, Sigs b, Arg c) => (a -> SE b) -> (c -> Evt (Sco a)) -> c -> b Source #

A closure to trigger an instrument inside the body of another instrument.

schedHarp :: (Arg a, Sigs b) => D -> (a -> SE b) -> Evt [a] -> b Source #

An instrument is triggered with event stream and delay time is set to zero (event fires immediately) and duration is set to inifinite time. The note is held while the instrument is producing something. If the instrument is silent for some seconds (specified in the first argument) then it's turned off.

schedHarpBy :: (Arg a, Sigs b, Arg c) => D -> (a -> SE b) -> (c -> Evt [a]) -> c -> b Source #

A closure to trigger an instrument inside the body of another instrument.

monoSched :: Evt (Sco (D, D)) -> SE MonoArg Source #

Turns

monoSchedUntil :: Evt (D, D) -> Evt a -> SE MonoArg Source #

Plays the note until next note comes or something happens on the second event stream.

monoSchedHarp :: Evt (D, D) -> SE MonoArg Source #

Plays the note until next note comes

retrigs :: (Arg a, Sigs b) => (a -> SE b) -> Evt [a] -> b Source #

Retriggers an instrument every time an event happens. The note is held until the next event happens.

evtLoop :: (Num a, Tuple a, Sigs a) => Maybe (Evt Unit) -> [SE a] -> [Evt Unit] -> a Source #

evtLoopOnce :: (Num a, Tuple a, Sigs a) => Maybe (Evt Unit) -> [SE a] -> [Evt Unit] -> a Source #