mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-11-03 22:03:54 +01:00
Phrase mode: QA updates (tempo timing verification, auto-continue, expanded library documented)
This commit is contained in:
@@ -344,6 +344,9 @@ export const PhraseTrainer = forwardRef<PhraseHandle, PhraseTrainerProps>(
|
||||
if (localStorage.getItem('phraseDebug') === '1') {
|
||||
w.__phraseDebug = () => ({
|
||||
frames: rawFrameCount(),
|
||||
audioNow: audioEngine.now(),
|
||||
scoreStart: trainer.scoreStart,
|
||||
spb: trainer.spb,
|
||||
micGate: audioEngine.isAudible(),
|
||||
micBlanked: audioEngine.isMicBlanked(),
|
||||
phase: trainer.phase,
|
||||
@@ -354,6 +357,7 @@ export const PhraseTrainer = forwardRef<PhraseHandle, PhraseTrainerProps>(
|
||||
firstNote: events[0]?.pitch?.midi ?? null,
|
||||
scoreOk,
|
||||
material: phrase.material,
|
||||
midis: events.map(e => (e.pitch ? e.pitch.midi : null)),
|
||||
});
|
||||
} else {
|
||||
delete w.__phraseDebug;
|
||||
|
||||
Reference in New Issue
Block a user