Debian Codegraph @

misc/sb16/sb16ctrl.example

raw
1 #
2 # example for an sb16ctrl file
3 #
4 # comments start with hash character '#' (obviously...)
5 # Numbers can be octal (0...) or hex (0x...) or decimal.
6 #
7 #
8 # first, reset the translation table with command 'r'
9 r
10
11 # then load a few translations.
12 # The format is:
13 # t OldBankMSB OldBankLSB OldProgram NewBankMSB NewBankLSB NewProgram
14 #
15 # All values are in the range of 0-127 or 255.
16 # For old values, 255 means "match any".
17 # For new values, 255 means "don't change".
18 #
19 # When deciding whether a program change is to be remapped, these
20 # remappings are checked first to last, and the first applicable remap
21 # is used.
22
23 # This would map all bank changes to bank 0/0
24 # t 255 255 255 0 0 255
25 # it's commented out, otherwise none of the below changes would
26 # be checked, as this one matches anything.
27
28 t 255 255 0 0 0 19 # remap piano to church organ
29 t 255 255 255 0 0 0 # everything remaining -> piano
30
31 # now show the number of translations that have been loaded
32 i 3
33
34 # and enable GS/GM mode
35 m 0xF0,0x41,0x10,0x42,0x12,0x40,0x00,0x7F,0x00,0x41,0xF7
36