Ring Tone Transfer Language
From Wikipedia, the free encyclopedia
RTTTL stands for Ring Tone Text Transfer Language. It was developed by Nokia to be used to transfer cellphone ringtones.
The RTTTL format is a string divided into three sections: name, default value, and data.
The name section consists of a string describing the name of the ringtone. This can be no longer than 10 characters, and cannot contain a ":" character.
The default value section is a set of values separated by commas, where each value contains a key and a value separated by an = character, which describes certain defaults which should be adhered to during the execution of the ringtone. Possible names are
The data section consists of a set of character strings separated by commas, where each string contains a duration, pitch, octave and optional dotting (which increases the duration of the note by one half).
Contents |
[edit] Technical specification
A RTTTL/Nokring format ringtone must contain three specific elements in order to be recognized by ringtone programs. The three elements are name, settings, and notes.
For example, here is the RTTTL ringtone for Haunted House : HauntedHouse: d=4,o=5,b=108: 2a4, 2e, 2d#, 2b4, 2a4, 2c, 2d, 2a#4, 2e., e, 1f4, 1a4, 1d#, 2e., d, 2c., b4, 1a4, 1p, 2a4, 2e, 2d#, 2b4, 2a4, 2c, 2d, 2a#4, 2e., e, 1f4, 1a4, 1d#, 2e., d, 2c., b4, 1a4
The three parts are separated by a colon.
- Part 1: name of the ringtone (here: "HauntedHouse"), a string of characters represents the name of the ringtone
- Part 2: settings (here: d=4,o=5,b=10), where "d=" is the default duration of a note. In this case, the "4" means that each note with no duration specifier (see below) is by default considered a quarter note. "8" would mean an eighth note, and so on. Accordingly, "o=" is the default octave. There are four octaves in the Nokring/RTTTL format. And "b=" is the tempo, in "beats per minute".
- Part 3: the notes. Each note is separated by a comma and includes, in sequence: a duration specifier, a standard music note, either a, b, c, d, e, f or g, and an octave specifier. If no duration or octave specifier are present, the default applies.
[edit] Durations
Standard musical durations are denoted by the following notations:
- 1 - Whole note
- 2 - Half note
- 4 - Quarter note
- 8 - Eighth note
- 16 - Sixteenth note
- 32 - Thirty-second note
Dotted rhythmic patterns can be formed by appending a period (".") character to the end of a duration/beat/octave element.
[edit] Pitch
- P - Rest or pause
- A - A
- A# - A# / Bb
- B - B / Cb
- C - C
- C# - C# / Db
- D - D
- D# - D# / Eb
- E - E / Fb
- F - F / E#
- F# - F# / Gb
- G - G
- G# - G# / Ab
[edit] Octave
The RTTTL format allows octaves starting from the A below middle C and going up four octaves. This corresponds with the inability of cellphones to reproduce certain tones audibly. These octaves are numbered from lowest pitch to highest pitch from 5 to 8.
The octave should be left out of the notation in the case of a rest or pause in the pattern.
[edit] Example
An example of the RTTTL format would be
fifth:d=4,o=5,b=63:8P,8G5,8G5,8G5,2D#5
[edit] References
- How do I distinguish a Nokring/RTTTL ringtone from other ringtones? (Eric Bematchez, about.com)
- Some sample RTTTL's
- Definition of RTTTL (in Backus–Naur form)