note(duration)
Each note is written separated by a comma. The duration is specified in parentheses and follows the RTTTL format:
1 — whole note;2 — half note;4 — quarter note;8 — eighth note;16 — sixteenth note;c5(4.);Available notes:
c
c#
d
d#
e
f
f#
g
g#
a
a#
b
p — pause
You can use flats via the symbol _:
a_5(8). The octave is indicated after the note:
c6(4).
Example:
c5(4), d5(4), e5(4), g5(2), p(4), c6(1.)
Result format: two bytes for the size, one byte for the tempo, followed by pairs of
note_index, duration_index.