Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.h @ 1112:4d7de68707c8 3.0-integration
Merge from branch simple-fft-model
author | Chris Cannam |
---|---|
date | Wed, 01 Jul 2015 18:31:28 +0100 |
parents | 1517d4c60e88 |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1109:a65328f0c450 | 1112:4d7de68707c8 |
---|---|
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 |