forked from paulrosen/abcjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
45 lines (34 loc) · 1.58 KB
/
test.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
const animation = require('./src/api/abc_animation');
const tunebook = require('./src/api/abc_tunebook');
let abcjs = {};
abcjs.signature = "abcjs-test v3.3.1";
Object.keys(animation).forEach(function (key) {
abcjs[key] = animation[key];
});
Object.keys(tunebook).forEach(function (key) {
abcjs[key] = tunebook[key];
});
abcjs.renderAbc = require('./src/api/abc_tunebook_svg');
abcjs.renderMidi = require('./src/api/abc_tunebook_midi');
const parser = require('./src/parse/abc_parse');
abcjs['parse'] = { Parse: parser };
const engraverController = require('./src/write/abc_engraver_controller');
abcjs['write'] = { EngraverController: engraverController };
const editor = require('./src/edit/abc_editor');
abcjs['Editor'] = editor;
const midi = require('./src/midi/abc_midi_controls');
const sequence = require('./src/midi/abc_midi_sequencer');
const flatten = require('./src/midi/abc_midi_flattener');
const midiCreate = require('./src/midi/abc_midi_create');
const midiUiGenerator = require('./src/midi/abc_midi_ui_generator');
abcjs['midi'] = midi;
abcjs['midi'].sequence = sequence;
abcjs['midi'].flatten = flatten;
abcjs['midi'].create = midiCreate;
abcjs['midi'].midiUiGenerator = midiUiGenerator;
const parserLint = require('./src/test/abc_parser_lint');
const verticalLint = require('./src/test/abc_vertical_lint');
const midiLint = require('./src/test/abc_midi_lint');
const midiSequencerLint = require('./src/test/abc_midi_sequencer_lint');
abcjs['test'] = { ParserLint: parserLint, verticalLint: verticalLint, midiLint: midiLint, midiSequencerLint: midiSequencerLint };
module.exports = abcjs;