@hackage live-sequencer0.0

Live coding of MIDI music

  • Installation

  • Dependencies (0)

  • Dependents (1)

    @hackage/acme-everything
  • Package Flags

      httpserver
       (on by default)

      Enable access to modules via a web browser

An editor shows a textual description of music (like Haskore), an interpreter computes and emits a stream of MIDI events, and (that's the main point) the user can change the program on the fly.

  1. example usage *****

timidity -iA &
./live-sequencer-gui --connect-to TiMidity Stream &

this should give you an ongoing stream of notes

then change one of the numbers that appear in the lines like mid = note 300 (c 4)

and press CTRL-R for "reloading" that module into the interpreter this should immediately have an effect (change pitch and duration of some of the notes)

  1. input language *****

language is Haskell with only strict pattern matching and pattern matching only at the definition level (no case), no local bindings (no lambda, let, where), no types (no type inference, type signatures and type declarations are skipped)

semantics is similar to lazy evaluation, but we have no sharing, the value of main is a stream of midi events (On/Off pitch velocity) or (Wait milliseconds)

in each step, the head of the stream gets reduced to head normal form (with : at the top), and the first arg of the : gets fully expanded and it must be a midi event.

In the library interface we provide the basic Live-Sequencer modules in order to allow offline rendering of Live-Sequencer music.