"G" :: Get AP-16 Status
Syntax:
"!AP16",
address
, "G"
Reply:
Single byte that indicates the AP-16+ status. See below.
AP-16+ status byte:
Bit
When 1
When 0
7
AP-16 is playing
AP-16 is idle (or ambient)
6
Playing looped mode
Playing single-shot mode
5
Playing named WAV file
Playing SFX or AUX file
4
Playing AUX file
Playing SFX file
3
BIT3 of file #
2
BIT2 of file #
1
BIT1 of file #
0
BIT0 of file #
Prop-1 Example:
SEROUT Sio, OT2400, ("!AP16", %00, "G")
SERIN Sio, OT2400, ap16Status
"PS" :: Play SFX##.WAV File
Syntax:
"!AP16",
address
, "PS",
#
,
loops
Reply:
None
The
"PS"
(play SFX) command is used to play a specific SFX##.WAV file (0 to 15). The
loops
parameter is
used to specify the number of times to play the file (0 to 255); typically once (1). To continuously repeat the
specified file until another play or reset command, use zero (0) as the
loops
parameter.
Prop-1 Example
SEROUT Sio, OT2400, ("!AP16", %00, "PS", 1, 1)
In this example, the AP-16+ at address %00 will play SFX01.WAV one time. If the ambient Loop switch (
) is
closed and AMBIENT.WAV is on the SD card, it will restart when SFX01.WAV has finished playing.
"P?" :: Play Random SFX##.WAV File
Syntax:
"!AP16",
address
, "P?",
#
,
loops
Reply:
None
The
"P?"
(play random SFX) command is used to play a random SFX##.WAV file (00 to 15). The
#
para-
meter limits the file selection, which always begins with zero (SFX00.WAV). For example, to randomly play
one of the files from SFX00.WAV through SFX04.WAV, the
#
parameter would be set to four (4). As with the
"PS"
command, the
loops
parameter specifies the number of times to repeat the file.
Note that the AP-16+ maintains an internal play list so that – if using the same limit
#
in the
"P?"
command –
no file will be repeated until all within the range have played.
EFX-TEK
●
www.efx-tek.com
●
7