smoosic 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/smoosic.js +546 -125
- package/changes.md +85 -0
- package/package.json +23 -2
- package/release/smoosic.js +549 -128
- package/release/styles/menus.css +26 -0
- package/specs/022-text-reposition-on-resize/spec.md +1 -0
- package/specs/027-fix-bottom-modifier-lookup/checklists/requirements.md +38 -0
- package/specs/027-fix-bottom-modifier-lookup/contracts/division-lookup-contract.md +51 -0
- package/specs/027-fix-bottom-modifier-lookup/data-model.md +43 -0
- package/specs/027-fix-bottom-modifier-lookup/plan.md +77 -0
- package/specs/027-fix-bottom-modifier-lookup/quickstart.md +36 -0
- package/specs/027-fix-bottom-modifier-lookup/research.md +58 -0
- package/specs/027-fix-bottom-modifier-lookup/spec.md +105 -0
- package/specs/027-fix-bottom-modifier-lookup/tasks.md +167 -0
- package/specs/028-unsaved-changes-indicator/checklists/requirements.md +39 -0
- package/specs/028-unsaved-changes-indicator/contracts/score-change-contract.md +44 -0
- package/specs/028-unsaved-changes-indicator/data-model.md +64 -0
- package/specs/028-unsaved-changes-indicator/plan.md +96 -0
- package/specs/028-unsaved-changes-indicator/quickstart.md +54 -0
- package/specs/028-unsaved-changes-indicator/research.md +68 -0
- package/specs/028-unsaved-changes-indicator/spec.md +135 -0
- package/specs/028-unsaved-changes-indicator/tasks.md +173 -0
- package/specs/029-remove-promise-helpers/checklists/requirements.md +39 -0
- package/specs/029-remove-promise-helpers/contracts/public-api-contract.md +32 -0
- package/specs/029-remove-promise-helpers/data-model.md +45 -0
- package/specs/029-remove-promise-helpers/plan.md +86 -0
- package/specs/029-remove-promise-helpers/quickstart.md +53 -0
- package/specs/029-remove-promise-helpers/research.md +71 -0
- package/specs/029-remove-promise-helpers/spec.md +107 -0
- package/specs/029-remove-promise-helpers/tasks.md +164 -0
- package/specs/030-copy-paste-voices/checklists/requirements.md +39 -0
- package/specs/030-copy-paste-voices/contracts/voice-copy-paste-contract.md +47 -0
- package/specs/030-copy-paste-voices/data-model.md +63 -0
- package/specs/030-copy-paste-voices/plan.md +80 -0
- package/specs/030-copy-paste-voices/quickstart.md +50 -0
- package/specs/030-copy-paste-voices/research.md +80 -0
- package/specs/030-copy-paste-voices/spec.md +124 -0
- package/specs/030-copy-paste-voices/tasks.md +183 -0
- package/specs/031-select-voice/checklists/requirements.md +39 -0
- package/specs/031-select-voice/contracts/select-voice-contract.md +43 -0
- package/specs/031-select-voice/data-model.md +47 -0
- package/specs/031-select-voice/plan.md +79 -0
- package/specs/031-select-voice/quickstart.md +43 -0
- package/specs/031-select-voice/research.md +55 -0
- package/specs/031-select-voice/spec.md +113 -0
- package/specs/031-select-voice/tasks.md +171 -0
- package/specs/032-split-multimeasure-rests/checklists/requirements.md +40 -0
- package/specs/032-split-multimeasure-rests/contracts/grouping-contract.md +53 -0
- package/specs/032-split-multimeasure-rests/data-model.md +70 -0
- package/specs/032-split-multimeasure-rests/plan.md +81 -0
- package/specs/032-split-multimeasure-rests/quickstart.md +46 -0
- package/specs/032-split-multimeasure-rests/research.md +63 -0
- package/specs/032-split-multimeasure-rests/spec.md +127 -0
- package/specs/032-split-multimeasure-rests/tasks.md +174 -0
- package/specs/033-key-distance-transposition/checklists/requirements.md +35 -0
- package/specs/033-key-distance-transposition/contracts/spelling-api.md +36 -0
- package/specs/033-key-distance-transposition/data-model.md +49 -0
- package/specs/033-key-distance-transposition/plan.md +87 -0
- package/specs/033-key-distance-transposition/quickstart.md +40 -0
- package/specs/033-key-distance-transposition/research.md +82 -0
- package/specs/033-key-distance-transposition/spec.md +132 -0
- package/specs/033-key-distance-transposition/tasks.md +139 -0
- package/specs/034-smz-compressed-scores/checklists/requirements.md +35 -0
- package/specs/034-smz-compressed-scores/contracts/archive-api.md +30 -0
- package/specs/034-smz-compressed-scores/data-model.md +48 -0
- package/specs/034-smz-compressed-scores/plan.md +89 -0
- package/specs/034-smz-compressed-scores/quickstart.md +44 -0
- package/specs/034-smz-compressed-scores/research.md +86 -0
- package/specs/034-smz-compressed-scores/spec.md +137 -0
- package/specs/034-smz-compressed-scores/tasks.md +148 -0
- package/specs/035-paste-special/checklists/requirements.md +35 -0
- package/specs/035-paste-special/contracts/paste-special-api.md +50 -0
- package/specs/035-paste-special/data-model.md +47 -0
- package/specs/035-paste-special/plan.md +83 -0
- package/specs/035-paste-special/quickstart.md +51 -0
- package/specs/035-paste-special/research.md +97 -0
- package/specs/035-paste-special/spec.md +170 -0
- package/specs/035-paste-special/tasks.md +149 -0
- package/specs/036-autosave-recovery/checklists/requirements.md +36 -0
- package/specs/036-autosave-recovery/contracts/autosave-api.md +111 -0
- package/specs/036-autosave-recovery/data-model.md +70 -0
- package/specs/036-autosave-recovery/plan.md +87 -0
- package/specs/036-autosave-recovery/quickstart.md +65 -0
- package/specs/036-autosave-recovery/research.md +105 -0
- package/specs/036-autosave-recovery/spec.md +143 -0
- package/specs/036-autosave-recovery/tasks.md +165 -0
- package/specs/037-fix-new-part-dialog/checklists/requirements.md +38 -0
- package/specs/037-fix-new-part-dialog/contracts/create-part-api.md +84 -0
- package/specs/037-fix-new-part-dialog/data-model.md +68 -0
- package/specs/037-fix-new-part-dialog/plan.md +83 -0
- package/specs/037-fix-new-part-dialog/quickstart.md +58 -0
- package/specs/037-fix-new-part-dialog/research.md +86 -0
- package/specs/037-fix-new-part-dialog/spec.md +144 -0
- package/specs/037-fix-new-part-dialog/tasks.md +174 -0
- package/specs/038-per-measure-beam-groups/checklists/requirements.md +36 -0
- package/specs/038-per-measure-beam-groups/contracts/beam-groups-api.md +74 -0
- package/specs/038-per-measure-beam-groups/data-model.md +75 -0
- package/specs/038-per-measure-beam-groups/plan.md +84 -0
- package/specs/038-per-measure-beam-groups/quickstart.md +53 -0
- package/specs/038-per-measure-beam-groups/research.md +72 -0
- package/specs/038-per-measure-beam-groups/spec.md +146 -0
- package/specs/038-per-measure-beam-groups/tasks.md +132 -0
- package/specs/039-measure-fill-submenu/checklists/requirements.md +35 -0
- package/specs/039-measure-fill-submenu/contracts/measure-fill-api.md +56 -0
- package/specs/039-measure-fill-submenu/data-model.md +79 -0
- package/specs/039-measure-fill-submenu/plan.md +81 -0
- package/specs/039-measure-fill-submenu/quickstart.md +62 -0
- package/specs/039-measure-fill-submenu/research.md +68 -0
- package/specs/039-measure-fill-submenu/spec.md +153 -0
- package/specs/039-measure-fill-submenu/tasks.md +121 -0
- package/specs/040-dynamics-dialog-cleanup/checklists/requirements.md +36 -0
- package/specs/040-dynamics-dialog-cleanup/contracts/dynamics-dialog.md +52 -0
- package/specs/040-dynamics-dialog-cleanup/data-model.md +48 -0
- package/specs/040-dynamics-dialog-cleanup/plan.md +89 -0
- package/specs/040-dynamics-dialog-cleanup/quickstart.md +69 -0
- package/specs/040-dynamics-dialog-cleanup/research.md +80 -0
- package/specs/040-dynamics-dialog-cleanup/spec.md +120 -0
- package/specs/040-dynamics-dialog-cleanup/tasks.md +114 -0
- package/specs/041-delete-special/checklists/requirements.md +35 -0
- package/specs/041-delete-special/contracts/delete-special-api.md +41 -0
- package/specs/041-delete-special/data-model.md +40 -0
- package/specs/041-delete-special/plan.md +93 -0
- package/specs/041-delete-special/quickstart.md +41 -0
- package/specs/041-delete-special/research.md +75 -0
- package/specs/041-delete-special/spec.md +136 -0
- package/specs/041-delete-special/tasks.md +106 -0
- package/src/application/application.ts +475 -459
- package/src/application/exports.ts +401 -395
- package/src/application/generateVexTests.ts +2 -2
- package/src/common/promiseHelpers.ts +2 -2
- package/src/render/audio/samples.ts +117 -118
- package/src/render/sui/NoteEntryCaret.ts +117 -16
- package/src/render/sui/autosave.ts +265 -0
- package/src/render/sui/formatter.ts +12 -2
- package/src/render/sui/pageDivisions.ts +58 -0
- package/src/render/sui/renderState.ts +469 -464
- package/src/render/sui/scoreChangeState.ts +67 -0
- package/src/render/sui/scoreView.ts +77 -2
- package/src/render/sui/scoreViewOperations.ts +363 -37
- package/src/render/sui/staffLineGeometry.ts +82 -0
- package/src/render/sui/svgPageMap.ts +16 -17
- package/src/render/sui/textEdit.ts +310 -311
- package/src/render/sui/tracker.ts +40 -0
- package/src/render/vex/vxMeasure.ts +22 -8
- package/src/render/vex/vxNote.ts +5 -5
- package/src/smo/data/measure.ts +58 -1
- package/src/smo/data/measureModifiers.ts +81 -1
- package/src/smo/data/music.ts +169 -359
- package/src/smo/data/note.ts +1 -1
- package/src/smo/data/noteModifiers.ts +12 -0
- package/src/smo/data/score.ts +167 -2
- package/src/smo/data/scoreModifiers.ts +46 -1
- package/src/smo/data/systemStaff.ts +43 -0
- package/src/smo/xform/beamers.ts +80 -6
- package/src/smo/xform/copypaste.ts +511 -51
- package/src/smo/xform/measureFill.ts +89 -0
- package/src/smo/xform/operations.ts +403 -61
- package/src/smo/xform/selections.ts +75 -0
- package/src/smo/xform/undo.ts +9 -0
- package/src/styles/menus.css +26 -0
- package/src/ui/buttons/ribbon.ts +3 -1
- package/src/ui/components/buttons/sidebar.vue +15 -6
- package/src/ui/components/dialogs/beamGroups.vue +106 -0
- package/src/ui/components/dialogs/deleteSpecial.vue +38 -0
- package/src/ui/components/dialogs/dynamics.vue +16 -3
- package/src/ui/components/dialogs/fileUpload.vue +2 -2
- package/src/ui/components/dialogs/hairpin.vue +3 -3
- package/src/ui/components/dialogs/library.vue +3 -1
- package/src/ui/components/dialogs/newPart.vue +148 -184
- package/src/ui/components/dialogs/pasteSpecial.vue +49 -0
- package/src/ui/components/dialogs/recovery.vue +66 -0
- package/src/ui/components/dialogs/save.vue +11 -4
- package/src/ui/components/dialogs/scorePreferences.vue +23 -1
- package/src/ui/components/dialogs/slur.vue +6 -6
- package/src/ui/components/dialogs/tempo.vue +11 -3
- package/src/ui/components/dialogs/timeSignature.vue +5 -0
- package/src/ui/components/dialogs/unsavedChanges.vue +44 -0
- package/src/ui/components/dialogs/volta.vue +3 -3
- package/src/ui/dialogs/adapter.ts +181 -183
- package/src/ui/dialogs/addMeasure.ts +97 -97
- package/src/ui/dialogs/annotationVue.ts +56 -56
- package/src/ui/dialogs/audioSettings.ts +121 -123
- package/src/ui/dialogs/beamGroupsVue.ts +69 -0
- package/src/ui/dialogs/chordChangeVue.ts +46 -46
- package/src/ui/dialogs/clefChange.ts +53 -53
- package/src/ui/dialogs/createPartHelpers.ts +68 -0
- package/src/ui/dialogs/customTuplets.ts +95 -96
- package/src/ui/dialogs/customTupletsVue.ts +47 -47
- package/src/ui/dialogs/deleteSpecial.ts +57 -0
- package/src/ui/dialogs/dialog.ts +627 -620
- package/src/ui/dialogs/durations.ts +34 -34
- package/src/ui/dialogs/dynamicsVue.ts +87 -60
- package/src/ui/dialogs/factory.ts +196 -198
- package/src/ui/dialogs/fileDialogs.ts +286 -179
- package/src/ui/dialogs/fonts.ts +93 -93
- package/src/ui/dialogs/globalLayout.ts +40 -40
- package/src/ui/dialogs/gracenote.ts +31 -31
- package/src/ui/dialogs/hairpin.ts +108 -110
- package/src/ui/dialogs/hairpinVue.ts +51 -51
- package/src/ui/dialogs/instrument.ts +119 -112
- package/src/ui/dialogs/keySignature.ts +175 -176
- package/src/ui/dialogs/keySignatureVue.ts +47 -47
- package/src/ui/dialogs/library.ts +207 -207
- package/src/ui/dialogs/libraryVue.ts +62 -48
- package/src/ui/dialogs/lyricVue.ts +46 -46
- package/src/ui/dialogs/measureFormat.ts +78 -78
- package/src/ui/dialogs/microtones.ts +147 -147
- package/src/ui/dialogs/noteHead.ts +319 -319
- package/src/ui/dialogs/pageLayout.ts +61 -61
- package/src/ui/dialogs/partInfo.ts +60 -60
- package/src/ui/dialogs/pasteSpecial.ts +59 -0
- package/src/ui/dialogs/pedalMarking.ts +117 -117
- package/src/ui/dialogs/pedalMarkingVue.ts +73 -73
- package/src/ui/dialogs/pitch.ts +352 -352
- package/src/ui/dialogs/preferences.ts +1 -0
- package/src/ui/dialogs/recovery.ts +49 -0
- package/src/ui/dialogs/rehearsalMark.ts +64 -64
- package/src/ui/dialogs/rehearsalMarkVue.ts +57 -57
- package/src/ui/dialogs/scoreId.ts +35 -36
- package/src/ui/dialogs/scoreView.ts +42 -42
- package/src/ui/dialogs/slur.ts +308 -310
- package/src/ui/dialogs/slurVue.ts +91 -91
- package/src/ui/dialogs/staffGroup.ts +112 -112
- package/src/ui/dialogs/tabNote.ts +84 -84
- package/src/ui/dialogs/tabStave.ts +182 -182
- package/src/ui/dialogs/tempo.ts +261 -263
- package/src/ui/dialogs/tempoVue.ts +73 -73
- package/src/ui/dialogs/textBlockVue.ts +127 -127
- package/src/ui/dialogs/textBracket.ts +114 -116
- package/src/ui/dialogs/textBracketVue.ts +56 -56
- package/src/ui/dialogs/tie.ts +140 -142
- package/src/ui/dialogs/timeSignature.ts +65 -66
- package/src/ui/dialogs/transposeScore.ts +39 -39
- package/src/ui/dialogs/unsavedChanges.ts +43 -0
- package/src/ui/dialogs/volta.ts +120 -122
- package/src/ui/dialogs/voltaVue.ts +51 -51
- package/src/ui/fileio/fileInput.ts +12 -3
- package/src/ui/fileio/library.ts +110 -111
- package/src/ui/fileio/scoreArchive.ts +151 -0
- package/src/ui/fileio/xhrLoader.ts +26 -0
- package/src/ui/i18n/language.ts +1 -1
- package/src/ui/menus/beams.ts +181 -112
- package/src/ui/menus/edit.ts +143 -6
- package/src/ui/menus/file.ts +40 -4
- package/src/ui/menus/measure.ts +40 -1
- package/tests/autosave.ts +332 -0
- package/tests/beamDotted.ts +56 -0
- package/tests/beamGroups.ts +338 -0
- package/tests/createPart.ts +292 -0
- package/tests/deleteSpecial.ts +350 -0
- package/tests/dynamicsFontSize.ts +132 -0
- package/tests/keyDistanceTransposition.ts +351 -0
- package/tests/measureFill.ts +295 -0
- package/tests/movePart.ts +94 -0
- package/tests/multimeasureRest.ts +338 -0
- package/tests/pageDivisions.ts +156 -0
- package/tests/pasteIntoMeasure.ts +103 -0
- package/tests/pasteSpecial.ts +541 -0
- package/tests/promiseHelpersUsage.ts +142 -0
- package/tests/quickBeam.ts +126 -0
- package/tests/scoreArchive.ts +218 -0
- package/tests/scoreChangeState.ts +104 -0
- package/tests/selectVoice.ts +189 -0
- package/tests/staffLineGeometry.ts +179 -0
- package/tests/timeSignatureDisplay.ts +58 -0
- package/tests/voiceCopyPaste.ts +417 -0
- package/tools/smoosic-schema.json +37 -0
- package/typedoc.ts +1 -1
- package/types/src/application/exports.d.ts +453 -447
- package/types/src/common/promiseHelpers.d.ts +30 -30
- package/types/src/common/vex.d.ts +224 -224
- package/types/src/render/sui/NoteEntryCaret.d.ts +107 -107
- package/types/src/render/sui/autosave.d.ts +99 -0
- package/types/src/render/sui/scoreView.d.ts +23 -0
- package/types/src/render/sui/scoreViewOperations.d.ts +759 -639
- package/types/src/render/sui/svgHelpers.d.ts +88 -88
- package/types/src/render/sui/svgPageMap.d.ts +344 -344
- package/types/src/render/sui/textEdit.d.ts +96 -96
- package/types/src/render/sui/textRender.d.ts +199 -199
- package/types/src/render/vex/smoAdapter.d.ts +47 -47
- package/types/src/render/vex/vxMeasure.d.ts +97 -97
- package/types/src/render/vex/vxNote.d.ts +56 -56
- package/types/src/render/vex/vxSystem.d.ts +71 -71
- package/types/src/smo/data/measure.d.ts +30 -0
- package/types/src/smo/data/measureModifiers.d.ts +568 -513
- package/types/src/smo/data/music.d.ts +74 -32
- package/types/src/smo/data/note.d.ts +498 -498
- package/types/src/smo/data/noteModifiers.d.ts +615 -606
- package/types/src/smo/data/score.d.ts +476 -421
- package/types/src/smo/data/scoreModifiers.d.ts +30 -0
- package/types/src/smo/data/scoreText.d.ts +334 -334
- package/types/src/smo/data/systemStaff.d.ts +14 -0
- package/types/src/smo/xform/beamers.d.ts +23 -1
- package/types/src/smo/xform/copypaste.d.ts +138 -2
- package/types/src/smo/xform/measureFill.d.ts +21 -0
- package/types/src/smo/xform/operations.d.ts +245 -129
- package/types/src/smo/xform/selections.d.ts +154 -154
- package/types/src/smo/xform/undo.d.ts +142 -142
- package/types/src/ui/buttons/button.d.ts +100 -100
- package/types/src/ui/buttons/ribbon.d.ts +70 -70
- package/types/src/ui/common.d.ts +76 -76
- package/types/src/ui/components/dialogs/chordText.d.ts +28 -28
- package/types/src/ui/components/dialogs/textBlockAtomNode.d.ts +20 -20
- package/types/src/ui/components/dialogs/textGroupHtml.d.ts +29 -29
- package/types/src/ui/composable/draggable.d.ts +15 -15
- package/types/src/ui/dialogs/adapter.d.ts +120 -120
- package/types/src/ui/dialogs/annotationVue.d.ts +9 -9
- package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
- package/types/src/ui/dialogs/beamGroupsVue.d.ts +20 -0
- package/types/src/ui/dialogs/chordChangeVue.d.ts +8 -8
- package/types/src/ui/dialogs/createPartHelpers.d.ts +29 -0
- package/types/src/ui/dialogs/customTupletsVue.d.ts +9 -9
- package/types/src/ui/dialogs/deleteSpecial.d.ts +8 -0
- package/types/src/ui/dialogs/dialog.d.ts +203 -203
- package/types/src/ui/dialogs/dynamicsVue.d.ts +10 -10
- package/types/src/ui/dialogs/factory.d.ts +15 -15
- package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
- package/types/src/ui/dialogs/hairpin.d.ts +35 -35
- package/types/src/ui/dialogs/hairpinVue.d.ts +7 -7
- package/types/src/ui/dialogs/instrument.d.ts +3 -3
- package/types/src/ui/dialogs/keySignatureVue.d.ts +7 -7
- package/types/src/ui/dialogs/libraryVue.d.ts +15 -15
- package/types/src/ui/dialogs/lyricVue.d.ts +8 -8
- package/types/src/ui/dialogs/pasteSpecial.d.ts +8 -0
- package/types/src/ui/dialogs/pedalMarkingVue.d.ts +7 -7
- package/types/src/ui/dialogs/recovery.d.ts +8 -0
- package/types/src/ui/dialogs/rehearsalMark.d.ts +25 -25
- package/types/src/ui/dialogs/rehearsalMarkVue.d.ts +7 -7
- package/types/src/ui/dialogs/slur.d.ts +57 -57
- package/types/src/ui/dialogs/slurVue.d.ts +7 -7
- package/types/src/ui/dialogs/tempo.d.ts +50 -50
- package/types/src/ui/dialogs/tempoVue.d.ts +10 -10
- package/types/src/ui/dialogs/textBlockVue.d.ts +8 -8
- package/types/src/ui/dialogs/textBracket.d.ts +35 -35
- package/types/src/ui/dialogs/textBracketVue.d.ts +7 -7
- package/types/src/ui/dialogs/tie.d.ts +41 -41
- package/types/src/ui/dialogs/volta.d.ts +40 -40
- package/types/src/ui/dialogs/voltaVue.d.ts +7 -7
- package/types/src/ui/fileio/fileInput.d.ts +7 -1
- package/types/src/ui/fileio/library.d.ts +40 -40
- package/types/src/ui/fileio/scoreArchive.d.ts +55 -0
- package/types/src/ui/fileio/xhrLoader.d.ts +7 -0
- package/types/src/ui/menus/file.d.ts +8 -8
- package/types/src/ui/menus/language.d.ts +7 -7
- package/types/src/ui/menus/manager.d.ts +58 -58
- package/types/src/ui/menus/menu.d.ts +159 -159
- package/types/src/ui/menus/partSelection.d.ts +14 -14
- package/types/src/ui/menus/score.d.ts +8 -8
- package/types/src/ui/menus/staffModifier.d.ts +17 -17
- package/types/typedoc.d.ts +147 -147
- package/src/ui/dialogs/dynamics.ts +0 -143
- package/types/src/ui/dialogs/dynamics.d.ts +0 -37
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Feature Specification: Select Voice
|
|
2
|
+
|
|
3
|
+
**Feature Branch**: `031-select-voice`
|
|
4
|
+
|
|
5
|
+
**Created**: 2026-10-20
|
|
6
|
+
|
|
7
|
+
**Status**: Draft
|
|
8
|
+
|
|
9
|
+
**Input**: User description: "In the edit menu, create a 'Select Voice' submenu. It allows you to select a specific notes from a specific voice, based on the currently selected measures. If there is only a single voice in all selected measures, there would be no sub menu choices, and if the user selects a voice and there are no notes in the set of selected measures, the selection should not change. All notes in the measures that currently have a selection should be selected, since different voices can have different numbers of notes that might overlap in different ways. This allows us to do things like changing the pitch or duration of many notes, but only in a specific voice."
|
|
10
|
+
|
|
11
|
+
## User Scenarios & Testing *(mandatory)*
|
|
12
|
+
|
|
13
|
+
### User Story 1 - Select every note of one voice in the chosen measures (Priority: P1)
|
|
14
|
+
|
|
15
|
+
A composer has a passage with two or more voices in the same staff, for example a melody in voice 1 and a bass line in voice 2. They select the measures they want to work on, open Edit > Select Voice and choose Voice 2. Every note in voice 2 of those measures is now selected, and the notes of the other voices are not. They can then change the pitch, duration or any other property of just those notes in one step.
|
|
16
|
+
|
|
17
|
+
**Why this priority**: This is the whole point of the feature. Today a selection in a multi-voice passage picks up the notes of whichever voice happens to be on top, so changing "all the notes in the bass line" means selecting them one at a time or accepting changes to the other voices as well.
|
|
18
|
+
|
|
19
|
+
**Independent Test**: Make four measures with two voices. Select the four measures, choose Edit > Select Voice > Voice 2, then transpose the selection up an octave. Only the voice 2 notes change; voice 1 stays as it was.
|
|
20
|
+
|
|
21
|
+
**Acceptance Scenarios**:
|
|
22
|
+
|
|
23
|
+
1. **Given** a selection that touches several measures that each have voices 1 and 2, **When** the user chooses Select Voice > Voice 2, **Then** every note of voice 2 in all of those measures is selected, and no note of any other voice is.
|
|
24
|
+
2. **Given** a selection of only part of a measure (for example, a single note), **When** the user chooses Select Voice > Voice 2, **Then** all the notes of voice 2 in that whole measure are selected, not only the ones that line up with the original selection.
|
|
25
|
+
3. **Given** voices that have different numbers of notes in a measure (for example, four quarter notes in voice 1 and one whole note in voice 2), **When** the user selects either voice, **Then** all of that voice's notes in the measure are selected, whatever their positions relative to the other voice.
|
|
26
|
+
4. **Given** a selection spanning more than one staff, **When** the user chooses Select Voice > Voice 1, **Then** the voice 1 notes of the selected measures in each of those staves are selected.
|
|
27
|
+
5. **Given** the new selection, **When** the user applies an edit that works on selected notes (change pitch, duration, accidental, articulation, and so on), **Then** the edit applies to the selected voice's notes only.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### User Story 2 - The menu only offers choices that make sense (Priority: P1)
|
|
32
|
+
|
|
33
|
+
The Select Voice choices depend on the selection. Only voices that actually exist in the selected measures are listed. If the selected measures all have only a single voice, there is nothing to choose between, so Select Voice offers no choices (it doesn't appear). If the user picks a voice that turns out to have no notes in the selected measures, nothing happens and the current selection is left exactly as it was.
|
|
34
|
+
|
|
35
|
+
**Why this priority**: Without this, the menu would offer actions that do nothing, or that quietly destroy the user's current selection. A small rule, but it decides whether the feature feels trustworthy.
|
|
36
|
+
|
|
37
|
+
**Independent Test**: Select a measure with one voice and open the Edit menu: no Select Voice entry (or an empty one). Select a measure with voices 1 and 2: choices are Voice 1 and Voice 2. Select measures 1 to 4 where only measure 4 has voice 3: Voice 3 is offered, and choosing it selects voice 3 of measure 4 only.
|
|
38
|
+
|
|
39
|
+
**Acceptance Scenarios**:
|
|
40
|
+
|
|
41
|
+
1. **Given** every selected measure has exactly one voice, **When** the user opens the Edit menu, **Then** Select Voice offers no choices.
|
|
42
|
+
2. **Given** the selected measures contain voices 1 and 2, **When** the user opens Select Voice, **Then** it lists Voice 1 and Voice 2 only.
|
|
43
|
+
3. **Given** voice 3 exists in only some of the selected measures, **When** the user opens Select Voice and chooses Voice 3, **Then** the voice 3 notes in the measures that have them are selected, and the measures without voice 3 contribute nothing.
|
|
44
|
+
4. **Given** the user chooses a voice that has no notes in any of the selected measures, **When** the choice is made, **Then** the selection does not change at all.
|
|
45
|
+
5. **Given** nothing is selected, **When** the user opens the Edit menu, **Then** Select Voice offers no choices.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### User Story 3 - Selecting a voice never changes the music (Priority: P2)
|
|
50
|
+
|
|
51
|
+
Select Voice only changes which notes are selected. It never adds, removes, moves or edits a note, never creates a voice, and does not add an entry to the undo history. This separates it from the existing Voices menu, which makes a voice the one the user is entering notes into and can create a new voice.
|
|
52
|
+
|
|
53
|
+
**Why this priority**: It keeps the action safe to use freely and keeps Undo meaning "undo my last edit", not "undo my last selection". It is lower priority only because it is a property of the feature rather than a step of the user's workflow.
|
|
54
|
+
|
|
55
|
+
**Independent Test**: Select two measures, choose Select Voice > Voice 2 several times and alternate with Voice 1. The score is unchanged, and Undo does not step through the selections.
|
|
56
|
+
|
|
57
|
+
**Acceptance Scenarios**:
|
|
58
|
+
|
|
59
|
+
1. **Given** any selection, **When** the user chooses a voice from Select Voice, **Then** no note, measure or voice in the score is added, removed or modified.
|
|
60
|
+
2. **Given** the user has just used Select Voice, **When** the user chooses Undo, **Then** the undo applies to the last edit made before it, not to the selection.
|
|
61
|
+
3. **Given** a measure that has no voice 2, **When** the user looks at the Select Voice choices, **Then** there is no choice that would create a voice 2.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### Edge Cases
|
|
66
|
+
|
|
67
|
+
- What happens when the selected measures contain different numbers of voices (one has two, another has four)? The choices are the voices that exist in at least one selected measure; a chosen voice selects its notes only in the measures that have it.
|
|
68
|
+
- What happens when the chosen voice contains only rests in the selected measures? Rests count as notes of the voice and are selected, since they are part of the voice and can be edited like any other.
|
|
69
|
+
- What happens when the selection is a range of measures that includes measures from several staves? Each staff's selected measures are handled the same way; the chosen voice is selected in each.
|
|
70
|
+
- What happens when the voice contains a tuplet or a note that crosses a beam? All notes of the voice in the measure are selected, including every note of a tuplet.
|
|
71
|
+
- What happens when the user selects a voice while a part is being displayed? Only the voices of the displayed measures are offered and selected.
|
|
72
|
+
- What happens right after the voice is selected and the user presses an arrow key? Navigation continues from the new selection, as after any selection.
|
|
73
|
+
- What happens when the user chooses a voice that is already the only one selected? The selection is rebuilt to be all of that voice's notes in the selected measures (which may select more notes than before) and otherwise remains the same.
|
|
74
|
+
|
|
75
|
+
## Requirements *(mandatory)*
|
|
76
|
+
|
|
77
|
+
### Functional Requirements
|
|
78
|
+
|
|
79
|
+
- **FR-001**: The Edit menu MUST contain a Select Voice submenu.
|
|
80
|
+
- **FR-002**: The Select Voice submenu MUST offer one choice for each voice (1 to 4) that exists in at least one measure that currently has a selected note, and no other choices.
|
|
81
|
+
- **FR-003**: When every measure that currently has a selected note has only a single voice, or when nothing is selected, Select Voice MUST offer no choices.
|
|
82
|
+
- **FR-004**: Choosing a voice MUST replace the current selection with all the notes (including rests) of that voice in all of the measures that currently have a selection, on every staff that has a selection.
|
|
83
|
+
- **FR-005**: The new selection MUST include every note of the chosen voice in each of those measures, regardless of which notes were selected before, and regardless of how the voice's notes line up with the other voices' notes.
|
|
84
|
+
- **FR-006**: The new selection MUST NOT include any note of a voice other than the chosen one.
|
|
85
|
+
- **FR-007**: A measure that does not have the chosen voice MUST contribute no notes and MUST NOT have the voice created.
|
|
86
|
+
- **FR-008**: If the chosen voice has no notes in any of the selected measures, the selection MUST NOT change.
|
|
87
|
+
- **FR-009**: Choosing a voice MUST NOT modify the score in any way and MUST NOT create an undo entry.
|
|
88
|
+
- **FR-010**: After a voice is selected, selection-based edits (pitch, duration, accidentals and so on) MUST affect only the notes of that voice, and the selection MUST be shown on screen as for any other selection.
|
|
89
|
+
- **FR-011**: The existing Voices menu MUST be unchanged.
|
|
90
|
+
|
|
91
|
+
### Key Entities
|
|
92
|
+
|
|
93
|
+
- **Voice**: One of up to four independent lines of notes within the same staff, in each measure, numbered 1 to 4.
|
|
94
|
+
- **Selected measures**: The measures that contain at least one currently selected note, on each staff that has a selection. The new selection is built from the whole of these measures.
|
|
95
|
+
|
|
96
|
+
## Success Criteria *(mandatory)*
|
|
97
|
+
|
|
98
|
+
### Measurable Outcomes
|
|
99
|
+
|
|
100
|
+
- **SC-001**: After choosing Select Voice > Voice N, 100% of the notes of voice N in the selected measures are selected and 0% of the notes of other voices are.
|
|
101
|
+
- **SC-002**: A user can change the pitch of every note in one voice across a passage in two actions after selecting the measures (choose Select Voice > Voice N, then apply the pitch change), without touching the other voices.
|
|
102
|
+
- **SC-003**: Choosing a voice with no notes in the selected measures leaves the selection identical in 100% of cases.
|
|
103
|
+
- **SC-004**: Using Select Voice any number of times leaves the score and the undo history unchanged, verified by comparing the score before and after.
|
|
104
|
+
- **SC-005**: The Select Voice choices never include a voice that does not exist in any selected measure, and never appear when only a single voice is present.
|
|
105
|
+
|
|
106
|
+
## Assumptions
|
|
107
|
+
|
|
108
|
+
- "Currently selected measures" means the measures that contain at least one selected note, as the existing measure-level actions (such as swapping voices) define it; the whole of each such measure takes part.
|
|
109
|
+
- Rests are notes of a voice for this purpose, so a voice made of rests can be selected.
|
|
110
|
+
- Select Voice only selects; the existing Voices menu remains the way to make a voice the active one for entering notes and to create new voices. After a voice is selected, the application treats that voice as the one being worked on in the same way it does whenever the user selects notes of that voice by other means.
|
|
111
|
+
- The choices are labelled "Voice 1" to "Voice 4", matching the existing Voices menu.
|
|
112
|
+
- Existing keyboard shortcuts are unchanged and none is added here.
|
|
113
|
+
- The selection result is a normal selection, so highlighting, playback of the selection, and scrolling behave as for any other selection.
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
description: "Task list for Select Voice"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tasks: Select Voice
|
|
7
|
+
|
|
8
|
+
**Input**: Design documents from `/specs/031-select-voice/`
|
|
9
|
+
|
|
10
|
+
**Prerequisites**: [plan.md](./plan.md), [spec.md](./spec.md), [research.md](./research.md), [data-model.md](./data-model.md), [contracts/select-voice-contract.md](./contracts/select-voice-contract.md), [quickstart.md](./quickstart.md)
|
|
11
|
+
|
|
12
|
+
**Tests**: Included. The plan commits to a headless `tests/selectVoice.ts` (cases S1 to S16) for the pure selection logic. The tracker mapping, highlighting and menu need the renderer and are checked manually (M1 to M10).
|
|
13
|
+
|
|
14
|
+
**Organization**: Tasks are grouped by user story. The pure functions, tracker method and view methods are shared by all stories, so they are the foundation; each story then adds its tests and the part of the menu behavior it covers.
|
|
15
|
+
|
|
16
|
+
## Format: `[ID] [P?] [Story] Description`
|
|
17
|
+
|
|
18
|
+
- **[P]**: Can run in parallel (different files, no dependencies on incomplete tasks)
|
|
19
|
+
- **[Story]**: Which user story this task belongs to (US1, US2, US3)
|
|
20
|
+
|
|
21
|
+
## Path Conventions
|
|
22
|
+
|
|
23
|
+
Single project: `src/`, `tests/`, repo-root `package.json`.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Phase 1: Setup
|
|
28
|
+
|
|
29
|
+
- [X] T001 Add the script `"test:select-voice": "ts-node -P tests/tsconfig.json tests/selectVoice.ts"` to `package.json`, next to the existing `test:voice-copy-paste` entry.
|
|
30
|
+
- [X] T002 Create `tests/selectVoice.ts` with the scaffold and the shared test score builder: header comment pointing at `specs/031-select-voice/contracts/select-voice-contract.md`; the dynamic-ctor-init calls and imports used by `tests/voiceCopyPaste.ts`; the `failures` counter and `check()` helper; the final summary block; `buildScore()` making the two-staff, six-measure 4/4 score described in the contract (staff 0: voice 0 four quarter notes in every measure, except measure 3 where they are rests; voice 1 on measures 0 to 2 as a whole note, two half notes and four quarter notes; voice 2 on measure 2 only. Staff 1: voice 0 in every measure, voice 1 on measure 1 only), using `SmoScore.getDefaultScore`, `addStaff`, `addMeasure`, `SmoMeasure.populateVoice` and setting `note.ticks` as in `tests/voiceCopyPaste.ts`; and helpers `sel(score, staff, measure, voice, tick)` returning a `SmoSelection` via `SmoSelection.noteSelection`, and `tickRange(score, staff, measure, voice, first, last)` returning a list of selections.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Phase 2: Foundational (Blocking Prerequisites)
|
|
35
|
+
|
|
36
|
+
**Purpose**: The logic and plumbing every story uses.
|
|
37
|
+
|
|
38
|
+
**CRITICAL**: No user story work can begin until this phase is complete.
|
|
39
|
+
|
|
40
|
+
- [X] T003 In `src/smo/xform/selections.ts`, add to `SmoSelection` the two static functions from [data-model.md](./data-model.md): `voiceChoices(score, selections): number[]` (unique selected `(staff, measure)` pairs, largest `voices.length` capped at 4, `[]` below 2, else `0..max-1`) and `getVoiceSelectors(score, selections, voice): SmoSelector[]` (for each unique pair in staff then measure order, one selector per note of the voice with `pitches: []`; nothing for a measure that lacks the voice; empty for a voice outside 0 to 3 or an empty selection). Skip pairs whose measure cannot be found in the score.
|
|
41
|
+
- [X] T004 In `src/render/sui/tracker.ts`, add `selectVoice(voice: number): boolean` to `SuiTracker`: call `SmoSelection.getVoiceSelectors(this.score, this.selections, voice)`, map each selector to `this.measureNoteMap[SmoSelector.getNoteKey(selector)]` (skip any that are missing; do not use `_getClosestTick`), return false without changing anything if none are mapped, otherwise set `this.selections` to the mapped list, set `this.pitchIndex = -1`, call `setActiveVoice(voice)` on the measure of each selection, call `this.score.setActiveStaff(...)` with the first selected staff, then `_createLocalModifiersList()` and `deferHighlight()`, and return true. Document that it makes no score change and no undo entry.
|
|
42
|
+
- [X] T005 In `src/render/sui/scoreViewOperations.ts`, add `getSelectVoiceChoices(): number[]` returning `SmoSelection.voiceChoices(this.score, this.tracker.selections)` and `async selectVoice(voice: number): Promise<void>` calling `this.tracker.selectVoice(voice)` and doing nothing else (no `_undo*` call, no `populateVoice`).
|
|
43
|
+
- [X] T006 Run `npx tsc --noEmit -p tsconfig.json` and fix any errors.
|
|
44
|
+
|
|
45
|
+
**Checkpoint**: The logic and plumbing exist; nothing in the menu uses them yet.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Phase 3: User Story 1 - Select every note of one voice in the chosen measures (Priority: P1) MVP
|
|
50
|
+
|
|
51
|
+
**Goal**: Edit > Select Voice > Voice N selects the whole voice in the selected measures.
|
|
52
|
+
|
|
53
|
+
**Independent Test**: quickstart.md section 3, steps 2 to 4 and 7.
|
|
54
|
+
|
|
55
|
+
### Tests for User Story 1
|
|
56
|
+
|
|
57
|
+
- [X] T007 [P] [US1] In `tests/selectVoice.ts`, add cases S6 to S9 and S11 to S13 from the contract (whole-measure selection from a single note, uneven voices, multi-measure counts and order, a voice present in only some measures, two staves, rests).
|
|
58
|
+
- [X] T008 [US1] Run `npm run test:select-voice` and fix `selections.ts` until S6 to S9 and S11 to S13 pass.
|
|
59
|
+
|
|
60
|
+
### Implementation for User Story 1
|
|
61
|
+
|
|
62
|
+
- [X] T009 [US1] In `src/ui/menus/edit.ts`, add a `selectVoiceChoice(voice: number)` factory returning a `SuiConfiguredMenuOption` (handler `await menu.view.selectVoice(voice)`, text `Voice ${voice + 1}`, value `selectVoice${voice}`, empty icon, `display` true when `menu.view.getSelectVoiceChoices()` includes `voice`) and a `selectVoiceMenuOption` with `subMenu` of the four choices, text `Select Voice`, value `selectVoiceAction`, a no-op handler (unreachable), and `display` true when the choices list is non-empty. Add it to `SuiEditMenuOptions` after `pasteVoiceMenuOption`.
|
|
63
|
+
- [X] T010 [US1] Run `npx tsc --noEmit -p tsconfig.json` and fix any errors.
|
|
64
|
+
- [ ] T011 [US1] Manual validation: quickstart.md section 3, steps 2 to 4 and 7 (M2, M3, M4, M7).
|
|
65
|
+
|
|
66
|
+
**Checkpoint**: Users can select one voice's notes across their selected measures.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Phase 4: User Story 2 - The menu only offers choices that make sense (Priority: P1)
|
|
71
|
+
|
|
72
|
+
**Goal**: Choices reflect the voices that exist; a single voice offers nothing; an empty result leaves the selection alone.
|
|
73
|
+
|
|
74
|
+
**Independent Test**: quickstart.md section 3, steps 1 and 5; cases S1 to S5, S10, S15, S16.
|
|
75
|
+
|
|
76
|
+
### Tests for User Story 2
|
|
77
|
+
|
|
78
|
+
- [X] T012 [P] [US2] In `tests/selectVoice.ts`, add cases S1 to S5, S10, S15 and S16 (single-voice and empty selections offer nothing, the voices listed, a voice with no notes in the selected measures returns no selectors, out-of-range voices, selector shape).
|
|
79
|
+
- [X] T013 [US2] Run `npm run test:select-voice` and fix `selections.ts` until S1 to S5, S10, S15 and S16 pass.
|
|
80
|
+
|
|
81
|
+
### Implementation for User Story 2
|
|
82
|
+
|
|
83
|
+
- [X] T014 [US2] In `src/render/sui/tracker.ts` `selectVoice`, confirm by reading the code that the no-notes and nothing-mapped paths return false before any change to `selections`, `pitchIndex`, active voices, or the highlight, and that a measure missing the voice is skipped without calling `populateVoice`. Fix any path that changes state early.
|
|
84
|
+
- [ ] T015 [US2] Manual validation: quickstart.md section 3, steps 1 and 5 (M1, M5).
|
|
85
|
+
|
|
86
|
+
**Checkpoint**: The menu is accurate and a no-op choice is harmless.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Phase 5: User Story 3 - Selecting a voice never changes the music (Priority: P2)
|
|
91
|
+
|
|
92
|
+
**Goal**: No edit and no undo entry.
|
|
93
|
+
|
|
94
|
+
**Independent Test**: S14 passes; quickstart.md section 3, step 6.
|
|
95
|
+
|
|
96
|
+
### Tests for User Story 3
|
|
97
|
+
|
|
98
|
+
- [X] T016 [P] [US3] In `tests/selectVoice.ts`, add case S14: serialize the score before and after calling `voiceChoices` and `getVoiceSelectors` for every voice and compare, and check each measure's voice count is unchanged.
|
|
99
|
+
- [X] T017 [US3] Run `npm run test:select-voice` and confirm all cases S1 to S16 pass.
|
|
100
|
+
|
|
101
|
+
### Implementation for User Story 3
|
|
102
|
+
|
|
103
|
+
- [X] T018 [US3] Confirm by search that `selectVoice` in `scoreViewOperations.ts` and `tracker.ts` calls none of `_undoScore`, `_undoSelection`, `undoMeasureRange`, `storeUndo.addBuffer`, `populateVoice` or any `SmoOperation` method, and that the existing Voices menu file `src/ui/menus/voices.ts` is unchanged.
|
|
104
|
+
- [ ] T019 [US3] Manual validation: quickstart.md section 3, steps 6, 8 and 9 (M6, M9, M10).
|
|
105
|
+
|
|
106
|
+
**Checkpoint**: Select Voice is selection-only.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Phase 6: Polish & Cross-Cutting Concerns
|
|
111
|
+
|
|
112
|
+
- [X] T020 Run `npm run test:select-voice` and all eight existing test scripts; confirm all pass.
|
|
113
|
+
- [X] T021 Run `npx tsc --noEmit -p tsconfig.json` and `npm run build`; confirm both succeed with no new warnings.
|
|
114
|
+
- [ ] T022 Run through all of quickstart.md (sections 1 to 3), including step 10 in part view, and note the result.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Dependencies & Execution Order
|
|
119
|
+
|
|
120
|
+
### Phase Dependencies
|
|
121
|
+
|
|
122
|
+
- **Setup (Phase 1)**: none.
|
|
123
|
+
- **Foundational (Phase 2)**: depends on Setup. T003, T004 and T005 edit three different files but T004 and T005 call T003's functions, so do T003 first.
|
|
124
|
+
- **US1 (Phase 3)**: depends on Phase 2.
|
|
125
|
+
- **US2 (Phase 4)**: depends on Phase 2; T014 reviews T004 and is best done after US1's manual check.
|
|
126
|
+
- **US3 (Phase 5)**: depends on Phase 2.
|
|
127
|
+
- **Polish (Phase 6)**: depends on all stories.
|
|
128
|
+
|
|
129
|
+
### Within Each Story
|
|
130
|
+
|
|
131
|
+
- `tests/selectVoice.ts` is edited by T002, T007, T012 and T016: add cases in separate blocks, in order.
|
|
132
|
+
- `edit.ts` is edited only by T009.
|
|
133
|
+
|
|
134
|
+
### Parallel Opportunities
|
|
135
|
+
|
|
136
|
+
- T007, T012 and T016 are separate test blocks in one file, so write them one after another; each can proceed while code in other files is edited (T004, T005, T009).
|
|
137
|
+
- T004 and T005 can be edited in parallel once T003 exists.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Parallel Example: Foundational phase
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
Task: "SmoSelection.voiceChoices / getVoiceSelectors in src/smo/xform/selections.ts" (T003)
|
|
145
|
+
Task: "SuiTracker.selectVoice in src/render/sui/tracker.ts" (T004, after T003)
|
|
146
|
+
Task: "selectVoice / getSelectVoiceChoices in src/render/sui/scoreViewOperations.ts" (T005, after T003)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Implementation Strategy
|
|
152
|
+
|
|
153
|
+
### MVP First (User Story 1)
|
|
154
|
+
|
|
155
|
+
1. Phases 1 and 2 (pure logic, tracker method, view methods compile).
|
|
156
|
+
2. Phase 3: tests prove the selection logic; the menu exposes it.
|
|
157
|
+
3. Stop and validate in the app: select a voice across several measures and change its pitch.
|
|
158
|
+
|
|
159
|
+
### Incremental Delivery
|
|
160
|
+
|
|
161
|
+
1. US1 delivers the feature.
|
|
162
|
+
2. US2 locks in the choice and no-op rules with tests.
|
|
163
|
+
3. US3 proves it is selection-only.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Notes
|
|
168
|
+
|
|
169
|
+
- The tracker method needs a renderer and is not covered by the headless test; keep it small so that the logic lives in the tested functions.
|
|
170
|
+
- No keyboard shortcut is added (spec assumption).
|
|
171
|
+
- Commit after each phase.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Specification Quality Checklist: Split Multimeasure Rests at Landmarks
|
|
2
|
+
|
|
3
|
+
**Purpose**: Validate specification completeness and quality before proceeding to planning
|
|
4
|
+
|
|
5
|
+
**Created**: 2026-10-22
|
|
6
|
+
|
|
7
|
+
**Feature**: [spec.md](../spec.md)
|
|
8
|
+
|
|
9
|
+
## Content Quality
|
|
10
|
+
|
|
11
|
+
- [x] No implementation details (languages, frameworks, APIs)
|
|
12
|
+
- [x] Focused on user value and business needs
|
|
13
|
+
- [x] Written for non-technical stakeholders
|
|
14
|
+
- [x] All mandatory sections completed
|
|
15
|
+
|
|
16
|
+
## Requirement Completeness
|
|
17
|
+
|
|
18
|
+
- [x] No [NEEDS CLARIFICATION] markers remain
|
|
19
|
+
- [x] Requirements are testable and unambiguous
|
|
20
|
+
- [x] Success criteria are measurable
|
|
21
|
+
- [x] Success criteria are technology-agnostic (no implementation details)
|
|
22
|
+
- [x] All acceptance scenarios are defined
|
|
23
|
+
- [x] Edge cases are identified
|
|
24
|
+
- [x] Scope is clearly bounded
|
|
25
|
+
- [x] Dependencies and assumptions identified
|
|
26
|
+
|
|
27
|
+
## Feature Readiness
|
|
28
|
+
|
|
29
|
+
- [x] All functional requirements have clear acceptance criteria
|
|
30
|
+
- [x] User scenarios cover primary flows
|
|
31
|
+
- [x] Feature meets measurable outcomes defined in Success Criteria
|
|
32
|
+
- [x] No implementation details leak into specification
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
- The Input line quotes the request verbatim, so it names the code files. The rest of the spec uses behavioral terms.
|
|
37
|
+
- From a first read of the code: the grouping step treats a rehearsal mark, repeat symbol or instrument change on a measure as disqualifying that measure from starting a multimeasure rest, which would leave it as a lone rest bar between two multimeasure rests (User Stories 1 and 3). Key and time signature changes appear to be handled in the grouping step already (they only end a rest), so the reported problem for those may be in drawing the signature at the start of the second rest (User Story 2). The plan phase must establish exactly where each case fails before changing anything.
|
|
38
|
+
- Clarified by the user (2026-10-22): landmarks are either start landmarks (rehearsal mark, key/time/tempo change, Segno, Coda, start-repeat or double barline, instrument change), which break the rest before their measure and are shown at the beginning of the next block, or end landmarks (D.S., D.C., To Coda, Fine, end-repeat or double barline), which break the rest after their measure and are shown on the block they end. Tempo, key and time changes are all landmarks.
|
|
39
|
+
- Defaults chosen without asking: text annotations are not landmarks; measures under a repeat-ending bracket keep today's behavior; a single remaining empty measure stays an ordinary rest bar, including a measure that carries both kinds of landmark.
|
|
40
|
+
- Ready for `/speckit-clarify` or `/speckit-plan`.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Contract: Multimeasure Rest Grouping
|
|
2
|
+
|
|
3
|
+
Headless cases G1 to G24 are verified by `tests/multimeasureRest.ts` (`npm run test:multimeasure-rest`). Manual cases M1 to M10 are in [quickstart.md](../quickstart.md). Spec references: [spec.md](../spec.md).
|
|
4
|
+
|
|
5
|
+
## Test scores used by G-cases
|
|
6
|
+
|
|
7
|
+
A one-staff score of 12 measures in 4/4 containing only rests (so a run of 12), exposed as a part with `expandMultimeasureRests` false. Each case adds the landmarks named, calls `SmoOperation.computeMultipartRest`, and reads the blocks as a list of `start:length` for measures that have `multimeasureLength > 0`, plus the list of measures with `hideMultimeasure`. Measure numbers below are 1-based as in the spec, 0-based in the test.
|
|
8
|
+
|
|
9
|
+
## Headless cases
|
|
10
|
+
|
|
11
|
+
| ID | Case | Expected | Spec |
|
|
12
|
+
|----|------|----------|------|
|
|
13
|
+
| G1 | No landmarks | one block `1:12`; measures 2 to 12 hidden | FR-001, SC-004 |
|
|
14
|
+
| G2 | Rehearsal mark on measure 6 | blocks `1:5`, `6:7`; measure 6 not hidden, no lone bar | US1.1, FR-003, FR-006 |
|
|
15
|
+
| G3 | Rehearsal mark on measure 1 | one block `1:12` | US1.2 |
|
|
16
|
+
| G4 | Rehearsal mark on measure 12, nothing after | blocks `1:11`; measure 12 is an ordinary bar (no length, not hidden) | US1.3, FR-007 |
|
|
17
|
+
| G5 | Rehearsal marks on 4 and 8 | blocks `1:3`, `4:4`, `8:5` | US1.4 |
|
|
18
|
+
| G6 | Key signature change at measure 5 | blocks `1:4`, `5:8` | US2.1 |
|
|
19
|
+
| G7 | Time signature change at measure 5 | blocks `1:4`, `5:8` | US2.2 |
|
|
20
|
+
| G8 | Tempo change (displayed) at measure 5 | blocks `1:4`, `5:8` | US2.3, clarification |
|
|
21
|
+
| G9 | Tempo change with `display` false | one block `1:12` | research §2 |
|
|
22
|
+
| G10 | Key change and rehearsal mark both on measure 5 | blocks `1:4`, `5:8`, one split only | US2.4 |
|
|
23
|
+
| G11 | Segno on measure 5 | blocks `1:4`, `5:8` | US3.2 |
|
|
24
|
+
| G12 | Coda on measure 9 | blocks `1:8`, `9:4` | US3.2 |
|
|
25
|
+
| G13 | D.S. al Coda on measure 4 | blocks `1:4` (measure 4 included, last of block), `5:8`; the end symbol is recorded on measure 1 | US3.1, FR-005 |
|
|
26
|
+
| G14 | To Coda on measure 6 | blocks `1:6`, `7:6`; end symbol recorded on measure 1 | US3.1 |
|
|
27
|
+
| G15 | D.C. al Fine on measure 1 | measure 1 alone (ordinary bar with the symbol), then block `2:11` | edge case |
|
|
28
|
+
| G16 | End-repeat barline on the end of measure 4 | blocks `1:4`, `5:8`; `multimeasureEndBarline` of measure 1 is the repeat barline | US3.3 |
|
|
29
|
+
| G17 | Start-repeat barline on the start of measure 5 | blocks `1:4`, `5:8` | US3.4 |
|
|
30
|
+
| G18 | Double bar as the end barline of measure 4, and separately as the start barline of measure 5 | blocks `1:4`, `5:8` in both cases | US3.3, US3.4 |
|
|
31
|
+
| G19 | Instrument change at measure 7 | blocks `1:6`, `7:6` | FR-004 |
|
|
32
|
+
| G20 | Rehearsal mark and D.S. both on measure 5 | blocks `1:4`, `5:1` (ordinary bar with both), `6:7` | edge case, FR-007 |
|
|
33
|
+
| G21 | `expandMultimeasureRests` true with landmarks | no block anywhere | FR-010 |
|
|
34
|
+
| G22 | A volta ending over measures 5 to 6 | measures 5 and 6 are ordinary bars; blocks before and after | FR-010 |
|
|
35
|
+
| G23 | Two staves, rehearsal mark on measure 6 of the second staff only | both staves have blocks `1:5`, `6:7` | FR-008 |
|
|
36
|
+
| G24 | Regrouping after removing the rehearsal mark | back to one block `1:12`; no stale length, hidden flag or end symbol on any measure | FR-011, SC-005 |
|
|
37
|
+
|
|
38
|
+
Counts: the lengths of the blocks plus the ordinary bars add up to 12 in every case (FR-009), checked inside each case.
|
|
39
|
+
|
|
40
|
+
## Manual cases
|
|
41
|
+
|
|
42
|
+
| ID | Case | Expected | Spec |
|
|
43
|
+
|----|------|----------|------|
|
|
44
|
+
| M1 | Part view, 10 empty measures, rehearsal mark on measure 6 | two multimeasure rests, the mark over the second, no bar between | US1.1 |
|
|
45
|
+
| M2 | Key change at measure 5 | new key signature at the start of the second rest | US2.1 |
|
|
46
|
+
| M3 | Time signature change at measure 5 | new time signature at the start of the second rest | US2.2 |
|
|
47
|
+
| M4 | Tempo change at measure 5 | tempo marking over the second rest | US2.3 |
|
|
48
|
+
| M5 | D.S. al Coda on measure 4, Coda on measure 9 | the D.S. over the first rest, the Coda sign at the start of the last rest after the barline | US3 |
|
|
49
|
+
| M6 | End repeat bar after measure 4 | repeat barline at the end of the first rest, once | US3.3, FR-007a |
|
|
50
|
+
| M7 | Add then remove a rehearsal mark | rests regroup on the next full layout; no stale bar | FR-011 |
|
|
51
|
+
| M8 | Two-staff part | same grouping on both staves | FR-008 |
|
|
52
|
+
| M9 | "Expand multimeasure rests" on | every measure shown | FR-010 |
|
|
53
|
+
| M10 | Print preview | same grouping | edge case |
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Data Model: Split Multimeasure Rests at Landmarks
|
|
2
|
+
|
|
3
|
+
No serialized data changes (constitution Principle #1). The grouping result is runtime state on each measure's `svg` record.
|
|
4
|
+
|
|
5
|
+
## Measure grouping state (`measure.svg`)
|
|
6
|
+
|
|
7
|
+
| Field | Type | Meaning | Change |
|
|
8
|
+
|-------|------|---------|--------|
|
|
9
|
+
| `multimeasureLength` | number | On a block's first measure, the number of measures in the block (at least 2); 0 on every other measure | existing; now always reset |
|
|
10
|
+
| `hideMultimeasure` | boolean | True on every measure of a block except the first | existing |
|
|
11
|
+
| `multimeasureEndBarline` | number | The block's end barline, taken from the block's last measure | existing; now always reset |
|
|
12
|
+
| `multimeasureEndSymbol` | `SmoRepeatSymbol \| null` | The end-type repeat symbol (D.S., D.C., To Coda, Fine) of the block's last measure, to draw over the block's rest; null if none | **new**, runtime only |
|
|
13
|
+
|
|
14
|
+
All four are set for every staff, so the staves of a part always share the same grouping.
|
|
15
|
+
|
|
16
|
+
## Landmark classification (new helpers on `SmoScore`)
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
isMultimeasureBlocked(measureIndex): boolean
|
|
20
|
+
// a volta ending covers the measure on any staff, or (legacy) measureIndex is 0 on a multi-staff part
|
|
21
|
+
|
|
22
|
+
isMultimeasureStartLandmark(measureIndex): boolean
|
|
23
|
+
// any staff: rehearsal mark; repeat symbol Segno or Coda; instrument map entry at measureIndex > 0;
|
|
24
|
+
// start barline that is not singleBar/noBar.
|
|
25
|
+
// staff 0: key signature or time signature differs from the previous measure;
|
|
26
|
+
// displayed tempo differs from the previous measure's tempo.
|
|
27
|
+
|
|
28
|
+
isMultimeasureEndLandmark(measureIndex): boolean
|
|
29
|
+
// any staff: repeat symbol ToCoda, DcAlCoda, DcAlFine, DsAlCoda, DsAlFine or Fine;
|
|
30
|
+
// end barline that is not singleBar/noBar.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
All three are pure reads of the score; none changes it. `isMultimeasureRest` (existing, public) is left as it is.
|
|
34
|
+
|
|
35
|
+
## Grouping algorithm (`SmoOperation.computeMultipartRest`)
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
if the part expands multimeasure rests: return (unchanged)
|
|
39
|
+
i = 0
|
|
40
|
+
while i < measureCount:
|
|
41
|
+
if blocked(i) or not restMeasure(i): reset(i); i += 1; continue
|
|
42
|
+
j = i + 1
|
|
43
|
+
closed = endLandmark(i)
|
|
44
|
+
while not closed and j < measureCount and restMeasure(j) and not blocked(j)
|
|
45
|
+
and not restBreak(j) and not startLandmark(j):
|
|
46
|
+
closed = endLandmark(j); j += 1
|
|
47
|
+
if j - i >= 2: block [i, j)
|
|
48
|
+
else: reset(i)
|
|
49
|
+
i = j
|
|
50
|
+
for each block [key, end): on every staff
|
|
51
|
+
measure[key]: length = end - key; endBarline = measure[end-1] end barline;
|
|
52
|
+
endSymbol = end-type symbol of measure[end-1] or null; hide = false
|
|
53
|
+
measures key+1 .. end-1: hide = true; length = 0; endBarline = single; endSymbol = null
|
|
54
|
+
reset(m) on every staff: length = 0; hide = false; endBarline = single; endSymbol = null
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`restMeasure(m)` is the existing rule: every staff has only rests in the measure, or the measure's `format.forceRest` is set. `restBreak(m)` is the existing `format.restBreak` flag.
|
|
58
|
+
|
|
59
|
+
### Equivalence with today's behavior
|
|
60
|
+
|
|
61
|
+
For a score whose runs of rests contain no rehearsal mark, repeat symbol, instrument entry, tempo change or special barline, the new loop produces the same blocks as the old one: a key or time change still ends a block and starts the next; `restBreak` still ends a block; voltas and `forceRest` are unchanged.
|
|
62
|
+
|
|
63
|
+
## Drawing inputs (read-only)
|
|
64
|
+
|
|
65
|
+
| Reader | Uses |
|
|
66
|
+
|--------|------|
|
|
67
|
+
| `vxSystem.renderMeasure` | `hideMultimeasure` (skip), unchanged |
|
|
68
|
+
| `vxMeasure.createMeasureModifiers` | `multimeasureLength`, `multimeasureEndBarline`, and the new `multimeasureEndSymbol` |
|
|
69
|
+
| `formatter` | `hideMultimeasure`, unchanged; `layout()` now calls the grouping first for parts |
|
|
70
|
+
| `tracker` | `multimeasureLength`, `hideMultimeasure` for navigation, unchanged |
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Implementation Plan: Split Multimeasure Rests at Landmarks
|
|
2
|
+
|
|
3
|
+
**Branch**: `032-split-multimeasure-rests` | **Date**: 2026-10-22 | **Spec**: [spec.md](./spec.md)
|
|
4
|
+
|
|
5
|
+
**Input**: Feature specification from `/specs/032-split-multimeasure-rests/spec.md`
|
|
6
|
+
|
|
7
|
+
## Summary
|
|
8
|
+
|
|
9
|
+
`SmoOperation.computeMultipartRest` groups empty measures into multimeasure blocks using `SmoScore.isMultimeasureRest`, which treats a rehearsal mark, repeat symbol or instrument change as disqualifying a measure from being in a block at all, including starting one. That is the lone-rest-bar bug: the block ends before the landmark measure, the landmark measure fails the "can start a block" test and is drawn as a single ordinary rest, and a new block starts after it. The grouping loop is rewritten around two kinds of landmark. **Start landmarks** (rehearsal mark, key, time and tempo changes, Segno and Coda, a non-plain start barline, an instrument change) end the current block before their measure and may start the next one. **End landmarks** (D.S., D.C., To Coda, Fine, a non-plain end barline) are allowed on the last measure of a block and end it after that measure. Volta endings keep today's behavior. The classification lives in new `SmoScore` helpers so it can be tested headlessly, the old `isMultimeasureRest` is left in place for outside users, and `computeMultipartRest` also resets stale runtime flags on measures that no longer start a block. On the drawing side, the block's last measure is hidden, so an end symbol (D.S. and the like) on it would vanish; its symbol is recorded on the block's first measure and `vxMeasure.ts` draws it there. Because the grouping is only computed when a part is first shown, the layout step now recomputes it for parts so landmark edits take effect on the next full layout.
|
|
10
|
+
|
|
11
|
+
## Technical Context
|
|
12
|
+
|
|
13
|
+
**Language/Version**: TypeScript (built by `build/build.js`).
|
|
14
|
+
|
|
15
|
+
**Primary Dependencies**: None new. Existing `SmoScore`, `SmoSystemStaff` (`isRehearsal`, `isRepeatSymbol`, `getVoltasForMeasure`, `measureInstrumentMap`), `SmoMeasure` (`getStartBarline`, `getEndBarline`, `getRepeatSymbol`, `getTempo`), `SmoRepeatSymbol`, `SmoTempo.eq`, and the VexFlow wrappers in `vxMeasure.ts`.
|
|
16
|
+
|
|
17
|
+
**Storage**: None. Block information is runtime state on `measure.svg`; no serialized field changes.
|
|
18
|
+
|
|
19
|
+
**Testing**: A headless script `tests/multimeasureRest.ts` (`npm run test:multimeasure-rest`) that builds in-memory scores of empty measures with each landmark and checks the block lengths, hidden flags, end barlines and recorded end symbols that `computeMultipartRest` produces. Drawing (symbols over the rest, signatures at the start of the second block) cannot be run headlessly and is verified manually (quickstart.md).
|
|
20
|
+
|
|
21
|
+
**Target Platform**: Browser application; tests run under Node.
|
|
22
|
+
|
|
23
|
+
**Project Type**: Single project (library + application).
|
|
24
|
+
|
|
25
|
+
**Performance Goals**: No regression. The grouping is O(measures × staves); it is now also run at the start of a full layout for parts, which already costs far more.
|
|
26
|
+
|
|
27
|
+
**Constraints**: Scores with no landmark inside a run of rests must group exactly as today (SC-004). Volta endings and `expandMultimeasureRests` keep their behavior. No serialized data changes. The existing public `SmoScore.isMultimeasureRest` keeps its signature and result.
|
|
28
|
+
|
|
29
|
+
**Scale/Scope**: One algorithm rewritten, four small helpers, one new runtime field, one drawing change, one layout hook, one test.
|
|
30
|
+
|
|
31
|
+
## Constitution Check
|
|
32
|
+
|
|
33
|
+
*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
|
|
34
|
+
|
|
35
|
+
- **Principle #1 (Serialization)**: PASS. Only ephemeral `measure.svg` fields change; the score format is untouched, so legacy scores load and group by the new rules.
|
|
36
|
+
- **Principle #2 (Music transformation logic regression testing)**: PASS. The grouping rules are pure score logic in `src/smo` and get a headless regression script with a contract case list.
|
|
37
|
+
- **Principle #3 (Rendering performance)**: PASS. The extra grouping pass is linear and runs at most once per full layout, before measurements; no DOM measurement or repaint logic is added.
|
|
38
|
+
- **Principle #4 (Logical dependencies)**: PASS. Landmark classification and grouping stay in `src/smo`. The render layer only reads the resulting `svg` fields. The `svg` mixin is ephemeral, which the principle allows.
|
|
39
|
+
|
|
40
|
+
No violations; Complexity Tracking is not needed. Re-check after Phase 1: unchanged, still PASS.
|
|
41
|
+
|
|
42
|
+
## Project Structure
|
|
43
|
+
|
|
44
|
+
### Documentation (this feature)
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
specs/032-split-multimeasure-rests/
|
|
48
|
+
├── plan.md
|
|
49
|
+
├── research.md
|
|
50
|
+
├── data-model.md
|
|
51
|
+
├── quickstart.md
|
|
52
|
+
├── contracts/
|
|
53
|
+
│ └── grouping-contract.md
|
|
54
|
+
├── checklists/
|
|
55
|
+
│ └── requirements.md
|
|
56
|
+
└── tasks.md # created later by /speckit-tasks
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Source Code (repository root)
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
src/
|
|
63
|
+
├── smo/
|
|
64
|
+
│ ├── data/
|
|
65
|
+
│ │ ├── score.ts # SmoScore: isMultimeasureStartLandmark / isMultimeasureEndLandmark /
|
|
66
|
+
│ │ │ # isMultimeasureBlocked; isMultimeasureRest left unchanged (deprecated note)
|
|
67
|
+
│ │ └── measure.ts # SvgMeasureInfo: multimeasureEndSymbol (runtime)
|
|
68
|
+
│ └── xform/operations.ts # computeMultipartRest rewritten around the two landmark kinds
|
|
69
|
+
├── render/
|
|
70
|
+
│ ├── vex/vxMeasure.ts # draw the block's end symbol over the multimeasure rest
|
|
71
|
+
│ └── sui/formatter.ts # run computeMultipartRest at the start of a layout for parts
|
|
72
|
+
tests/
|
|
73
|
+
└── multimeasureRest.ts # NEW headless regression script
|
|
74
|
+
package.json # add "test:multimeasure-rest"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Structure Decision**: Keep the classification next to the existing rule (`SmoScore`) and the algorithm where it is (`SmoOperation.computeMultipartRest`), so callers do not change. The only render-layer changes are drawing the recorded end symbol and triggering the grouping at layout.
|
|
78
|
+
|
|
79
|
+
## Complexity Tracking
|
|
80
|
+
|
|
81
|
+
*No Constitution Check violations; table not needed.*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Quickstart: Validating Multimeasure Rest Splitting
|
|
2
|
+
|
|
3
|
+
Contract cases are in [contracts/grouping-contract.md](./contracts/grouping-contract.md); structures and the algorithm are in [data-model.md](./data-model.md).
|
|
4
|
+
|
|
5
|
+
## 1. Headless regression test
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm run test:multimeasure-rest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Expected: every case G1 to G24 prints `PASS`, the run ends with `all checks passed`, and the exit code is 0.
|
|
12
|
+
|
|
13
|
+
## 2. Type check, build, existing tests
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx tsc --noEmit -p tsconfig.json
|
|
17
|
+
npm run build
|
|
18
|
+
npm run test:select-voice
|
|
19
|
+
npm run test:voice-copy-paste
|
|
20
|
+
npm run test:promise-helpers
|
|
21
|
+
npm run test:score-change-state
|
|
22
|
+
npm run test:page-divisions
|
|
23
|
+
npm run test:global-layout-reposition
|
|
24
|
+
npm run test:text-drag-placement
|
|
25
|
+
npm run test:attached-text
|
|
26
|
+
npm run test:rehearsal-measure-number
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Expected: no errors; all scripts pass.
|
|
30
|
+
|
|
31
|
+
## 3. Manual check in the app
|
|
32
|
+
|
|
33
|
+
Prerequisite: build and open the app. Make a score with a single staff and 12 empty measures, then create a part for the staff (Parts menu) and show the part, so multimeasure rests are on (the part's "Expand Multimeasure Rests" is off).
|
|
34
|
+
|
|
35
|
+
1. With no markings, the part shows one multimeasure rest numbered 12.
|
|
36
|
+
2. Put a rehearsal mark on measure 6: the part now shows a rest of 5, then a rest of 7 with the mark above it. There is no single bar between them.
|
|
37
|
+
3. Move the mark to measure 1, then to measure 12: the rest is one block of 12, then a block of 11 plus a single ordinary bar with the mark.
|
|
38
|
+
4. Remove the mark: back to one rest of 12, with nothing left over.
|
|
39
|
+
5. Change the key signature at measure 5: a rest of 4, then a rest of 8 that begins with the new key signature. Repeat with the time signature, and with a displayed tempo change (the tempo shows over the second rest).
|
|
40
|
+
6. Put a D.S. al Coda on measure 4 and a Coda sign on measure 9: the first rest is measures 1 to 4 with the D.S. al Coda shown over it; measures 5 to 8 are a rest of 4; measures 9 to 12 are a rest of 4 with the Coda sign at its start, after the barline.
|
|
41
|
+
7. Set an end-repeat barline at the end of measure 4: the first rest ends with the repeat barline. Set a start-repeat on measure 5 instead: the second rest begins with it. Neither barline is drawn twice.
|
|
42
|
+
8. Put a rehearsal mark and a D.S. on the same measure: that measure is a single ordinary bar with both, between two rests.
|
|
43
|
+
9. Add a second staff to the part (include the next stave): both staves show the same grouping.
|
|
44
|
+
10. Turn on "Expand Multimeasure Rests" in Part Properties: every measure appears individually.
|
|
45
|
+
11. Print preview: same grouping as on screen.
|
|
46
|
+
12. Check which of the edits above regroup immediately (a full layout) and which only after the part is shown again; note any that do not.
|