Mercurial > hg > svcore
comparison data/model/NoteModel.h @ 1655:0cfb882155a6 single-point
Fixes: completion should default to 100 (it never gets set if we aren't a transform target); events added to time-value model should be denied durations; forward the overspill and matching search functions
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 11:14:36 +0000 |
parents | 7a56bb85030f |
children | e4084bc60fe8 |
comparison
equal
deleted
inserted
replaced
1654:26aa42fd60e9 | 1655:0cfb882155a6 |
---|---|
59 m_extendTo(0), | 59 m_extendTo(0), |
60 m_notifier(this, | 60 m_notifier(this, |
61 notifyOnAdd ? | 61 notifyOnAdd ? |
62 DeferredNotifier::NOTIFY_ALWAYS : | 62 DeferredNotifier::NOTIFY_ALWAYS : |
63 DeferredNotifier::NOTIFY_DEFERRED), | 63 DeferredNotifier::NOTIFY_DEFERRED), |
64 m_completion(0) { | 64 m_completion(100) { |
65 if (subtype == FLEXI_NOTE) { | 65 if (subtype == FLEXI_NOTE) { |
66 m_valueMinimum = 33.f; | 66 m_valueMinimum = 33.f; |
67 m_valueMaximum = 88.f; | 67 m_valueMaximum = 88.f; |
68 } | 68 } |
69 PlayParameterRepository::getInstance()->addPlayable(this); | 69 PlayParameterRepository::getInstance()->addPlayable(this); |
84 m_extendTo(0), | 84 m_extendTo(0), |
85 m_notifier(this, | 85 m_notifier(this, |
86 notifyOnAdd ? | 86 notifyOnAdd ? |
87 DeferredNotifier::NOTIFY_ALWAYS : | 87 DeferredNotifier::NOTIFY_ALWAYS : |
88 DeferredNotifier::NOTIFY_DEFERRED), | 88 DeferredNotifier::NOTIFY_DEFERRED), |
89 m_completion(0) { | 89 m_completion(100) { |
90 PlayParameterRepository::getInstance()->addPlayable(this); | 90 PlayParameterRepository::getInstance()->addPlayable(this); |
91 } | 91 } |
92 | 92 |
93 virtual ~NoteModel() { | 93 virtual ~NoteModel() { |
94 PlayParameterRepository::getInstance()->removePlayable(this); | 94 PlayParameterRepository::getInstance()->removePlayable(this); |