Mercurial > hg > midi-score-follower
view hackday/drawMidiNotes.h @ 30:be2e779d76b5
internote calculation added but not running. Better way of waiting for first note to happen before starting.
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Wed, 07 Dec 2011 13:04:59 +0000 |
parents | 49a5b023df1e |
children |
line wrap: on
line source
/* * drawMidiNotes.h * midiCannamReader * * Created by Andrew on 17/07/2011. * Copyright 2011 QMUL. All rights reserved. * */ #include "ofMain.h" class drawMidiNotes{ public: drawMidiNotes(); void updatePlayPosition(); typedef std::vector<double> DoubleVector; typedef std::vector<DoubleVector> DoubleMatrix; DoubleMatrix beatPeriodMatrix; typedef std::vector<int> IntVector; typedef std::vector<IntVector> IntMatrix; void drawFile(const IntMatrix& noteOnMatrix); void reset(); int ticksPerScreen; int tickLocation; int noteArrayIndex; int noteMinimum, noteMaximum; int screenWidth, screenHeight; float noteHeight; float tempo; double period; int pulsesPerQuarternote; double lastPeriodUpdateTime; };