This patch adds support for a 5 string bass with a Low B string and the hexaphonic pickup in a centered position (5STR-Lo2 on roland VB-99 or GR-55). This has no impact on game play as rockband ignores all input from the B string (channel 6). Patch applies to SVN checkout version 41.
Using 4 string bass; Mode 1 give this output:
xanbian@chise ~/downloads/game2midi/SVN-version/game2midi/src $ ./g2ghpro -m1
Set mode to 4 string bass
Input port #0: UM-2G:0
Input port #1: UM-2G:1
Choose input port number: 0
Output port #0: UM-2G:0
Output port #1: UM-2G:1
Output port #2: RtMidi Input Client:0
Choose output port number: 0
Processing Midi Messages ... press <enter> to quit.
# 0 note: 43 type: 145 velocity: 124 -> G 0
# 1 note: 38 type: 146 velocity: 121 -> D 0
# 2 note: 33 type: 147 velocity: 127 -> A 0
# 3 note: 28 type: 148 velocity: 127 -> E 0
# 4 note: 23 type: 149 velocity: 122 -> ? -1505305355
# 5 Note off event. Sending note: 1505305390 to channel 6
This patch is mainly for a clean terminal output to show correct string and fret.
xanbian@chise ~/downloads/game2midi/SVN-version/game2midi/src $ ./g2ghpro -m2
Set mode to 5 string bass, ignoring the top string
Input port #0: UM-2G:0
Input port #1: UM-2G:1
Choose input port number: 0
Output port #0: UM-2G:0
Output port #1: UM-2G:1
Output port #2: RtMidi Input Client:0
Choose output port number: 0
Processing Midi Messages ... press <enter> to quit.
# 0 note: 43 type: 145 velocity: 117 -> G 0
# 1 note: 38 type: 146 velocity: 127 -> D 0
# 2 note: 33 type: 147 velocity: 127 -> A 0
# 3 note: 28 type: 148 velocity: 127 -> E 0
# 4 note: 23 type: 149 velocity: 116 -> B 0
5 String bass terminal cleanup