Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Seg a
- toSeg :: a -> Seg a
- runSeg :: Sigs a => Seg a -> a
- slim :: Tick -> Seg a -> Seg a
- sflow :: [Seg a] -> Seg a
- spar :: [Seg a] -> Seg a
- sloop :: Seg a -> Seg a
- sdel :: (Sigs a, Num a) => Tick -> Seg a -> Seg a
- srest :: Num a => Tick -> Seg a
- constLim :: D -> Seg a -> Seg a
- constDel :: Num a => D -> Seg a -> Seg a
- constRest :: Num a => D -> Seg a
- limSnd :: Sigs a => Tick -> a -> a
Documentation
A segment of the signal. The signal segment is a limited span of signal in time. The time can be measured in seconds or in events! The time span which is measured in events is the first occurence of the event in the event stream.
There are handy functions for scheduling the signal segments. we can delay the segment or loop over it or limit it with tme interval or play a sequence of segments. The main feature of the segments is the ability to schedule the signals with event streams (like button clicks or midi-events).
spar :: [Seg a] -> Seg a Source
Plays a list of segments at the same time. the total length equals to the biggest length of all segments.
sloop :: Seg a -> Seg a Source
Loops over a segment. The segment should be limited for loop to take effect.
sdel :: (Sigs a, Num a) => Tick -> Seg a -> Seg a Source
Delays a segment until something happens on the event stream.
srest :: Num a => Tick -> Seg a Source
A pause. Plays nothing until something happens on the event stream.
constLim :: D -> Seg a -> Seg a Source
Limits the length of the segment with constant length in seconds.
constDel :: Num a => D -> Seg a -> Seg a Source
Delays a segment by a given time interval in seconds.