Mercurial > hg > svcore
comparison data/model/NoteModel.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 | 7b96b3bd4bae |
comparison
equal
deleted
inserted
replaced
| 255:7033e188b2b2 | 256:9c85517ff0f5 |
|---|---|
| 81 | 81 |
| 82 class NoteModel : public SparseValueModel<Note> | 82 class NoteModel : public SparseValueModel<Note> |
| 83 { | 83 { |
| 84 public: | 84 public: |
| 85 NoteModel(size_t sampleRate, size_t resolution, | 85 NoteModel(size_t sampleRate, size_t resolution, |
| 86 bool notifyOnAdd = true) : | |
| 87 SparseValueModel<Note>(sampleRate, resolution, | |
| 88 notifyOnAdd), | |
| 89 m_valueQuantization(0) | |
| 90 { | |
| 91 PlayParameterRepository::getInstance()->addModel(this); | |
| 92 } | |
| 93 | |
| 94 NoteModel(size_t sampleRate, size_t resolution, | |
| 86 float valueMinimum, float valueMaximum, | 95 float valueMinimum, float valueMaximum, |
| 87 bool notifyOnAdd = true) : | 96 bool notifyOnAdd = true) : |
| 88 SparseValueModel<Note>(sampleRate, resolution, | 97 SparseValueModel<Note>(sampleRate, resolution, |
| 89 valueMinimum, valueMaximum, | 98 valueMinimum, valueMaximum, |
| 90 notifyOnAdd), | 99 notifyOnAdd), |
