musicxml-io 0.1.0 → 0.2.0

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.
@@ -1,92 +1,2 @@
1
- import { S as Score, N as NoteEntry, K as KeySignature, T as TimeSignature, a as Pitch } from '../types-DC_TnJu_.mjs';
2
-
3
- /**
4
- * Transpose all notes in a score by a number of semitones
5
- */
6
- declare function transpose(score: Score, semitones: number): Score;
7
- /**
8
- * Options for adding a note
9
- */
10
- interface AddNoteOptions {
11
- partIndex: number;
12
- measureIndex: number;
13
- staff?: number;
14
- voice: number;
15
- position: number;
16
- note: Omit<NoteEntry, 'type' | 'voice' | 'staff'>;
17
- }
18
- /**
19
- * Add a note to a measure
20
- * Automatically handles backup/forward insertion
21
- */
22
- declare function addNote(score: Score, options: AddNoteOptions): Score;
23
- /**
24
- * Delete a note from a measure
25
- */
26
- declare function deleteNote(score: Score, options: {
27
- partIndex: number;
28
- measureIndex: number;
29
- noteIndex: number;
30
- }): Score;
31
- /**
32
- * Change key signature from a specific measure
33
- */
34
- declare function changeKey(score: Score, key: KeySignature, options: {
35
- fromMeasure: string | number;
36
- }): Score;
37
- /**
38
- * Change time signature from a specific measure
39
- */
40
- declare function changeTime(score: Score, time: TimeSignature, options: {
41
- fromMeasure: string | number;
42
- }): Score;
43
- /**
44
- * Insert a new measure after a specific measure number
45
- */
46
- declare function insertMeasure(score: Score, options: {
47
- afterMeasure: string | number;
48
- copyAttributes?: boolean;
49
- }): Score;
50
- /**
51
- * Delete a measure
52
- */
53
- declare function deleteMeasure(score: Score, measureNumber: string | number): Score;
54
- /**
55
- * Set divisions for a measure
56
- */
57
- declare function setDivisions(score: Score, options: {
58
- partIndex: number;
59
- measureIndex: number;
60
- divisions: number;
61
- }): Score;
62
- /**
63
- * Add a chord note (note that sounds simultaneously with the previous note)
64
- */
65
- declare function addChordNote(score: Score, options: {
66
- partIndex: number;
67
- measureIndex: number;
68
- afterNoteIndex: number;
69
- pitch: Pitch;
70
- }): Score;
71
- /**
72
- * Modify a note's pitch
73
- */
74
- declare function modifyNotePitch(score: Score, options: {
75
- partIndex: number;
76
- measureIndex: number;
77
- noteIndex: number;
78
- pitch: Pitch;
79
- }): Score;
80
- /**
81
- * Modify a note's duration
82
- */
83
- declare function modifyNoteDuration(score: Score, options: {
84
- partIndex: number;
85
- measureIndex: number;
86
- noteIndex: number;
87
- duration: number;
88
- noteType?: NoteEntry['noteType'];
89
- dots?: number;
90
- }): Score;
91
-
92
- export { type AddNoteOptions, addChordNote, addNote, changeKey, changeTime, deleteMeasure, deleteNote, insertMeasure, modifyNoteDuration, modifyNotePitch, setDivisions, transpose };
1
+ import '../types-Dp9zcgIg.mjs';
2
+ export { W as AddPartOptions, N as InsertNoteOptions, K as OperationErrorCode, O as OperationResult, G as ValidationError, R as addChord, g as addChordNote, a2 as addChordNoteChecked, b as addNote, a0 as addNoteChecked, X as addPart, U as addVoice, c as changeKey, S as changeNoteDuration, e as changeTime, f as deleteMeasure, d as deleteNote, a1 as deleteNoteChecked, Z as duplicatePart, i as insertMeasure, P as insertNote, h as modifyNoteDuration, a4 as modifyNoteDurationChecked, m as modifyNotePitch, a3 as modifyNotePitchChecked, $ as moveNoteToStaff, Q as removeNote, Y as removePart, T as setNotePitch, _ as setStaves, t as transpose, a5 as transposeChecked } from '../index-nCaclfqu.mjs';
@@ -1,92 +1,2 @@
1
- import { S as Score, N as NoteEntry, K as KeySignature, T as TimeSignature, a as Pitch } from '../types-DC_TnJu_.js';
2
-
3
- /**
4
- * Transpose all notes in a score by a number of semitones
5
- */
6
- declare function transpose(score: Score, semitones: number): Score;
7
- /**
8
- * Options for adding a note
9
- */
10
- interface AddNoteOptions {
11
- partIndex: number;
12
- measureIndex: number;
13
- staff?: number;
14
- voice: number;
15
- position: number;
16
- note: Omit<NoteEntry, 'type' | 'voice' | 'staff'>;
17
- }
18
- /**
19
- * Add a note to a measure
20
- * Automatically handles backup/forward insertion
21
- */
22
- declare function addNote(score: Score, options: AddNoteOptions): Score;
23
- /**
24
- * Delete a note from a measure
25
- */
26
- declare function deleteNote(score: Score, options: {
27
- partIndex: number;
28
- measureIndex: number;
29
- noteIndex: number;
30
- }): Score;
31
- /**
32
- * Change key signature from a specific measure
33
- */
34
- declare function changeKey(score: Score, key: KeySignature, options: {
35
- fromMeasure: string | number;
36
- }): Score;
37
- /**
38
- * Change time signature from a specific measure
39
- */
40
- declare function changeTime(score: Score, time: TimeSignature, options: {
41
- fromMeasure: string | number;
42
- }): Score;
43
- /**
44
- * Insert a new measure after a specific measure number
45
- */
46
- declare function insertMeasure(score: Score, options: {
47
- afterMeasure: string | number;
48
- copyAttributes?: boolean;
49
- }): Score;
50
- /**
51
- * Delete a measure
52
- */
53
- declare function deleteMeasure(score: Score, measureNumber: string | number): Score;
54
- /**
55
- * Set divisions for a measure
56
- */
57
- declare function setDivisions(score: Score, options: {
58
- partIndex: number;
59
- measureIndex: number;
60
- divisions: number;
61
- }): Score;
62
- /**
63
- * Add a chord note (note that sounds simultaneously with the previous note)
64
- */
65
- declare function addChordNote(score: Score, options: {
66
- partIndex: number;
67
- measureIndex: number;
68
- afterNoteIndex: number;
69
- pitch: Pitch;
70
- }): Score;
71
- /**
72
- * Modify a note's pitch
73
- */
74
- declare function modifyNotePitch(score: Score, options: {
75
- partIndex: number;
76
- measureIndex: number;
77
- noteIndex: number;
78
- pitch: Pitch;
79
- }): Score;
80
- /**
81
- * Modify a note's duration
82
- */
83
- declare function modifyNoteDuration(score: Score, options: {
84
- partIndex: number;
85
- measureIndex: number;
86
- noteIndex: number;
87
- duration: number;
88
- noteType?: NoteEntry['noteType'];
89
- dots?: number;
90
- }): Score;
91
-
92
- export { type AddNoteOptions, addChordNote, addNote, changeKey, changeTime, deleteMeasure, deleteNote, insertMeasure, modifyNoteDuration, modifyNotePitch, setDivisions, transpose };
1
+ import '../types-Dp9zcgIg.js';
2
+ export { W as AddPartOptions, N as InsertNoteOptions, K as OperationErrorCode, O as OperationResult, G as ValidationError, R as addChord, g as addChordNote, a2 as addChordNoteChecked, b as addNote, a0 as addNoteChecked, X as addPart, U as addVoice, c as changeKey, S as changeNoteDuration, e as changeTime, f as deleteMeasure, d as deleteNote, a1 as deleteNoteChecked, Z as duplicatePart, i as insertMeasure, P as insertNote, h as modifyNoteDuration, a4 as modifyNoteDurationChecked, m as modifyNotePitch, a3 as modifyNotePitchChecked, $ as moveNoteToStaff, Q as removeNote, Y as removePart, T as setNotePitch, _ as setStaves, t as transpose, a5 as transposeChecked } from '../index-DCty0U8p.js';