Mercurial > hg > drum-timing-analyser
view 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 |
line wrap: on
line source
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ drumTimer.initialise(); } //-------------------------------------------------------------- void testApp::update(){ drumTimer.update();//recordedTracks.updatePosition(); } //-------------------------------------------------------------- void testApp::draw(){ drumTimer.draw(); } //-------------------------------------------------------------- void testApp::keyPressed(int key){ if (key == OF_KEY_UP){ drumTimer.recordedTracks.zoomOut(); } if (key == OF_KEY_DOWN){ drumTimer.recordedTracks.zoomIn(); } if (key == OF_KEY_RIGHT){ drumTimer.recordedTracks.drumTimingAnalyser.widenDrawWindow(); } if (key == OF_KEY_LEFT){ drumTimer.recordedTracks.drumTimingAnalyser.narrowDrawWindow(); } if (key == ' '){ drumTimer.recordedTracks.togglePlay(); } } //-------------------------------------------------------------- void testApp::keyReleased(int key){ } //-------------------------------------------------------------- void testApp::mouseMoved(int x, int y ){ } //-------------------------------------------------------------- void testApp::mouseDragged(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::mousePressed(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::mouseReleased(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::windowResized(int w, int h){ drumTimer.windowResized(w, h); } //-------------------------------------------------------------- void testApp::gotMessage(ofMessage msg){ } //-------------------------------------------------------------- void testApp::dragEvent(ofDragInfo dragInfo){ }