Closed gsautr closed 7 years ago
Basic issue but struggling to find a way to bind the listener to a class as opposed to ofApp? ie.
class MyClass { public: ofxMidiIn midiIn; ofxMidiMessage midiMessage; void setup() { midiIn.listPorts(); midiIn.openPort(1); midiIn.addListener(this); } void newMidiMessage(ofxMidiMessage & msg) { } }
You need to inherit from ofxMidiListener:
class MyClass : public ofxMidiListener {
Get it to work?
Basic issue but struggling to find a way to bind the listener to a class as opposed to ofApp? ie.