-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathoutput.js
62 lines (46 loc) · 807 Bytes
/
output.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
const easymidi = require('../index');
const OUTPUT_NAME = 'YOUR_OUTPUT_NAME';
const output = new easymidi.Output(OUTPUT_NAME);
output.send('noteoff', {
note: 64,
velocity: 0,
channel: 0
});
output.send('noteon', {
note: 64,
velocity: 127,
channel: 0
});
output.send('cc', {
controller: 64,
value: 127,
channel: 0
});
output.send('poly aftertouch', {
note: 64,
pressure: 127,
channel: 0
});
output.send('channel aftertouch', {
pressure: 127,
channel: 0
});
output.send('program', {
number: 2,
channel: 0
});
output.send('pitch', {
value: 12345,
channel: 0
});
output.send('position', {
value: 12345
});
output.send('select', {
song: 10
});
output.send('clock');
output.send('start');
output.send('continue');
output.send('stop');
output.send('reset');