Mercurial > hg > svcore
comparison data/model/NoteData.h @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 6965c83c8fa7 |
children |
comparison
equal
deleted
inserted
replaced
1324:d4a28d1479a8 | 1527:710e6250a401 |
---|---|
10 published by the Free Software Foundation; either version 2 of the | 10 published by the Free Software Foundation; either version 2 of the |
11 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
12 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
13 */ | 13 */ |
14 | 14 |
15 #ifndef NOTE_DATA_H | 15 #ifndef SV_NOTE_DATA_H |
16 #define NOTE_DATA_H | 16 #define SV_NOTE_DATA_H |
17 | 17 |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "base/Pitch.h" | 20 #include "base/Pitch.h" |
21 | 21 |
22 struct NoteData | 22 struct NoteData |
23 { | 23 { |
24 NoteData(sv_frame_t _start, sv_frame_t _dur, int _mp, int _vel) : | 24 NoteData(sv_frame_t _start, sv_frame_t _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), channel(0) { }; | 26 isMidiPitchQuantized(true), velocity(_vel), channel(0) { }; |
27 | 27 |
28 sv_frame_t start; // audio sample frame | 28 sv_frame_t start; // audio sample frame |
29 sv_frame_t duration; // in audio sample frames | 29 sv_frame_t 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 |