| 234 | } |
| 235 | |
| 236 | void TimeQuantizeOptions::valueTreePropertyChanged(ValueTree& treeWhosePropertyHasChanged, const Identifier& property) |
| 237 | { |
| 238 | if (property == NnId::TempoId) { |
| 239 | ScopedLock lock(mInfoCriticalSection); |
| 240 | mTimeQuantizeInfo.bpm = mProcessor->getValueTree().getProperty(property); |
| 241 | |
| 242 | } else if (property == NnId::TimeSignatureNumeratorId) { |
| 243 | ScopedLock lock(mInfoCriticalSection); |
| 244 | mTimeQuantizeInfo.timeSignatureNum = mProcessor->getValueTree().getProperty(property); |
| 245 | |
| 246 | } else if (property == NnId::TimeSignatureDenominatorId) { |
| 247 | ScopedLock lock(mInfoCriticalSection); |
| 248 | mTimeQuantizeInfo.timeSignatureDenom = mProcessor->getValueTree().getProperty(property); |
| 249 | |
| 250 | } else if (property == NnId::TimeQuantizeRefPosQnId) { |
| 251 | ScopedLock lock(mInfoCriticalSection); |
| 252 | mTimeQuantizeInfo.refPositionQn = mProcessor->getValueTree().getProperty(property); |
| 253 | |
| 254 | } else if (property == NnId::TimeQuantizeRefLastBarQnId) { |
| 255 | ScopedLock lock(mInfoCriticalSection); |
| 256 | mTimeQuantizeInfo.refLastBarQn = mProcessor->getValueTree().getProperty(property); |
| 257 | |
| 258 | } else if (property == NnId::TimeQuantizeRefPosSec) { |
| 259 | ScopedLock lock(mInfoCriticalSection); |
| 260 | mTimeQuantizeInfo.refPositionSeconds = mProcessor->getValueTree().getProperty(property); |
| 261 | } |
| 262 | } |
nothing calls this directly
no outgoing calls
no test coverage detected