sysExMessage.push_back( 247 );
midiout->sendMessage( &sysExMessage );
With the above SysEx message, I was
able to toggle fret position and strings
played in the game. The actual logic to
make this work was less than 100 lines.
The full code is available in the Subversion
repository for game2midi in g2ghpro.cpp.
RtMidi currently has issues processing
active sensing messages that came from
my Roland gear, which the author is
aware of. A flag is provided to filter
out active sensing messages. Setting
ignoreTypes to true on your midi input
object’s third parameter will work around
the issue until it is resolved—for example:
midiin->ignoreTypes( false, false, true);
GNU/Linux environment, this sounded
like what I needed. To bring your Linux
dev environment to Windows, use mingw-get-inst, and do a full installation.
This will provide you with the MinGW
Shell, bundled with many standard
GNU tools, including SSH. Next, install
TortoiseSVN, which is a Subversion client
that integrates with the Windows shell.
Checkout and commit actions are
accessed by right-clicking on folders in
Explorer to keep files in sync. The MinGW
shell allows for changing drives’ letters
like a standard DOS shell with cd C:.
The next problem is how to build the
code based on operating system. Let’s
look at two options: Makefiles and
autotools. First, let’s look at basic
Makefile-based builds and compare
the differences by platform:
The main missing feature of RtMidi,
as far as the Linux pro audio world is
concerned, is no jack-midi support.
Makefile.linux
all:
Supporting Other Operating Systems
I hadn’t touched a Windows development
IDE in more than ten years, and I wanted
to keep the same code base for all three
operating systems. Somewhere during
the past few years, I heard mention of
MinGW (Minimalist GNU for Windows).
As I am familiar developing in a
all:
mkdir -p deps
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -D__LINUX_ALSASEQ__
;-g -O2 -MT midiio.o -MD -MP -MF deps/ RtMidi.Tpo
;-c -o RtMidi.o RtMidi.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -D__LINUX_ALSASEQ__
;-g -O2 -MT -midiio.o -MD -MP -MF deps/ midiio.TPO
;-c -o midiio.o midiio.cpp
g++ -g -O2 -o midiio RtMidi.o midiio.o -lasound
Makefile.mingw
mkdir -p deps