comparison data/model/Model.h @ 1611:b2f32c554199 single-point

Pull out the Point class, plus start testing NoteModel, plus actually add the tests...
author Chris Cannam
date Tue, 05 Mar 2019 15:15:11 +0000
parents 0e0947896fd3
children 8bf3a52a1604
comparison
equal deleted inserted replaced
1610:7db29268cf4c 1611:b2f32c554199
53 * Return the first audio frame spanned by the model. 53 * Return the first audio frame spanned by the model.
54 */ 54 */
55 virtual sv_frame_t getStartFrame() const = 0; 55 virtual sv_frame_t getStartFrame() const = 0;
56 56
57 /** 57 /**
58 * Return the audio frame at the end of the model, i.e. 1 more 58 * Return the audio frame at the end of the model, i.e. the final
59 * than the final frame contained within the model. The end frame 59 * frame contained within the model plus 1 (or plus the model's
60 * minus the start frame should yield the total duration in frames 60 * "resolution" granularity, if more than 1). The end frame minus
61 * the start frame should yield the total duration in frames
61 * spanned by the model. This is consistent with the definition of 62 * spanned by the model. This is consistent with the definition of
62 * the end frame of a Selection object. 63 * the end frame of a Selection object.
63 */ 64 */
64 virtual sv_frame_t getEndFrame() const = 0; 65 virtual sv_frame_t getEndFrame() const = 0;
65 66