This is the Sakuramml tutorial. You can create music using simple "cde" text.
By writing "cdefgab", it will be played as is. The "^" extends the sound, and "r" represents a rest.
You can use "+" or "-" to raise or lower the pitch by a half step.
By writing "l4" it will be a quarter note. Writing "l8" makes it an eighth note.
By adding a number like 4 or 8 after the note names "cde" you can temporarily specify the length of that note.
You can also use rests like "r" and lengthening symbols like "^".
To change the octave, use the "o" command.
The range is from 0 to 10. For regular melodies, scales around 4 to 7 are typically used.
Additionally, there are commands to raise or lower the octave by one: ">" and "<".
There is also a command to raise the octave for the next single note: '`'. To lower it by one for a single note, use '"'.
Here is an example of "Sakura Sakura" written in MML (Music Macro Language):
The length of notes is specified using the "l" command.
For example, a quarter note is represented as "l4," and an eighth note as "l8".
Additionally, you can specify the note length by appending it directly to the note name, like "e4." For example, "l4e" and "e4" have the same meaning.
However, when using the "l" command, all subsequent notes will have the same length (e.g., quarter notes), whereas in the latter method, only that specific note will be a quarter note.
For example, let's rewrite "Mary Had a Little Lamb" using temporary note length specifications.
Name | How to Write in Sakura |
Whole Note | l1 |
Half Note | l2 |
Quarter Note | l4 |
Eighth Note | l8 |
Sixteenth Note | l16 |
Dotted Quarter Note | l4. |
Quarter Note Triplet | {ccc}4 |
You can specify multiple tracks.
If you want to shorten the duration of a note, use "q".
You can express repetitions easily.
The following example repeats a phrase four times.
You can represent chords by writing "'ceg'".
By writing `Sub{ Phrase1 } Phrase2`, you can play Phrase1 and Phrase2 simultaneously.
By writing `Div{ceg}4`, the quarter note is divided into three equal parts (i.e., twelfth notes) and played accordingly.
You can omit `Div` and simply write `{ceg}` instead of `Div{ceg}`.
そして、連符表現はネスト(入れ子状態)にすることも可能です。
The volume can be specified in a range from 0 to 127. You can write it as "v120".