Mercurial > hg > midi-score-follower
comparison hackday/testApp.h @ 26:179365726f07
live input, calculates score rating
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sun, 04 Dec 2011 00:02:26 +0000 |
parents | 2a025ea7c793 |
children | fa1890efa044 |
comparison
equal
deleted
inserted
replaced
25:2a025ea7c793 | 26:179365726f07 |
---|---|
86 string portName; | 86 string portName; |
87 | 87 |
88 void checkNewScoreNote(); | 88 void checkNewScoreNote(); |
89 void sendNoteToMuseScore(); | 89 void sendNoteToMuseScore(); |
90 void sendMeasureToMuseScore(); | 90 void sendMeasureToMuseScore(); |
91 void sendBlackNotes(); | |
91 void findMeasure(); | 92 void findMeasure(); |
93 | |
92 // midi addon | 94 // midi addon |
93 ofxMidiIn midiIn; | 95 ofxMidiIn midiIn; |
94 // this is your listener function | 96 // this is your listener function |
95 void newMessage(ofxMidiEventArgs &args); | 97 void newMessage(ofxMidiEventArgs &args); |
96 | 98 |
100 bool liveInputPlaying; | 102 bool liveInputPlaying; |
101 double timePlayed; | 103 double timePlayed; |
102 int transpose; | 104 int transpose; |
103 int lastScoreIndexSent; | 105 int lastScoreIndexSent; |
104 int lastMeasureSent; | 106 int lastMeasureSent; |
107 double performanceRating; | |
105 private: | 108 private: |
106 ofxOscReceiver receiver; | 109 ofxOscReceiver receiver; |
107 ofxOscSender sender; | 110 ofxOscSender sender; |
108 | 111 |
109 | 112 |