Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 243
Chapter 2 Program Instructions
SOUND
Field of Application
Statement for making the printer’s beeper produce a sound specifi ed
in regard of frequency and duration.
Syntax SOUND<nexp
1
>,<nexp
2
>
<nexp
1
> is the frequency of the sound in Hz.
<nexp
2
> is the duration of the sound in periods of 0.020 sec. each
(max. 15,0000 = 5 minutes).
Default: Frequency: 1200 Hz.
Duration: 0.030 sec.
Remarks
This statement allows you include signifi cant sound signals in your programs,
for example to notify the operator that various errors have occurred.
A sound with approximately the specifi ed frequency will be produced
for the specifi ed duration. If the program encounters a new SOUND
statement, it will not be executed until the previous sound has been on
for the specifi ed duration.
The SOUND statement even allows you to make melodies, although the
musical quality may be somewhat limited. The following table illustrates the
frequencies corresponding to the notes in the musical scale. To create a period
of silence, set the frequency to value higher than 9,999 Hz.
Note Hz Note Hz Note Hz Note Hz
C 131 C 262 C 523 C 1047
C# 138 C# 277 C# 554 C# 1109
D 147 D 294 D 587 D 1175
D# 155 D# 311 D# 622 D# 1245
E 165 E 330 E 659 E 1319
F 175 F 349 F 699 F 1397
F# 185 F# 370 F# 740 F# 1480
G 196 G 392 G 784 G 1568
G# 208 G# 415 G# 831 G# 1662
A 220 A 440 A 880 A 1760
A# 233 A# 466 A# 933 A# 1865
B 247 B 494 B 988 B 1976
(small octave) (one-line octave) (two-line octave) (three-line octave)
Example
The tune “Colonel Boogie" starts like this:
10 SOUND 392,15
20 SOUND 330,20
30 SOUND 330,15
40 SOUND 349,15
50 SOUND 392,15
60 SOUND 659,25
70 SOUND 659,25
80 SOUND 523,25