-
Notifications
You must be signed in to change notification settings - Fork 8
BASIC PLAY SAMPLE Statement
Mike Hogsett edited this page Aug 26, 2024
·
6 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 specifies the memory page on which the sample data resides.
- address is a number in the range 0 through 16383 that specifies 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.
To Search for pages in the wiki, press Pages above and type a search term in the "Find a page..." box. Results will update beneath automatically.
- Aquarius+ User Guide
- Quick Start
- Hardware
- Software
-
Other Development Resources