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
111 stars 13 forks source link

add transposition option #37

Closed truj closed 4 years ago

truj commented 4 years ago

Add an option for block and include commands to transpose the content by an arbitrary number of half tone steps. The option name should be shift (short form s) because for transpose there is no reasonable short form available. (t and tr are already used.)

e.g.:

INCLUDE macro shift=-12 // transposed 1 octave lower
( s=12
    ... // transposed 1 octave higher
    ( s=12
        ... // transposed 2 octaves higher
    )
)