smoosic 1.0.40 → 1.0.42
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 +4 -4
- package/package.json +1 -1
- package/release/smoosic.js +4 -4
- package/src/smo/data/score.ts +3 -0
- package/src/smo/data/scoreModifiers.ts +2 -2
- package/src/ui/components/dialogs/timeSignature.vue +25 -4
- package/types/src/application/application.d.ts +103 -102
- package/types/src/application/common.d.ts +6 -0
- package/types/src/application/configuration.d.ts +75 -75
- package/types/src/application/dynamicInit.d.ts +6 -6
- package/types/src/application/eventHandler.d.ts +87 -81
- package/types/src/application/exports.d.ts +482 -485
- package/types/src/render/audio/oscillator.d.ts +99 -99
- package/types/src/render/audio/player.d.ts +143 -143
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
- package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
- package/types/src/render/sui/configuration.d.ts +53 -49
- package/types/src/render/sui/formatter.d.ts +163 -161
- package/types/src/render/sui/layoutDebug.d.ts +46 -46
- package/types/src/render/sui/mapper.d.ts +138 -135
- package/types/src/render/sui/renderState.d.ts +92 -90
- package/types/src/render/sui/scoreRender.d.ts +97 -96
- package/types/src/render/sui/scoreView.d.ts +280 -279
- package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
- package/types/src/render/sui/scroller.d.ts +41 -41
- package/types/src/render/sui/svgPageMap.d.ts +344 -344
- package/types/src/render/sui/textEdit.d.ts +316 -316
- package/types/src/render/sui/tracker.d.ts +10 -4
- package/types/src/render/vex/vxMeasure.d.ts +97 -97
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +511 -511
- package/types/src/smo/data/measureModifiers.d.ts +509 -508
- package/types/src/smo/data/music.d.ts +2 -1
- package/types/src/smo/data/note.d.ts +2 -0
- package/types/src/smo/data/noteModifiers.d.ts +2 -0
- package/types/src/smo/data/score.d.ts +7 -5
- package/types/src/smo/data/scoreModifiers.d.ts +441 -440
- package/types/src/smo/data/systemStaff.d.ts +2 -2
- package/types/src/smo/data/tuplet.d.ts +7 -0
- package/types/src/smo/midi/midiToSmo.d.ts +12 -12
- package/types/src/smo/midi/smoToMidi.d.ts +3 -3
- package/types/src/smo/mxml/smoToXml.d.ts +4 -4
- package/types/src/smo/mxml/xmlState.d.ts +3 -3
- package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
- package/types/src/smo/xform/operations.d.ts +3 -3
- package/types/src/smo/xform/selections.d.ts +154 -154
- package/types/src/ui/buttons/display.d.ts +1 -0
- package/types/src/ui/common.d.ts +69 -67
- package/types/src/ui/composable/draggable.d.ts +1 -1
- package/types/src/ui/configuration.d.ts +30 -30
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
- package/types/src/ui/dialogs/components/button.d.ts +54 -54
- package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
- package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
- package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
- package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
- package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/dialog.d.ts +203 -203
- package/types/src/ui/dialogs/endings.d.ts +2 -2
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
- package/types/src/ui/dialogs/tempo.d.ts +3 -3
- package/types/src/ui/dialogs/textBlock.d.ts +55 -61
- package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
- package/types/src/ui/exceptions.d.ts +15 -15
- package/types/src/ui/help.d.ts +6 -1
- package/types/src/ui/menus/manager.d.ts +59 -59
- package/types/src/ui/navigation.d.ts +44 -37
- package/types/typedoc.d.ts +157 -157
|
@@ -119,6 +119,7 @@ export declare class SmoMusic {
|
|
|
119
119
|
* @returns number where 0 is the first ledger line below
|
|
120
120
|
*/
|
|
121
121
|
static pitchToStaffLine(clef: string, smoPitch: Pitch): number;
|
|
122
|
+
static staffLineToPitch(clef: string, line: number): Pitch;
|
|
122
123
|
/**
|
|
123
124
|
* return above if the first pitch is above line 3, else below
|
|
124
125
|
* @param note
|
|
@@ -390,7 +391,7 @@ export declare class SmoMusic {
|
|
|
390
391
|
static closestSimpleDurationFromTicks(ticks: number): number;
|
|
391
392
|
static _ticksToDuration: Record<string, string>;
|
|
392
393
|
static get ticksToDuration(): Record<string, string>;
|
|
393
|
-
static timeSignatureToTicks(
|
|
394
|
+
static timeSignatureToTicks(num: number, den: number): number;
|
|
394
395
|
static smoTicksToVexDots(ticks: number): number;
|
|
395
396
|
static midiTicksForQuantizeTo(ticks: number): number[];
|
|
396
397
|
static get midiTicksForQuantizeMap(): Record<number, number[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SmoNoteModifierBase, SmoArticulation, SmoLyric, SmoGraceNote, SmoMicrotone, SmoOrnament, SmoDynamicText, SmoArpeggio, SmoArticulationParametersSer, GraceNoteParamsSer, SmoOrnamentParamsSer, SmoMicrotoneParamsSer, SmoClefChangeParamsSer, SmoClefChange, SmoLyricParamsSer, SmoDynamicTextSer, SmoTabNote, SmoTabNoteParamsSer, SmoTabNoteParams } from './noteModifiers';
|
|
2
2
|
import { Ticks, Pitch, SmoAttrs, Transposable, SvgBox } from './common';
|
|
3
3
|
import { FontInfo } from '../../common/vex';
|
|
4
|
+
import { Note } from "vexflow_smoosic";
|
|
4
5
|
export interface PlayedNote {
|
|
5
6
|
pitches: Pitch[];
|
|
6
7
|
duration: number;
|
|
@@ -278,6 +279,7 @@ export declare class SmoNote implements Transposable {
|
|
|
278
279
|
renderId: string | null;
|
|
279
280
|
keySignature: string;
|
|
280
281
|
logicalBox: SvgBox | null;
|
|
282
|
+
vexNote: Note | null;
|
|
281
283
|
audioData: SmoAudioData;
|
|
282
284
|
isCue: boolean;
|
|
283
285
|
hasTabNote: boolean;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { SmoAttrs, Ticks, Pitch, SmoObjectParams, Transposable, SvgBox, SmoModifierBase, Clef, ElementLike } from './common';
|
|
7
7
|
import { FontInfo } from '../../common/vex';
|
|
8
|
+
import { GraceNote } from "vexflow_smoosic";
|
|
8
9
|
/**
|
|
9
10
|
* A note modifier is anything that is mapped to the note, but not part of the
|
|
10
11
|
* pitch itself. This includes grace notes, and note-text like lyrics.
|
|
@@ -121,6 +122,7 @@ export declare class SmoGraceNote extends SmoNoteModifierBase implements Transpo
|
|
|
121
122
|
clef: string;
|
|
122
123
|
noteType: string;
|
|
123
124
|
renderId: string | null;
|
|
125
|
+
vexGraceNote: GraceNote | null;
|
|
124
126
|
hasTabNote: boolean;
|
|
125
127
|
tickCount(): number;
|
|
126
128
|
toVexGraceNote(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvgDimensions } from './common';
|
|
2
2
|
import { SmoMeasure, SmoMeasureParams, ColumnMappedParams } from './measure';
|
|
3
3
|
import { SmoNoteModifierBase } from './noteModifiers';
|
|
4
|
-
import {
|
|
4
|
+
import { SmoTempo, SmoMeasureModifierBase, SmoTimeSignature, SmoMeasureFormatParamsSer } from './measureModifiers';
|
|
5
5
|
import { StaffModifierBase, SmoInstrument } from './staffModifiers';
|
|
6
6
|
import { SmoSystemGroup, SmoSystemGroupParamsSer, SmoScoreModifierBase, SmoFormattingManager, SmoAudioPlayerSettings, SmoAudioPlayerParameters, SmoLayoutManagerParamsSer, SmoLayoutManager, FontPurpose, SmoScoreInfo, ScoreMetadataSer, SmoScorePreferences } from './scoreModifiers';
|
|
7
7
|
import { SmoTextGroup, SmoTextGroupParamsSer } from './scoreText';
|
|
@@ -118,8 +118,8 @@ export declare function isEmptyTextBlock(params: Partial<SmoTextGroupParamsSer>)
|
|
|
118
118
|
*/
|
|
119
119
|
export interface ColumnParamsMapType {
|
|
120
120
|
keySignature: Record<number, string>;
|
|
121
|
-
tempo: Record<number,
|
|
122
|
-
timeSignature: Record<number,
|
|
121
|
+
tempo: Record<number, SmoTempo>;
|
|
122
|
+
timeSignature: Record<number, SmoTimeSignature>;
|
|
123
123
|
renumberingMap: Record<number, number>;
|
|
124
124
|
}
|
|
125
125
|
export declare function isSmoScoreParemsSer(params: Partial<SmoScoreParamsSer>): params is SmoScoreParamsSer;
|
|
@@ -227,10 +227,11 @@ export declare class SmoScore {
|
|
|
227
227
|
*/
|
|
228
228
|
serializeColumnMapped(func: (measure: SmoMeasure) => ColumnMappedParams): {
|
|
229
229
|
keySignature: Record<number, string>;
|
|
230
|
-
tempo: Record<number,
|
|
231
|
-
timeSignature: Record<number,
|
|
230
|
+
tempo: Record<number, SmoTempo>;
|
|
231
|
+
timeSignature: Record<number, SmoTimeSignature>;
|
|
232
232
|
renumberingMap: Record<number, number>;
|
|
233
233
|
};
|
|
234
|
+
static fixLegacyColumnMappedCtor(scoreObj: any): void;
|
|
234
235
|
/**
|
|
235
236
|
* Column-mapped attributes stay the same in each measure until
|
|
236
237
|
* changed, like key-signatures. We don't store each measure value to
|
|
@@ -373,6 +374,7 @@ export declare class SmoScore {
|
|
|
373
374
|
setNonTransposing(): void;
|
|
374
375
|
setNoteInstrumentProperties(): void;
|
|
375
376
|
addStaff(parameters: SmoSystemStaffParams): SmoSystemStaff;
|
|
377
|
+
updateCompoundTimeSignature(): void;
|
|
376
378
|
/**
|
|
377
379
|
* delete any system groups that apply to deleted staves
|
|
378
380
|
*/
|