smoosic 2.0.3 → 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.
Files changed (245) hide show
  1. package/build/smoosic.js +395 -67
  2. package/changes.md +85 -0
  3. package/package.json +98 -82
  4. package/release/smoosic.js +395 -67
  5. package/specs/032-split-multimeasure-rests/checklists/requirements.md +40 -0
  6. package/specs/032-split-multimeasure-rests/contracts/grouping-contract.md +53 -0
  7. package/specs/032-split-multimeasure-rests/data-model.md +70 -0
  8. package/specs/032-split-multimeasure-rests/plan.md +81 -0
  9. package/specs/032-split-multimeasure-rests/quickstart.md +46 -0
  10. package/specs/032-split-multimeasure-rests/research.md +63 -0
  11. package/specs/032-split-multimeasure-rests/spec.md +127 -0
  12. package/specs/032-split-multimeasure-rests/tasks.md +174 -0
  13. package/specs/033-key-distance-transposition/checklists/requirements.md +35 -0
  14. package/specs/033-key-distance-transposition/contracts/spelling-api.md +36 -0
  15. package/specs/033-key-distance-transposition/data-model.md +49 -0
  16. package/specs/033-key-distance-transposition/plan.md +87 -0
  17. package/specs/033-key-distance-transposition/quickstart.md +40 -0
  18. package/specs/033-key-distance-transposition/research.md +82 -0
  19. package/specs/033-key-distance-transposition/spec.md +132 -0
  20. package/specs/033-key-distance-transposition/tasks.md +139 -0
  21. package/specs/034-smz-compressed-scores/checklists/requirements.md +35 -0
  22. package/specs/034-smz-compressed-scores/contracts/archive-api.md +30 -0
  23. package/specs/034-smz-compressed-scores/data-model.md +48 -0
  24. package/specs/034-smz-compressed-scores/plan.md +89 -0
  25. package/specs/034-smz-compressed-scores/quickstart.md +44 -0
  26. package/specs/034-smz-compressed-scores/research.md +86 -0
  27. package/specs/034-smz-compressed-scores/spec.md +137 -0
  28. package/specs/034-smz-compressed-scores/tasks.md +148 -0
  29. package/specs/035-paste-special/checklists/requirements.md +35 -0
  30. package/specs/035-paste-special/contracts/paste-special-api.md +50 -0
  31. package/specs/035-paste-special/data-model.md +47 -0
  32. package/specs/035-paste-special/plan.md +83 -0
  33. package/specs/035-paste-special/quickstart.md +51 -0
  34. package/specs/035-paste-special/research.md +97 -0
  35. package/specs/035-paste-special/spec.md +170 -0
  36. package/specs/035-paste-special/tasks.md +149 -0
  37. package/specs/036-autosave-recovery/checklists/requirements.md +36 -0
  38. package/specs/036-autosave-recovery/contracts/autosave-api.md +111 -0
  39. package/specs/036-autosave-recovery/data-model.md +70 -0
  40. package/specs/036-autosave-recovery/plan.md +87 -0
  41. package/specs/036-autosave-recovery/quickstart.md +65 -0
  42. package/specs/036-autosave-recovery/research.md +105 -0
  43. package/specs/036-autosave-recovery/spec.md +143 -0
  44. package/specs/036-autosave-recovery/tasks.md +165 -0
  45. package/specs/037-fix-new-part-dialog/checklists/requirements.md +38 -0
  46. package/specs/037-fix-new-part-dialog/contracts/create-part-api.md +84 -0
  47. package/specs/037-fix-new-part-dialog/data-model.md +68 -0
  48. package/specs/037-fix-new-part-dialog/plan.md +83 -0
  49. package/specs/037-fix-new-part-dialog/quickstart.md +58 -0
  50. package/specs/037-fix-new-part-dialog/research.md +86 -0
  51. package/specs/037-fix-new-part-dialog/spec.md +144 -0
  52. package/specs/037-fix-new-part-dialog/tasks.md +174 -0
  53. package/specs/038-per-measure-beam-groups/checklists/requirements.md +36 -0
  54. package/specs/038-per-measure-beam-groups/contracts/beam-groups-api.md +74 -0
  55. package/specs/038-per-measure-beam-groups/data-model.md +75 -0
  56. package/specs/038-per-measure-beam-groups/plan.md +84 -0
  57. package/specs/038-per-measure-beam-groups/quickstart.md +53 -0
  58. package/specs/038-per-measure-beam-groups/research.md +72 -0
  59. package/specs/038-per-measure-beam-groups/spec.md +146 -0
  60. package/specs/038-per-measure-beam-groups/tasks.md +132 -0
  61. package/specs/039-measure-fill-submenu/checklists/requirements.md +35 -0
  62. package/specs/039-measure-fill-submenu/contracts/measure-fill-api.md +56 -0
  63. package/specs/039-measure-fill-submenu/data-model.md +79 -0
  64. package/specs/039-measure-fill-submenu/plan.md +81 -0
  65. package/specs/039-measure-fill-submenu/quickstart.md +62 -0
  66. package/specs/039-measure-fill-submenu/research.md +68 -0
  67. package/specs/039-measure-fill-submenu/spec.md +153 -0
  68. package/specs/039-measure-fill-submenu/tasks.md +121 -0
  69. package/specs/040-dynamics-dialog-cleanup/checklists/requirements.md +36 -0
  70. package/specs/040-dynamics-dialog-cleanup/contracts/dynamics-dialog.md +52 -0
  71. package/specs/040-dynamics-dialog-cleanup/data-model.md +48 -0
  72. package/specs/040-dynamics-dialog-cleanup/plan.md +89 -0
  73. package/specs/040-dynamics-dialog-cleanup/quickstart.md +69 -0
  74. package/specs/040-dynamics-dialog-cleanup/research.md +80 -0
  75. package/specs/040-dynamics-dialog-cleanup/spec.md +120 -0
  76. package/specs/040-dynamics-dialog-cleanup/tasks.md +114 -0
  77. package/specs/041-delete-special/checklists/requirements.md +35 -0
  78. package/specs/041-delete-special/contracts/delete-special-api.md +41 -0
  79. package/specs/041-delete-special/data-model.md +40 -0
  80. package/specs/041-delete-special/plan.md +93 -0
  81. package/specs/041-delete-special/quickstart.md +41 -0
  82. package/specs/041-delete-special/research.md +75 -0
  83. package/specs/041-delete-special/spec.md +136 -0
  84. package/specs/041-delete-special/tasks.md +106 -0
  85. package/src/application/application.ts +13 -2
  86. package/src/application/exports.ts +401 -395
  87. package/src/application/generateVexTests.ts +2 -2
  88. package/src/render/sui/NoteEntryCaret.ts +117 -16
  89. package/src/render/sui/autosave.ts +265 -0
  90. package/src/render/sui/formatter.ts +12 -2
  91. package/src/render/sui/scoreChangeState.ts +8 -3
  92. package/src/render/sui/scoreView.ts +47 -2
  93. package/src/render/sui/scoreViewOperations.ts +2706 -2555
  94. package/src/render/sui/staffLineGeometry.ts +82 -0
  95. package/src/render/vex/vxMeasure.ts +22 -8
  96. package/src/render/vex/vxNote.ts +2 -4
  97. package/src/smo/data/measure.ts +58 -1
  98. package/src/smo/data/measureModifiers.ts +81 -1
  99. package/src/smo/data/music.ts +169 -359
  100. package/src/smo/data/note.ts +1 -1
  101. package/src/smo/data/noteModifiers.ts +12 -0
  102. package/src/smo/data/score.ts +167 -2
  103. package/src/smo/data/scoreModifiers.ts +46 -1
  104. package/src/smo/data/systemStaff.ts +43 -0
  105. package/src/smo/xform/beamers.ts +80 -6
  106. package/src/smo/xform/copypaste.ts +207 -47
  107. package/src/smo/xform/measureFill.ts +89 -0
  108. package/src/smo/xform/operations.ts +403 -61
  109. package/src/smo/xform/selections.ts +7 -0
  110. package/src/ui/components/dialogs/beamGroups.vue +106 -0
  111. package/src/ui/components/dialogs/deleteSpecial.vue +38 -0
  112. package/src/ui/components/dialogs/dynamics.vue +16 -3
  113. package/src/ui/components/dialogs/fileUpload.vue +2 -2
  114. package/src/ui/components/dialogs/hairpin.vue +3 -3
  115. package/src/ui/components/dialogs/newPart.vue +148 -184
  116. package/src/ui/components/dialogs/pasteSpecial.vue +49 -0
  117. package/src/ui/components/dialogs/recovery.vue +66 -0
  118. package/src/ui/components/dialogs/save.vue +11 -4
  119. package/src/ui/components/dialogs/scorePreferences.vue +23 -1
  120. package/src/ui/components/dialogs/slur.vue +6 -6
  121. package/src/ui/components/dialogs/tempo.vue +11 -3
  122. package/src/ui/components/dialogs/timeSignature.vue +5 -0
  123. package/src/ui/components/dialogs/volta.vue +3 -3
  124. package/src/ui/dialogs/annotationVue.ts +1 -1
  125. package/src/ui/dialogs/beamGroupsVue.ts +69 -0
  126. package/src/ui/dialogs/createPartHelpers.ts +68 -0
  127. package/src/ui/dialogs/deleteSpecial.ts +57 -0
  128. package/src/ui/dialogs/dynamicsVue.ts +87 -60
  129. package/src/ui/dialogs/factory.ts +0 -2
  130. package/src/ui/dialogs/fileDialogs.ts +63 -22
  131. package/src/ui/dialogs/instrument.ts +37 -30
  132. package/src/ui/dialogs/pasteSpecial.ts +59 -0
  133. package/src/ui/dialogs/preferences.ts +41 -40
  134. package/src/ui/dialogs/recovery.ts +49 -0
  135. package/src/ui/fileio/fileInput.ts +12 -3
  136. package/src/ui/fileio/scoreArchive.ts +151 -0
  137. package/src/ui/fileio/xhrLoader.ts +26 -0
  138. package/src/ui/i18n/language.ts +1 -1
  139. package/src/ui/menus/beams.ts +181 -112
  140. package/src/ui/menus/edit.ts +44 -6
  141. package/src/ui/menus/file.ts +21 -1
  142. package/src/ui/menus/measure.ts +40 -1
  143. package/tests/autosave.ts +332 -0
  144. package/tests/beamDotted.ts +56 -0
  145. package/tests/beamGroups.ts +338 -0
  146. package/tests/createPart.ts +292 -0
  147. package/tests/deleteSpecial.ts +350 -0
  148. package/tests/dynamicsFontSize.ts +132 -0
  149. package/tests/keyDistanceTransposition.ts +351 -0
  150. package/tests/measureFill.ts +295 -0
  151. package/tests/movePart.ts +94 -0
  152. package/tests/multimeasureRest.ts +338 -0
  153. package/tests/pasteIntoMeasure.ts +103 -0
  154. package/tests/pasteSpecial.ts +541 -0
  155. package/tests/quickBeam.ts +126 -0
  156. package/tests/scoreArchive.ts +218 -0
  157. package/tests/scoreChangeState.ts +2 -0
  158. package/tests/staffLineGeometry.ts +179 -0
  159. package/tests/timeSignatureDisplay.ts +58 -0
  160. package/tools/smoosic-schema.json +37 -0
  161. package/typedoc.ts +1 -1
  162. package/types/src/application/exports.d.ts +453 -447
  163. package/types/src/common/promiseHelpers.d.ts +30 -30
  164. package/types/src/common/vex.d.ts +224 -224
  165. package/types/src/render/sui/NoteEntryCaret.d.ts +107 -107
  166. package/types/src/render/sui/autosave.d.ts +99 -0
  167. package/types/src/render/sui/scoreView.d.ts +23 -0
  168. package/types/src/render/sui/scoreViewOperations.d.ts +759 -639
  169. package/types/src/render/sui/svgHelpers.d.ts +88 -88
  170. package/types/src/render/sui/svgPageMap.d.ts +344 -344
  171. package/types/src/render/sui/textEdit.d.ts +96 -96
  172. package/types/src/render/sui/textRender.d.ts +199 -199
  173. package/types/src/render/vex/smoAdapter.d.ts +47 -47
  174. package/types/src/render/vex/vxMeasure.d.ts +97 -97
  175. package/types/src/render/vex/vxNote.d.ts +56 -56
  176. package/types/src/render/vex/vxSystem.d.ts +71 -71
  177. package/types/src/smo/data/measure.d.ts +30 -0
  178. package/types/src/smo/data/measureModifiers.d.ts +568 -513
  179. package/types/src/smo/data/music.d.ts +74 -32
  180. package/types/src/smo/data/note.d.ts +498 -498
  181. package/types/src/smo/data/noteModifiers.d.ts +615 -606
  182. package/types/src/smo/data/score.d.ts +476 -421
  183. package/types/src/smo/data/scoreModifiers.d.ts +30 -0
  184. package/types/src/smo/data/scoreText.d.ts +334 -334
  185. package/types/src/smo/data/systemStaff.d.ts +14 -0
  186. package/types/src/smo/xform/beamers.d.ts +23 -1
  187. package/types/src/smo/xform/copypaste.d.ts +138 -2
  188. package/types/src/smo/xform/measureFill.d.ts +21 -0
  189. package/types/src/smo/xform/operations.d.ts +245 -129
  190. package/types/src/smo/xform/selections.d.ts +154 -154
  191. package/types/src/smo/xform/undo.d.ts +142 -142
  192. package/types/src/ui/buttons/button.d.ts +100 -100
  193. package/types/src/ui/buttons/ribbon.d.ts +70 -70
  194. package/types/src/ui/common.d.ts +76 -76
  195. package/types/src/ui/components/dialogs/chordText.d.ts +28 -28
  196. package/types/src/ui/components/dialogs/textBlockAtomNode.d.ts +20 -20
  197. package/types/src/ui/components/dialogs/textGroupHtml.d.ts +29 -29
  198. package/types/src/ui/composable/draggable.d.ts +15 -15
  199. package/types/src/ui/dialogs/adapter.d.ts +120 -120
  200. package/types/src/ui/dialogs/annotationVue.d.ts +9 -9
  201. package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
  202. package/types/src/ui/dialogs/beamGroupsVue.d.ts +20 -0
  203. package/types/src/ui/dialogs/chordChangeVue.d.ts +8 -8
  204. package/types/src/ui/dialogs/createPartHelpers.d.ts +29 -0
  205. package/types/src/ui/dialogs/customTupletsVue.d.ts +9 -9
  206. package/types/src/ui/dialogs/deleteSpecial.d.ts +8 -0
  207. package/types/src/ui/dialogs/dialog.d.ts +203 -203
  208. package/types/src/ui/dialogs/dynamicsVue.d.ts +10 -10
  209. package/types/src/ui/dialogs/factory.d.ts +15 -15
  210. package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
  211. package/types/src/ui/dialogs/hairpin.d.ts +35 -35
  212. package/types/src/ui/dialogs/hairpinVue.d.ts +7 -7
  213. package/types/src/ui/dialogs/instrument.d.ts +3 -3
  214. package/types/src/ui/dialogs/keySignatureVue.d.ts +7 -7
  215. package/types/src/ui/dialogs/libraryVue.d.ts +15 -15
  216. package/types/src/ui/dialogs/lyricVue.d.ts +8 -8
  217. package/types/src/ui/dialogs/pasteSpecial.d.ts +8 -0
  218. package/types/src/ui/dialogs/pedalMarkingVue.d.ts +7 -7
  219. package/types/src/ui/dialogs/recovery.d.ts +8 -0
  220. package/types/src/ui/dialogs/rehearsalMark.d.ts +25 -25
  221. package/types/src/ui/dialogs/rehearsalMarkVue.d.ts +7 -7
  222. package/types/src/ui/dialogs/slur.d.ts +57 -57
  223. package/types/src/ui/dialogs/slurVue.d.ts +7 -7
  224. package/types/src/ui/dialogs/tempo.d.ts +50 -50
  225. package/types/src/ui/dialogs/tempoVue.d.ts +10 -10
  226. package/types/src/ui/dialogs/textBlockVue.d.ts +8 -8
  227. package/types/src/ui/dialogs/textBracket.d.ts +35 -35
  228. package/types/src/ui/dialogs/textBracketVue.d.ts +7 -7
  229. package/types/src/ui/dialogs/tie.d.ts +41 -41
  230. package/types/src/ui/dialogs/volta.d.ts +40 -40
  231. package/types/src/ui/dialogs/voltaVue.d.ts +7 -7
  232. package/types/src/ui/fileio/fileInput.d.ts +7 -1
  233. package/types/src/ui/fileio/library.d.ts +40 -40
  234. package/types/src/ui/fileio/scoreArchive.d.ts +55 -0
  235. package/types/src/ui/fileio/xhrLoader.d.ts +7 -0
  236. package/types/src/ui/menus/file.d.ts +8 -8
  237. package/types/src/ui/menus/language.d.ts +7 -7
  238. package/types/src/ui/menus/manager.d.ts +58 -58
  239. package/types/src/ui/menus/menu.d.ts +159 -159
  240. package/types/src/ui/menus/partSelection.d.ts +14 -14
  241. package/types/src/ui/menus/score.d.ts +8 -8
  242. package/types/src/ui/menus/staffModifier.d.ts +17 -17
  243. package/types/typedoc.d.ts +147 -147
  244. package/src/ui/dialogs/dynamics.ts +0 -141
  245. package/types/src/ui/dialogs/dynamics.d.ts +0 -37
package/changes.md CHANGED
@@ -1,6 +1,91 @@
1
1
  <sub>[Github site](https://github.com/smoosic) | [change notes](https://smoosic.github.io//Smoosic/changes.html) | [application](https://smoosic.github.io//Smoosic/release/html/smoosic.html)<sub>
2
2
 
3
3
 
4
+ ## 11-16-2026
5
+ Delete Special.
6
+
7
+ * The **Edit** menu has a new **Delete Special...** command, next to Paste Special. It opens a dialog with a checkbox for each kind of marking you can remove from the selected notes: **Dynamics, Lyrics, Annotations, Chords, Articulations, Ornaments, Grace Notes, Arpeggios and Microtones**. Nothing is ticked at first. Tick the kinds you want and confirm, and they are removed from every selected note. The notes' pitches and rhythms are not changed, and neither are the kinds you did not tick.
8
+ * Lyrics, annotations and chord symbols are separate choices: removing one never removes another. **Lyrics** removes every verse. **Microtones** removes the microtones but keeps the pitches.
9
+ * It is one undo step. If nothing is ticked, or the selected notes have none of the ticked kinds, nothing happens and no undo step is made.
10
+ * For people using Smoosic as a library: `SmoOperation.deleteNoteAttributes`, `SmoOperation.countNoteAttributes` and `SmoOperation.deleteAttributeKinds` work on selections, `SuiScoreViewOperations.deleteNoteAttributes` does it on the current selection as one undo step, and `SuiDeleteSpecialDialog` is the dialog.
11
+
12
+ ## 11-15-2026
13
+ Dynamics dialog: font size, and the old dialog is removed.
14
+
15
+ * The **Dynamics** dialog has a new **Font Size** field, from 1 to 99. The marking is redrawn as you change it, on every selected note. Cancel puts the size back, like the other fields. Scores saved before this open with the same size as before (30).
16
+ * For people using Smoosic as a library: the old `SuiDynamicModifierDialog` and `SuiDynamicDialogAdapter` classes are removed. The dialog people use is `SuiDynamicModifierDialogVue`, and `SuiModifierDialogFactory` still opens it for a `SmoDynamicText`. `SmoDynamicText` has `minFontSize`, `maxFontSize` and `isValidFontSize()`.
17
+
18
+ ## 11-9-2026
19
+ Fill Measures.
20
+
21
+ * The **Measure** menu has a new **Fill Measures** submenu that replaces the selected measures with rests. **This removes all the notes and voices in those measures**, and the slurs, ties, hairpins and text that were attached to them. The measure's time signature, key, clef, tempo, barlines, endings and other settings are kept. It is one undo step.
22
+ * **Whole Rest** uses the largest rest that fits: a whole rest in 4/4, a dotted half rest in 3/4 and 6/8, a double-dotted half rest in 7/8. When no single rest fits, it adds the next largest until the measure is full, so 5/8 is a half rest and an eighth rest.
23
+ * **Beats** uses a rest for each beat: quarter rests in 4/4, 2/4 and 3/4, and dotted quarter rests in 6/8, 9/8 and 12/8. In meters like 5/8 and 7/8 the last rest is the largest that fits what is left.
24
+ * **Eighth Rests** uses eighth rests, and a smaller rest at the end if less than an eighth is left (5/16), so a measure is never left short.
25
+ * A pickup measure keeps its length, and each selected measure is filled for its own time signature.
26
+ * For people using Smoosic as a library: `SmoOperation.fillMeasures` and `SuiScoreViewOperations.fillMeasures` do the fill, and `fillRestDurations` in `smo/xform/measureFill` works out the rests.
27
+
28
+ ## 11-8-2026
29
+ Beam groups for each measure, and dotted notes beam together.
30
+
31
+ * The **Beams** menu has a new **Beam Groups** command. Use **Add group** (+) to add a beam group for each part of the measure, and set each one from 1 to 4: for a measure of 5/8 add two groups and set them to 3 and 2. Each number is the longest beam group, in eighth notes (sixteenth notes in x/16 time). The first number is used for the first beam group, the second for the second group, and so on. If the measure has more groups than numbers the list starts over, so `3` in 12/8 gives four groups of three and `3, 2` in 10/8 gives 3 + 2 + 3 + 2. Leave it empty to use the default for the meter.
32
+ * Choose where it applies: **Selected measures** or **Whole score**. Applying a grouping replaces any hand-placed beams in those measures. Beam Selections in a measure with a grouping keeps the beam you make across the group boundaries, so you can beam the last three notes of a 5/8 measure grouped 3 + 2 and get 2 + 3.
33
+ * The **Beams** menu is reorganized. **Quick Beam** is a submenu with **Beam Selections**, **Unbeam Selections** and a new **Autobeam Selections**, which removes any hand-placed beam breaks and joins from the selected notes so they beam automatically (by the measure's beam groups, if it has them). **Stem Direction** is a submenu with **Stems Up**, **Stems Down** and **Stems Auto**, replacing the single choice that stepped through the three. The keys are unchanged, so Shift-B still steps through up, down and auto.
34
+ * Measures with no grouping beam exactly as before, and scores saved before this open unchanged. The score-wide default beam length in the preferences is still used for those measures.
35
+ * In duple time, groups of notes that include a dotted note, such as dotted eighth and sixteenth, or double-dotted eighth and thirty-second, now beam together across the beat, as far as half a measure. Runs of plain sixteenths still beam by the beat.
36
+ * For people using Smoosic as a library: the grouping is a measure modifier, `SmoBeamPreferences` (a list `groups`), set with `SmoMeasure.setBeamGroups()` and read with `getBeamGroups()`. `SmoOperation.setBeamGroups` and `setAllBeamGroups` set it for selections or for the whole score, and `SuiScoreViewOperations.setBeamGroups` does so as one undo step. The new modifier is in `tools/smoosic-schema.json`; the separate SmoSchema repository needs it too.
37
+
38
+ ## 11-6-2026
39
+ Create Part dialog fixes.
40
+
41
+ * **Staff Location** now counts from 1 and goes up to one more than the number of staves in the score. 1 puts the new part first and the largest value puts it after the last staff, which is where it starts. Before, the largest value could not be reached.
42
+ * A new part is never put inside a part that has two staves. If the location is between a part's two staves, the new part goes after it.
43
+ * The dialog is titled **Create Part** and has **Name** and **Abbreviation** fields. If you leave Name empty, the part is named for the instrument you chose, which is shown in the field as you change the instrument.
44
+ * Parts made with the dialog keep their text groups (Preserve Text Groups is on). The default for parts made any other way is unchanged.
45
+ * A part with two staves is now created as one undo step, and its two staves are properly linked as one part.
46
+ * Putting a staff above others used to leave slurs, hairpins, brackets, groups and instrument settings of the staves below it pointing at the wrong staves. They now follow their staves. For people using Smoosic as a library: `SmoScore.addStaff` shifts these when it inserts above existing staves, and `SmoOperation.addPart` and `SuiScoreViewOperations.createPart` create a part at a location.
47
+
48
+ ## 11-2-2026
49
+ Fix a crash in the Time Signature dialog.
50
+
51
+ * The alternate display string updated the score on every keystroke, so a half-typed value such as `3/` was drawn and crashed the renderer. The dialog now waits until the string is a valid time signature, or empty.
52
+ * A display string must look like `3/4` or `3/8+2/4`. `SmoTimeSignature.displayString` now reads as the empty string for anything else, so a bad value in a file can't crash the renderer either.
53
+
54
+ ## 11-1-2026
55
+ Autosave and Recovery.
56
+
57
+ * While you work, Smoosic now keeps a rolling set of snapshots of the whole score in the browser's local storage. The first change after a snapshot starts a timer, and when it runs out a new snapshot is taken. A score that hasn't changed isn't snapshotted again, and quick edits make one snapshot, not many. The oldest snapshots are dropped to stay within the number you choose, and if the browser runs out of room. Quick Save is unchanged.
58
+ * The File menu has a new **Recovery** command. It lists the snapshots, newest first, with the date, time and name of the score. Pick one to load it. Snapshots are not deleted by recovering, so you can try another. If the open score has unsaved changes you are asked about them first, and the recovered score counts as unsaved until you save it to a file.
59
+ * Smoosic Preferences has a new **Autosave** section: minutes between autosaves (5 to 60, default 10) and autosaves to keep (1 to 20, default 10). They are saved with the score as `autosaveInterval` and `autosaveCount` in the score preferences. Scores saved before this opened with the defaults.
60
+ * The snapshots are shared by every score opened in the browser, so the count limits all of them together.
61
+ * For people using Smoosic as a library: `SmoScorePreferences` has the two new fields, and `SuiScoreView` has `listSnapshots()` and `recoverSnapshot(id)`. The two new properties are in `tools/smoosic-schema.json`; the separate SmoSchema repository needs them too.
62
+
63
+ ## 10-31-2026
64
+ Paste Special.
65
+
66
+ * The Edit menu has a new **Paste Special...** command, which replaces **Paste Chords**. After a Copy, it opens a dialog where you choose which of the things attached to the copied notes to paste: dynamics, lyrics, annotations, chords, articulations and ornaments. Only the kinds you choose are pasted. Pitches, rhythms and everything else on the destination notes are left alone, so you can move these markings to another part, or another place in the same part.
67
+ * The dialog can either replace the markings the destination notes already have for the chosen kinds, or add to them. In both cases a dynamic, or a lyric of the same verse, is never doubled.
68
+ * The copied and destination notes are lined up by elapsed time, the same way Paste Chords did. With the same rhythm, that is note for note. Chords are spelled for the destination if it is a transposing instrument; the other kinds are pasted as they are.
69
+ * For people using Smoosic as a library: `PasteBuffer.pasteChords` and the view's `pasteChords` are gone. Use `pasteAttributes({ kinds: ['chords'], mode: 'replace' })`. Unlike Paste Chords, replace mode also clears a destination note's chords when the copied note has none.
70
+ * `SmoNote.removeAllAnnotations` used to remove every lyric and chord as well as the annotations. It now removes only annotations.
71
+
72
+ ## 10-30-2026
73
+ Compressed score files.
74
+
75
+ * Scores now save as `.smz` (Smoosic zipped), a zip archive holding the complete score. The file is much smaller than the `.json` we saved before. The key-abbreviation dictionary is no longer used for new files, since compression does a better job.
76
+ * Open accepts `.smz` as well as `.json`. Older `.json` scores, in the abbreviated form or the full 'validation' form, open as before. A file is recognized by its contents, so a renamed file still opens.
77
+ * The 'Validation (large)' save option is unchanged: plain, complete, uncompressed `.json`.
78
+ * If a file can't be opened, a message says why and the current score is left alone.
79
+ * Scores saved as `.smz` can't be opened by older versions of Smoosic. Use the validation format to share a plain text file.
80
+
81
+ ## 10-27-2026
82
+ Better enharmonic spelling when transposing.
83
+
84
+ * Transposing, pasting into a different key, and choosing a default spelling for a note that is not in the key no longer use a table of spellings. A note's *distance* from a key is how many sharps or flats you would have to add to the key signature to include it (from C, Bb is 1 flat away and A# is 5 sharps away).
85
+ * When notes are pasted or transposed to another key, they keep their distance from the key. A C# in C becomes D# in D, an A# becomes B#, and an E natural in Eb becomes G# in G.
86
+ * A note that is not in the key is spelled with the fewest accidentals added to the key, and as a flat if the sharp and flat are equally far. In C major, C# is now the default spelling instead of Db.
87
+ * Transpose Score now changes the key signature to match the interval, and also transposes grace notes. Previously the key signature stayed the same.
88
+
4
89
  ## 10-8-2026
5
90
  All new text formatting, new menu and dialog look-and-feel.
6
91
 
package/package.json CHANGED
@@ -1,82 +1,98 @@
1
- {
2
- "name": "smoosic",
3
- "version": "2.0.3",
4
- "devDependencies": {
5
- "copy-webpack-plugin": "^12.0.2",
6
- "jquery": "^3.6.0",
7
- "ts-node": "^10.9.2",
8
- "webpack": "^5.89.0",
9
- "webpack-cli": "^4.7.2"
10
- },
11
- "types": "./types/src/application/exports.ts",
12
- "dependencies": {
13
- "@tiptap/extension-subscript": "^3.30.0",
14
- "@tiptap/extension-superscript": "^3.30.0",
15
- "@tiptap/extension-text-align": "^3.30.0",
16
- "@tiptap/extension-text-style": "^3.30.0",
17
- "@tiptap/pm": "^3.30.0",
18
- "@tiptap/starter-kit": "^3.30.0",
19
- "@tiptap/vue-3": "^3.30.0",
20
- "@types/qunit": "^2.19.11",
21
- "express": "^5.1.0",
22
- "midi-parser-js": "^4.0.4",
23
- "midi-writer-js": "^3.1.1",
24
- "smplr": "^0.16.3",
25
- "soundfont2": "^0.4.0",
26
- "standardized-audio-context": "^25.3.58",
27
- "ts-loader": "^9.2.5",
28
- "typedoc": "^0.28.14",
29
- "typescript": "^5.9.3",
30
- "vexflow_smoosic": "4.2.17",
31
- "vue": "^3.5.25",
32
- "vue-loader": "^17.4.2",
33
- "xmldom": "^0.6.0"
34
- },
35
- "main": "build/smoosic.js",
36
- "description": "<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [demo](https://smoosic.github.io/Smoosic/release/html/smoosic.html)<sub>",
37
- "directories": {
38
- "test": "tests"
39
- },
40
- "browser": {
41
- "fs": false,
42
- "path": false,
43
- "os": false
44
- },
45
- "scripts": {
46
- "test": "exit 0",
47
- "test:attached-text": "ts-node -P tests/tsconfig.json tests/attachedTextMigration.ts",
48
- "test:global-layout-reposition": "ts-node -P tests/tsconfig.json tests/globalLayoutTextReposition.ts",
49
- "test:select-voice": "ts-node -P tests/tsconfig.json tests/selectVoice.ts",
50
- "test:voice-copy-paste": "ts-node -P tests/tsconfig.json tests/voiceCopyPaste.ts",
51
- "test:promise-helpers": "ts-node -P tests/tsconfig.json tests/promiseHelpersUsage.ts",
52
- "test:score-change-state": "ts-node -P tests/tsconfig.json tests/scoreChangeState.ts",
53
- "test:page-divisions": "ts-node -P tests/tsconfig.json tests/pageDivisions.ts",
54
- "test:text-drag-placement":"ts-node -P tests/tsconfig.json tests/textDragPlacement.ts",
55
- "test:rehearsal-measure-number": "ts-node -P tests/tsconfig.json tests/rehearsalMarkMeasureNumber.ts",
56
- "server": "node ./build/index.js",
57
- "build": "node ./build/build.js",
58
- "types": "node ./build/build.js types",
59
- "typedoc": "node ./node_modules/typedoc/bin/typedoc"
60
- },
61
- "repository": {
62
- "type": "git",
63
- "url": "git+https://github.com/Smoosic/Smoosic.git"
64
- },
65
- "keywords": [
66
- "music",
67
- "engraving",
68
- "notation",
69
- "audio",
70
- "midi",
71
- "musicxml"
72
- ],
73
- "author": "Aaron D Newman",
74
- "license": "MIT",
75
- "bugs": {
76
- "url": "https://github.com/Smoosic/Smoosic/issues"
77
- },
78
- "homepage": "https://github.com/Smoosic/Smoosic#readme",
79
- "publishConfig": {
80
- "@AaronDavidNewman:registry": "https://npm.pkg.github.com"
81
- }
82
- }
1
+ {
2
+ "name": "smoosic",
3
+ "version": "2.0.4",
4
+ "devDependencies": {
5
+ "copy-webpack-plugin": "^12.0.2",
6
+ "jquery": "^3.6.0",
7
+ "ts-node": "^10.9.2",
8
+ "webpack": "^5.89.0",
9
+ "webpack-cli": "^4.7.2"
10
+ },
11
+ "types": "./types/src/application/exports.ts",
12
+ "dependencies": {
13
+ "@tiptap/extension-subscript": "^3.30.0",
14
+ "@tiptap/extension-superscript": "^3.30.0",
15
+ "@tiptap/extension-text-align": "^3.30.0",
16
+ "@tiptap/extension-text-style": "^3.30.0",
17
+ "@tiptap/pm": "^3.30.0",
18
+ "@tiptap/starter-kit": "^3.30.0",
19
+ "@tiptap/vue-3": "^3.30.0",
20
+ "@types/qunit": "^2.19.11",
21
+ "express": "^5.1.0",
22
+ "midi-parser-js": "^4.0.4",
23
+ "midi-writer-js": "^3.1.1",
24
+ "smplr": "^0.16.3",
25
+ "soundfont2": "^0.4.0",
26
+ "standardized-audio-context": "^25.3.58",
27
+ "ts-loader": "^9.2.5",
28
+ "typedoc": "^0.28.14",
29
+ "typescript": "^5.9.3",
30
+ "vexflow_smoosic": "4.2.17",
31
+ "vue": "^3.5.25",
32
+ "vue-loader": "^17.4.2",
33
+ "xmldom": "^0.6.0"
34
+ },
35
+ "main": "build/smoosic.js",
36
+ "description": "<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [demo](https://smoosic.github.io/Smoosic/release/html/smoosic.html)<sub>",
37
+ "directories": {
38
+ "test": "tests"
39
+ },
40
+ "browser": {
41
+ "fs": false,
42
+ "path": false,
43
+ "os": false
44
+ },
45
+ "scripts": {
46
+ "test": "exit 0",
47
+ "test:attached-text": "ts-node -P tests/tsconfig.json tests/attachedTextMigration.ts",
48
+ "test:global-layout-reposition": "ts-node -P tests/tsconfig.json tests/globalLayoutTextReposition.ts",
49
+ "test:staff-line-geometry": "ts-node -P tests/tsconfig.json tests/staffLineGeometry.ts",
50
+ "test:multimeasure-rest": "ts-node -P tests/tsconfig.json tests/multimeasureRest.ts",
51
+ "test:select-voice": "ts-node -P tests/tsconfig.json tests/selectVoice.ts",
52
+ "test:voice-copy-paste": "ts-node -P tests/tsconfig.json tests/voiceCopyPaste.ts",
53
+ "test:promise-helpers": "ts-node -P tests/tsconfig.json tests/promiseHelpersUsage.ts",
54
+ "test:score-change-state": "ts-node -P tests/tsconfig.json tests/scoreChangeState.ts",
55
+ "test:page-divisions": "ts-node -P tests/tsconfig.json tests/pageDivisions.ts",
56
+ "test:text-drag-placement":"ts-node -P tests/tsconfig.json tests/textDragPlacement.ts",
57
+ "test:rehearsal-measure-number": "ts-node -P tests/tsconfig.json tests/rehearsalMarkMeasureNumber.ts",
58
+ "test:key-distance-transposition": "ts-node -P tests/tsconfig.json tests/keyDistanceTransposition.ts",
59
+ "test:create-part": "ts-node -P tests/tsconfig.json tests/createPart.ts",
60
+ "test:move-part": "ts-node -P tests/tsconfig.json tests/movePart.ts",
61
+ "test:beam-dotted": "ts-node -P tests/tsconfig.json tests/beamDotted.ts",
62
+ "test:beam-groups": "ts-node -P tests/tsconfig.json tests/beamGroups.ts",
63
+ "test:quick-beam": "ts-node -P tests/tsconfig.json tests/quickBeam.ts",
64
+ "test:measure-fill": "ts-node -P tests/tsconfig.json tests/measureFill.ts",
65
+ "test:dynamics-font-size": "ts-node -P tests/tsconfig.json tests/dynamicsFontSize.ts",
66
+ "test:delete-special": "ts-node -P tests/tsconfig.json tests/deleteSpecial.ts",
67
+ "test:time-signature-display": "ts-node -P tests/tsconfig.json tests/timeSignatureDisplay.ts",
68
+ "test:autosave": "ts-node -P tests/tsconfig.json tests/autosave.ts",
69
+ "test:paste-special": "ts-node -P tests/tsconfig.json tests/pasteSpecial.ts",
70
+ "test:score-archive": "ts-node -P tests/tsconfig.json tests/scoreArchive.ts",
71
+ "test:paste-into-measure": "ts-node -P tests/tsconfig.json tests/pasteIntoMeasure.ts",
72
+ "server": "node ./build/index.js",
73
+ "build": "node ./build/build.js",
74
+ "types": "node ./build/build.js types",
75
+ "typedoc": "node ./node_modules/typedoc/bin/typedoc"
76
+ },
77
+ "repository": {
78
+ "type": "git",
79
+ "url": "git+https://github.com/Smoosic/Smoosic.git"
80
+ },
81
+ "keywords": [
82
+ "music",
83
+ "engraving",
84
+ "notation",
85
+ "audio",
86
+ "midi",
87
+ "musicxml"
88
+ ],
89
+ "author": "Aaron D Newman",
90
+ "license": "MIT",
91
+ "bugs": {
92
+ "url": "https://github.com/Smoosic/Smoosic/issues"
93
+ },
94
+ "homepage": "https://github.com/Smoosic/Smoosic#readme",
95
+ "publishConfig": {
96
+ "@AaronDavidNewman:registry": "https://npm.pkg.github.com"
97
+ }
98
+ }