Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/model/NoteModel.h Thu Apr 19 15:19:51 2007 +0000 +++ b/data/model/NoteModel.h Fri Apr 27 15:39:48 2007 +0000 @@ -83,6 +83,15 @@ { public: NoteModel(size_t sampleRate, size_t resolution, + bool notifyOnAdd = true) : + SparseValueModel<Note>(sampleRate, resolution, + notifyOnAdd), + m_valueQuantization(0) + { + PlayParameterRepository::getInstance()->addModel(this); + } + + NoteModel(size_t sampleRate, size_t resolution, float valueMinimum, float valueMaximum, bool notifyOnAdd = true) : SparseValueModel<Note>(sampleRate, resolution,