comparison data/model/SparseTimeValueModel.h @ 391:5858cc462d0a

* Fix #1628781 changes to layer visibility and mute should use a command * Also use a command for changes to layer playback pan, gain, plugin settings * Refactor PlayParameterRepository to remove dependency on audioio from base * Fix failure to save play parameters for main model in session file
author Chris Cannam
date Thu, 13 Mar 2008 14:06:03 +0000
parents 700cd3350391
children 50a956688baa
comparison
equal deleted inserted replaced
390:21e79997e80f 391:5858cc462d0a
81 SparseTimeValueModel(size_t sampleRate, size_t resolution, 81 SparseTimeValueModel(size_t sampleRate, size_t resolution,
82 bool notifyOnAdd = true) : 82 bool notifyOnAdd = true) :
83 SparseValueModel<TimeValuePoint>(sampleRate, resolution, 83 SparseValueModel<TimeValuePoint>(sampleRate, resolution,
84 notifyOnAdd) 84 notifyOnAdd)
85 { 85 {
86 PlayParameterRepository::getInstance()->addModel(this); 86 // not yet playable
87 } 87 }
88 88
89 SparseTimeValueModel(size_t sampleRate, size_t resolution, 89 SparseTimeValueModel(size_t sampleRate, size_t resolution,
90 float valueMinimum, float valueMaximum, 90 float valueMinimum, float valueMaximum,
91 bool notifyOnAdd = true) : 91 bool notifyOnAdd = true) :
92 SparseValueModel<TimeValuePoint>(sampleRate, resolution, 92 SparseValueModel<TimeValuePoint>(sampleRate, resolution,
93 valueMinimum, valueMaximum, 93 valueMinimum, valueMaximum,
94 notifyOnAdd) 94 notifyOnAdd)
95 { 95 {
96 PlayParameterRepository::getInstance()->addModel(this); 96 // not yet playable
97 } 97 }
98 98
99 QString getTypeName() const { return tr("Sparse Time-Value"); } 99 QString getTypeName() const { return tr("Sparse Time-Value"); }
100 }; 100 };
101 101