comparison data/model/SparseTimeValueModel.h @ 256:9c85517ff0f5

* Fix #1706927 NaNs from plugin outputs should not be used
author Chris Cannam
date Fri, 27 Apr 2007 15:39:48 +0000
parents 4b2ea82fd0ed
children 70a232b1f12a
comparison
equal deleted inserted replaced
255:7033e188b2b2 256:9c85517ff0f5
75 75
76 class SparseTimeValueModel : public SparseValueModel<TimeValuePoint> 76 class SparseTimeValueModel : public SparseValueModel<TimeValuePoint>
77 { 77 {
78 public: 78 public:
79 SparseTimeValueModel(size_t sampleRate, size_t resolution, 79 SparseTimeValueModel(size_t sampleRate, size_t resolution,
80 bool notifyOnAdd = true) :
81 SparseValueModel<TimeValuePoint>(sampleRate, resolution,
82 notifyOnAdd)
83 {
84 PlayParameterRepository::getInstance()->addModel(this);
85 }
86
87 SparseTimeValueModel(size_t sampleRate, size_t resolution,
80 float valueMinimum, float valueMaximum, 88 float valueMinimum, float valueMaximum,
81 bool notifyOnAdd = true) : 89 bool notifyOnAdd = true) :
82 SparseValueModel<TimeValuePoint>(sampleRate, resolution, 90 SparseValueModel<TimeValuePoint>(sampleRate, resolution,
83 valueMinimum, valueMaximum, 91 valueMinimum, valueMaximum,
84 notifyOnAdd) 92 notifyOnAdd)