andrew@2: #include "testApp.h" andrew@2: andrew@2: //possible to just omit the drawing (uses ofxWindowRegion for the screen and ofxPlotFunction to plot beat times) andrew@2: Venetian@7: //w: export window Venetian@7: //x:export whole file Venetian@7: //o: open file Venetian@7: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::setup(){ Venetian@7: andrew@2: andrew@2: } andrew@2: andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::update(){ Venetian@7: Venetian@7: onsetDetector.update(); andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::draw(){ andrew@2: Venetian@7: onsetDetector.draw(); andrew@3: andrew@2: } andrew@2: andrew@3: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::keyPressed(int key){ Venetian@7: onsetDetector.keyPressed(key); andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::keyReleased(int key){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::mouseMoved(int x, int y){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::mouseDragged(int x, int y, int button){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::mousePressed(int x, int y, int button){ andrew@2: Venetian@7: onsetDetector.mousePressed(x,y,button); andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::mouseReleased(int x, int y, int button){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::windowResized(int w, int h){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::gotMessage(ofMessage msg){ andrew@2: andrew@2: } andrew@2: andrew@2: //-------------------------------------------------------------- andrew@2: void testApp::dragEvent(ofDragInfo dragInfo){ andrew@2: andrew@2: } andrew@2: andrew@2: andrew@2: andrew@2: