Mercurial > hg > midi-score-follower
diff hackday/testApp.h @ 25:2a025ea7c793
hackday work to get live midi input, follow the notes, output measure, read measure in with midi file
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 03 Dec 2011 21:09:13 +0000 |
parents | 5a11b19906c7 |
children | 179365726f07 |
line wrap: on
line diff
--- a/hackday/testApp.h Sat Dec 03 17:19:43 2011 +0000 +++ b/hackday/testApp.h Sat Dec 03 21:09:13 2011 +0000 @@ -32,6 +32,9 @@ #define PORT 12121 +#define SEND_PORT 5282 +#define HOST "localhost" + using namespace std; using namespace MIDIConstants; @@ -82,6 +85,10 @@ char msg[255]; string portName; + void checkNewScoreNote(); + void sendNoteToMuseScore(); + void sendMeasureToMuseScore(); + void findMeasure(); // midi addon ofxMidiIn midiIn; // this is your listener function @@ -93,9 +100,11 @@ bool liveInputPlaying; double timePlayed; int transpose; + int lastScoreIndexSent; + int lastMeasureSent; private: ofxOscReceiver receiver; - + ofxOscSender sender; };