comparison src/drawMidiNotes.h @ 0:b299a65a3ad0

start project
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 16 Aug 2011 11:29:59 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b299a65a3ad0
1 /*
2 * drawMidiNotes.h
3 * midiCannamReader
4 *
5 * Created by Andrew on 17/07/2011.
6 * Copyright 2011 QMUL. All rights reserved.
7 *
8 */
9
10
11 #include "ofMain.h"
12
13 class drawMidiNotes{
14 public:
15 drawMidiNotes();
16 void updatePlayPosition();
17
18 typedef std::vector<double> DoubleVector;
19 typedef std::vector<DoubleVector> DoubleMatrix;
20
21 DoubleMatrix beatPeriodMatrix;
22
23 typedef std::vector<int> IntVector;
24 typedef std::vector<IntVector> IntMatrix;
25
26 void drawFile(const IntMatrix& noteOnMatrix);
27 void reset();
28
29 int ticksPerScreen;
30 int tickLocation;
31 int noteArrayIndex;
32
33 int noteMinimum, noteMaximum;
34 int screenWidth, screenHeight;
35 float noteHeight;
36 float tempo;
37 double period;
38 int pulsesPerQuarternote;
39 double lastPeriodUpdateTime;
40
41
42 };