ML505/ML506/ML507 Getting Started Tutorial
25
UG348 (v3.0.2) October 9, 2008
ML50x Demonstrations in System ACE CF
R
RTTTL Specification
The RTTTL specification denotes the ring tone with a string containing three fields
separated by a colon.
<
Name Field
>:<
Options Field
>:<
Notes Field
>
The following is an example of an RTTTL ring tone using the fields and parameters
defined in
Table 1
:
Beethoven:d=4,o=6,b=100:16g5,16g5,16g5,d5,16f5,16f5,16f5,d5,16g5,16g5,
16g5,16d5,16g5,16g5,16g5,16g5,16d,16d,16d,c,16g5,16g5,16g5,16d5,16g5,
16g5,16g5,16g5,16f,16f,16f,d.
Table 1:
RTTTL Ring Tone Fields
Field
Parameter
Description
Name
The
Name
field specifies the name of the ring tone.
Options
The
Options
field uses three parameters to specify the
duration, octave, and tempo of each note.
d = {1,2,4,8,16,32,64}
Parameter
d
specifies the duration of each note as
follows:
•
1 is a whole note
•
2 is a half note
•
4 is a quarter note, and so forth
If the duration is not specified, the default is d = 4.
o= {4,5,6,7}
Parameter
o
specifies the octave of a note. Note
a
for
each octave is as follows:
•
Octave 4 is 440 Hz
•
Octave 5 is 880 Hz
•
Octave 6 is 1760 Hz
•
Octave 7 is 3520 Hz
If the octave is not specified, the default is o=6.
b = {0,1,2,3...}
Parameter
b
specifies the beats per minute (tempo).
If the tempo is not specified, the default is b=63.
Notes
The
Notes
field uses the letter of the note plus three
optional parameters to define each note using the
following format:
[duration]
note
[scale] [extend duration]
note = {a,b,c,d,e,f,g,p}
The
note
parameter defines a note on the musical
scale, except the letter p which represents a rest.
The
duration
and
scale
parameters take on the
range specified in the Options field. If unspecified,
these parameters take on the default value of the
Options field.
.
The
extend duration
parameter (a dot) defines
a dotted note and lengthens the duration by 50
percent.
www.BDTIC.com/XILINX