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 :
Severity Code Description Project File Line Suppression State
Error (active) E0167 argument of type "ofApp *" is incompatible with parameter of type "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
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.
class ofApp : public ofxMidiListener
{
void newMidiMessage(ofxMidiMessage& msg);
}
I get this error :
Severity Code Description Project File Line Suppression State
Error C2665 ‘ofRunApp’: none of the 3 overloads could convert all the argument types FractalSuperForm C:\Users\Julian\Downloads\of_v0.9.8_vs_release\of_v0.9.8_vs_release\apps\myApps\FractalSuperForm\src\main.cpp 11
This is my actual ofApp.h file :
#pragma once
#include "ofMain.h"
#include "ofxSpout2Sender.h"
#include "superfractal.h"
#include "ofxMidi.h"
#include "slider.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
void exit();
bool bInitialized;
ofFbo fbo;
ofxSpout2::Sender spout;
//UTILS :
bool showFramerate;
//MIDI THINGS :
void initmidi();
void newMidiMessage(ofxMidiMessage& eventArgs);
void showMidiValues();
stringstream text;
//ofxMidiListener midilisten;
ofxMidiIn midiIn;
ofxMidiMessage midiMessage;
//FRACTALS :
Superfractal sp;
Slider slid;
};