Copyright | (c) David Janin, Simon Archipoff, 2016 |
---|---|
License | see the LICENSE file in the distribution |
Maintainer | janin@labri.fr |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Here, we define musical tiles (and a bit more for control) for writing and playing reactive music with the T-calculus.
Yet to be exported properly... see http://poset.labri.fr/interpolations for waiting (realized with a more adhoc version of the Tcalculus)...
- type Beat iv = Duration Rational iv
- data Music iv a
- type Melody iv = Music iv Midi
- noteT :: Ord iv => Midi -> Music iv Midi
- melody :: (Ord iv, Tilable (Beat iv) a) => a -> Music iv a
- restI :: Ord iv => Integer -> Music iv a
- restR :: Ord iv => Rational -> Music iv a
- (+) :: Num a => a -> a -> a
- (-) :: Num a => a -> a -> a
- negate :: Num a => a -> a
- (*) :: Num a => a -> a -> a
- duration :: Tilable d a => a -> d
Music types and elementary algebra
Polymorphic music constructor; type iv is the type of the input values of the system to be designed such MIDI pour a system with single MIDI instrument as input.
Basic music constructors
noteT :: Ord iv => Midi -> Music iv Midi Source #
Makes a note from Midi with default duration of one beat.
melody :: (Ord iv, Tilable (Beat iv) a) => a -> Music iv a Source #
Makes a note from Midi with default duration of one beat.