danomatika / ofxMidi

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

Weird error with .addListener(); function #53

Closed jpupper closed 7 years ago

jpupper commented 7 years ago

So, i´ve been tryng to configure MIDI for my proyect. Im tryng the addon : Ofxmidi

I´ve tryed the midiinput example wich can´t compile,

Im having an error in this line of code :

midiIn.addListener(this);

This is the error i get :

Error C2664 'void ofxMidiIn::addListener(ofxMidiListener )': cannot convert argument 1 from 'ofApp const ' to 'ofxMidiListener *' FractalSuperForm C:\Users\Julian\Downloads\of_v0.9.8_vs_release\of_v0.9.8_vs_release\apps\myApps\FractalSuperForm\src\ofApp.cpp 25

If I comment this line of code, the code compiles but it does´nt seem to record the values in the midimessage variable, thought i can´t print the values as hexadecimal values in console. Whats wrong? im the only one having this trouble?

My version of Openframeworks is : of_v0.9.8_vs_release.