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

Method timerCallback

NeuralNote/Source/Components/NeuralNoteMainView.cpp:276–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void NeuralNoteMainView::timerCallback()
277{
278 auto processor_state = mProcessor.getState();
279 if (mRecordButton->getToggleState() && processor_state != Recording) {
280 mRecordButton->setToggleState(false, sendNotification);
281 updateEnablements();
282 }
283
284 if (mPlayPauseButton->getToggleState() != mProcessor.getPlayer()->isPlaying()) {
285 mPlayPauseButton->setToggleState(mProcessor.getPlayer()->isPlaying(), sendNotification);
286 }
287
288 if (mPrevState != processor_state) {
289 mPrevState = processor_state;
290 updateEnablements();
291 }
292}
293
294void NeuralNoteMainView::repaintPianoRoll()
295{

Callers

nothing calls this directly

Calls 3

getStateMethod · 0.80
isPlayingMethod · 0.80
getPlayerMethod · 0.80

Tested by

no test coverage detected