Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.h @ 1111:457a1a619c5f simple-fft-model
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 07 Jan 2015 17:42:21 +0000 |
parents | 1517d4c60e88 |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1108:16574eea3229 | 1111:457a1a619c5f |
---|---|
27 */ | 27 */ |
28 | 28 |
29 struct TimeValuePoint | 29 struct TimeValuePoint |
30 { | 30 { |
31 public: | 31 public: |
32 TimeValuePoint(long _frame) : frame(_frame), value(0.0f) { } | 32 TimeValuePoint(sv_frame_t _frame) : frame(_frame), value(0.0f) { } |
33 TimeValuePoint(long _frame, float _value, QString _label) : | 33 TimeValuePoint(sv_frame_t _frame, float _value, QString _label) : |
34 frame(_frame), value(_value), label(_label) { } | 34 frame(_frame), value(_value), label(_label) { } |
35 | 35 |
36 int getDimensions() const { return 2; } | 36 int getDimensions() const { return 2; } |
37 | 37 |
38 long frame; | 38 sv_frame_t frame; |
39 float value; | 39 float value; |
40 QString label; | 40 QString label; |
41 | 41 |
42 QString getLabel() const { return label; } | 42 QString getLabel() const { return label; } |
43 | 43 |