:pserver:anonymous@intra.tektonica.com:/opt/cvs - gsmperl - Fri Dec 21 07:37 CET...
[gsmperl.git] / GSM / rtttlsyntax.txt
1 ;\r
2 ; Ringing Tones text transfer language (RTTTL)\r
3 ;\r
4 ; Version 1.0 / 29-July-1998\r
5 ; - First version by John Mostelo\r
6\r
7 ; http://members.tripod.com/~ringtones/note_syntax.txt\r
8 ;\r
9 \r
10 <ringing-tones-text-transfer-language> :=\r
11        <name> <sep> [<defaults>] <sep> <note-command>+\r
12 \r
13 <name> := <char>+    ; maximum name length 10 characters\r
14 \r
15 <sep> := ":"\r
16 \r
17 <defaults> := \r
18       <def-note-duration> |\r
19       <def-note-scale> |\r
20       <def-beats> \r
21 \r
22 <def-note-duration> := "d=" <duration>\r
23 \r
24 <def-note-scale> := "o=" <scale> \r
25 \r
26 <def-beats> := "b=" <beats-per-minute>\r
27 \r
28 <beats-per-minute> := 25,28,...,900   ; decimal value\r
29 \r
30 ; If not specified, defaults are\r
31 ;\r
32 ;  4   = duration\r
33 ;  6   = scale   \r
34 ;  63  = beats-per-minute\r
35 \r
36 \r
37 <note-command> :=\r
38       [<duration>] <note> [<scale>] [<special-duration>] <delimiter>\r
39 \r
40 \r
41 <duration> :=\r
42       "1"  |  ; Full 1/1 note\r
43       "2"  |  ; 1/2 note\r
44       "4"  |  ; 1/4 note\r
45       "8"  |  ; 1/8 note\r
46       "16" |  ; 1/16 note\r
47       "32" |  ; 1/32 note\r
48      \r
49 <note> :=\r
50       "P"  |  ; pause\r
51       "C"  |\r
52       "C#" |\r
53       "D"  |\r
54       "D#" |\r
55       "E"  |\r
56       "F"  |\r
57       "F#" |\r
58       "G"  |\r
59       "G#" |\r
60       "A"  |\r
61       "A#" |\r
62       "H"         \r
63 \r
64 <scale> :=\r
65       "5" |   ; Note A is 440Hz\r
66       "6" |   ; Note A is 880Hz\r
67       "7" |   ; Note A is 1.76 kHz\r
68       "8"     ; Note A is 3.52 kHz\r
69 \r
70 <special-duration> :=\r
71       "."     ; Dotted note\r
72 \r
73 <delimiter> := ","\r
74 \r
75 ; End of specification\r