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.
- package/build/smoosic.js +408 -69
- package/changes.md +95 -0
- package/package.json +19 -1
- package/release/smoosic.js +408 -69
- package/specs/032-split-multimeasure-rests/checklists/requirements.md +40 -0
- package/specs/032-split-multimeasure-rests/contracts/grouping-contract.md +53 -0
- package/specs/032-split-multimeasure-rests/data-model.md +70 -0
- package/specs/032-split-multimeasure-rests/plan.md +81 -0
- package/specs/032-split-multimeasure-rests/quickstart.md +46 -0
- package/specs/032-split-multimeasure-rests/research.md +63 -0
- package/specs/032-split-multimeasure-rests/spec.md +127 -0
- package/specs/032-split-multimeasure-rests/tasks.md +174 -0
- package/specs/033-key-distance-transposition/checklists/requirements.md +35 -0
- package/specs/033-key-distance-transposition/contracts/spelling-api.md +36 -0
- package/specs/033-key-distance-transposition/data-model.md +49 -0
- package/specs/033-key-distance-transposition/plan.md +87 -0
- package/specs/033-key-distance-transposition/quickstart.md +40 -0
- package/specs/033-key-distance-transposition/research.md +82 -0
- package/specs/033-key-distance-transposition/spec.md +132 -0
- package/specs/033-key-distance-transposition/tasks.md +139 -0
- package/specs/034-smz-compressed-scores/checklists/requirements.md +35 -0
- package/specs/034-smz-compressed-scores/contracts/archive-api.md +30 -0
- package/specs/034-smz-compressed-scores/data-model.md +48 -0
- package/specs/034-smz-compressed-scores/plan.md +89 -0
- package/specs/034-smz-compressed-scores/quickstart.md +44 -0
- package/specs/034-smz-compressed-scores/research.md +86 -0
- package/specs/034-smz-compressed-scores/spec.md +137 -0
- package/specs/034-smz-compressed-scores/tasks.md +148 -0
- package/specs/035-paste-special/checklists/requirements.md +35 -0
- package/specs/035-paste-special/contracts/paste-special-api.md +50 -0
- package/specs/035-paste-special/data-model.md +47 -0
- package/specs/035-paste-special/plan.md +83 -0
- package/specs/035-paste-special/quickstart.md +51 -0
- package/specs/035-paste-special/research.md +97 -0
- package/specs/035-paste-special/spec.md +170 -0
- package/specs/035-paste-special/tasks.md +149 -0
- package/specs/036-autosave-recovery/checklists/requirements.md +36 -0
- package/specs/036-autosave-recovery/contracts/autosave-api.md +111 -0
- package/specs/036-autosave-recovery/data-model.md +70 -0
- package/specs/036-autosave-recovery/plan.md +87 -0
- package/specs/036-autosave-recovery/quickstart.md +65 -0
- package/specs/036-autosave-recovery/research.md +105 -0
- package/specs/036-autosave-recovery/spec.md +143 -0
- package/specs/036-autosave-recovery/tasks.md +165 -0
- package/specs/037-fix-new-part-dialog/checklists/requirements.md +38 -0
- package/specs/037-fix-new-part-dialog/contracts/create-part-api.md +84 -0
- package/specs/037-fix-new-part-dialog/data-model.md +68 -0
- package/specs/037-fix-new-part-dialog/plan.md +83 -0
- package/specs/037-fix-new-part-dialog/quickstart.md +58 -0
- package/specs/037-fix-new-part-dialog/research.md +86 -0
- package/specs/037-fix-new-part-dialog/spec.md +144 -0
- package/specs/037-fix-new-part-dialog/tasks.md +174 -0
- package/specs/038-per-measure-beam-groups/checklists/requirements.md +36 -0
- package/specs/038-per-measure-beam-groups/contracts/beam-groups-api.md +74 -0
- package/specs/038-per-measure-beam-groups/data-model.md +75 -0
- package/specs/038-per-measure-beam-groups/plan.md +84 -0
- package/specs/038-per-measure-beam-groups/quickstart.md +53 -0
- package/specs/038-per-measure-beam-groups/research.md +72 -0
- package/specs/038-per-measure-beam-groups/spec.md +146 -0
- package/specs/038-per-measure-beam-groups/tasks.md +132 -0
- package/specs/039-measure-fill-submenu/checklists/requirements.md +35 -0
- package/specs/039-measure-fill-submenu/contracts/measure-fill-api.md +56 -0
- package/specs/039-measure-fill-submenu/data-model.md +79 -0
- package/specs/039-measure-fill-submenu/plan.md +81 -0
- package/specs/039-measure-fill-submenu/quickstart.md +62 -0
- package/specs/039-measure-fill-submenu/research.md +68 -0
- package/specs/039-measure-fill-submenu/spec.md +153 -0
- package/specs/039-measure-fill-submenu/tasks.md +121 -0
- package/specs/040-dynamics-dialog-cleanup/checklists/requirements.md +36 -0
- package/specs/040-dynamics-dialog-cleanup/contracts/dynamics-dialog.md +52 -0
- package/specs/040-dynamics-dialog-cleanup/data-model.md +48 -0
- package/specs/040-dynamics-dialog-cleanup/plan.md +89 -0
- package/specs/040-dynamics-dialog-cleanup/quickstart.md +69 -0
- package/specs/040-dynamics-dialog-cleanup/research.md +80 -0
- package/specs/040-dynamics-dialog-cleanup/spec.md +120 -0
- package/specs/040-dynamics-dialog-cleanup/tasks.md +114 -0
- package/specs/041-delete-special/checklists/requirements.md +35 -0
- package/specs/041-delete-special/contracts/delete-special-api.md +41 -0
- package/specs/041-delete-special/data-model.md +40 -0
- package/specs/041-delete-special/plan.md +93 -0
- package/specs/041-delete-special/quickstart.md +41 -0
- package/specs/041-delete-special/research.md +75 -0
- package/specs/041-delete-special/spec.md +136 -0
- package/specs/041-delete-special/tasks.md +106 -0
- package/specs/042-preserve-music-time-signature/checklists/requirements.md +35 -0
- package/specs/042-preserve-music-time-signature/contracts/rebar-api.md +66 -0
- package/specs/042-preserve-music-time-signature/data-model.md +73 -0
- package/specs/042-preserve-music-time-signature/plan.md +93 -0
- package/specs/042-preserve-music-time-signature/quickstart.md +37 -0
- package/specs/042-preserve-music-time-signature/research.md +102 -0
- package/specs/042-preserve-music-time-signature/spec.md +153 -0
- package/specs/042-preserve-music-time-signature/tasks.md +104 -0
- package/src/application/application.ts +13 -2
- package/src/application/exports.ts +402 -395
- package/src/application/generateVexTests.ts +2 -2
- package/src/render/sui/NoteEntryCaret.ts +117 -16
- package/src/render/sui/autosave.ts +265 -0
- package/src/render/sui/formatter.ts +12 -2
- package/src/render/sui/renderState.ts +4 -4
- package/src/render/sui/scoreChangeState.ts +8 -3
- package/src/render/sui/scoreView.ts +47 -2
- package/src/render/sui/scoreViewOperations.ts +2761 -2555
- package/src/render/sui/staffLineGeometry.ts +82 -0
- package/src/render/sui/tracker.ts +18 -23
- package/src/render/vex/vxMeasure.ts +22 -8
- package/src/render/vex/vxNote.ts +2 -4
- package/src/smo/data/measure.ts +58 -1
- package/src/smo/data/measureModifiers.ts +81 -1
- package/src/smo/data/music.ts +169 -359
- package/src/smo/data/note.ts +1 -1
- package/src/smo/data/noteModifiers.ts +12 -0
- package/src/smo/data/score.ts +179 -7
- package/src/smo/data/scoreModifiers.ts +46 -1
- package/src/smo/data/systemStaff.ts +43 -0
- package/src/smo/xform/beamers.ts +80 -6
- package/src/smo/xform/copypaste.ts +207 -47
- package/src/smo/xform/measureFill.ts +89 -0
- package/src/smo/xform/operations.ts +452 -61
- package/src/smo/xform/rebar.ts +490 -0
- package/src/smo/xform/selections.ts +73 -0
- package/src/ui/components/dialogs/beamGroups.vue +106 -0
- package/src/ui/components/dialogs/deleteSpecial.vue +38 -0
- package/src/ui/components/dialogs/dynamics.vue +16 -3
- package/src/ui/components/dialogs/fileUpload.vue +2 -2
- package/src/ui/components/dialogs/hairpin.vue +3 -3
- package/src/ui/components/dialogs/newPart.vue +148 -184
- package/src/ui/components/dialogs/pasteSpecial.vue +49 -0
- package/src/ui/components/dialogs/recovery.vue +66 -0
- package/src/ui/components/dialogs/save.vue +11 -4
- package/src/ui/components/dialogs/scorePreferences.vue +23 -1
- package/src/ui/components/dialogs/slur.vue +6 -6
- package/src/ui/components/dialogs/tempo.vue +11 -3
- package/src/ui/components/dialogs/timeSignature.vue +18 -3
- package/src/ui/components/dialogs/volta.vue +3 -3
- package/src/ui/dialogs/annotationVue.ts +1 -1
- package/src/ui/dialogs/beamGroupsVue.ts +69 -0
- package/src/ui/dialogs/createPartHelpers.ts +68 -0
- package/src/ui/dialogs/deleteSpecial.ts +57 -0
- package/src/ui/dialogs/dynamicsVue.ts +87 -60
- package/src/ui/dialogs/factory.ts +0 -2
- package/src/ui/dialogs/fileDialogs.ts +63 -22
- package/src/ui/dialogs/instrument.ts +37 -30
- package/src/ui/dialogs/pasteSpecial.ts +59 -0
- package/src/ui/dialogs/preferences.ts +41 -40
- package/src/ui/dialogs/recovery.ts +49 -0
- package/src/ui/dialogs/timeSignature.ts +27 -39
- package/src/ui/fileio/fileInput.ts +12 -3
- package/src/ui/fileio/scoreArchive.ts +151 -0
- package/src/ui/fileio/xhrLoader.ts +26 -0
- package/src/ui/i18n/language.ts +1 -1
- package/src/ui/menus/beams.ts +181 -112
- package/src/ui/menus/edit.ts +44 -6
- package/src/ui/menus/file.ts +21 -1
- package/src/ui/menus/measure.ts +40 -1
- package/tests/autosave.ts +332 -0
- package/tests/beamDotted.ts +56 -0
- package/tests/beamGroups.ts +338 -0
- package/tests/createPart.ts +292 -0
- package/tests/deleteSpecial.ts +350 -0
- package/tests/dynamicsFontSize.ts +132 -0
- package/tests/keyDistanceTransposition.ts +351 -0
- package/tests/measureFill.ts +295 -0
- package/tests/movePart.ts +94 -0
- package/tests/multimeasureRest.ts +338 -0
- package/tests/pasteIntoMeasure.ts +103 -0
- package/tests/pasteSpecial.ts +541 -0
- package/tests/quickBeam.ts +126 -0
- package/tests/rebarMeasures.ts +492 -0
- package/tests/scoreArchive.ts +218 -0
- package/tests/scoreChangeState.ts +2 -0
- package/tests/staffLineGeometry.ts +179 -0
- package/tests/timeRangeSelect.ts +111 -0
- package/tests/timeSignatureDisplay.ts +58 -0
- package/tools/smoosic-schema.json +37 -0
- package/typedoc.ts +2 -1
- package/types/src/application/exports.d.ts +454 -447
- package/types/src/common/promiseHelpers.d.ts +30 -30
- package/types/src/common/vex.d.ts +224 -224
- package/types/src/render/sui/NoteEntryCaret.d.ts +107 -107
- package/types/src/render/sui/autosave.d.ts +99 -0
- package/types/src/render/sui/scoreView.d.ts +23 -0
- package/types/src/render/sui/scoreViewOperations.d.ts +776 -639
- package/types/src/render/sui/svgHelpers.d.ts +88 -88
- package/types/src/render/sui/svgPageMap.d.ts +344 -344
- package/types/src/render/sui/textEdit.d.ts +96 -96
- package/types/src/render/sui/textRender.d.ts +199 -199
- package/types/src/render/vex/smoAdapter.d.ts +47 -47
- package/types/src/render/vex/vxMeasure.d.ts +97 -97
- package/types/src/render/vex/vxNote.d.ts +56 -56
- package/types/src/render/vex/vxSystem.d.ts +71 -71
- package/types/src/smo/data/measure.d.ts +30 -0
- package/types/src/smo/data/measureModifiers.d.ts +568 -513
- package/types/src/smo/data/music.d.ts +74 -32
- package/types/src/smo/data/note.d.ts +498 -498
- package/types/src/smo/data/noteModifiers.d.ts +615 -606
- package/types/src/smo/data/score.d.ts +479 -421
- package/types/src/smo/data/scoreModifiers.d.ts +30 -0
- package/types/src/smo/data/scoreText.d.ts +334 -334
- package/types/src/smo/data/systemStaff.d.ts +14 -0
- package/types/src/smo/xform/beamers.d.ts +23 -1
- package/types/src/smo/xform/copypaste.d.ts +138 -2
- package/types/src/smo/xform/measureFill.d.ts +21 -0
- package/types/src/smo/xform/operations.d.ts +269 -129
- package/types/src/smo/xform/rebar.d.ts +53 -0
- package/types/src/smo/xform/selections.d.ts +168 -154
- package/types/src/smo/xform/undo.d.ts +142 -142
- package/types/src/ui/buttons/button.d.ts +100 -100
- package/types/src/ui/buttons/ribbon.d.ts +70 -70
- package/types/src/ui/common.d.ts +76 -76
- package/types/src/ui/components/dialogs/chordText.d.ts +28 -28
- package/types/src/ui/components/dialogs/textBlockAtomNode.d.ts +20 -20
- package/types/src/ui/components/dialogs/textGroupHtml.d.ts +29 -29
- package/types/src/ui/composable/draggable.d.ts +15 -15
- package/types/src/ui/dialogs/adapter.d.ts +120 -120
- package/types/src/ui/dialogs/annotationVue.d.ts +9 -9
- package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
- package/types/src/ui/dialogs/beamGroupsVue.d.ts +20 -0
- package/types/src/ui/dialogs/chordChangeVue.d.ts +8 -8
- package/types/src/ui/dialogs/createPartHelpers.d.ts +29 -0
- package/types/src/ui/dialogs/customTupletsVue.d.ts +9 -9
- package/types/src/ui/dialogs/deleteSpecial.d.ts +8 -0
- package/types/src/ui/dialogs/dialog.d.ts +203 -203
- package/types/src/ui/dialogs/dynamicsVue.d.ts +10 -10
- package/types/src/ui/dialogs/factory.d.ts +15 -15
- package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
- package/types/src/ui/dialogs/hairpin.d.ts +35 -35
- package/types/src/ui/dialogs/hairpinVue.d.ts +7 -7
- package/types/src/ui/dialogs/instrument.d.ts +3 -3
- package/types/src/ui/dialogs/keySignatureVue.d.ts +7 -7
- package/types/src/ui/dialogs/libraryVue.d.ts +15 -15
- package/types/src/ui/dialogs/lyricVue.d.ts +8 -8
- package/types/src/ui/dialogs/pasteSpecial.d.ts +8 -0
- package/types/src/ui/dialogs/pedalMarkingVue.d.ts +7 -7
- package/types/src/ui/dialogs/recovery.d.ts +8 -0
- package/types/src/ui/dialogs/rehearsalMark.d.ts +25 -25
- package/types/src/ui/dialogs/rehearsalMarkVue.d.ts +7 -7
- package/types/src/ui/dialogs/slur.d.ts +57 -57
- package/types/src/ui/dialogs/slurVue.d.ts +7 -7
- package/types/src/ui/dialogs/tempo.d.ts +50 -50
- package/types/src/ui/dialogs/tempoVue.d.ts +10 -10
- package/types/src/ui/dialogs/textBlockVue.d.ts +8 -8
- package/types/src/ui/dialogs/textBracket.d.ts +35 -35
- package/types/src/ui/dialogs/textBracketVue.d.ts +7 -7
- package/types/src/ui/dialogs/tie.d.ts +41 -41
- package/types/src/ui/dialogs/volta.d.ts +40 -40
- package/types/src/ui/dialogs/voltaVue.d.ts +7 -7
- package/types/src/ui/fileio/fileInput.d.ts +7 -1
- package/types/src/ui/fileio/library.d.ts +40 -40
- package/types/src/ui/fileio/scoreArchive.d.ts +55 -0
- package/types/src/ui/fileio/xhrLoader.d.ts +7 -0
- package/types/src/ui/menus/file.d.ts +8 -8
- package/types/src/ui/menus/language.d.ts +7 -7
- package/types/src/ui/menus/manager.d.ts +58 -58
- package/types/src/ui/menus/menu.d.ts +159 -159
- package/types/src/ui/menus/partSelection.d.ts +14 -14
- package/types/src/ui/menus/score.d.ts +8 -8
- package/types/src/ui/menus/staffModifier.d.ts +17 -17
- package/types/typedoc.d.ts +148 -147
- package/src/ui/dialogs/dynamics.ts +0 -141
- 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 {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* @param
|
|
49
|
-
* @returns
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*
|
|
61
|
-
* @param
|
|
62
|
-
* @
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @param
|
|
76
|
-
* @returns
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* @
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
* @
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
* @
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
*
|
|
158
|
-
* @param
|
|
159
|
-
* @returns
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @param
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
*
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* @
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
*
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
*
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
*
|
|
240
|
-
* @returns
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
*
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
*
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*
|
|
272
|
-
*/
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
*
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
* @param
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
*
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
*
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
*
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
*
|
|
332
|
-
*/
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
*
|
|
336
|
-
* @param
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
*
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
*
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
*
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
*
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
*
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
*
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
*
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
*
|
|
416
|
-
*/
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
*
|
|
448
|
-
* @param
|
|
449
|
-
*
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
*
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
*
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
*
|
|
493
|
-
* @
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
*
|
|
500
|
-
* @
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
*
|
|
514
|
-
*/
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
*
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
*
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
*
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
*
|
|
555
|
-
* @param
|
|
556
|
-
* @
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
*
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
*
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
*
|
|
574
|
-
* @
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
*
|
|
580
|
-
* @
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
*
|
|
586
|
-
* @returns
|
|
587
|
-
*/
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
*
|
|
591
|
-
* @
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
*
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
*
|
|
603
|
-
* @returns
|
|
604
|
-
*/
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
*
|
|
608
|
-
* @
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
*
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
*
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
*
|
|
627
|
-
* @
|
|
628
|
-
*/
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
*
|
|
632
|
-
*
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
*
|
|
638
|
-
|
|
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
|
+
}
|