forked from paulrosen/abcjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
midi.js
34 lines (26 loc) · 907 Bytes
/
midi.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
var animation = require('./src/api/abc_animation');
var tunebook = require('./src/api/abc_tunebook');
var abcjs = {};
abcjs.signature = "abcjs-midi v5.1.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');
var editor = require('./src/edit/abc_editor');
abcjs['Editor'] = editor;
require("./src/midi/abc_midi_ui_generator");
var midi = require('./src/midi/abc_midi_controls');
abcjs.midi = {
setSoundFont: midi.setSoundFont,
startPlaying: midi.startPlaying,
restartPlaying: midi.restartPlaying,
stopPlaying: midi.stopPlaying,
setLoop: midi.setLoop,
deviceSupportsMidi: midi.deviceSupportsMidi,
setRandomProgress: midi.setRandomProgress,
};
module.exports = abcjs;