-
Notifications
You must be signed in to change notification settings - Fork 0
/
remus.js
146 lines (130 loc) · 3.24 KB
/
remus.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
import Fraction from 'fraction.js';
import Store from './lib/store.js';
import AudioFile from './lib/classes/audio-file.js';
import Duration from './lib/classes/duration.js';
import Harmony from './lib/classes/harmony.js';
import Interval from './lib/classes/interval.js';
import Item from './lib/classes/item.js';
import Pitch from './lib/classes/pitch.js';
import MusicPtr from './lib/music-ptr.js';
import Audio from './lib/classes/event/audio.js';
import Chord from './lib/classes/event/chord.js';
import ChordSequence from './lib/classes/event/chord-sequence.js';
import Clef from './lib/classes/meta/clef.js';
import Mode from './lib/classes/mode.js';
import Note from './lib/classes/event/note.js';
import NoteChord from './lib/classes/event/note-chord.js';
import Rest from './lib/classes/event/rest.js';
import Song from './lib/classes/event/song.js';
import StaffAssignment from './lib/classes/meta/staff-assignment.js';
import VerticalContainer from './lib/classes/event/vertical-container.js';
import Voice from './lib/classes/event/voice.js';
import VoiceContainer from './lib/classes/event/voice-container.js';
import Part from './lib/classes/event/part.js';
import Tempo from './lib/classes/meta/tempo.js';
import Time from './lib/classes/meta/time.js';
import Key from './lib/classes/meta/key.js';
import Tuplet from './lib/classes/event/tuplet.js';
import Meta from './lib/classes/meta/meta.js';
import PageText from './lib/classes/page-item/page-text.js';
import Score from './lib/score/score.js';
import NoteSplit from 'note-split';
// Default export
// Example use:
//
// import remus from 'remus';
//
export default {
Store: Store,
Fraction: Fraction,
Interval: Interval,
Pitch: Pitch,
Duration: Duration,
Mode: Mode,
Note: Note,
NoteChord: NoteChord,
Rest: Rest,
Harmony: Harmony,
Chord: Chord,
ChordSequence: ChordSequence,
Voice: Voice,
VerticalContainer: VerticalContainer,
VoiceContainer: VoiceContainer,
Meta: Meta,
Part: Part,
AudioFile: AudioFile,
Audio: Audio,
Tempo: Tempo,
Time: Time,
Clef: Clef,
Song: Song,
Key: Key,
Tuplet: Tuplet,
Item: Item,
MusicPtr: MusicPtr,
PageText: PageText,
StaffAssignment: StaffAssignment,
Score: Score,
debug: {
NoteSplit: NoteSplit
},
interval: Interval.coerce,
pitch: Pitch.coerce,
duration: Duration.coerce,
mode: Mode.coerce,
note: Note.coerce,
noteChord: NoteChord.coerce,
rest: Rest.coerce,
harmony: Harmony.coerce,
chord: Chord.coerce,
chordSequence: ChordSequence.coerce,
voice: Voice.coerce,
verticalContainer: VerticalContainer.coerce,
voiceContainer: VoiceContainer.coerce,
part: Part.coerce,
audioFile: AudioFile.coerce,
audio: Audio.coerce,
tempo: Tempo.coerce,
time: Time.coerce,
clef: Clef.coerce,
song: Song.coerce,
key: Key.coerce,
tuplet: Tuplet.coerce,
staffAssignment: StaffAssignment.coerce,
};
// Named exports
// Example use:
//
// import { Item } from 'remus';
//
export {
Store,
Fraction,
Interval,
Pitch,
Duration,
Mode,
Note,
NoteChord,
Rest,
Harmony,
Chord,
ChordSequence,
Voice,
VerticalContainer,
VoiceContainer,
Meta,
Part,
AudioFile,
Audio,
Tempo,
Time,
Clef,
Song,
Key,
Tuplet,
Item,
MusicPtr,
StaffAssignment,
Score,
}