MelCom: A Text-to-Midi Melody Compiler

 

MelCom Language: Intermediate Elements
Overview

Using MelCom

Download

The Language:
Starting Example
The Basics
Intermediate
Advanced
Examples

Contact

 

1. Ties

To indicate that a sequence of notes (all of the same pitch) are tied, append a left square bracket "[" to the first note of the sequence, and a right square bracket "]" to the last note.

Example

**n[A-B-C]
*t[100]
8f 4b- 4dd[ | 8dd] 4cc 8b- 8a 8a 4cc[ |
8cc] 4b- 8a 4.g 16a 16b- | 8cc 8b- 8a 8g 4f 16b- 16a 16b- 16cc |
4.b-

 

2. Slurs

To slur a sequence of notes or join them together as a phrase, append a left parenthesis "(" to the first note of the sequence, and a right parenthesis ")" to the last note.

3. Staccato

To indicate that a particular note should be played staccato, append an apostrophe (') to the note.
 

4. Tuplets

As explained earlier in The Basics, durations are represented using a reciprocal number notation. With the exception of the value zero, durations are represented by reciprocal numerical values corresponding to the American duration names: "1" for whole note, "8" for eighth, "32" for thirty-second, etc. The number zero (0) is reserved for the breve duration (a duration of twice the length of a whole note).

Triplet and other irregular durations are represented using the same reciprocal logic. Consider, for example, the quarter-note triplet duration. Three quarter triplets occur in the time of four quarters or one whole duration. If we divide a whole duration ("1") into three equal parts, each part has a duration of one-third. The corresponding reciprocal integer for 1/3 is 3, hence we represent a quarter-note triplet as a "third-note", 3. Similarly, eighth-note triplets are represented by the integer 6 and sixteenth-note triplets are represented by the integer 12.

In general, the way to determine the equivalent of an arbitrary "tuplet" duration is to multiply the number of tuplets by the total duration which they occupy. If 5 notes of equal duration occupy the duration of a quarter-note ("4"), then each septuplet is represented by the value 20 (i.e. 4 x 5).