andrew@2
|
1 #include "testApp.h"
|
andrew@2
|
2
|
andrew@2
|
3 //possible to just omit the drawing (uses ofxWindowRegion for the screen and ofxPlotFunction to plot beat times)
|
andrew@2
|
4
|
Venetian@7
|
5 //w: export window
|
Venetian@7
|
6 //x:export whole file
|
Venetian@7
|
7 //o: open file
|
Venetian@7
|
8
|
andrew@2
|
9 //--------------------------------------------------------------
|
andrew@2
|
10 void testApp::setup(){
|
Venetian@7
|
11
|
andrew@2
|
12
|
andrew@2
|
13 }
|
andrew@2
|
14
|
andrew@2
|
15
|
andrew@2
|
16 //--------------------------------------------------------------
|
andrew@2
|
17 void testApp::update(){
|
Venetian@7
|
18
|
Venetian@7
|
19 onsetDetector.update();
|
andrew@2
|
20 }
|
andrew@2
|
21
|
andrew@2
|
22 //--------------------------------------------------------------
|
andrew@2
|
23 void testApp::draw(){
|
andrew@2
|
24
|
Venetian@7
|
25 onsetDetector.draw();
|
andrew@3
|
26
|
andrew@2
|
27 }
|
andrew@2
|
28
|
andrew@3
|
29
|
andrew@2
|
30 //--------------------------------------------------------------
|
andrew@2
|
31 void testApp::keyPressed(int key){
|
Venetian@7
|
32 onsetDetector.keyPressed(key);
|
andrew@2
|
33 }
|
andrew@2
|
34
|
andrew@2
|
35 //--------------------------------------------------------------
|
andrew@2
|
36 void testApp::keyReleased(int key){
|
andrew@2
|
37
|
andrew@2
|
38 }
|
andrew@2
|
39
|
andrew@2
|
40 //--------------------------------------------------------------
|
andrew@2
|
41 void testApp::mouseMoved(int x, int y){
|
andrew@2
|
42
|
andrew@2
|
43 }
|
andrew@2
|
44
|
andrew@2
|
45 //--------------------------------------------------------------
|
andrew@2
|
46 void testApp::mouseDragged(int x, int y, int button){
|
andrew@2
|
47
|
andrew@2
|
48 }
|
andrew@2
|
49
|
andrew@2
|
50 //--------------------------------------------------------------
|
andrew@2
|
51 void testApp::mousePressed(int x, int y, int button){
|
andrew@2
|
52
|
Venetian@7
|
53 onsetDetector.mousePressed(x,y,button);
|
andrew@2
|
54 }
|
andrew@2
|
55
|
andrew@2
|
56 //--------------------------------------------------------------
|
andrew@2
|
57 void testApp::mouseReleased(int x, int y, int button){
|
andrew@2
|
58
|
andrew@2
|
59 }
|
andrew@2
|
60
|
andrew@2
|
61 //--------------------------------------------------------------
|
andrew@2
|
62 void testApp::windowResized(int w, int h){
|
andrew@2
|
63
|
andrew@2
|
64 }
|
andrew@2
|
65
|
andrew@2
|
66 //--------------------------------------------------------------
|
andrew@2
|
67 void testApp::gotMessage(ofMessage msg){
|
andrew@2
|
68
|
andrew@2
|
69 }
|
andrew@2
|
70
|
andrew@2
|
71 //--------------------------------------------------------------
|
andrew@2
|
72 void testApp::dragEvent(ofDragInfo dragInfo){
|
andrew@2
|
73
|
andrew@2
|
74 }
|
andrew@2
|
75
|
andrew@2
|
76
|
andrew@2
|
77
|
andrew@2
|
78
|