truj / midica

A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
https://www.midica.org/
Mozilla Public License 2.0
113 stars 13 forks source link

add patterns for chords etc. #48

Closed truj closed 4 years ago

truj commented 4 years ago

Something like this:

// define pattern
PATTERN my_pattern
    0      /4
    1      /8
    2      /8
    0,1,2  /4
END

// use the pattern instead of a note length
5   c,e,g   my_pattern
7   g,e,c   my_pattern

This should be equivalent to:

5  c      /4
5  e      /8
5  g      /8
5  c,e,g  /4
7  g      /4
7  e      /8
7  c      /8
7  g,e,c  /4