annotate DrumTimingLoader_OF/src/testApp.cpp @ 2:50ba55abea8c

updating files to newer version
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sat, 23 Nov 2013 15:49:27 +0000
parents 82352cfc0b23
children
rev   line source
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@2 10 drumTimer.update();//recordedTracks.updatePosition();
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@2 30
andrew@2 31 if (key == OF_KEY_RIGHT){
andrew@2 32 drumTimer.recordedTracks.drumTimingAnalyser.widenDrawWindow();
andrew@2 33
andrew@2 34 }
andrew@0 35
andrew@2 36 if (key == OF_KEY_LEFT){
andrew@2 37 drumTimer.recordedTracks.drumTimingAnalyser.narrowDrawWindow();
andrew@2 38 }
andrew@2 39
andrew@2 40
andrew@2 41 if (key == ' '){
andrew@2 42 drumTimer.recordedTracks.togglePlay();
andrew@2 43 }
andrew@2 44
andrew@0 45 }
andrew@0 46
andrew@0 47 //--------------------------------------------------------------
andrew@0 48 void testApp::keyReleased(int key){
andrew@0 49
andrew@0 50 }
andrew@0 51
andrew@0 52 //--------------------------------------------------------------
andrew@0 53 void testApp::mouseMoved(int x, int y ){
andrew@0 54
andrew@0 55 }
andrew@0 56
andrew@0 57 //--------------------------------------------------------------
andrew@0 58 void testApp::mouseDragged(int x, int y, int button){
andrew@0 59
andrew@0 60 }
andrew@0 61
andrew@0 62 //--------------------------------------------------------------
andrew@0 63 void testApp::mousePressed(int x, int y, int button){
andrew@0 64
andrew@0 65 }
andrew@0 66
andrew@0 67 //--------------------------------------------------------------
andrew@0 68 void testApp::mouseReleased(int x, int y, int button){
andrew@0 69
andrew@0 70 }
andrew@0 71
andrew@0 72 //--------------------------------------------------------------
andrew@0 73 void testApp::windowResized(int w, int h){
andrew@0 74 drumTimer.windowResized(w, h);
andrew@0 75 }
andrew@0 76
andrew@0 77 //--------------------------------------------------------------
andrew@0 78 void testApp::gotMessage(ofMessage msg){
andrew@0 79
andrew@0 80 }
andrew@0 81
andrew@0 82 //--------------------------------------------------------------
andrew@0 83 void testApp::dragEvent(ofDragInfo dragInfo){
andrew@0 84
andrew@0 85 }