comparison data/model/NoteData.h @ 929:59e7fe1b1003 warnfix_no_size_t

Unsigned removals and warning fixes in data/
author Chris Cannam
date Tue, 17 Jun 2014 14:33:42 +0100
parents 9196cff56abe
children 0d3d1ec7dfde
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
19 19
20 #include "base/Pitch.h" 20 #include "base/Pitch.h"
21 21
22 struct NoteData 22 struct NoteData
23 { 23 {
24 NoteData(size_t _start, size_t _dur, int _mp, int _vel) : 24 NoteData(int _start, int _dur, int _mp, int _vel) :
25 start(_start), duration(_dur), midiPitch(_mp), frequency(0), 25 start(_start), duration(_dur), midiPitch(_mp), frequency(0),
26 isMidiPitchQuantized(true), velocity(_vel) { }; 26 isMidiPitchQuantized(true), velocity(_vel) { };
27 27
28 size_t start; // audio sample frame 28 int start; // audio sample frame
29 size_t duration; // in audio sample frames 29 int duration; // in audio sample frames
30 int midiPitch; // 0-127 30 int midiPitch; // 0-127
31 float frequency; // Hz, to be used if isMidiPitchQuantized false 31 float frequency; // Hz, to be used if isMidiPitchQuantized false
32 bool isMidiPitchQuantized; 32 bool isMidiPitchQuantized;
33 int velocity; // MIDI-style 0-127 33 int velocity; // MIDI-style 0-127
34 34
45 45
46 class NoteExportable 46 class NoteExportable
47 { 47 {
48 public: 48 public:
49 virtual NoteList getNotes() const = 0; 49 virtual NoteList getNotes() const = 0;
50 virtual NoteList getNotes(size_t startFrame, size_t endFrame) const = 0; 50 virtual NoteList getNotesWithin(int startFrame, int endFrame) const = 0;
51 }; 51 };
52 52
53 #endif 53 #endif