smoosic 1.0.40 → 1.0.41

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 (71) hide show
  1. package/build/smoosic.js +3 -3
  2. package/package.json +1 -1
  3. package/release/smoosic.js +3 -3
  4. package/src/smo/data/scoreModifiers.ts +2 -2
  5. package/src/ui/components/dialogs/timeSignature.vue +25 -4
  6. package/types/src/application/application.d.ts +103 -102
  7. package/types/src/application/common.d.ts +6 -0
  8. package/types/src/application/configuration.d.ts +75 -75
  9. package/types/src/application/dynamicInit.d.ts +6 -6
  10. package/types/src/application/eventHandler.d.ts +87 -81
  11. package/types/src/application/exports.d.ts +482 -485
  12. package/types/src/render/audio/oscillator.d.ts +99 -99
  13. package/types/src/render/audio/player.d.ts +143 -143
  14. package/types/src/render/audio/samples.d.ts +56 -56
  15. package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
  16. package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
  17. package/types/src/render/sui/configuration.d.ts +53 -49
  18. package/types/src/render/sui/formatter.d.ts +163 -161
  19. package/types/src/render/sui/layoutDebug.d.ts +46 -46
  20. package/types/src/render/sui/mapper.d.ts +138 -135
  21. package/types/src/render/sui/renderState.d.ts +92 -90
  22. package/types/src/render/sui/scoreRender.d.ts +97 -96
  23. package/types/src/render/sui/scoreView.d.ts +280 -279
  24. package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
  25. package/types/src/render/sui/scroller.d.ts +41 -41
  26. package/types/src/render/sui/svgPageMap.d.ts +344 -344
  27. package/types/src/render/sui/textEdit.d.ts +316 -316
  28. package/types/src/render/sui/tracker.d.ts +10 -4
  29. package/types/src/render/vex/vxMeasure.d.ts +97 -97
  30. package/types/src/smo/data/common.d.ts +220 -220
  31. package/types/src/smo/data/measure.d.ts +511 -511
  32. package/types/src/smo/data/measureModifiers.d.ts +509 -508
  33. package/types/src/smo/data/music.d.ts +2 -1
  34. package/types/src/smo/data/note.d.ts +2 -0
  35. package/types/src/smo/data/noteModifiers.d.ts +2 -0
  36. package/types/src/smo/data/score.d.ts +7 -5
  37. package/types/src/smo/data/scoreModifiers.d.ts +441 -440
  38. package/types/src/smo/data/systemStaff.d.ts +2 -2
  39. package/types/src/smo/data/tuplet.d.ts +7 -0
  40. package/types/src/smo/midi/midiToSmo.d.ts +12 -12
  41. package/types/src/smo/midi/smoToMidi.d.ts +3 -3
  42. package/types/src/smo/mxml/smoToXml.d.ts +4 -4
  43. package/types/src/smo/mxml/xmlState.d.ts +3 -3
  44. package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
  45. package/types/src/smo/xform/operations.d.ts +3 -3
  46. package/types/src/smo/xform/selections.d.ts +154 -154
  47. package/types/src/ui/buttons/display.d.ts +1 -0
  48. package/types/src/ui/common.d.ts +69 -67
  49. package/types/src/ui/composable/draggable.d.ts +1 -1
  50. package/types/src/ui/configuration.d.ts +30 -30
  51. package/types/src/ui/dialogs/chordChange.d.ts +35 -35
  52. package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
  53. package/types/src/ui/dialogs/components/button.d.ts +54 -54
  54. package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
  55. package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
  56. package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
  57. package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
  58. package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
  59. package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
  60. package/types/src/ui/dialogs/dialog.d.ts +203 -203
  61. package/types/src/ui/dialogs/endings.d.ts +2 -2
  62. package/types/src/ui/dialogs/lyric.d.ts +39 -39
  63. package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
  64. package/types/src/ui/dialogs/tempo.d.ts +3 -3
  65. package/types/src/ui/dialogs/textBlock.d.ts +55 -61
  66. package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
  67. package/types/src/ui/exceptions.d.ts +15 -15
  68. package/types/src/ui/help.d.ts +6 -1
  69. package/types/src/ui/menus/manager.d.ts +59 -59
  70. package/types/src/ui/navigation.d.ts +44 -37
  71. package/types/typedoc.d.ts +157 -157
@@ -1,508 +1,509 @@
1
- import { SmoAttrs, MeasureNumber, SmoObjectParams, SvgBox, SmoModifierBase, ElementLike } from './common';
2
- import { SmoSelector } from '../xform/selections';
3
- import { FontInfo } from '../../common/vex';
4
- /**
5
- * Measure modifiers are attached to the measure itself. Each instance has a
6
- * `serialize()` method and a `ctor` attribute for deserialization.
7
- * @category SmoObject
8
- */
9
- export declare abstract class SmoMeasureModifierBase implements SmoModifierBase {
10
- attrs: SmoAttrs;
11
- ctor: string;
12
- logicalBox: SvgBox | null;
13
- constructor(ctor: string);
14
- static deserialize(jsonObj: SmoObjectParams): any;
15
- abstract serialize(): any;
16
- }
17
- export type SmoMeasureFormatNumberAttributes = 'customStretch' | 'proportionality' | 'padLeft' | 'measureIndex';
18
- export declare const SmoMeasureFormatNumberKeys: SmoMeasureFormatNumberAttributes[];
19
- export type SmoMeasueFormatBooleanAttributes = 'autoJustify' | 'systemBreak' | 'skipMeasureCount' | 'pageBreak' | 'padAllInSystem' | 'restBreak' | 'forceRest';
20
- export declare const SmoMeasureFormatBooleanKeys: SmoMeasueFormatBooleanAttributes[];
21
- /**
22
- * Constructor parameter for measure formatting object
23
- * @category SmoObject
24
- */
25
- export interface SmoMeasureFormatParams {
26
- /**
27
- * additional pixels to a measure (plus or minus)
28
- */
29
- customStretch: number | null;
30
- /**
31
- * softmax factor, controls how tightly rhythms are formatted
32
- */
33
- proportionality: number | null;
34
- /**
35
- * break justification for this column
36
- */
37
- autoJustify: boolean | null;
38
- /**
39
- * create a new system before this measure
40
- */
41
- systemBreak: boolean | null;
42
- /**
43
- * create a new system before this page
44
- */
45
- pageBreak: boolean | null;
46
- /**
47
- * force a break in multi-measure rest
48
- */
49
- restBreak: boolean | null;
50
- /**
51
- * treat this measure like a whole rest
52
- */
53
- forceRest: boolean | null;
54
- /**
55
- * if score is grouping measures per system, skip this measure in the count
56
- * (used for short measures, or pickups)
57
- */
58
- skipMeasureCount: boolean | null;
59
- /**
60
- * pad left, e.g. for the first stave in a system
61
- */
62
- padLeft: number | null;
63
- /**
64
- * if padding left, pad all the measures in the column
65
- */
66
- padAllInSystem: boolean | null;
67
- /**
68
- * When serialized, the measure index of the original measure.
69
- * In the score it is not used because the measure index is in the
70
- * measure itself. Note: this is NOT the display measure, even though
71
- * the UI might set measure formatting and numbering together.
72
- */
73
- measureIndex: number | null;
74
- }
75
- /**
76
- * Serialization for measure formatting customization, like system break
77
- * @category serialization
78
- */
79
- export interface SmoMeasureFormatParamsSer extends SmoMeasureFormatParams {
80
- /**
81
- * class name for deserialization
82
- */
83
- ctor: string;
84
- }
85
- /**
86
- * ISmoMeasureFormatMgr is the DI interface to the
87
- * format manager. Measure formats are often the same to multiple measures
88
- * so we don't serialize each one - instead we map them with this interface
89
- * @category SmoObject
90
- */
91
- export interface ISmoMeasureFormatMgr {
92
- format: SmoMeasureFormatParams;
93
- measureNumber: MeasureNumber;
94
- }
95
- /**
96
- * Measure format holds parameters about the automatic formatting of the measure itself, such as the witch and
97
- * how the durations are proportioned. Note that measure formatting is also controlled by the justification
98
- * between voices and staves. For instance, 2 measures in different staves will have to have the same width
99
- * @category SmoObject
100
- */
101
- export declare class SmoMeasureFormat extends SmoMeasureModifierBase implements SmoMeasureFormatParams {
102
- static get attributes(): string[];
103
- static get formatAttributes(): string[];
104
- static get defaultProportionality(): number;
105
- static get legacyProportionality(): number;
106
- static fromLegacyMeasure(measure: any): SmoMeasureFormat;
107
- static get defaults(): SmoMeasureFormatParams;
108
- customStretch: number;
109
- proportionality: number;
110
- systemBreak: boolean;
111
- pageBreak: boolean;
112
- restBreak: boolean;
113
- skipMeasureCount: boolean;
114
- forceRest: boolean;
115
- padLeft: number;
116
- padAllInSystem: boolean;
117
- autoJustify: boolean;
118
- measureIndex: number;
119
- eq(o: SmoMeasureFormatParams): boolean;
120
- get isDefault(): boolean;
121
- constructor(parameters: SmoMeasureFormatParams);
122
- serialize(): SmoMeasureFormatParamsSer;
123
- }
124
- /**
125
- * Used to create a {@link SmoBarline}
126
- * @category SmoObject
127
- */
128
- export interface SmoBarlineParams {
129
- position: number | null;
130
- barline: number | null;
131
- }
132
- /**
133
- * @category serialization
134
- */
135
- export interface SmoBarlineParamsSer extends SmoBarlineParams {
136
- ctor: string;
137
- position: number | null;
138
- barline: number | null;
139
- }
140
- /**
141
- * Barline is just that, there is a start and end in each measure, which defaults to 'single'.
142
- * @category SmoObject
143
- */
144
- export declare class SmoBarline extends SmoMeasureModifierBase {
145
- static readonly positions: Record<string, number>;
146
- static readonly barlines: Record<string, number>;
147
- static get _barlineToString(): string[];
148
- static barlineString(inst: SmoBarline): string;
149
- static get defaults(): SmoBarlineParams;
150
- static get attributes(): string[];
151
- serialize(): SmoBarlineParamsSer;
152
- constructor(parameters: SmoBarlineParams | null);
153
- barline: number;
154
- position: number;
155
- }
156
- /**
157
- * Constructor for SmoRepeatSymbol
158
- * @category SmoObject
159
- */
160
- export interface SmoRepeatSymbolParams {
161
- /**
162
- * The symbol enumeration
163
- */
164
- symbol: number;
165
- /**
166
- * x offset for DC, sign etc.
167
- */
168
- xOffset: number;
169
- /**
170
- * y offset for DC, sign etc.
171
- */
172
- yOffset: number;
173
- /**
174
- * position, above or below
175
- */
176
- position: number;
177
- }
178
- /**
179
- * @category serialization
180
- */
181
- export interface SmoRepeatSymbolParamsSer extends SmoRepeatSymbolParams {
182
- /**
183
- * constructor
184
- */
185
- ctor: string;
186
- }
187
- /**
188
- * Repeat symbols like DC, Fine etc. Note: voltas are their own thing,
189
- * and repeats are types of barlines.
190
- * @category SmoObject
191
- */
192
- export declare class SmoRepeatSymbol extends SmoMeasureModifierBase {
193
- static readonly symbols: Record<string, number>;
194
- static readonly _repeatSymbolStrings: Record<number, string>;
195
- static repeatSymbolString(symbol: SmoRepeatSymbol): string;
196
- static readonly positions: Record<string, number>;
197
- static get defaults(): SmoRepeatSymbolParams;
198
- static get attributes(): string[];
199
- symbol: number;
200
- xOffset: number;
201
- yOffset: number;
202
- position: number;
203
- serialize(): SmoRepeatSymbolParamsSer;
204
- constructor(parameters: SmoRepeatSymbolParams);
205
- }
206
- /**
207
- * Constructor parameters for {@link SmoVolta} (2nd ending)
208
- * @category SmoObject
209
- */
210
- export interface SmoVoltaParams {
211
- /**
212
- * start bar of ending
213
- */
214
- startBar: number;
215
- /**
216
- * end bar (how long it stretches)
217
- */
218
- endBar: number;
219
- /**
220
- * xoffset for start, for collisions
221
- */
222
- xOffsetStart: number;
223
- /**
224
- * xoffset for end, for collisions
225
- */
226
- xOffsetEnd: number;
227
- /**
228
- * yOffset, for collisions
229
- */
230
- yOffset: number;
231
- /**
232
- * 2nd ending, 3rd etc.
233
- */
234
- number: number;
235
- }
236
- /**
237
- * serializable bits of volta/endings
238
- * @category serialization
239
- */
240
- export interface SmoVoltaParamsSer extends SmoVoltaParams {
241
- /**
242
- * constructor
243
- */
244
- ctor: string;
245
- }
246
- /**
247
- * Voltas (2nd endings) behave more like staff modifiers, but they are associated with the measure
248
- * since each measure has it's own rules for displaying part of the volta.
249
- * @category SmoObject
250
- */
251
- export declare class SmoVolta extends SmoMeasureModifierBase {
252
- startBar: number;
253
- endBar: number;
254
- xOffsetStart: number;
255
- xOffsetEnd: number;
256
- yOffset: number;
257
- number: number;
258
- endingId: string | null;
259
- startSelector: SmoSelector | null;
260
- endSelector: SmoSelector | null;
261
- elements: ElementLike[];
262
- constructor(parameters: SmoVoltaParams);
263
- get id(): string;
264
- get type(): string;
265
- static get attributes(): string[];
266
- static get editableAttributes(): string[];
267
- serialize(): SmoVoltaParamsSer;
268
- static get defaults(): SmoVoltaParams;
269
- }
270
- /**
271
- * Constructor parameters for {@link SmoMeasureText}
272
- * @category SmoObject
273
- */
274
- export interface SmoMeasureTextParams {
275
- position: number;
276
- fontInfo: FontInfo;
277
- text: string;
278
- adjustX: number;
279
- adjustY: number;
280
- justification: number;
281
- }
282
- /**
283
- * Serialized fields of SmoMeasureTextParams
284
- * @category serialization
285
- */
286
- export interface SmoMeasureTextParamsSer extends SmoMeasureTextParams {
287
- /**
288
- * constructor
289
- */
290
- ctor: string;
291
- }
292
- /**
293
- * Measure text is just that. Now that score text can be associated with musical elements, this
294
- * class has falled into disrepair. It may be used for part notations in the score later.
295
- * @category SmoObject
296
- */
297
- export declare class SmoMeasureText extends SmoMeasureModifierBase {
298
- static readonly positions: Record<string, number>;
299
- static readonly justifications: Record<string, number>;
300
- static readonly _positionToString: string[];
301
- static get attributes(): string[];
302
- static readonly defaults: SmoMeasureTextParams;
303
- justification: number;
304
- position: number;
305
- text: string;
306
- adjustX: number;
307
- adjustY: number;
308
- fontInfo: FontInfo;
309
- serialize(): SmoMeasureTextParamsSer;
310
- constructor(parameters: SmoMeasureTextParams | null);
311
- }
312
- /**
313
- * Used to construct {@link SmoRehearsalMark}
314
- * @internal
315
- * */
316
- export interface SmoRehearsalMarkParams {
317
- /**
318
- * cardinal position
319
- */
320
- position: number;
321
- /**
322
- * Symbol. by default, letters that auto-increment
323
- */
324
- symbol: string;
325
- /**
326
- * future, define how increment works
327
- */
328
- cardinality: string;
329
- /**
330
- * disable to make your own symbols for each new one.
331
- */
332
- increment: boolean;
333
- }
334
- /**
335
- * Serialized fields for rehearsal mark
336
- * @category serialization
337
- */
338
- export interface SmoRehearsalMarkParamsSer extends SmoRehearsalMarkParams {
339
- /**
340
- * constructor
341
- */
342
- ctor: string;
343
- }
344
- /**
345
- * Rehearsal marks are some type of auto-incrementing markers on a measure index.
346
- * @category SmoObject
347
- */
348
- export declare class SmoRehearsalMark extends SmoMeasureModifierBase {
349
- static readonly cardinalities: Record<string, string>;
350
- static readonly positions: Record<string, number>;
351
- static get _positionToString(): string[];
352
- static get defaults(): SmoRehearsalMarkParams;
353
- static get attributes(): string[];
354
- position: number;
355
- cardinality: string;
356
- symbol: string;
357
- increment: boolean;
358
- getIncrement(): string;
359
- getInitial(): "a" | "A" | "1";
360
- serialize(): SmoRehearsalMarkParamsSer;
361
- constructor(parameters: SmoRehearsalMarkParams);
362
- }
363
- export type SmoTempoNumberAttribute = 'bpm' | 'beatDuration' | 'yOffset';
364
- export type SmoTempoStringAttribute = 'tempoMode' | 'tempoText' | 'customText';
365
- export type SmoTempoBooleanAttribute = 'display';
366
- export type SmoTempoMode = 'duration' | 'text' | 'custom';
367
- /**
368
- * constructor parameters for {@link SmoTempoText}
369
- * @category SmoObject
370
- */
371
- export interface SmoTempoTextParams {
372
- /**
373
- * text (e.g. Allegro) or bpm
374
- */
375
- tempoMode: string;
376
- /**
377
- * playback bpm
378
- */
379
- bpm: number;
380
- /**
381
- * note type for a metronome beat
382
- */
383
- beatDuration: number;
384
- /**
385
- * if text mode, the text
386
- */
387
- tempoText: string;
388
- /**
389
- * move the text to keep it from colliding with other things
390
- */
391
- yOffset: number;
392
- /**
393
- * indicate if we are displaying, false if only affects playback
394
- */
395
- display: boolean;
396
- /**
397
- * text taht is not a standards notation
398
- */
399
- customText: string;
400
- }
401
- /**
402
- * serialized tempo parameters
403
- * @category serialization
404
- */
405
- export interface SmoTempoTextParamsSer extends SmoTempoTextParams {
406
- ctor: string;
407
- }
408
- /**
409
- * @internal
410
- */
411
- export interface VexTempoTextParams {
412
- duration?: string;
413
- dots?: number;
414
- bpm?: number;
415
- name?: string;
416
- }
417
- /**
418
- * Information about both playback tempo and how the tempo is notated.
419
- * @category SmoObject
420
- */
421
- export declare class SmoTempoText extends SmoMeasureModifierBase implements SmoTempoTextParams {
422
- static get tempoModes(): Record<string, SmoTempoMode>;
423
- static get tempoTexts(): Record<string, string>;
424
- /**
425
- * create defaults for tempo initialization
426
- */
427
- static get defaults(): SmoTempoTextParams;
428
- static get attributes(): string[];
429
- tempoMode: SmoTempoMode;
430
- bpm: number;
431
- beatDuration: number;
432
- tempoText: string;
433
- yOffset: number;
434
- display: boolean;
435
- customText: string;
436
- _toVexTextTempo(): VexTempoTextParams;
437
- /**
438
- * Return equality wrt the tempo marking, e.g. 2 allegro in textMode will be equal but
439
- * an allegro and duration 120bpm will not.
440
- * @param t1
441
- * @param t2
442
- * @returns
443
- */
444
- static eq(t1: SmoTempoText, t2: SmoTempoText): boolean;
445
- static get bpmFromText(): Record<string, number>;
446
- _toVexDurationTempo(): VexTempoTextParams;
447
- toVexTempo(): VexTempoTextParams;
448
- serialize(): SmoTempoTextParamsSer;
449
- constructor(parameters: SmoTempoTextParams | null);
450
- }
451
- /**
452
- * Constructor parameters for a time signature
453
- * @category SmoObject
454
- */
455
- export interface TimeSignatureParameters {
456
- /**
457
- * numerator
458
- */
459
- actualBeats: number;
460
- /**
461
- * denominator, always power of 2
462
- */
463
- beatDuration: number;
464
- /**
465
- * indicates cut time/common time
466
- */
467
- useSymbol: boolean;
468
- /**
469
- * display, else just affects measure lengths.
470
- */
471
- display: boolean;
472
- /**
473
- * for pickups, display the non-pickup value
474
- */
475
- displayString: string;
476
- }
477
- /**
478
- * serialized time signature
479
- * @category serialization
480
- */
481
- export interface TimeSignatureParametersSer extends TimeSignatureParameters {
482
- /**
483
- * constructor
484
- */
485
- ctor: string;
486
- }
487
- /**
488
- * Time signatures contain duration information for a measure, and information
489
- * about the display of the time signature.
490
- * @category SmoObject
491
- */
492
- export declare class TimeSignature extends SmoMeasureModifierBase {
493
- static get defaults(): TimeSignatureParameters;
494
- static equal(ts1: TimeSignature, ts2: TimeSignature): boolean;
495
- static createFromPartial(value: Partial<TimeSignatureParameters>): TimeSignature;
496
- actualBeats: number;
497
- beatDuration: number;
498
- useSymbol: boolean;
499
- display: boolean;
500
- displayString: string;
501
- get timeSignature(): string;
502
- static get parameters(): string[];
503
- static get boolParameters(): never[];
504
- set timeSignature(value: string);
505
- serialize(): TimeSignatureParametersSer;
506
- constructor(params: TimeSignatureParameters);
507
- }
508
- export declare const measureModifierDynamicCtorInit: () => void;
1
+ import { SmoAttrs, MeasureNumber, SmoObjectParams, SvgBox, SmoModifierBase, ElementLike } from './common';
2
+ import { SmoSelector } from '../xform/selections';
3
+ import { FontInfo } from '../../common/vex';
4
+ /**
5
+ * Measure modifiers are attached to the measure itself. Each instance has a
6
+ * `serialize()` method and a `ctor` attribute for deserialization.
7
+ * @category SmoObject
8
+ */
9
+ export declare abstract class SmoMeasureModifierBase implements SmoModifierBase {
10
+ attrs: SmoAttrs;
11
+ ctor: string;
12
+ logicalBox: SvgBox | null;
13
+ constructor(ctor: string);
14
+ static deserialize(jsonObj: SmoObjectParams): any;
15
+ abstract serialize(): any;
16
+ }
17
+ export type SmoMeasureFormatNumberAttributes = 'customStretch' | 'proportionality' | 'padLeft' | 'measureIndex';
18
+ export declare const SmoMeasureFormatNumberKeys: SmoMeasureFormatNumberAttributes[];
19
+ export type SmoMeasueFormatBooleanAttributes = 'autoJustify' | 'systemBreak' | 'skipMeasureCount' | 'pageBreak' | 'padAllInSystem' | 'restBreak' | 'forceRest';
20
+ export declare const SmoMeasureFormatBooleanKeys: SmoMeasueFormatBooleanAttributes[];
21
+ /**
22
+ * Constructor parameter for measure formatting object
23
+ * @category SmoObject
24
+ */
25
+ export interface SmoMeasureFormatParams {
26
+ /**
27
+ * additional pixels to a measure (plus or minus)
28
+ */
29
+ customStretch: number | null;
30
+ /**
31
+ * softmax factor, controls how tightly rhythms are formatted
32
+ */
33
+ proportionality: number | null;
34
+ /**
35
+ * break justification for this column
36
+ */
37
+ autoJustify: boolean | null;
38
+ /**
39
+ * create a new system before this measure
40
+ */
41
+ systemBreak: boolean | null;
42
+ /**
43
+ * create a new system before this page
44
+ */
45
+ pageBreak: boolean | null;
46
+ /**
47
+ * force a break in multi-measure rest
48
+ */
49
+ restBreak: boolean | null;
50
+ /**
51
+ * treat this measure like a whole rest
52
+ */
53
+ forceRest: boolean | null;
54
+ /**
55
+ * if score is grouping measures per system, skip this measure in the count
56
+ * (used for short measures, or pickups)
57
+ */
58
+ skipMeasureCount: boolean | null;
59
+ /**
60
+ * pad left, e.g. for the first stave in a system
61
+ */
62
+ padLeft: number | null;
63
+ /**
64
+ * if padding left, pad all the measures in the column
65
+ */
66
+ padAllInSystem: boolean | null;
67
+ /**
68
+ * When serialized, the measure index of the original measure.
69
+ * In the score it is not used because the measure index is in the
70
+ * measure itself. Note: this is NOT the display measure, even though
71
+ * the UI might set measure formatting and numbering together.
72
+ */
73
+ measureIndex: number | null;
74
+ }
75
+ /**
76
+ * Serialization for measure formatting customization, like system break
77
+ * @category serialization
78
+ */
79
+ export interface SmoMeasureFormatParamsSer extends SmoMeasureFormatParams {
80
+ /**
81
+ * class name for deserialization
82
+ */
83
+ ctor: string;
84
+ }
85
+ /**
86
+ * ISmoMeasureFormatMgr is the DI interface to the
87
+ * format manager. Measure formats are often the same to multiple measures
88
+ * so we don't serialize each one - instead we map them with this interface
89
+ * @category SmoObject
90
+ */
91
+ export interface ISmoMeasureFormatMgr {
92
+ format: SmoMeasureFormatParams;
93
+ measureNumber: MeasureNumber;
94
+ }
95
+ /**
96
+ * Measure format holds parameters about the automatic formatting of the measure itself, such as the witch and
97
+ * how the durations are proportioned. Note that measure formatting is also controlled by the justification
98
+ * between voices and staves. For instance, 2 measures in different staves will have to have the same width
99
+ * @category SmoObject
100
+ */
101
+ export declare class SmoMeasureFormat extends SmoMeasureModifierBase implements SmoMeasureFormatParams {
102
+ static get attributes(): string[];
103
+ static get formatAttributes(): string[];
104
+ static get defaultProportionality(): number;
105
+ static get legacyProportionality(): number;
106
+ static fromLegacyMeasure(measure: any): SmoMeasureFormat;
107
+ static get defaults(): SmoMeasureFormatParams;
108
+ customStretch: number;
109
+ proportionality: number;
110
+ systemBreak: boolean;
111
+ pageBreak: boolean;
112
+ restBreak: boolean;
113
+ skipMeasureCount: boolean;
114
+ forceRest: boolean;
115
+ padLeft: number;
116
+ padAllInSystem: boolean;
117
+ autoJustify: boolean;
118
+ measureIndex: number;
119
+ eq(o: SmoMeasureFormatParams): boolean;
120
+ get isDefault(): boolean;
121
+ constructor(parameters: SmoMeasureFormatParams);
122
+ serialize(): SmoMeasureFormatParamsSer;
123
+ }
124
+ /**
125
+ * Used to create a {@link SmoBarline}
126
+ * @category SmoObject
127
+ */
128
+ export interface SmoBarlineParams {
129
+ position: number | null;
130
+ barline: number | null;
131
+ }
132
+ /**
133
+ * @category serialization
134
+ */
135
+ export interface SmoBarlineParamsSer extends SmoBarlineParams {
136
+ ctor: string;
137
+ position: number | null;
138
+ barline: number | null;
139
+ }
140
+ /**
141
+ * Barline is just that, there is a start and end in each measure, which defaults to 'single'.
142
+ * @category SmoObject
143
+ */
144
+ export declare class SmoBarline extends SmoMeasureModifierBase {
145
+ static readonly positions: Record<string, number>;
146
+ static readonly barlines: Record<string, number>;
147
+ static get _barlineToString(): string[];
148
+ static barlineString(inst: SmoBarline): string;
149
+ static get defaults(): SmoBarlineParams;
150
+ static get attributes(): string[];
151
+ serialize(): SmoBarlineParamsSer;
152
+ constructor(parameters: SmoBarlineParams | null);
153
+ barline: number;
154
+ position: number;
155
+ }
156
+ /**
157
+ * Constructor for SmoRepeatSymbol
158
+ * @category SmoObject
159
+ */
160
+ export interface SmoRepeatSymbolParams {
161
+ /**
162
+ * The symbol enumeration
163
+ */
164
+ symbol: number;
165
+ /**
166
+ * x offset for DC, sign etc.
167
+ */
168
+ xOffset: number;
169
+ /**
170
+ * y offset for DC, sign etc.
171
+ */
172
+ yOffset: number;
173
+ /**
174
+ * position, above or below
175
+ */
176
+ position: number;
177
+ }
178
+ /**
179
+ * @category serialization
180
+ */
181
+ export interface SmoRepeatSymbolParamsSer extends SmoRepeatSymbolParams {
182
+ /**
183
+ * constructor
184
+ */
185
+ ctor: string;
186
+ }
187
+ /**
188
+ * Repeat symbols like DC, Fine etc. Note: voltas are their own thing,
189
+ * and repeats are types of barlines.
190
+ * @category SmoObject
191
+ */
192
+ export declare class SmoRepeatSymbol extends SmoMeasureModifierBase {
193
+ static readonly symbols: Record<string, number>;
194
+ static readonly _repeatSymbolStrings: Record<number, string>;
195
+ static repeatSymbolString(symbol: SmoRepeatSymbol): string;
196
+ static readonly positions: Record<string, number>;
197
+ static get defaults(): SmoRepeatSymbolParams;
198
+ static get attributes(): string[];
199
+ symbol: number;
200
+ xOffset: number;
201
+ yOffset: number;
202
+ position: number;
203
+ serialize(): SmoRepeatSymbolParamsSer;
204
+ constructor(parameters: SmoRepeatSymbolParams);
205
+ }
206
+ /**
207
+ * Constructor parameters for {@link SmoVolta} (2nd ending)
208
+ * @category SmoObject
209
+ */
210
+ export interface SmoVoltaParams {
211
+ /**
212
+ * start bar of ending
213
+ */
214
+ startBar: number;
215
+ /**
216
+ * end bar (how long it stretches)
217
+ */
218
+ endBar: number;
219
+ /**
220
+ * xoffset for start, for collisions
221
+ */
222
+ xOffsetStart: number;
223
+ /**
224
+ * xoffset for end, for collisions
225
+ */
226
+ xOffsetEnd: number;
227
+ /**
228
+ * yOffset, for collisions
229
+ */
230
+ yOffset: number;
231
+ /**
232
+ * 2nd ending, 3rd etc.
233
+ */
234
+ number: number;
235
+ }
236
+ /**
237
+ * serializable bits of volta/endings
238
+ * @category serialization
239
+ */
240
+ export interface SmoVoltaParamsSer extends SmoVoltaParams {
241
+ /**
242
+ * constructor
243
+ */
244
+ ctor: string;
245
+ }
246
+ /**
247
+ * Voltas (2nd endings) behave more like staff modifiers, but they are associated with the measure
248
+ * since each measure has it's own rules for displaying part of the volta.
249
+ * @category SmoObject
250
+ */
251
+ export declare class SmoVolta extends SmoMeasureModifierBase {
252
+ startBar: number;
253
+ endBar: number;
254
+ xOffsetStart: number;
255
+ xOffsetEnd: number;
256
+ yOffset: number;
257
+ number: number;
258
+ endingId: string | null;
259
+ startSelector: SmoSelector | null;
260
+ endSelector: SmoSelector | null;
261
+ elements: ElementLike[];
262
+ constructor(parameters: SmoVoltaParams);
263
+ get id(): string;
264
+ get type(): string;
265
+ static get attributes(): string[];
266
+ static get editableAttributes(): string[];
267
+ serialize(): SmoVoltaParamsSer;
268
+ static get defaults(): SmoVoltaParams;
269
+ }
270
+ /**
271
+ * Constructor parameters for {@link SmoMeasureText}
272
+ * @category SmoObject
273
+ */
274
+ export interface SmoMeasureTextParams {
275
+ position: number;
276
+ fontInfo: FontInfo;
277
+ text: string;
278
+ adjustX: number;
279
+ adjustY: number;
280
+ justification: number;
281
+ }
282
+ /**
283
+ * Serialized fields of SmoMeasureTextParams
284
+ * @category serialization
285
+ */
286
+ export interface SmoMeasureTextParamsSer extends SmoMeasureTextParams {
287
+ /**
288
+ * constructor
289
+ */
290
+ ctor: string;
291
+ }
292
+ /**
293
+ * Measure text is just that. Now that score text can be associated with musical elements, this
294
+ * class has falled into disrepair. It may be used for part notations in the score later.
295
+ * @category SmoObject
296
+ */
297
+ export declare class SmoMeasureText extends SmoMeasureModifierBase {
298
+ static readonly positions: Record<string, number>;
299
+ static readonly justifications: Record<string, number>;
300
+ static readonly _positionToString: string[];
301
+ static get attributes(): string[];
302
+ static readonly defaults: SmoMeasureTextParams;
303
+ justification: number;
304
+ position: number;
305
+ text: string;
306
+ adjustX: number;
307
+ adjustY: number;
308
+ fontInfo: FontInfo;
309
+ serialize(): SmoMeasureTextParamsSer;
310
+ constructor(parameters: SmoMeasureTextParams | null);
311
+ }
312
+ /**
313
+ * Used to construct {@link SmoRehearsalMark}
314
+ * @internal
315
+ * */
316
+ export interface SmoRehearsalMarkParams {
317
+ /**
318
+ * cardinal position
319
+ */
320
+ position: number;
321
+ /**
322
+ * Symbol. by default, letters that auto-increment
323
+ */
324
+ symbol: string;
325
+ /**
326
+ * future, define how increment works
327
+ */
328
+ cardinality: string;
329
+ /**
330
+ * disable to make your own symbols for each new one.
331
+ */
332
+ increment: boolean;
333
+ }
334
+ /**
335
+ * Serialized fields for rehearsal mark
336
+ * @category serialization
337
+ */
338
+ export interface SmoRehearsalMarkParamsSer extends SmoRehearsalMarkParams {
339
+ /**
340
+ * constructor
341
+ */
342
+ ctor: string;
343
+ }
344
+ /**
345
+ * Rehearsal marks are some type of auto-incrementing markers on a measure index.
346
+ * @category SmoObject
347
+ */
348
+ export declare class SmoRehearsalMark extends SmoMeasureModifierBase {
349
+ static readonly cardinalities: Record<string, string>;
350
+ static readonly positions: Record<string, number>;
351
+ static get _positionToString(): string[];
352
+ static get defaults(): SmoRehearsalMarkParams;
353
+ static get attributes(): string[];
354
+ position: number;
355
+ cardinality: string;
356
+ symbol: string;
357
+ increment: boolean;
358
+ getIncrement(): string;
359
+ getInitial(): "a" | "A" | "1";
360
+ serialize(): SmoRehearsalMarkParamsSer;
361
+ constructor(parameters: SmoRehearsalMarkParams);
362
+ }
363
+ export type SmoTempoNumberAttribute = 'bpm' | 'beatDuration' | 'yOffset';
364
+ export type SmoTempoStringAttribute = 'tempoMode' | 'tempoText' | 'customText';
365
+ export type SmoTempoBooleanAttribute = 'display';
366
+ export type SmoTempoMode = 'duration' | 'text' | 'custom';
367
+ /**
368
+ * constructor parameters for {@link SmoTempo}
369
+ * @category SmoObject
370
+ */
371
+ export interface SmoTempoParams {
372
+ /**
373
+ * text (e.g. Allegro) or bpm
374
+ */
375
+ tempoMode: string;
376
+ /**
377
+ * playback bpm
378
+ */
379
+ bpm: number;
380
+ /**
381
+ * note type for a metronome beat
382
+ */
383
+ beatDuration: number;
384
+ /**
385
+ * if text mode, the text
386
+ */
387
+ tempoText: string;
388
+ /**
389
+ * move the text to keep it from colliding with other things
390
+ */
391
+ yOffset: number;
392
+ /**
393
+ * indicate if we are displaying, false if only affects playback
394
+ */
395
+ display: boolean;
396
+ /**
397
+ * text taht is not a standards notation
398
+ */
399
+ customText: string;
400
+ }
401
+ /**
402
+ * serialized tempo parameters
403
+ * @category serialization
404
+ */
405
+ export interface SmoTempoParamsSer extends SmoTempoParams {
406
+ ctor: string;
407
+ }
408
+ /**
409
+ * @internal
410
+ */
411
+ export interface VexTempoTextParams {
412
+ duration?: string;
413
+ dots?: number;
414
+ bpm?: number;
415
+ name?: string;
416
+ }
417
+ /**
418
+ * Information about both playback tempo and how the tempo is notated.
419
+ * @category SmoObject
420
+ */
421
+ export declare class SmoTempo extends SmoMeasureModifierBase implements SmoTempoParams {
422
+ static get tempoModes(): Record<string, SmoTempoMode>;
423
+ static get tempoTexts(): Record<string, string>;
424
+ /**
425
+ * create defaults for tempo initialization
426
+ */
427
+ static get defaults(): SmoTempoParams;
428
+ static get attributes(): string[];
429
+ tempoMode: SmoTempoMode;
430
+ bpm: number;
431
+ beatDuration: number;
432
+ tempoText: string;
433
+ yOffset: number;
434
+ display: boolean;
435
+ customText: string;
436
+ _toVexTextTempo(): VexTempoTextParams;
437
+ /**
438
+ * Return equality wrt the tempo marking, e.g. 2 allegro in textMode will be equal but
439
+ * an allegro and duration 120bpm will not.
440
+ * @param t1
441
+ * @param t2
442
+ * @returns
443
+ */
444
+ static eq(t1: SmoTempo, t2: SmoTempo): boolean;
445
+ static get bpmFromText(): Record<string, number>;
446
+ _toVexDurationTempo(): VexTempoTextParams;
447
+ toVexTempo(): VexTempoTextParams;
448
+ serialize(): SmoTempoParamsSer;
449
+ constructor(parameters: SmoTempoParams | null);
450
+ }
451
+ export interface TimeSignatureTime {
452
+ actualBeats: number;
453
+ beatDuration: number;
454
+ }
455
+ /**
456
+ * Constructor parameters for a time signature
457
+ * @category SmoObject
458
+ */
459
+ export interface TimeSignatureParameters {
460
+ /**
461
+ * numerator
462
+ */
463
+ times: TimeSignatureTime[];
464
+ useSymbol: boolean;
465
+ /**
466
+ * display, else just affects measure lengths.
467
+ */
468
+ display: boolean;
469
+ /**
470
+ * for pickups, display the non-pickup value
471
+ */
472
+ displayString: string;
473
+ }
474
+ /**
475
+ * serialized time signature
476
+ * @category serialization
477
+ */
478
+ export interface TimeSignatureParametersSer extends TimeSignatureParameters {
479
+ /**
480
+ * constructor
481
+ */
482
+ ctor: string;
483
+ }
484
+ /**
485
+ * Time signatures contain duration information for a measure, and information
486
+ * about the display of the time signature.
487
+ * @category SmoObject
488
+ */
489
+ export declare class SmoTimeSignature extends SmoMeasureModifierBase {
490
+ static get defaults(): TimeSignatureParameters;
491
+ ticksFromTimeSignature(): number;
492
+ static equal(ts1: SmoTimeSignature, ts2: SmoTimeSignature): boolean;
493
+ static equalIncludeAttributes(ts1: SmoTimeSignature, ts2: SmoTimeSignature): boolean;
494
+ static createFromPartial(value: Partial<TimeSignatureParameters>): SmoTimeSignature;
495
+ times: TimeSignatureTime[];
496
+ useSymbol: boolean;
497
+ display: boolean;
498
+ displayString: string;
499
+ index: number;
500
+ get beatDuration(): number;
501
+ get actualBeats(): number;
502
+ get timeSignature(): string;
503
+ static get parameters(): string[];
504
+ static get boolParameters(): never[];
505
+ set timeSignature(value: string);
506
+ serialize(): TimeSignatureParametersSer;
507
+ constructor(params: TimeSignatureParameters);
508
+ }
509
+ export declare const measureModifierDynamicCtorInit: () => void;