home *** CD-ROM | disk | FTP | other *** search
- Performer data structure
- ========================
-
- Filetype - &CB9
-
- A Performer file is similar to a Rhapsody file in that it consists of a
- series of slots, each of which has the following structure:
-
- number
- of
- bytes
-
- [1] &FF
- [1] slot-length (0-255)
- [1] code
- [n] <data> (n = slot-length-3)
-
- There is no header slot.
-
- The last slot has the following form:
-
- [1] &FF
- [1] 0
-
-
- The following slot codes are currently defined. Other slot codes may be
- defined in later versions and are ignored by Performer V 1.00.
-
-
- Code 0 - Text
-
- [1] &FF
- [1] slot-length
- [1] 0
- [n] <text> (n = slot-length-4)
- [1] &0D
-
- This code is ignored by Performer V 1.00
-
-
- Code 1 - Set options
-
- [1] &FF
- [1] slot-length
- [1] 1
- [4] <option data> (see note 1)
-
-
- Code 2 - Play File
-
- [1] &FF
- [1] slot-length
- [1] 2
- [4] flags (see note 2)
- [n] <full filename> (n = slot_length-5. see note 3)
- [1] &0D
-
-
- Code 3 - Play MIDI data
-
- [1] &FF
- [1] slot-length
- [1] 3
- [n] <MIDI data> (n = slot-length-3. see note 4)
-
-
- Code 4 - Send system reset
-
- [1] &FF
- [1] 3
- [1] 4
-
- This code is not used by Performer V 1.00
-
-
- Notes
- -----
-
- 1. Option data (4 bytes, LSB first)
-
- bits if set...
-
- 0 MIDI flag play MIDI
- 1 speaker flag play speaker
- 2 continuous flag play programme continuously
- 3 not used
- 4 repeat flag play all repeats
- 5-7 speed 2=very slow....6=very fast
- 8-31 not used
-
-
- 2. Play flags (4 bytes, LSB first)
-
- bits if set...
-
- 0 play flag play this piece
- 1-23 not used
- 24-31 filetype eg C00
-
-
- 3. Play files
-
- 4 types of file are recognised by Performer V 1.00
-
- 1) Rhapsody files (filetype &C00, formats 0 or 1)
- 2) MIDI files (filetype &FD4, formats 0 or 1)
- 3) Sample files (filetype &D3C, signed linear)
- 4) Programme files (filetype &CB9)
-
- All other filetypes are sent to the CLI. This makes it possible to load
- voices, execute obey files and utilities etc. etc.
-
-
- 4. MIDI data
-
- n bytes of MIDI data. The first byte must be a status byte (ie it must
- have bit 7 set). Running status may be used within the data stream. Since
- the stream terminates with &FF (the marker for the next slot), this code
- (system reset) may not be used.
-
-
- (c) J.O.Linton January 1991
-
-