mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-11-03 22:03:54 +01:00
Phrase mode: audio engine (groups, clicks, blanking), raw frame bus, trainer hook
This commit is contained in:
@@ -73,6 +73,11 @@ export class PhraseMatcher {
|
||||
return this.statuses[idx] ?? 'pending';
|
||||
}
|
||||
|
||||
/** Snapshot of all statuses (for React state mirroring). */
|
||||
allStatuses(): NoteStatus[] {
|
||||
return [...this.statuses];
|
||||
}
|
||||
|
||||
setStatus(idx: number, status: NoteStatus): void {
|
||||
// One-way latch: a resolved note never changes.
|
||||
if (this.statuses[idx] === 'pending' || this.statuses[idx] === 'rest') {
|
||||
|
||||
Reference in New Issue
Block a user