-
Notifications
You must be signed in to change notification settings - Fork 7
BASIC PLAY SAMPLE Statement
Sean P. Harrington edited this page Dec 13, 2023
·
4 revisions
TYPE: BASIC System statement
FORMAT: PLAY SAMPLE @page , address
Action: The PLAY SAMPLE statement is used to play an 8-bit digital sample stored at a specific memory address.
- @page is a number in the range 0 through 255 that specified the memory page on which the sample data resides.
- address is a number in the range 0 through 16383 that specified the starting address of the sample data.
Notes: To create a file in .SAQ (Sample for AQuarius) format:
- Open an audio file in Audacity and edit as desired.
- Select File --> Export Audio, then options...
- Format: Other uncompressed files
- Channels: Mono
- Sample Rate: 8000, 11025, or 16000
- Header: RAW
- Encoding: Unsigned 8-bit PCM
- ...and click Export
- Ensure you have Python3 installed.
- At the command line execute raw2saq.py...
- python raw2saq.py filename.raw filename.saq rate
- ...where rate is 8000, 11000, or 16000
Example of PLAY SAMPLE Statement:
LOAD "file.saq",@40,0
PLAY SAMPLE @40,0
Plays the audio sample "file.saq" stored on page @40, starting at address 0.