comparison data/model/NoteData.h @ 1450:a12fd0456f0c streaming-csv-writer

Merge from default branch
author Chris Cannam
date Tue, 17 Apr 2018 10:35:42 +0100
parents 48e9f538e6e9
children 6965c83c8fa7
comparison
equal deleted inserted replaced
1449:deabf9fd3d28 1450:a12fd0456f0c
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