Padsoundsetfreq; Padsoundtone - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

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
Freq
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:
Octave 1
131
C
139
C#
147
D
156
D#
165
E
175
F
186
F#
196
G
208
G#
220
A
234
A#
247
B
Syntax
BOOL padSoundTone(
WORD Freq,
WORD Duration
)
Description
The frequency value for the speaker
Octave 2
Octave 3
262
523
278
555
294
587
312
623
330
659
349
698
371
741
392
784
416
832
440
880
467
934
494
988
Octave 4
1047
1111
1175
1247
1319
1397
1483
1568
1664
1760
1868
1976
3 - 63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents