smoosic 2.0.3 → 2.0.5

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 (260) hide show
  1. package/build/smoosic.js +408 -69
  2. package/changes.md +95 -0
  3. package/package.json +19 -1
  4. package/release/smoosic.js +408 -69
  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/specs/042-preserve-music-time-signature/checklists/requirements.md +35 -0
  86. package/specs/042-preserve-music-time-signature/contracts/rebar-api.md +66 -0
  87. package/specs/042-preserve-music-time-signature/data-model.md +73 -0
  88. package/specs/042-preserve-music-time-signature/plan.md +93 -0
  89. package/specs/042-preserve-music-time-signature/quickstart.md +37 -0
  90. package/specs/042-preserve-music-time-signature/research.md +102 -0
  91. package/specs/042-preserve-music-time-signature/spec.md +153 -0
  92. package/specs/042-preserve-music-time-signature/tasks.md +104 -0
  93. package/src/application/application.ts +13 -2
  94. package/src/application/exports.ts +402 -395
  95. package/src/application/generateVexTests.ts +2 -2
  96. package/src/render/sui/NoteEntryCaret.ts +117 -16
  97. package/src/render/sui/autosave.ts +265 -0
  98. package/src/render/sui/formatter.ts +12 -2
  99. package/src/render/sui/renderState.ts +4 -4
  100. package/src/render/sui/scoreChangeState.ts +8 -3
  101. package/src/render/sui/scoreView.ts +47 -2
  102. package/src/render/sui/scoreViewOperations.ts +2761 -2555
  103. package/src/render/sui/staffLineGeometry.ts +82 -0
  104. package/src/render/sui/tracker.ts +18 -23
  105. package/src/render/vex/vxMeasure.ts +22 -8
  106. package/src/render/vex/vxNote.ts +2 -4
  107. package/src/smo/data/measure.ts +58 -1
  108. package/src/smo/data/measureModifiers.ts +81 -1
  109. package/src/smo/data/music.ts +169 -359
  110. package/src/smo/data/note.ts +1 -1
  111. package/src/smo/data/noteModifiers.ts +12 -0
  112. package/src/smo/data/score.ts +179 -7
  113. package/src/smo/data/scoreModifiers.ts +46 -1
  114. package/src/smo/data/systemStaff.ts +43 -0
  115. package/src/smo/xform/beamers.ts +80 -6
  116. package/src/smo/xform/copypaste.ts +207 -47
  117. package/src/smo/xform/measureFill.ts +89 -0
  118. package/src/smo/xform/operations.ts +452 -61
  119. package/src/smo/xform/rebar.ts +490 -0
  120. package/src/smo/xform/selections.ts +73 -0
  121. package/src/ui/components/dialogs/beamGroups.vue +106 -0
  122. package/src/ui/components/dialogs/deleteSpecial.vue +38 -0
  123. package/src/ui/components/dialogs/dynamics.vue +16 -3
  124. package/src/ui/components/dialogs/fileUpload.vue +2 -2
  125. package/src/ui/components/dialogs/hairpin.vue +3 -3
  126. package/src/ui/components/dialogs/newPart.vue +148 -184
  127. package/src/ui/components/dialogs/pasteSpecial.vue +49 -0
  128. package/src/ui/components/dialogs/recovery.vue +66 -0
  129. package/src/ui/components/dialogs/save.vue +11 -4
  130. package/src/ui/components/dialogs/scorePreferences.vue +23 -1
  131. package/src/ui/components/dialogs/slur.vue +6 -6
  132. package/src/ui/components/dialogs/tempo.vue +11 -3
  133. package/src/ui/components/dialogs/timeSignature.vue +18 -3
  134. package/src/ui/components/dialogs/volta.vue +3 -3
  135. package/src/ui/dialogs/annotationVue.ts +1 -1
  136. package/src/ui/dialogs/beamGroupsVue.ts +69 -0
  137. package/src/ui/dialogs/createPartHelpers.ts +68 -0
  138. package/src/ui/dialogs/deleteSpecial.ts +57 -0
  139. package/src/ui/dialogs/dynamicsVue.ts +87 -60
  140. package/src/ui/dialogs/factory.ts +0 -2
  141. package/src/ui/dialogs/fileDialogs.ts +63 -22
  142. package/src/ui/dialogs/instrument.ts +37 -30
  143. package/src/ui/dialogs/pasteSpecial.ts +59 -0
  144. package/src/ui/dialogs/preferences.ts +41 -40
  145. package/src/ui/dialogs/recovery.ts +49 -0
  146. package/src/ui/dialogs/timeSignature.ts +27 -39
  147. package/src/ui/fileio/fileInput.ts +12 -3
  148. package/src/ui/fileio/scoreArchive.ts +151 -0
  149. package/src/ui/fileio/xhrLoader.ts +26 -0
  150. package/src/ui/i18n/language.ts +1 -1
  151. package/src/ui/menus/beams.ts +181 -112
  152. package/src/ui/menus/edit.ts +44 -6
  153. package/src/ui/menus/file.ts +21 -1
  154. package/src/ui/menus/measure.ts +40 -1
  155. package/tests/autosave.ts +332 -0
  156. package/tests/beamDotted.ts +56 -0
  157. package/tests/beamGroups.ts +338 -0
  158. package/tests/createPart.ts +292 -0
  159. package/tests/deleteSpecial.ts +350 -0
  160. package/tests/dynamicsFontSize.ts +132 -0
  161. package/tests/keyDistanceTransposition.ts +351 -0
  162. package/tests/measureFill.ts +295 -0
  163. package/tests/movePart.ts +94 -0
  164. package/tests/multimeasureRest.ts +338 -0
  165. package/tests/pasteIntoMeasure.ts +103 -0
  166. package/tests/pasteSpecial.ts +541 -0
  167. package/tests/quickBeam.ts +126 -0
  168. package/tests/rebarMeasures.ts +492 -0
  169. package/tests/scoreArchive.ts +218 -0
  170. package/tests/scoreChangeState.ts +2 -0
  171. package/tests/staffLineGeometry.ts +179 -0
  172. package/tests/timeRangeSelect.ts +111 -0
  173. package/tests/timeSignatureDisplay.ts +58 -0
  174. package/tools/smoosic-schema.json +37 -0
  175. package/typedoc.ts +2 -1
  176. package/types/src/application/exports.d.ts +454 -447
  177. package/types/src/common/promiseHelpers.d.ts +30 -30
  178. package/types/src/common/vex.d.ts +224 -224
  179. package/types/src/render/sui/NoteEntryCaret.d.ts +107 -107
  180. package/types/src/render/sui/autosave.d.ts +99 -0
  181. package/types/src/render/sui/scoreView.d.ts +23 -0
  182. package/types/src/render/sui/scoreViewOperations.d.ts +776 -639
  183. package/types/src/render/sui/svgHelpers.d.ts +88 -88
  184. package/types/src/render/sui/svgPageMap.d.ts +344 -344
  185. package/types/src/render/sui/textEdit.d.ts +96 -96
  186. package/types/src/render/sui/textRender.d.ts +199 -199
  187. package/types/src/render/vex/smoAdapter.d.ts +47 -47
  188. package/types/src/render/vex/vxMeasure.d.ts +97 -97
  189. package/types/src/render/vex/vxNote.d.ts +56 -56
  190. package/types/src/render/vex/vxSystem.d.ts +71 -71
  191. package/types/src/smo/data/measure.d.ts +30 -0
  192. package/types/src/smo/data/measureModifiers.d.ts +568 -513
  193. package/types/src/smo/data/music.d.ts +74 -32
  194. package/types/src/smo/data/note.d.ts +498 -498
  195. package/types/src/smo/data/noteModifiers.d.ts +615 -606
  196. package/types/src/smo/data/score.d.ts +479 -421
  197. package/types/src/smo/data/scoreModifiers.d.ts +30 -0
  198. package/types/src/smo/data/scoreText.d.ts +334 -334
  199. package/types/src/smo/data/systemStaff.d.ts +14 -0
  200. package/types/src/smo/xform/beamers.d.ts +23 -1
  201. package/types/src/smo/xform/copypaste.d.ts +138 -2
  202. package/types/src/smo/xform/measureFill.d.ts +21 -0
  203. package/types/src/smo/xform/operations.d.ts +269 -129
  204. package/types/src/smo/xform/rebar.d.ts +53 -0
  205. package/types/src/smo/xform/selections.d.ts +168 -154
  206. package/types/src/smo/xform/undo.d.ts +142 -142
  207. package/types/src/ui/buttons/button.d.ts +100 -100
  208. package/types/src/ui/buttons/ribbon.d.ts +70 -70
  209. package/types/src/ui/common.d.ts +76 -76
  210. package/types/src/ui/components/dialogs/chordText.d.ts +28 -28
  211. package/types/src/ui/components/dialogs/textBlockAtomNode.d.ts +20 -20
  212. package/types/src/ui/components/dialogs/textGroupHtml.d.ts +29 -29
  213. package/types/src/ui/composable/draggable.d.ts +15 -15
  214. package/types/src/ui/dialogs/adapter.d.ts +120 -120
  215. package/types/src/ui/dialogs/annotationVue.d.ts +9 -9
  216. package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
  217. package/types/src/ui/dialogs/beamGroupsVue.d.ts +20 -0
  218. package/types/src/ui/dialogs/chordChangeVue.d.ts +8 -8
  219. package/types/src/ui/dialogs/createPartHelpers.d.ts +29 -0
  220. package/types/src/ui/dialogs/customTupletsVue.d.ts +9 -9
  221. package/types/src/ui/dialogs/deleteSpecial.d.ts +8 -0
  222. package/types/src/ui/dialogs/dialog.d.ts +203 -203
  223. package/types/src/ui/dialogs/dynamicsVue.d.ts +10 -10
  224. package/types/src/ui/dialogs/factory.d.ts +15 -15
  225. package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
  226. package/types/src/ui/dialogs/hairpin.d.ts +35 -35
  227. package/types/src/ui/dialogs/hairpinVue.d.ts +7 -7
  228. package/types/src/ui/dialogs/instrument.d.ts +3 -3
  229. package/types/src/ui/dialogs/keySignatureVue.d.ts +7 -7
  230. package/types/src/ui/dialogs/libraryVue.d.ts +15 -15
  231. package/types/src/ui/dialogs/lyricVue.d.ts +8 -8
  232. package/types/src/ui/dialogs/pasteSpecial.d.ts +8 -0
  233. package/types/src/ui/dialogs/pedalMarkingVue.d.ts +7 -7
  234. package/types/src/ui/dialogs/recovery.d.ts +8 -0
  235. package/types/src/ui/dialogs/rehearsalMark.d.ts +25 -25
  236. package/types/src/ui/dialogs/rehearsalMarkVue.d.ts +7 -7
  237. package/types/src/ui/dialogs/slur.d.ts +57 -57
  238. package/types/src/ui/dialogs/slurVue.d.ts +7 -7
  239. package/types/src/ui/dialogs/tempo.d.ts +50 -50
  240. package/types/src/ui/dialogs/tempoVue.d.ts +10 -10
  241. package/types/src/ui/dialogs/textBlockVue.d.ts +8 -8
  242. package/types/src/ui/dialogs/textBracket.d.ts +35 -35
  243. package/types/src/ui/dialogs/textBracketVue.d.ts +7 -7
  244. package/types/src/ui/dialogs/tie.d.ts +41 -41
  245. package/types/src/ui/dialogs/volta.d.ts +40 -40
  246. package/types/src/ui/dialogs/voltaVue.d.ts +7 -7
  247. package/types/src/ui/fileio/fileInput.d.ts +7 -1
  248. package/types/src/ui/fileio/library.d.ts +40 -40
  249. package/types/src/ui/fileio/scoreArchive.d.ts +55 -0
  250. package/types/src/ui/fileio/xhrLoader.d.ts +7 -0
  251. package/types/src/ui/menus/file.d.ts +8 -8
  252. package/types/src/ui/menus/language.d.ts +7 -7
  253. package/types/src/ui/menus/manager.d.ts +58 -58
  254. package/types/src/ui/menus/menu.d.ts +159 -159
  255. package/types/src/ui/menus/partSelection.d.ts +14 -14
  256. package/types/src/ui/menus/score.d.ts +8 -8
  257. package/types/src/ui/menus/staffModifier.d.ts +17 -17
  258. package/types/typedoc.d.ts +148 -147
  259. package/src/ui/dialogs/dynamics.ts +0 -141
  260. package/types/src/ui/dialogs/dynamics.d.ts +0 -37
@@ -1,639 +1,776 @@
1
- import { SuiScoreView, updateStaffModifierFunc } from './scoreView';
2
- import { SmoScore, engravingFontType } from '../../smo/data/score';
3
- import { SmoSystemStaffParams } from '../../smo/data/systemStaff';
4
- import { SmoPartInfo } from '../../smo/data/partInfo';
5
- import { SmoMeasure } from '../../smo/data/measure';
6
- import { KeyEvent, SvgBox, Pitch, PitchLetter } from '../../smo/data/common';
7
- import { SmoRenderConfiguration } from './configuration';
8
- import { SmoSystemGroup, SmoPageLayout, SmoGlobalLayout, SmoAudioPlayerSettings, SmoScorePreferences, SmoScoreInfo } from '../../smo/data/scoreModifiers';
9
- import { SmoTextGroup } from '../../smo/data/scoreText';
10
- import { SmoDynamicText, SmoArticulation, SmoOrnament, SmoLyric, SmoArpeggioType, SmoClefChange, SmoTabNote } from '../../smo/data/noteModifiers';
11
- import { SmoTempo, SmoVolta, SmoRehearsalMark, SmoMeasureFormat, SmoTimeSignature } from '../../smo/data/measureModifiers';
12
- import { UndoBuffer } from '../../smo/xform/undo';
13
- import { createStaffModifierType, MakeTupletOperation } from '../../smo/xform/operations';
14
- import { BatchSelectionOperation } from '../../smo/xform/operations';
15
- import { FontInfo } from '../../common/vex';
16
- import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
17
- import { StaffModifierBase, SmoInstrument, SmoInstrumentParams, SmoStaffTextBracket, SmoTabStave } from '../../smo/data/staffModifiers';
18
- /**
19
- * MVVM-like operations on the displayed score.
20
- *
21
- * All operations that can be performed on a 'live' score go through this
22
- * module. It maps the score view to the actual score and makes sure the
23
- * model and view stay in sync.
24
- *
25
- * Because this object operates on the current selections,
26
- * all operations return promise so applications can wait for the
27
- * operation to complete and update the selection list.
28
- * @category SuiRender
29
- */
30
- export declare class SuiScoreViewOperations extends SuiScoreView {
31
- constructor(config: SmoRenderConfiguration, score: SmoScore, undoBuffer: UndoBuffer);
32
- /**
33
- * Add a new text group to the score
34
- * @param textGroup a new text group
35
- * @returns
36
- */
37
- addTextGroup(textGroup: SmoTextGroup): Promise<void>;
38
- /**
39
- * Remove the text group from the score
40
- * @param textGroup
41
- * @returns
42
- */
43
- removeTextGroup(textGroup: SmoTextGroup): Promise<void>;
44
- /**
45
- * UPdate an existing text group. The original is passed in, because since TG not tied to a musical
46
- * element, we need to find the one we're updating.
47
- * @param oldVersion
48
- * @param newVersion
49
- * @returns
50
- */
51
- updateTextGroup(newVersion: SmoTextGroup): Promise<void>;
52
- /**
53
- * load an mxml score remotely, return a promise that
54
- * completes when the file is loaded
55
- * @param url where to find the xml file
56
- * @returns
57
- */
58
- loadRemoteXml(url: string): Promise<any>;
59
- /**
60
- * load a remote score in SMO format
61
- * @param url url to find the score
62
- * @returns
63
- */
64
- loadRemoteJson(url: string): Promise<any>;
65
- /**
66
- * Load a remote score, return promise when it's been loaded
67
- * from afar.
68
- * @param pref
69
- * @returns
70
- */
71
- loadRemoteScore(url: string): Promise<any>;
72
- updateAudioSettings(pref: SmoAudioPlayerSettings): Promise<void>;
73
- /**
74
- * Global settings that control how the score editor behaves
75
- * @param pref
76
- * @returns
77
- */
78
- updateScorePreferences(pref: SmoScorePreferences): Promise<void>;
79
- /**
80
- * Update information about the score, composer etc.
81
- * @param scoreInfo
82
- * @returns
83
- */
84
- updateScoreInfo(scoreInfo: SmoScoreInfo): Promise<void>;
85
- addRemoveArpeggio(code: SmoArpeggioType): Promise<void>;
86
- /**
87
- * A clef change mid-measure (clefNote)
88
- * @param clef
89
- */
90
- addRemoveClefChange(clef: SmoClefChange): Promise<void>;
91
- /**
92
- * Modify the dynamics assoicated with the specific selection
93
- * @param selection
94
- * @param dynamic
95
- * @returns
96
- */
97
- addDynamic(selection: SmoSelection, dynamic: SmoDynamicText): Promise<void>;
98
- /**
99
- * Remove dynamics from the current selection
100
- * @param dynamic
101
- * @returns
102
- */
103
- removeDynamic(dynamic: SmoDynamicText): Promise<void>;
104
- /**
105
- * we never really delete a note, but we will convert it into a rest and if it's
106
- * already a rest we will try to hide it.
107
- * Operates on current selections
108
- * */
109
- deleteNote(): Promise<void>;
110
- /**
111
- * The lyric editor moves around, so we can't depend on the tracker for the
112
- * correct selection. We get it directly from the editor.
113
- *
114
- * @param selector - the selector of the note with the lyric to remove
115
- * @param lyric - a copy of the lyric to remove. We use the verse, parser to identify it
116
- * @returns render promise
117
- */
118
- removeLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
119
- /**
120
- * @param selector where to add or update the lyric
121
- * @param lyric a copy of the lyric to remove
122
- * @returns
123
- */
124
- addOrUpdateLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
125
- /**
126
- * @param selector the selector of the note with the annotation to remove
127
- * @param annotation a copy of the annotation to remove. We use the verse, parser to identify it
128
- * @returns render promise
129
- */
130
- removeAnnotation(selector: SmoSelector, annotation: SmoLyric): Promise<void>;
131
- /**
132
- * @param selector where to add or update the annotation
133
- * @param annotation a copy of the annotation to add/update
134
- * @returns
135
- */
136
- addOrUpdateAnnotation(selector: SmoSelector, annotation: SmoLyric): Promise<void>;
137
- /**
138
- * Delete all the notes for the currently selected voice
139
- * @returns
140
- */
141
- depopulateVoice(): Promise<void>;
142
- /**
143
- * Change the active voice in a multi-voice measure.
144
- * @param index
145
- * @returns
146
- */
147
- _changeActiveVoice(index: number): SmoSelection[];
148
- /**
149
- * Populate a new voice with default notes
150
- * @param index the voice to populate
151
- * @returns
152
- */
153
- populateVoice(index: number): Promise<void>;
154
- swapVoices(voice1: number, voice2: number): Promise<void>;
155
- /**
156
- * Assign an instrument to a set of measures
157
- * @param instrument the instrument to assign to the selections
158
- * @param selections
159
- * @returns
160
- */
161
- changeInstrument(instrument: SmoInstrument, selections: SmoSelection[]): Promise<void>;
162
- /**
163
- * Set the time signature for a selection
164
- * @param timeSignature actual time signature
165
- */
166
- setTimeSignature(timeSignature: SmoTimeSignature): Promise<void>;
167
- /**
168
- * Move selected staff up or down in the score.
169
- * @param index direction to move
170
- * @returns
171
- */
172
- moveStaffUpDown(index: number): Promise<void>;
173
- /**
174
- * Update the staff group for a score, which determines how the staves
175
- * are justified and bracketed
176
- * @param staffGroup
177
- */
178
- addOrUpdateStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
179
- removeStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
180
- clearSystemGroups(): Promise<void>;
181
- updateTabStave(tabStave: SmoTabStave): Promise<void>;
182
- removeTabStave(): Promise<void>;
183
- /**
184
- * Update tempo for all or part of the score
185
- * @param measure the measure with the tempo. Tempo is measure-wide parameter
186
- * @param scoreMode if true, update whole score. Else selections
187
- * @returns
188
- */
189
- updateTempoScore(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
190
- updateTabNote(tabNote: SmoTabNote): Promise<void>;
191
- removeTabNote(): Promise<void>;
192
- /**
193
- * 'remove' tempo, which means either setting the bars to the
194
- * default tempo, or the previously-set tempo.
195
- * @param scoreMode whether to reset entire score
196
- */
197
- removeTempo(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
198
- /**
199
- * Add a grace note to the selected real notes.
200
- */
201
- addGraceNote(): Promise<void>;
202
- /**
203
- * remove selected grace note
204
- * @returns
205
- */
206
- removeGraceNote(): Promise<void>;
207
- /**
208
- * Toggle slash in stem of grace note
209
- */
210
- slashGraceNotes(): Promise<void>;
211
- transposeScore(offset: number): Promise<void>;
212
- /**
213
- * transpose selected notes
214
- * @param offset 1/2 steps
215
- * @returns
216
- */
217
- transposeSelections(offset: number): Promise<void>;
218
- /**
219
- * toggle the accidental spelling of the selected notes
220
- * @returns
221
- */
222
- toggleEnharmonic(): Promise<void>;
223
- /**
224
- * Toggle cautionary/courtesy accidentals
225
- */
226
- toggleCourtesyAccidentals(): Promise<void>;
227
- /**
228
- * change the duration of notes for selected, creating more
229
- * or fewer notes.
230
- * After the change, reset the selection so it's as close as possible
231
- * to the original length
232
- * @param operation
233
- * @returns
234
- */
235
- batchDurationOperation(operation: BatchSelectionOperation): Promise<void>;
236
- /**
237
- * Toggle selected modifier on selected notes
238
- * @param modifier
239
- * @param ctor parent class constructor (e.g. SmoOrnament)
240
- * @returns
241
- */
242
- toggleArticulation(modifier: string, ctor: string): Promise<void>;
243
- setArticulation(modifier: SmoArticulation, set: boolean): Promise<void>;
244
- setOrnament(modifier: SmoOrnament, set: boolean): Promise<void>;
245
- /**
246
- * convert non-tuplet not to a tuplet
247
- * @param params
248
- */
249
- makeTuplet(params: MakeTupletOperation): Promise<void>;
250
- /**
251
- * Convert selected tuplet to a single (if possible) non-tuplet
252
- */
253
- unmakeTuplet(): Promise<void>;
254
- /**
255
- * Create a chord by adding an interval to selected note
256
- * @param interval 1/2 steps
257
- * @returns
258
- */
259
- setInterval(interval: number): Promise<void>;
260
- /**
261
- * change the selected chord into a single note
262
- * @returns
263
- */
264
- collapseChord(): Promise<void>;
265
- /**
266
- * Toggle chicken-scratches, for jazz improv, comping etc.
267
- */
268
- toggleSlash(): Promise<void>;
269
- /**
270
- * make selected notes into a rest, or visa-versa
271
- * @returns
272
- */
273
- makeRest(): Promise<void>;
274
- clearAllBeams(): Promise<void>;
275
- clearSelectedBeams(): Promise<void>;
276
- /**
277
- * toggle the 'end beam' flag for selected notes
278
- * @returns
279
- */
280
- unbeamSelections(): Promise<void>;
281
- toggleCue(): Promise<void>;
282
- /**
283
- * up or down
284
- * @returns
285
- */
286
- toggleBeamDirection(): Promise<void>;
287
- /**
288
- * Add the selected notes to a beam group
289
- */
290
- beamSelections(): Promise<void>;
291
- /**
292
- * change key signature for selected measures
293
- * @param keySignature vex key signature
294
- */
295
- addKeySignature(keySignature: string): Promise<void>;
296
- /**
297
- * Sets a pitch from the piano widget.
298
- * @param pitch {Pitch}
299
- * @param chordPedal {boolean} - indicates we are adding to a chord
300
- */
301
- setPitchPiano(pitch: Pitch, chordPedal: boolean): Promise<void>;
302
- /**
303
- * show or hide the piano widget
304
- * @param value to show it
305
- */
306
- showPiano(value: boolean): Promise<void>;
307
- /**
308
- * Render a pitch for each letter name-pitch in the string,
309
- * @param pitches letter names for pitches
310
- * @returns promise, resolved when all pitches rendered
311
- * @see setPitch
312
- */
313
- setPitchesPromise(pitches: PitchLetter[]): Promise<any>;
314
- setPitches(pitches: Pitch[]): Promise<void>;
315
- /**
316
- * Add a pitch to the score at the cursor. This tries to find the best pitch
317
- * to match the letter key (F vs F# for instance) based on key and surrounding notes
318
- * @param letter string
319
- */
320
- setPitch(letter: PitchLetter): Promise<void>;
321
- /**
322
- * Generic clipboard copy action
323
- */
324
- copy(): Promise<void>;
325
- /**
326
- * clipboard paste action
327
- * @returns
328
- */
329
- paste(): Promise<void>;
330
- /**
331
- * Paste only the chords.
332
- */
333
- pasteChords(): Promise<void>;
334
- /**
335
- * specify a note head other than the default for the duration
336
- * @param head
337
- */
338
- setNoteHead(head: string): Promise<void>;
339
- /**
340
- * Add a volta for selected measures
341
- */
342
- addEnding(): Promise<void>;
343
- /**
344
- * @param ending volta settings
345
- * @returns
346
- */
347
- updateEnding(ending: SmoVolta): Promise<void>;
348
- /**
349
- *
350
- * @param ending volta to remove
351
- * @returns
352
- */
353
- removeEnding(ending: SmoVolta): Promise<void>;
354
- /**
355
- *
356
- * @param position begin or end
357
- * @param barline barline type
358
- * @returns
359
- */
360
- setBarline(position: number, barline: number, bracket: number): Promise<void>;
361
- /**
362
- *
363
- * @param position start or end
364
- * @param symbol coda, etc.
365
- */
366
- setRepeatSymbol(position: number, symbol: number): Promise<void>;
367
- /**
368
- * toggle rehearsal mark on first selected measure
369
- * @returns
370
- */
371
- toggleRehearsalMark(): Promise<void>;
372
- /**
373
- * Finds the measure whose rehearsal mark has the given id, as a selection on the live score.
374
- * Rehearsal marks are column-wide, so the first staff holding it identifies the measure.
375
- * See specs/025-rehearsal-mark-dialog.
376
- */
377
- _findRehearsalMarkSelection(id: string): SmoSelection | null;
378
- /**
379
- * Replaces an existing rehearsal mark's settings on its measure, on every staff and in the
380
- * undo-copy store. Does nothing if the mark is no longer present (e.g. removed while its dialog
381
- * was open). See specs/025-rehearsal-mark-dialog.
382
- * @param mark the edited rehearsal mark
383
- */
384
- updateRehearsalMark(mark: SmoRehearsalMark): Promise<void>;
385
- /**
386
- * Removes an existing rehearsal mark from its measure on every staff and in the undo-copy store.
387
- * Does nothing if the mark is no longer present. See specs/025-rehearsal-mark-dialog.
388
- * @param mark the rehearsal mark to remove
389
- */
390
- removeRehearsalMark(mark: SmoRehearsalMark): Promise<void>;
391
- _removeStaffModifier(modifier: StaffModifierBase): void;
392
- /**
393
- * Remove selected modifier
394
- * @param modifier slur, hairpin, etc.
395
- * @returns
396
- */
397
- removeStaffModifier(modifier: StaffModifierBase): Promise<void>;
398
- /**
399
- * Change a staff modifier
400
- * @param original original version
401
- * @param modifier modified version
402
- * @returns
403
- */
404
- addOrUpdateStaffModifier(original: StaffModifierBase, modifier: StaffModifierBase): Promise<void>;
405
- lineOperation(op: createStaffModifierType<StaffModifierBase>): void;
406
- /**
407
- * Add crescendo to selection
408
- */
409
- crescendo(): Promise<void>;
410
- /**
411
- * Add crescendo to selection
412
- */
413
- crescendoBracket(): Promise<void>;
414
- /**
415
- * Add crescendo to selection
416
- */
417
- dimenuendo(): Promise<void>;
418
- /**
419
- * Add crescendo to selection
420
- */
421
- accelerando(): Promise<void>;
422
- /**
423
- * Add crescendo to selection
424
- */
425
- ritard(): Promise<void>;
426
- /**
427
- * diminuendo hairpin
428
- * @returns
429
- */
430
- decrescendo(): Promise<void>;
431
- removeTextBracket(bracket: SmoStaffTextBracket): Promise<void>;
432
- addOrReplaceStaffModifier(callback: updateStaffModifierFunc, modifier: StaffModifierBase): Promise<void>;
433
- addOrReplaceTextBracket(modifier: SmoStaffTextBracket): Promise<void>;
434
- /**
435
- * Slur selected notes
436
- * @returns
437
- */
438
- addSlur(): Promise<void>;
439
- /**
440
- * tie selected notes
441
- * @returns
442
- */
443
- tie(): Promise<void>;
444
- updateZoom(zoomFactor: number): Promise<void>;
445
- /**
446
- * set global page for score, zoom etc.
447
- * @param layout global SVG settings
448
- * @param previousLayout the layout as it was immediately before this change. Callers must
449
- * pass a snapshot taken before `layout` was mutated -- `this.score.layoutManager`'s current
450
- * value cannot be used for this, because dialogs (e.g. globalLayout.ts) bind directly to that
451
- * live object, so by the time this method runs it may already equal `layout`.
452
- * @returns
453
- */
454
- setGlobalLayout(layout: SmoGlobalLayout, previousLayout: SmoGlobalLayout): Promise<void>;
455
- /**
456
- * Set the layout of a single page
457
- * @param layout page layout
458
- * @param pageIndex which page to change
459
- * @returns
460
- */
461
- setPageLayout(layout: SmoPageLayout, pageIndex: number): Promise<void>;
462
- setPageLayouts(layout: SmoPageLayout, startIndex: number, endIndex: number): Promise<void>;
463
- /**
464
- * Update the music font
465
- * @param family
466
- * @returns
467
- */
468
- setEngravingFontFamily(family: engravingFontType): Promise<void>;
469
- /**
470
- * Upate global font used for chord changes
471
- * @param fontInfo
472
- * @returns
473
- */
474
- setChordFont(fontInfo: FontInfo): Promise<void>;
475
- /**
476
- * Update font used for lyrics
477
- * @param fontInfo
478
- * @returns
479
- */
480
- setLyricFont(fontInfo: FontInfo): Promise<void>;
481
- /**
482
- * @param value if false, lyric widths don't affect measure width
483
- * @returns
484
- */
485
- setLyricAdjustWidth(value: boolean): Promise<void>;
486
- /**
487
- * delete selected measures
488
- * @returns
489
- */
490
- deleteMeasure(): Promise<void>;
491
- /**
492
- * add number of measures, with default notes selections
493
- * @param append
494
- * @param numberToAdd
495
- * @returns
496
- */
497
- addMeasures(append: boolean, numberToAdd: number): Promise<void>;
498
- /**
499
- * add a single measure before or after selection
500
- * @param append
501
- * @returns
502
- */
503
- addMeasure(append: boolean): Promise<void>;
504
- /**
505
- * remove an entire line of music
506
- * @returns
507
- */
508
- removeStaff(): Promise<void>;
509
- /**
510
- * Add a new staff to an existing score, with default instrument for the staff part.
511
- * We base the staff parameters on a stave that currently exists in the score.
512
- * @param instrument
513
- * @returns
514
- */
515
- addStaff(instrument: SmoSystemStaffParams): Promise<void>;
516
- /**
517
- * Update part info assumes that the part is currently exposed - that
518
- * staff 0 is the first staff in the part prior to editing.
519
- * @param info
520
- */
521
- updatePartInfo(info: SmoPartInfo): Promise<void>;
522
- /**
523
- * A simpler API for applications to add a new staff to the score.
524
- * @param params - the instrument, which determines clef, etc.
525
- * @returns
526
- */
527
- addStaffSimple(params: Partial<SmoInstrumentParams>): Promise<void>;
528
- /**
529
- * Save the score to local storage.
530
- */
531
- quickSave(): void;
532
- updateRepeatCount(count: number): Promise<any>;
533
- /**
534
- * Update the measure formatting parameters for the current selection
535
- * @param format generic measure formatting parameters
536
- * @returns
537
- */
538
- setMeasureFormat(format: SmoMeasureFormat): Promise<any>;
539
- /**
540
- * Remove system breaks from the measure formatting for selected measures
541
- * @returns
542
- */
543
- removeSystemBreaks(): Promise<any>;
544
- renumberMeasures(measureIndex: number, displayIndex: number): Promise<void>;
545
- /**
546
- * Play the music from the starting selection
547
- * @returns
548
- */
549
- playFromSelection(): Promise<void>;
550
- stopPlayer(): void;
551
- pausePlayer(): void;
552
- /**
553
- * Proxy calls to move the tracker parameters according to the
554
- * rules of the 'Home' key (depending on shift/ctrl/alt)
555
- * @param ev
556
- * @returns
557
- */
558
- moveHome(ev: KeyEvent): Promise<any>;
559
- /**
560
- * Proxy calls to move the tracker parameters according to the
561
- * rules of the 'End' key (depending on shift/ctrl/alt)
562
- * @param ev
563
- * @returns
564
- */
565
- moveEnd(ev: KeyEvent): Promise<any>;
566
- /**
567
- * Grow the current selection by one to the left, if possible
568
- * @param ev
569
- * @returns
570
- */
571
- growSelectionLeft(): Promise<any>;
572
- /**
573
- * Grow the current selection by one to the right, if possible
574
- * @param ev
575
- * @returns
576
- */
577
- growSelectionRight(): Promise<any>;
578
- /**
579
- * Select the next tabbable modifier near one of the selected notes
580
- * @param keyEv
581
- * @returns
582
- */
583
- advanceModifierSelection(keyEv: KeyEvent): Promise<any>;
584
- /**
585
- * Select the next entire measure, if possible
586
- * @returns
587
- */
588
- growSelectionRightMeasure(): Promise<any>;
589
- /**
590
- * Advance cursor forwards, if possible
591
- * @param ev
592
- * @returns
593
- */
594
- moveSelectionRight(): Promise<any>;
595
- /**
596
- * Advance cursor backwards, if possible
597
- * @param ev
598
- * @returns
599
- */
600
- moveSelectionLeft(): Promise<any>;
601
- /**
602
- * Advance cursor back entire measure, if possible
603
- * @returns
604
- */
605
- moveSelectionLeftMeasure(): Promise<any>;
606
- /**
607
- * Advance cursor forward one measure, if possible
608
- * @returns
609
- */
610
- moveSelectionRightMeasure(): Promise<any>;
611
- /**
612
- * Move cursor to a higher pitch in the current chord, with wrap
613
- * @returns
614
- */
615
- moveSelectionPitchUp(): Promise<any>;
616
- /**
617
- * Move cursor to a lower pitch in the current chord, with wrap
618
- */
619
- moveSelectionPitchDown(): Promise<any>;
620
- /**
621
- * Move cursor up a staff in the system, if possible
622
- * @returns
623
- */
624
- moveSelectionUp(): Promise<any>;
625
- /**
626
- * Move cursor down a staff in the system, if possible
627
- * @returns
628
- */
629
- moveSelectionDown(): Promise<any>;
630
- /**
631
- * Set the current suggestions (hover element) as the selection
632
- * @returns
633
- */
634
- selectSuggestion(evData: KeyEvent): Promise<any>;
635
- /**
636
- * Find an element at the given box, and make it the current selection
637
- * */
638
- intersectingArtifact(evData: SvgBox): Promise<any>;
639
- }
1
+ import { SuiScoreView, updateStaffModifierFunc } from './scoreView';
2
+ import { SmoScore, engravingFontType } from '../../smo/data/score';
3
+ import { SmoSystemStaffParams } from '../../smo/data/systemStaff';
4
+ import { SmoPartInfo } from '../../smo/data/partInfo';
5
+ import { SmoMeasure } from '../../smo/data/measure';
6
+ import { KeyEvent, SvgBox, Pitch, PitchLetter } from '../../smo/data/common';
7
+ import { SmoRenderConfiguration } from './configuration';
8
+ import { SmoSystemGroup, SmoPageLayout, SmoGlobalLayout, SmoAudioPlayerSettings, SmoScorePreferences, SmoScoreInfo } from '../../smo/data/scoreModifiers';
9
+ import { SmoTextGroup } from '../../smo/data/scoreText';
10
+ import { SmoDynamicText, SmoArticulation, SmoOrnament, SmoLyric, SmoArpeggioType, SmoClefChange, SmoTabNote } from '../../smo/data/noteModifiers';
11
+ import { SmoTempo, SmoVolta, SmoRehearsalMark, SmoMeasureFormat, SmoTimeSignature } from '../../smo/data/measureModifiers';
12
+ import { UndoBuffer } from '../../smo/xform/undo';
13
+ import { TimeSignatureApplyTo } from '../../smo/xform/rebar';
14
+ import { createStaffModifierType, MakeTupletOperation } from '../../smo/xform/operations';
15
+ import { BatchSelectionOperation, AddPartParams, DeleteAttributeKind } from '../../smo/xform/operations';
16
+ import { MeasureFillType } from '../../smo/xform/measureFill';
17
+ import { FontInfo } from '../../common/vex';
18
+ import { PasteAttributeOptions } from '../../smo/xform/copypaste';
19
+ import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
20
+ import { StaffModifierBase, SmoInstrument, SmoInstrumentParams, SmoStaffTextBracket, SmoTabStave } from '../../smo/data/staffModifiers';
21
+ import { AutosaveEntry } from './autosave';
22
+ /**
23
+ * How {@link SuiScoreViewOperations.setTimeSignature} chooses the measures and treats their music
24
+ * @category SuiRender
25
+ */
26
+ export interface SetTimeSignatureOptions {
27
+ /** which measures to change. Default is the selected measures */
28
+ applyTo?: TimeSignatureApplyTo;
29
+ /** re-bar the music into the new time signature, adding measures if needed. Otherwise the music that fits is kept. */
30
+ preserveMusic?: boolean;
31
+ }
32
+ /**
33
+ * MVVM-like operations on the displayed score.
34
+ *
35
+ * All operations that can be performed on a 'live' score go through this
36
+ * module. It maps the score view to the actual score and makes sure the
37
+ * model and view stay in sync.
38
+ *
39
+ * Because this object operates on the current selections,
40
+ * all operations return promise so applications can wait for the
41
+ * operation to complete and update the selection list.
42
+ * @category SuiRender
43
+ */
44
+ export declare class SuiScoreViewOperations extends SuiScoreView {
45
+ constructor(config: SmoRenderConfiguration, score: SmoScore, undoBuffer: UndoBuffer);
46
+ /**
47
+ * Add a new text group to the score
48
+ * @param textGroup a new text group
49
+ * @returns
50
+ */
51
+ addTextGroup(textGroup: SmoTextGroup): Promise<void>;
52
+ /**
53
+ * Remove the text group from the score
54
+ * @param textGroup
55
+ * @returns
56
+ */
57
+ removeTextGroup(textGroup: SmoTextGroup): Promise<void>;
58
+ /**
59
+ * UPdate an existing text group. The original is passed in, because since TG not tied to a musical
60
+ * element, we need to find the one we're updating.
61
+ * @param oldVersion
62
+ * @param newVersion
63
+ * @returns
64
+ */
65
+ updateTextGroup(newVersion: SmoTextGroup): Promise<void>;
66
+ /**
67
+ * load an mxml score remotely, return a promise that
68
+ * completes when the file is loaded
69
+ * @param url where to find the xml file
70
+ * @returns
71
+ */
72
+ loadRemoteXml(url: string): Promise<any>;
73
+ /**
74
+ * load a remote score in SMO format
75
+ * @param url url to find the score
76
+ * @returns
77
+ */
78
+ loadRemoteJson(url: string): Promise<any>;
79
+ /**
80
+ * Load a remote score, return promise when it's been loaded
81
+ * from afar.
82
+ * @param pref
83
+ * @returns
84
+ */
85
+ loadRemoteScore(url: string): Promise<any>;
86
+ updateAudioSettings(pref: SmoAudioPlayerSettings): Promise<void>;
87
+ /**
88
+ * Global settings that control how the score editor behaves
89
+ * @param pref
90
+ * @returns
91
+ */
92
+ updateScorePreferences(pref: SmoScorePreferences): Promise<void>;
93
+ /**
94
+ * Update information about the score, composer etc.
95
+ * @param scoreInfo
96
+ * @returns
97
+ */
98
+ updateScoreInfo(scoreInfo: SmoScoreInfo): Promise<void>;
99
+ addRemoveArpeggio(code: SmoArpeggioType): Promise<void>;
100
+ /**
101
+ * A clef change mid-measure (clefNote)
102
+ * @param clef
103
+ */
104
+ addRemoveClefChange(clef: SmoClefChange): Promise<void>;
105
+ /**
106
+ * Modify the dynamics assoicated with the specific selection
107
+ * @param selection
108
+ * @param dynamic
109
+ * @returns
110
+ */
111
+ addDynamic(selection: SmoSelection, dynamic: SmoDynamicText): Promise<void>;
112
+ /**
113
+ * Remove dynamics from the current selection
114
+ * @param dynamic
115
+ * @returns
116
+ */
117
+ removeDynamic(dynamic: SmoDynamicText): Promise<void>;
118
+ /**
119
+ * we never really delete a note, but we will convert it into a rest and if it's
120
+ * already a rest we will try to hide it.
121
+ * Operates on current selections
122
+ * */
123
+ deleteNote(): Promise<void>;
124
+ /**
125
+ * The lyric editor moves around, so we can't depend on the tracker for the
126
+ * correct selection. We get it directly from the editor.
127
+ *
128
+ * @param selector - the selector of the note with the lyric to remove
129
+ * @param lyric - a copy of the lyric to remove. We use the verse, parser to identify it
130
+ * @returns render promise
131
+ */
132
+ removeLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
133
+ /**
134
+ * @param selector where to add or update the lyric
135
+ * @param lyric a copy of the lyric to remove
136
+ * @returns
137
+ */
138
+ addOrUpdateLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
139
+ /**
140
+ * @param selector the selector of the note with the annotation to remove
141
+ * @param annotation a copy of the annotation to remove. We use the verse, parser to identify it
142
+ * @returns render promise
143
+ */
144
+ removeAnnotation(selector: SmoSelector, annotation: SmoLyric): Promise<void>;
145
+ /**
146
+ * @param selector where to add or update the annotation
147
+ * @param annotation a copy of the annotation to add/update
148
+ * @returns
149
+ */
150
+ addOrUpdateAnnotation(selector: SmoSelector, annotation: SmoLyric): Promise<void>;
151
+ /**
152
+ * Delete all the notes for the currently selected voice
153
+ * @returns
154
+ */
155
+ depopulateVoice(): Promise<void>;
156
+ /**
157
+ * Change the active voice in a multi-voice measure.
158
+ * @param index
159
+ * @returns
160
+ */
161
+ _changeActiveVoice(index: number): SmoSelection[];
162
+ /**
163
+ * Populate a new voice with default notes
164
+ * @param index the voice to populate
165
+ * @returns
166
+ */
167
+ populateVoice(index: number): Promise<void>;
168
+ swapVoices(voice1: number, voice2: number): Promise<void>;
169
+ /**
170
+ * Assign an instrument to a set of measures
171
+ * @param instrument the instrument to assign to the selections
172
+ * @param selections
173
+ * @returns
174
+ */
175
+ changeInstrument(instrument: SmoInstrument, selections: SmoSelection[]): Promise<void>;
176
+ /**
177
+ * Set the time signature, in every staff. With no options, it is set on the selected measures and the music
178
+ * that fits in the new length is kept. With options, the measures are chosen by `applyTo`, and with
179
+ * `preserveMusic` the music of those measures is re-barred into the new time signature, adding measures if
180
+ * the new one holds less time, so that no music is lost. Nothing happens, and no undo step is made, if the
181
+ * measures already have this time signature. It is one undo step.
182
+ * @param timeSignature actual time signature
183
+ * @param options which measures, and whether to preserve the music
184
+ */
185
+ setTimeSignature(timeSignature: SmoTimeSignature, options?: SetTimeSignatureOptions): Promise<void>;
186
+ private _setTimeSignatureInRange;
187
+ /**
188
+ * Move selected staff up or down in the score.
189
+ * @param index direction to move
190
+ * @returns
191
+ */
192
+ moveStaffUpDown(index: number): Promise<void>;
193
+ /**
194
+ * Update the staff group for a score, which determines how the staves
195
+ * are justified and bracketed
196
+ * @param staffGroup
197
+ */
198
+ addOrUpdateStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
199
+ removeStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
200
+ clearSystemGroups(): Promise<void>;
201
+ updateTabStave(tabStave: SmoTabStave): Promise<void>;
202
+ removeTabStave(): Promise<void>;
203
+ /**
204
+ * Update tempo for all or part of the score
205
+ * @param measure the measure with the tempo. Tempo is measure-wide parameter
206
+ * @param scoreMode if true, update whole score. Else selections
207
+ * @returns
208
+ */
209
+ updateTempoScore(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
210
+ updateTabNote(tabNote: SmoTabNote): Promise<void>;
211
+ removeTabNote(): Promise<void>;
212
+ /**
213
+ * 'remove' tempo, which means either setting the bars to the
214
+ * default tempo, or the previously-set tempo.
215
+ * @param scoreMode whether to reset entire score
216
+ */
217
+ removeTempo(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
218
+ /**
219
+ * Add a grace note to the selected real notes.
220
+ */
221
+ addGraceNote(): Promise<void>;
222
+ /**
223
+ * remove selected grace note
224
+ * @returns
225
+ */
226
+ removeGraceNote(): Promise<void>;
227
+ /**
228
+ * Toggle slash in stem of grace note
229
+ */
230
+ slashGraceNotes(): Promise<void>;
231
+ transposeScore(offset: number): Promise<void>;
232
+ /**
233
+ * transpose selected notes
234
+ * @param offset 1/2 steps
235
+ * @returns
236
+ */
237
+ transposeSelections(offset: number): Promise<void>;
238
+ /**
239
+ * toggle the accidental spelling of the selected notes
240
+ * @returns
241
+ */
242
+ toggleEnharmonic(): Promise<void>;
243
+ /**
244
+ * Toggle cautionary/courtesy accidentals
245
+ */
246
+ toggleCourtesyAccidentals(): Promise<void>;
247
+ /**
248
+ * change the duration of notes for selected, creating more
249
+ * or fewer notes.
250
+ * After the change, reset the selection so it's as close as possible
251
+ * to the original length
252
+ * @param operation
253
+ * @returns
254
+ */
255
+ batchDurationOperation(operation: BatchSelectionOperation): Promise<void>;
256
+ /**
257
+ * Toggle selected modifier on selected notes
258
+ * @param modifier
259
+ * @param ctor parent class constructor (e.g. SmoOrnament)
260
+ * @returns
261
+ */
262
+ toggleArticulation(modifier: string, ctor: string): Promise<void>;
263
+ setArticulation(modifier: SmoArticulation, set: boolean): Promise<void>;
264
+ setOrnament(modifier: SmoOrnament, set: boolean): Promise<void>;
265
+ /**
266
+ * convert non-tuplet not to a tuplet
267
+ * @param params
268
+ */
269
+ makeTuplet(params: MakeTupletOperation): Promise<void>;
270
+ /**
271
+ * Convert selected tuplet to a single (if possible) non-tuplet
272
+ */
273
+ unmakeTuplet(): Promise<void>;
274
+ /**
275
+ * Create a chord by adding an interval to selected note
276
+ * @param interval 1/2 steps
277
+ * @returns
278
+ */
279
+ setInterval(interval: number): Promise<void>;
280
+ /**
281
+ * change the selected chord into a single note
282
+ * @returns
283
+ */
284
+ collapseChord(): Promise<void>;
285
+ /**
286
+ * Toggle chicken-scratches, for jazz improv, comping etc.
287
+ */
288
+ toggleSlash(): Promise<void>;
289
+ /**
290
+ * make selected notes into a rest, or visa-versa
291
+ * @returns
292
+ */
293
+ makeRest(): Promise<void>;
294
+ clearAllBeams(): Promise<void>;
295
+ /**
296
+ * Set the beam grouping of measures, for compound or irregular meters such as 3 + 2 in 5/8.
297
+ * An empty grouping goes back to the default for the meter. This replaces any hand-placed beams
298
+ * in those measures.
299
+ * @param groups the longest beam group for each group in turn, whole numbers from 1 to 4
300
+ * @param scope the measures of the selected notes, or every measure in the score
301
+ */
302
+ setBeamGroups(groups: number[], scope: 'selections' | 'all'): Promise<void>;
303
+ /**
304
+ * Fill the selected measures with rests. This removes all the notes and voices in them, and anything
305
+ * attached to those notes, such as slurs and text. It is one undo step.
306
+ * @param fill which rests: the largest that fit, a rest for each beat, or eighth rests
307
+ */
308
+ fillMeasures(fill: MeasureFillType): Promise<void>;
309
+ clearSelectedBeams(): Promise<void>;
310
+ /**
311
+ * toggle the 'end beam' flag for selected notes
312
+ * @returns
313
+ */
314
+ unbeamSelections(): Promise<void>;
315
+ /**
316
+ * Put the selected notes back to automatic beaming, removing any hand-placed beam breaks and joins
317
+ */
318
+ autoBeamSelections(): Promise<void>;
319
+ /**
320
+ * Set the stem direction of the selected notes
321
+ * @param flagState one of SmoNote.flagStates: auto, up or down
322
+ */
323
+ setStemDirection(flagState: number): Promise<void>;
324
+ toggleCue(): Promise<void>;
325
+ /**
326
+ * up or down
327
+ * @returns
328
+ */
329
+ toggleBeamDirection(): Promise<void>;
330
+ /**
331
+ * Add the selected notes to a beam group
332
+ */
333
+ beamSelections(): Promise<void>;
334
+ /**
335
+ * change key signature for selected measures
336
+ * @param keySignature vex key signature
337
+ */
338
+ addKeySignature(keySignature: string): Promise<void>;
339
+ /**
340
+ * Sets a pitch from the piano widget.
341
+ * @param pitch {Pitch}
342
+ * @param chordPedal {boolean} - indicates we are adding to a chord
343
+ */
344
+ setPitchPiano(pitch: Pitch, chordPedal: boolean): Promise<void>;
345
+ /**
346
+ * show or hide the piano widget
347
+ * @param value to show it
348
+ */
349
+ showPiano(value: boolean): Promise<void>;
350
+ /**
351
+ * Render a pitch for each letter name-pitch in the string,
352
+ * @param pitches letter names for pitches
353
+ * @returns promise, resolved when all pitches rendered
354
+ * @see setPitch
355
+ */
356
+ setPitchesPromise(pitches: PitchLetter[]): Promise<any>;
357
+ setPitches(pitches: Pitch[]): Promise<void>;
358
+ /**
359
+ * Add a pitch to the score at the cursor. This tries to find the best pitch
360
+ * to match the letter key (F vs F# for instance) based on key and surrounding notes
361
+ * @param letter string
362
+ */
363
+ setPitch(letter: PitchLetter): Promise<void>;
364
+ /**
365
+ * Generic clipboard copy action
366
+ */
367
+ copy(): Promise<void>;
368
+ /**
369
+ * The voices that Select Voice can offer for the current selection: empty unless some selected
370
+ * measure has more than one voice.
371
+ */
372
+ getSelectVoiceChoices(): number[];
373
+ /**
374
+ * Select all the notes of a voice in the measures that currently have a selection. Only the
375
+ * selection changes: no edit is made and no undo is recorded.
376
+ * @param voice the voice to select (0-3)
377
+ */
378
+ selectVoice(voice: number): Promise<void>;
379
+ /**
380
+ * The most voices any of the selected measures has, for the Copy Voices menu
381
+ */
382
+ getSelectionVoiceCount(): number;
383
+ /**
384
+ * Where a voice paste would go, in the full score: the selected staff and measure, and the
385
+ * measures from there that the copied voices cover (adding up measure lengths until the copy fits,
386
+ * but not past the last measure). Null if nothing is selected or no voices are copied.
387
+ */
388
+ private _getVoicePasteRange;
389
+ /**
390
+ * The number of voices at the paste destination, for the Paste Voice menu: the most voices in
391
+ * any measure the paste would cover, on the staves it would cover. A voice number at or above
392
+ * this count is empty everywhere in the destination.
393
+ */
394
+ getDestinationVoiceCount(): number;
395
+ /**
396
+ * Copy a voice, or all the voices, of the selected measures. The copy always covers whole
397
+ * measures, from the start of the first selected measure to the end of the last.
398
+ * @param voice the voice to copy (0-3), or 'all'
399
+ */
400
+ copyVoices(voice: number | 'all'): Promise<void>;
401
+ /**
402
+ * Paste the voices copied with copyVoices, starting at the beginning of the first selected
403
+ * measure. A voice that doesn't exist in a measure is created there first.
404
+ * @param voice the voice to paste into (0-3) for a single copied voice; 'new' to paste a single
405
+ * copied voice into a new voice after the existing ones; or 'all' to paste every copied voice
406
+ * into the voice with the same number
407
+ */
408
+ pasteVoices(voice: number | 'all' | 'new'): Promise<void>;
409
+ /**
410
+ * clipboard paste action
411
+ * @returns
412
+ */
413
+ paste(): Promise<void>;
414
+ /**
415
+ * @returns true if notes have been copied, so there is something to paste
416
+ */
417
+ hasCopiedNotes(): boolean;
418
+ /**
419
+ * Paste only some kinds of marking (dynamics, lyrics, annotations, chords, articulations, ornaments)
420
+ * from the copied notes onto the notes at the current selection. The notes themselves are not changed.
421
+ * @param options the kinds to paste, and whether they replace or are added to the destination's markings
422
+ */
423
+ pasteAttributes(options: PasteAttributeOptions): Promise<void>;
424
+ /**
425
+ * Remove the chosen kinds of marking (dynamics, lyrics, annotations, chords, articulations, ornaments,
426
+ * grace notes, arpeggios, microtones) from the selected notes. The notes themselves are not changed.
427
+ * It is one undo step. Nothing happens, and no undo step is made, if no kind is chosen or the selected
428
+ * notes have none of them.
429
+ * @param kinds the kinds of marking to remove
430
+ */
431
+ deleteNoteAttributes(kinds: DeleteAttributeKind[]): Promise<void>;
432
+ /**
433
+ * specify a note head other than the default for the duration
434
+ * @param head
435
+ */
436
+ setNoteHead(head: string): Promise<void>;
437
+ /**
438
+ * Add a volta for selected measures
439
+ */
440
+ addEnding(): Promise<void>;
441
+ /**
442
+ * @param ending volta settings
443
+ * @returns
444
+ */
445
+ updateEnding(ending: SmoVolta): Promise<void>;
446
+ /**
447
+ *
448
+ * @param ending volta to remove
449
+ * @returns
450
+ */
451
+ removeEnding(ending: SmoVolta): Promise<void>;
452
+ /**
453
+ *
454
+ * @param position begin or end
455
+ * @param barline barline type
456
+ * @returns
457
+ */
458
+ setBarline(position: number, barline: number, bracket: number): Promise<void>;
459
+ /**
460
+ *
461
+ * @param position start or end
462
+ * @param symbol coda, etc.
463
+ */
464
+ setRepeatSymbol(position: number, symbol: number): Promise<void>;
465
+ /**
466
+ * toggle rehearsal mark on first selected measure
467
+ * @returns
468
+ */
469
+ toggleRehearsalMark(): Promise<void>;
470
+ /**
471
+ * Finds the measure whose rehearsal mark has the given id, as a selection on the live score.
472
+ * Rehearsal marks are column-wide, so the first staff holding it identifies the measure.
473
+ * See specs/025-rehearsal-mark-dialog.
474
+ */
475
+ _findRehearsalMarkSelection(id: string): SmoSelection | null;
476
+ /**
477
+ * Replaces an existing rehearsal mark's settings on its measure, on every staff and in the
478
+ * undo-copy store. Does nothing if the mark is no longer present (e.g. removed while its dialog
479
+ * was open). See specs/025-rehearsal-mark-dialog.
480
+ * @param mark the edited rehearsal mark
481
+ */
482
+ updateRehearsalMark(mark: SmoRehearsalMark): Promise<void>;
483
+ /**
484
+ * Removes an existing rehearsal mark from its measure on every staff and in the undo-copy store.
485
+ * Does nothing if the mark is no longer present. See specs/025-rehearsal-mark-dialog.
486
+ * @param mark the rehearsal mark to remove
487
+ */
488
+ removeRehearsalMark(mark: SmoRehearsalMark): Promise<void>;
489
+ _removeStaffModifier(modifier: StaffModifierBase): void;
490
+ /**
491
+ * Remove selected modifier
492
+ * @param modifier slur, hairpin, etc.
493
+ * @returns
494
+ */
495
+ removeStaffModifier(modifier: StaffModifierBase): Promise<void>;
496
+ /**
497
+ * Change a staff modifier
498
+ * @param original original version
499
+ * @param modifier modified version
500
+ * @returns
501
+ */
502
+ addOrUpdateStaffModifier(original: StaffModifierBase, modifier: StaffModifierBase): Promise<void>;
503
+ lineOperation(op: createStaffModifierType<StaffModifierBase>): void;
504
+ /**
505
+ * Add crescendo to selection
506
+ */
507
+ crescendo(): Promise<void>;
508
+ /**
509
+ * Add crescendo to selection
510
+ */
511
+ crescendoBracket(): Promise<void>;
512
+ /**
513
+ * Add crescendo to selection
514
+ */
515
+ dimenuendo(): Promise<void>;
516
+ /**
517
+ * Add crescendo to selection
518
+ */
519
+ accelerando(): Promise<void>;
520
+ /**
521
+ * Add crescendo to selection
522
+ */
523
+ ritard(): Promise<void>;
524
+ /**
525
+ * diminuendo hairpin
526
+ * @returns
527
+ */
528
+ decrescendo(): Promise<void>;
529
+ removeTextBracket(bracket: SmoStaffTextBracket): Promise<void>;
530
+ addOrReplaceStaffModifier(callback: updateStaffModifierFunc, modifier: StaffModifierBase): Promise<void>;
531
+ addOrReplaceTextBracket(modifier: SmoStaffTextBracket): Promise<void>;
532
+ /**
533
+ * Slur selected notes
534
+ * @returns
535
+ */
536
+ addSlur(): Promise<void>;
537
+ /**
538
+ * tie selected notes
539
+ * @returns
540
+ */
541
+ tie(): Promise<void>;
542
+ updateZoom(zoomFactor: number): Promise<void>;
543
+ /**
544
+ * Keep text groups in the same visual position when a layout changes: rescale by the
545
+ * svg scale ratio, and by the page width/height ratios. Groups are de-duplicated by
546
+ * identity, since a part's staves (and the view and store copies, after a part update)
547
+ * can share the same text group objects, and scaling one twice would double-apply it.
548
+ * @param textGroups groups to adjust
549
+ * @param previousLayout layout before the change
550
+ * @param layout layout after the change
551
+ */
552
+ static repositionTextGroups(textGroups: SmoTextGroup[], previousLayout: SmoGlobalLayout, layout: SmoGlobalLayout): void;
553
+ /**
554
+ * set global page for score, zoom etc.
555
+ * @param layout global SVG settings
556
+ * @param previousLayout the layout as it was immediately before this change. Callers must
557
+ * pass a snapshot taken before `layout` was mutated -- `this.score.layoutManager`'s current
558
+ * value cannot be used for this, because dialogs (e.g. globalLayout.ts) bind directly to that
559
+ * live object, so by the time this method runs it may already equal `layout`.
560
+ * @returns
561
+ */
562
+ setGlobalLayout(layout: SmoGlobalLayout, previousLayout: SmoGlobalLayout): Promise<void>;
563
+ /**
564
+ * Set the layout of a single page
565
+ * @param layout page layout
566
+ * @param pageIndex which page to change
567
+ * @returns
568
+ */
569
+ setPageLayout(layout: SmoPageLayout, pageIndex: number): Promise<void>;
570
+ setPageLayouts(layout: SmoPageLayout, startIndex: number, endIndex: number): Promise<void>;
571
+ /**
572
+ * Update the music font
573
+ * @param family
574
+ * @returns
575
+ */
576
+ setEngravingFontFamily(family: engravingFontType): Promise<void>;
577
+ /**
578
+ * Upate global font used for chord changes
579
+ * @param fontInfo
580
+ * @returns
581
+ */
582
+ setChordFont(fontInfo: FontInfo): Promise<void>;
583
+ /**
584
+ * Update font used for lyrics
585
+ * @param fontInfo
586
+ * @returns
587
+ */
588
+ setLyricFont(fontInfo: FontInfo): Promise<void>;
589
+ /**
590
+ * @param value if false, lyric widths don't affect measure width
591
+ * @returns
592
+ */
593
+ setLyricAdjustWidth(value: boolean): Promise<void>;
594
+ /**
595
+ * delete selected measures
596
+ * @returns
597
+ */
598
+ deleteMeasure(): Promise<void>;
599
+ /**
600
+ * add number of measures, with default notes selections
601
+ * @param append
602
+ * @param numberToAdd
603
+ * @returns
604
+ */
605
+ addMeasures(append: boolean, numberToAdd: number): Promise<void>;
606
+ /**
607
+ * add a single measure before or after selection
608
+ * @param append
609
+ * @returns
610
+ */
611
+ addMeasure(append: boolean): Promise<void>;
612
+ /**
613
+ * remove an entire line of music
614
+ * @returns
615
+ */
616
+ removeStaff(): Promise<void>;
617
+ /**
618
+ * Add a new staff to an existing score, with default instrument for the staff part.
619
+ * We base the staff parameters on a stave that currently exists in the score.
620
+ * @param instrument
621
+ * @returns
622
+ */
623
+ addStaff(instrument: SmoSystemStaffParams): Promise<void>;
624
+ /**
625
+ * Create a part, with one or two staves, at the requested place in the score. It is one undo step.
626
+ * See {@link SmoOperation.addPart}.
627
+ * @param params where the part goes, its instrument, name and abbreviation
628
+ */
629
+ createPart(params: AddPartParams): Promise<void>;
630
+ /**
631
+ * Update part info assumes that the part is currently exposed - that
632
+ * staff 0 is the first staff in the part prior to editing.
633
+ * @param info
634
+ */
635
+ updatePartInfo(info: SmoPartInfo): Promise<void>;
636
+ /**
637
+ * A simpler API for applications to add a new staff to the score.
638
+ * @param params - the instrument, which determines clef, etc.
639
+ * @returns
640
+ */
641
+ addStaffSimple(params: Partial<SmoInstrumentParams>): Promise<void>;
642
+ /**
643
+ * The autosaved snapshots, newest first, for the Recovery dialog.
644
+ * @returns each snapshot, with `available` false if its stored text is missing or damaged
645
+ */
646
+ listSnapshots(): (AutosaveEntry & {
647
+ available: boolean;
648
+ })[];
649
+ /**
650
+ * Replace the open score with an autosaved snapshot. The snapshot is kept, and the recovered
651
+ * score counts as having unsaved changes. The caller asks about unsaved changes in the open
652
+ * score first.
653
+ * @param id the snapshot's id, from listSnapshots
654
+ * @throws Error with a message for the user; the open score is left as it was
655
+ */
656
+ recoverSnapshot(id: number): Promise<void>;
657
+ /**
658
+ * Save the score to local storage.
659
+ */
660
+ quickSave(): void;
661
+ /**
662
+ * Called when the user has saved the score to a file. Only a save in the full Smoosic
663
+ * format counts: other formats (MusicXML, MIDI...) lose information, so the score still
664
+ * has unsaved changes. The save dialog doesn't know which formats are lossy; we do.
665
+ * @param extension the extension of the file that was saved, e.g. '.json'
666
+ * @returns true if the score is now considered saved
667
+ */
668
+ recordSave(extension: string): boolean;
669
+ updateRepeatCount(count: number): Promise<any>;
670
+ /**
671
+ * Update the measure formatting parameters for the current selection
672
+ * @param format generic measure formatting parameters
673
+ * @returns
674
+ */
675
+ setMeasureFormat(format: SmoMeasureFormat): Promise<any>;
676
+ /**
677
+ * Remove system breaks from the measure formatting for selected measures
678
+ * @returns
679
+ */
680
+ removeSystemBreaks(): Promise<any>;
681
+ renumberMeasures(measureIndex: number, displayIndex: number): Promise<void>;
682
+ /**
683
+ * Play the music from the starting selection
684
+ * @returns
685
+ */
686
+ playFromSelection(): Promise<void>;
687
+ stopPlayer(): void;
688
+ pausePlayer(): void;
689
+ /**
690
+ * Proxy calls to move the tracker parameters according to the
691
+ * rules of the 'Home' key (depending on shift/ctrl/alt)
692
+ * @param ev
693
+ * @returns
694
+ */
695
+ moveHome(ev: KeyEvent): Promise<any>;
696
+ /**
697
+ * Proxy calls to move the tracker parameters according to the
698
+ * rules of the 'End' key (depending on shift/ctrl/alt)
699
+ * @param ev
700
+ * @returns
701
+ */
702
+ moveEnd(ev: KeyEvent): Promise<any>;
703
+ /**
704
+ * Grow the current selection by one to the left, if possible
705
+ * @param ev
706
+ * @returns
707
+ */
708
+ growSelectionLeft(): Promise<any>;
709
+ /**
710
+ * Grow the current selection by one to the right, if possible
711
+ * @param ev
712
+ * @returns
713
+ */
714
+ growSelectionRight(): Promise<any>;
715
+ /**
716
+ * Select the next tabbable modifier near one of the selected notes
717
+ * @param keyEv
718
+ * @returns
719
+ */
720
+ advanceModifierSelection(keyEv: KeyEvent): Promise<any>;
721
+ /**
722
+ * Select the next entire measure, if possible
723
+ * @returns
724
+ */
725
+ growSelectionRightMeasure(): Promise<any>;
726
+ /**
727
+ * Advance cursor forwards, if possible
728
+ * @param ev
729
+ * @returns
730
+ */
731
+ moveSelectionRight(): Promise<any>;
732
+ /**
733
+ * Advance cursor backwards, if possible
734
+ * @param ev
735
+ * @returns
736
+ */
737
+ moveSelectionLeft(): Promise<any>;
738
+ /**
739
+ * Advance cursor back entire measure, if possible
740
+ * @returns
741
+ */
742
+ moveSelectionLeftMeasure(): Promise<any>;
743
+ /**
744
+ * Advance cursor forward one measure, if possible
745
+ * @returns
746
+ */
747
+ moveSelectionRightMeasure(): Promise<any>;
748
+ /**
749
+ * Move cursor to a higher pitch in the current chord, with wrap
750
+ * @returns
751
+ */
752
+ moveSelectionPitchUp(): Promise<any>;
753
+ /**
754
+ * Move cursor to a lower pitch in the current chord, with wrap
755
+ */
756
+ moveSelectionPitchDown(): Promise<any>;
757
+ /**
758
+ * Move cursor up a staff in the system, if possible
759
+ * @returns
760
+ */
761
+ moveSelectionUp(): Promise<any>;
762
+ /**
763
+ * Move cursor down a staff in the system, if possible
764
+ * @returns
765
+ */
766
+ moveSelectionDown(): Promise<any>;
767
+ /**
768
+ * Set the current suggestions (hover element) as the selection
769
+ * @returns
770
+ */
771
+ selectSuggestion(evData: KeyEvent): Promise<any>;
772
+ /**
773
+ * Find an element at the given box, and make it the current selection
774
+ * */
775
+ intersectingArtifact(evData: SvgBox): Promise<any>;
776
+ }