MidiOutput* midioutdevice;
midioutdevice = new MidiOutput(); //This is not working!
which doesn’t work because you can’t just create a new MidiOutput using the constructor - you have to use the openDevice function which will return a pointer to an open device. Then you tried…
Which is so close, but notice what you’ve done wrong… openDevice returns a pointer to a MidiOutput, but your variable midiOutput is not a pointer. Not only does this mean that you can’t store the result of openDevice to it, but when you say “MidiOutput midiOutput;”, it’s giving you the same problem as saying “MidiOutput *midiOutput = new MidiOutput()” - the constructor cannot be used to create a new instance.
Thanx haydxn!!! awesome stuff… Ok, working now, I can trigger sounds of the SW synth, which is being found as device 0, but I cant get cubase to respond to the midiout messages that Iam sending, Im trying to send the midi messages with the mpu-401 device and cubase is setup to listen to this but it doesn’t seem to get any midi messages, have any ideas?