This shows you the differences between two versions of the page.
x0x:patternfileformat [2008/11/08 01:35] eil |
x0x:patternfileformat [2016/01/28 18:05] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== x0xb0x pattern file (*.xbp) (version 100) ===== | ||
- | This information can be used to put the pattern back in EEPROM | ||
- | in the location where it was originally stored. Optionally, | ||
- | this information can be ignored, or set to the NULL | ||
- | bank/pattern (0, 0) if no bank/location info is available. | ||
- | |||
- | ==== Header ==== | ||
- | Starts with a file HEADER which contains the following information | ||
- | about the contents of the file. | ||
- | |||
- | ;Version : (1 byte) - Version number of the x0xb0x pattern file. (for future backwards compatibility) The initial version number is 100. | ||
- | ;%%NumEntries%% : (2 bytes) - Number of pattern records stored in this file. | ||
- | |||
- | |||
- | ==== Entry ==== | ||
- | Contains a series of ENTRIES where each entry is as follows: | ||
- | |||
- | ;Bank : (1 byte) - The bank from which the pattern was saved. | ||
- | ;Location : (1 byte) - The loc from which the pattern was saved. | ||
- | ;Pattern : (16 bytes) - The x0xb0x pattern, stored in the binary format used to store the pattern in EEPROM. | ||
- | |||
- | Note values: | ||
- | |||
- | * Rest: 0x00 | ||
- | * Accent: 0x40 | ||
- | * Slide: 0x80 | ||
- | |||
- | ^ Octave ^ Note ^ Hex Value ^ | ||
- | | 1 | C | 0B | | ||
- | | 1 | C# | 0C | | ||
- | | 1 | D | 0D | | ||
- | | 1 | D# | 0E | | ||
- | | 1 | E | 0F | | ||
- | | 1 | F | 10 | | ||
- | | 1 | F# | 11 | | ||
- | | 1 | G | 12 | | ||
- | | 1 | G# | 13 | | ||
- | | 1 | A | 14 | | ||
- | | 1 | A# | 15 | | ||
- | | 1 | B | 16 | | ||
- | | 2 | C | 17 | | ||
- | | 2 | C# | 18 | | ||
- | | 2 | D | 19 | | ||
- | | 2 | D# | 1A | | ||
- | | 2 | E | 1B | | ||
- | | 2 | F | 1C | | ||
- | | 2 | F# | 1D | | ||
- | | 2 | G | 1E | | ||
- | | 2 | G# | 1F | | ||
- | | 2 | A | 20 | | ||
- | | 2 | A# | 21 | | ||
- | | 2 | B | 22 | | ||
- | | 3 | C | 23 | | ||
- | | 3 | C# | 24 | | ||
- | | 3 | D | 25 | | ||
- | | 3 | D# | 26 | | ||
- | | 3 | E | 27 | | ||
- | | 3 | F | 28 | | ||
- | | 3 | F# | 29 | | ||
- | | 3 | G | 2A | | ||
- | | 3 | G# | 2B | | ||
- | | 3 | A | 2C | | ||
- | | 3 | A# | 2D | | ||
- | | 3 | B | 2E | | ||
- | | 4 | C | 2F | | ||
- | | 4 | C# | 30 | | ||
- | | 4 | D | 31 | | ||
- | | 4 | D# | 32 | | ||
- | | 4 | E | 33 | | ||
- | | 4 | F | 34 | | ||
- | | 4 | F# | 35 | | ||
- | | 4 | G | 36 | | ||
- | | 4 | G# | 37 | | ||
- | | 4 | A | 38 | | ||
- | | 4 | A# | 39 | | ||
- | | 4 | B | 3A | | ||
- | | 5 | C | 3B | |