3 - 63
padSoundSetFreq
This command allows the user to set the internal speaker to play a frequency specified by the value in
Freq
. Setting the
frequency to zero turns off the sound.
Syntax
BOOL padSoundSetFreq(
WORD Freq
)
Parameter
Description
Freq
The frequency value for the speaker
Returns
Returns TRUE upon success, FALSE otherwise.
See Also
padSoundTone, padSoundBell, padSoundEnable
padSoundTone
This command allows you to set the internal speaker to play a frequency specified by the value in
Freq
for the amount of
“tempo beats” specified by
Duration
. 156 “temp beats” are equivalent to approximately 1000 milliseconds (1 second).
The following table shows the frequency values used to play musical notes:
Syntax
BOOL padSoundTone(
WORD Freq,
WORD Duration
)
Octave 1
Octave 2
Octave 3
Octave 4
C
131
262
523
1047
C#
139
278
555
1111
D
147
294
587
1175
D#
156
312
623
1247
E
165
330
659
1319
F
175
349
698
1397
F#
186
371
741
1483
G
196
392
784
1568
G#
208
416
832
1664
A
220
440
880
1760
A#
234
467
934
1868
B
247
494
988
1976
Summary of Contents for PadCom TT1500
Page 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Page 88: ...4 2 ...
Page 129: ......
Page 130: ......
Page 131: ......
Page 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...