This patch allows for changing tuning on the fly by entering a number from 1 to 4 and pressing enter. Here is what it looks like:
Set mode to 6 string guitar
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.
To change tuning type <num> and press <enter>. Any other key to quit
1: Standard Tuning EADG(be)
2: Drop D Tuning DADG(be)
3: Drop 1 Step Tuning D#G#C#F#(a#d#)
4: Drop 2 Step Tuning DGCF(ad)
The keyboard buffer is polled only once a second to prevent a busy loop that could effect the performance of the RtMidi callback function. This meant a different header file was needed when compiling on a windows system. I have tested this on Linux with gcc build and on Windows with a MingW build. MacOSX should be able to use the Linux headers but I have no way of testing this.
Alternative tuning patch for g2ghpro SVN version 41.