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 constants #33

Closed truj closed 5 years ago

truj commented 5 years ago

Add the possibility to use variables. Example:

var $forte = 120
var $staccato = duration=50%
...
0  c  /4  v=$forte
0  c  /4  $staccato
truj commented 5 years ago

Maybe better stick with constants in the moment, instead of variables. something like:

const $forte = 120
const $staccato = duration=50%
...
0  c  /4  v=$forte
0  c  /4  $staccato

Variables are more complicated and could maybe added later.