danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

usage inside an object #56

Closed stephanschulz closed 6 years ago

stephanschulz commented 6 years ago

Hi.

Still love your add-on.

I'm trying to use " midiIn.addListener(this); " inside a separate object header file. But the "this" seems not to be enough.

Sorry, it's probably my inexperience with listeners.

Any tips?

thx

stephanschulz commented 6 years ago

got it.

had to add public ofxMidiListener to my class

class midiHandler: public ofxMidiListener  {

};