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

Method timerCallback

NeuralNote/Source/TranscriptionManager.cpp:37–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void TranscriptionManager::timerCallback()
38{
39 if (mTimeQuantizeOptions.checkInfoUpdated()) {
40 mTimeQuantizeOptions.saveStateToValueTree(true);
41 }
42
43 if (mShouldRunNewTranscription) {
44 launchTranscribeJob();
45 _repaintPianoRoll();
46 } else if (mShouldUpdateTranscription) {
47 _updateTranscription();
48 _repaintPianoRoll();
49 } else if (mShouldUpdatePostProcessing) {
50 _updatePostProcessing();
51 _repaintPianoRoll();
52 } else if (mShouldRepaintPianoRoll) {
53 _repaintPianoRoll();
54 }
55}
56void TranscriptionManager::prepareToPlay(double inSampleRate)
57{
58 mTimeQuantizeOptions.prepareToPlay(inSampleRate);

Callers

nothing calls this directly

Calls 2

checkInfoUpdatedMethod · 0.80
saveStateToValueTreeMethod · 0.45

Tested by

no test coverage detected