andrew@0
|
1 #include "testApp.h"
|
andrew@0
|
2
|
andrew@0
|
3 //--------------------------------------------------------------
|
andrew@0
|
4 void testApp::setup(){
|
andrew@0
|
5 drumTimer.initialise();
|
andrew@0
|
6 }
|
andrew@0
|
7
|
andrew@0
|
8 //--------------------------------------------------------------
|
andrew@0
|
9 void testApp::update(){
|
andrew@0
|
10
|
andrew@0
|
11 }
|
andrew@0
|
12
|
andrew@0
|
13 //--------------------------------------------------------------
|
andrew@0
|
14 void testApp::draw(){
|
andrew@0
|
15 drumTimer.draw();
|
andrew@0
|
16 }
|
andrew@0
|
17
|
andrew@0
|
18 //--------------------------------------------------------------
|
andrew@0
|
19 void testApp::keyPressed(int key){
|
andrew@0
|
20
|
andrew@0
|
21
|
andrew@0
|
22 if (key == OF_KEY_UP){
|
andrew@0
|
23 drumTimer.recordedTracks.zoomOut();
|
andrew@0
|
24
|
andrew@0
|
25 }
|
andrew@0
|
26
|
andrew@0
|
27 if (key == OF_KEY_DOWN){
|
andrew@0
|
28 drumTimer.recordedTracks.zoomIn();
|
andrew@0
|
29 }
|
andrew@0
|
30
|
andrew@0
|
31 }
|
andrew@0
|
32
|
andrew@0
|
33 //--------------------------------------------------------------
|
andrew@0
|
34 void testApp::keyReleased(int key){
|
andrew@0
|
35
|
andrew@0
|
36 }
|
andrew@0
|
37
|
andrew@0
|
38 //--------------------------------------------------------------
|
andrew@0
|
39 void testApp::mouseMoved(int x, int y ){
|
andrew@0
|
40
|
andrew@0
|
41 }
|
andrew@0
|
42
|
andrew@0
|
43 //--------------------------------------------------------------
|
andrew@0
|
44 void testApp::mouseDragged(int x, int y, int button){
|
andrew@0
|
45
|
andrew@0
|
46 }
|
andrew@0
|
47
|
andrew@0
|
48 //--------------------------------------------------------------
|
andrew@0
|
49 void testApp::mousePressed(int x, int y, int button){
|
andrew@0
|
50
|
andrew@0
|
51 }
|
andrew@0
|
52
|
andrew@0
|
53 //--------------------------------------------------------------
|
andrew@0
|
54 void testApp::mouseReleased(int x, int y, int button){
|
andrew@0
|
55
|
andrew@0
|
56 }
|
andrew@0
|
57
|
andrew@0
|
58 //--------------------------------------------------------------
|
andrew@0
|
59 void testApp::windowResized(int w, int h){
|
andrew@0
|
60 drumTimer.windowResized(w, h);
|
andrew@0
|
61 }
|
andrew@0
|
62
|
andrew@0
|
63 //--------------------------------------------------------------
|
andrew@0
|
64 void testApp::gotMessage(ofMessage msg){
|
andrew@0
|
65
|
andrew@0
|
66 }
|
andrew@0
|
67
|
andrew@0
|
68 //--------------------------------------------------------------
|
andrew@0
|
69 void testApp::dragEvent(ofDragInfo dragInfo){
|
andrew@0
|
70
|
andrew@0
|
71 } |