mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-11-03 22:03:54 +01:00
Assist mode: drop duplicate live-note staff from mic bar
The Assist card already shows the played note large (staff + fretboard); the pitch-monitor-bar staff duplicated it. Text readout (note + Hz) stays.
This commit is contained in:
18
src/App.tsx
18
src/App.tsx
@@ -374,13 +374,17 @@ function App() {
|
|||||||
{listening ? <Mic size={28} /> : <MicOff size={28} />}
|
{listening ? <Mic size={28} /> : <MicOff size={28} />}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<LiveNoteStaff
|
{/* Live staff omitted in Assist mode: the Assist card already
|
||||||
midi={displayedPitch ? displayedPitch.midi : null}
|
shows the played note large above the fretboard. */}
|
||||||
transpose={resolveClefTranspose(currentInstrumentDef, settings.difficulty).transpose}
|
{!isAssist && (
|
||||||
keySignature={settings.keySignature}
|
<LiveNoteStaff
|
||||||
clef={currentInstrumentDef.clefMode === 'treble' ? 'treble' : currentInstrumentDef.clefMode === 'bass' ? 'bass' : undefined}
|
midi={displayedPitch ? displayedPitch.midi : null}
|
||||||
theme={settings.theme}
|
transpose={resolveClefTranspose(currentInstrumentDef, settings.difficulty).transpose}
|
||||||
/>
|
keySignature={settings.keySignature}
|
||||||
|
clef={currentInstrumentDef.clefMode === 'treble' ? 'treble' : currentInstrumentDef.clefMode === 'bass' ? 'bass' : undefined}
|
||||||
|
theme={settings.theme}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<div className={`pitch-readout ${displayedPitch ? 'active' : ''}`}>
|
<div className={`pitch-readout ${displayedPitch ? 'active' : ''}`}>
|
||||||
{displayedPitch ? (
|
{displayedPitch ? (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user