<< Click to Display Table of Contents >> Navigation: 3. Script Language > Input- and Output commands > Input and Output Commands |
MiniRobotLanguage (MRL)
DIT. Command
Generate MFV-Dialtones through the Soundcard
Intention
Generates a Dial-Tone-Sound that can be attached to a telephone line to dial a number.
Together with its ability to speak (SAY.) and the ability to play Sound-Files (MPA.etc.), the Robot can call you on the phone and tell you what is going on.
Modes of operation:
1. Use DIT. just with the number and the default speed of 100 ms per Tone:
DIT.1234567890
2. Use DIT. and dial faster, using a shorter duration for each tone:
DIT.1234567890|20
3. Use DIT. and dial slower, using a longer duration for each tone:
DIT.1234567890|420
' You can misuse DIT. to make Music ...
' Music Mode:
FOR.$$CNT|1|2
PRR.
DIT.0943561954642210243|213
PRE.
NEX.
PRR.
DIT.094353246192210243|203
PRE.
PAU.10
ENR.
Syntax
DIT.P1[|P2]
Parameter Explanation
P1 - Number to dial. Following characters are supported:
0 1 2 3 4 5 6 7 8 9 * # A B C D
unsupported characters are ignored.
P2 - (optional) - if omitted, a default duration of 100 ms per Tone is used. If given, this
is the duration in ms that a Tone will stay.
Example
'***********************************
' DIT.-Orchestra
'***********************************
PRR.
DIT.0334920243|203
PRE.
PRR.
DIT.0334920243|203
PRE.
PRR.
DIT.0334920243|203
PRE.
PRR.
DIT.0334920243|203
PRE.
ENR.
'***********************************
' DIT.-Orchestra II
'***********************************
FOR.$$CNT|1|2
PRR.
DIT.094356192210243|203
PRE.
NEX.
PRR.
DIT.094356192210243|203
PRE.
PAU.10
ENR.
Remarks
-
Limitations:
-
See also: