You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Advance MIDI Studio V2 game music workflow with classification guidance section templates timeline navigation and song builder polish - PR_26146_097-100-midi-studio-v2-game-music-workflow-lane
- PASS: `npx playwright test tests/playwright/tools/MidiStudioV2.spec.mjs -g "validates PR097-100 classification templates section navigation and song builder summaries" --project=playwright --workers=1 --reporter=list`
27
+
- PASS: `git diff --check`
28
+
- TIMEOUT: `npm run test:workspace-v2` timed out at 120 seconds, then again at 600 seconds with no terminal result.
29
+
- TIMEOUT: full `npx playwright test tests/playwright/tools/MidiStudioV2.spec.mjs --project=playwright --workers=1 --reporter=list` timed out at 600 seconds. The lane-specific MIDI Studio Playwright test above passed.
30
+
31
+
## Playwright Coverage
32
+
The targeted PR097-100 Playwright test verifies:
33
+
- classification remains text-editable and updates generated ID behavior
34
+
- classification help and guidance are visible
35
+
- classification-specific template insertion appends into a populated section
- sequence selection highlights the matching timeline section
39
+
- timeline section header selection updates the matching sequence item
40
+
- active playback section visibility and frozen Bar/Beat dataset preservation
41
+
- section preview Play/Stop and global Play/Stop correctness
42
+
43
+
## Residual Risk
44
+
- The workspace-contract lane runner and full MIDI Studio Playwright spec did not finish within 600 seconds in this environment, so their final pass/fail state is not available from this run.
45
+
- Coverage reports are advisory and may include `HEAD`-changed JavaScript files by reporter design.
- Template preview and template insertion use the same classification workflow resolver.
39
+
- Applying a template into a populated built-in section appends the template chords instead of replacing existing chords.
40
+
- Custom sections are preserved and remain outside the built-in template replacement flow.
41
+
- If a template has no resolved chords, the Apply Template control is marked red/unwired with a status explaining the incomplete state.
42
+
43
+
## Verification
44
+
- Playwright enters `Underwater`, checks the read-only ID becomes `camptownRacesUatReel-Underwater`, verifies the classification guide, previews the Underwater Verse template, and confirms insertion appends `Dm Bb C Dm` into the populated Verse editor.
-`SongSheetControl` emits selected sequence detail from `songSheetSequenceList`.
5
+
-`MidiStudioV2App.handleSongSheetSequenceSelection` receives the selected label and sequence index.
6
+
-`InstrumentGridControl.selectSequenceSection` resolves the matching generated section by sequence occurrence when possible.
7
+
- The Octave Timeline playhead and selected section are moved to the section start.
8
+
- The timeline canvas re-renders with the selected section color and stronger selected-region contrast.
9
+
10
+
## Timeline To Sequence
11
+
- Timeline section-header clicks continue to emit `select-section` transport actions.
12
+
-`MidiStudioV2App` calls `SongSheetControl.selectSequenceItem(label, sequenceIndex)` for timeline-header selections.
13
+
-`SongSheetControl` selects the matching sequence item, updates selected datasets, and reapplies section colors.
14
+
15
+
## Visual Synchronization
16
+
- Song Sequence options use populated section colors.
17
+
- The Song Sequence select receives a visible color stripe from the selected section color.
18
+
- Timeline section regions, selected section region, and active playback section region use stronger alpha/stroke values.
19
+
- The timeline canvas now exposes `data-active-playback-section-visible` for Playwright and diagnostics.
20
+
- Frozen Bar/Beat behavior remains owned by the canvas renderer and is preserved.
21
+
22
+
## Sequence Summary
23
+
-`songSheetSequenceSummary` displays:
24
+
- section count
25
+
- total bar/chord count from selected sequence sections
26
+
- estimated duration from tempo and bar count
27
+
- The output also exposes data attributes for section count, bar count, and duration seconds.
28
+
29
+
## Generation Summary
30
+
- Song Sheet generation summary now includes:
31
+
- Generated bars
32
+
- Generated notes
33
+
- Generated instruments
34
+
- The existing generated arrangement still updates the canonical song model, diagnostics, JSON details, and Octave Timeline through the prior generation path.
35
+
36
+
## Verification
37
+
- Playwright adds Intro, Verse, Chorus to Song Sequence, verifies `3 sections` and `14 bars`, parses the arrangement, verifies generated bars/notes/instruments, selects Verse from the sequence and checks timeline selection, then clicks the Chorus timeline header and checks the Song Sequence selection updates to Chorus.
<outputid="songSheetClassificationGuide" class="midi-studio-v2__classification-guide" data-classification-workflow="General">General game music defaults: Warm Pad, Synth Bass, Basic Drums, Retro Lead. Use balanced Chords/Pad and Bass first; enable Drums or Lead when the arrangement needs motion.</output>
0 commit comments