You create music in Zel by writing code which is converted to a MIDI file and played whenever you click on the "play" button. Notes are created by using the lowercase letters a through g and the uppercase etters A through G. Lowercase c is the lowest pitch of the range, and B is the highest. Here are the pitches in order:
c d e f g a b C D E F G A B
This playable fragment produces an ascending scale in the key of C major. You can make scales in any key, for example
key E e f g a b C D E
is a scale in the key of E major. key e would set the key to E minor.
You can use the "#" symbol for sharpening (raising the pitch) and the "&" symbol for flattening (lowering the pitch) of notes. The octave of the C is 5 by default. You can follow the note with the @ character to lower the octave of lowercase notes, or raise the octave of uppercase notes.
To set the duration of a note, follow the note with an integer or a fraction. For example, E4 would be four times as long. E1/4 (or E/4) is one quarter as long. You can also use E/ as a shorthand for E1/2 and "E." as a shorthand for E3/2 . To set the tempo to 90 beats per minute, use the code tempo=90 . Setting the meter is done with a fraction, e.g. meter 3/4 .