MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / saveStateToValueTree

Method saveStateToValueTree

NeuralNote/Source/TimeQuantizeOptions.cpp:169–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void TimeQuantizeOptions::saveStateToValueTree(bool inSetExportTempo)
170{
171 jassert(MessageManager::getInstance()->isThisTheMessageThread());
172 ScopedLock lock(mInfoCriticalSection);
173
174 auto& tree = mProcessor->getValueTree();
175 tree.setPropertyExcludingListener(this, NnId::TempoId, mTimeQuantizeInfo.bpm, nullptr);
176 tree.setPropertyExcludingListener(
177 this, NnId::TimeSignatureNumeratorId, mTimeQuantizeInfo.timeSignatureNum, nullptr);
178 tree.setPropertyExcludingListener(
179 this, NnId::TimeSignatureDenominatorId, mTimeQuantizeInfo.timeSignatureDenom, nullptr);
180 tree.setPropertyExcludingListener(this, NnId::TimeQuantizeRefPosQnId, mTimeQuantizeInfo.refPositionQn, nullptr);
181 tree.setPropertyExcludingListener(this, NnId::TimeQuantizeRefLastBarQnId, mTimeQuantizeInfo.refLastBarQn, nullptr);
182 tree.setPropertyExcludingListener(this, NnId::TimeQuantizeRefPosSec, mTimeQuantizeInfo.refPositionSeconds, nullptr);
183
184 if (inSetExportTempo) {
185 tree.setPropertyExcludingListener(this, NnId::ExportTempoId, mTimeQuantizeInfo.bpm, nullptr);
186 }
187}
188
189bool TimeQuantizeOptions::checkInfoUpdated()
190{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected