background image

Prop-1 Example

  SEROUT Sio, OT2400, ("!AP16", %01, "P?", 7, 1)         

In this example, the AP-16+ at address %01 will play one of the files in the range SFX00 through SFX07.WAV
one time.  If the ambient Loop switch (

) is closed and AMBIENT.WAV is on the SD card, it will restart when

SFXnn.WAV has finished playing.

"PA" :: Play AUX##.WAV File

Syntax:

"!AP16", 

address

, "PA", 

#

loops

Reply:

None

The 

"PA"

 (play SFX) command is used to play a specific AUX##.WAV file (1 to 8). 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", %10, "PA", 7, 1)         

In this example, the AP-16+ at address %10 will play AUX07.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.

"PW" :: Play Named WAV File

Syntax:

"!AP16", 

address

name

, {CR}, 

loops

Reply:

None

The 

"PW"

 (play named WAV file) command is used to play a WAV file by name (which must conform to the

DOS 8.3 file naming convention). When using the 

"PW"

 command, the 

".WAV"

 file extension is optional, but

the file name must be terminated with a carriage return (13).  As with the other play commands, 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", %11, "PW", "WOLF", 13, 2)      

In this example, the AP-16+ at address %11 will play WOLF.WAV two times, back-to-back.   If the ambient
Loop switch (

) is closed and AMBIENT.WAV is on the SD card, it will restart when WOLF.WAV has finished

playing both loops.
Note that if an invalid name is specified while the ambient file is playing, the ambient file will be restarted.  The
AP-16+ must stop AMBIENT.WAV in order to search and verify the file specified in the 

"PW"

 command.

NOTE

: Any 

"P"

 command will always stop audio that is playing.  Use the 

"G"

 command (get

status) to check on the AP-16+ if you do not desire this behavior

8

EFX-TEK  

  www.efx-tek.com  

  [email protected]

Содержание AP-16+

Страница 1: ...l scale industrial control FEATURES BENEFITS Plays stereo WAV files 16 bit PCM up to 44 1kHz Files stored on standard SD card FAT or FAT32 format 24 stand alone files under manual control Optional aut...

Страница 2: ...trol for speaker output D SD card socket N Speaker output 4 8 E Start input dry contact O Line level output F Start input 12 to 24 VDC P Pre play delay potentiometer G Start input PIR Q Post play dela...

Страница 3: ...e g MP3 up sampling is not recommended as it can lead to audio artifacts in the form of clicks pops and noise in the up sampled file It is best to maintain or even lower the sample rate when from com...

Страница 4: ...switch For example if the Random option switch is set to ON and the AUDIO SELECT switch is set to 7 the AP 16 will play one of the files in the range SFX00 WAV through SFX07 WAV Note that the Random...

Страница 5: ...table below describes the function of each switch BR Sets the baud rate for serial control see below When OFF the baud rate is 2400 Prop 1 when ON the baud rate is 38400 Prop 2 Prop SX A1 Controls th...

Страница 6: ...00 baud e g Prop 1 when the BR option is set to ON the AP 16 uses 38 4k baud e g Prop 2 Prop SX The following section details the serial commands for the AP 16 X Reset Syntax AP16 address X Reply None...

Страница 7: ...lay 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 i...

Страница 8: ...med WAV file command is used to play a WAV file by name which must conform to the DOS 8 3 file naming convention When using the PW command the WAV file extension is optional but the file name must be...

Страница 9: ...k speed 50 to 200 Note that the maximum sample rate is 44 1kHz so a 44 1kHz file cannot be made to play faster Prop 1 Example SEROUT Sio OT2400 AP16 00 S 75 In this example the AP 16 at address 00 wil...

Страница 10: ...is the major version number and YY is the minor version number If you have a Parallax Prop Plug and the Propeller Tool Software you may load this file and download it into the AP 16 the programming c...

Страница 11: ...n Unit Min Typical Max Supply Voltage VIN 12 18 VDC Supply Current IIN 150 mA Output Power 18VDC 4 PO 18 20 W Output Power 18VDC 8 PO 10 12 W Output Power 12VDC 4 PO 13 W Output Power 12VDC 8 PO 8 W O...

Отзывы: