You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ npm install easymidi
12
12
The module can interface with existing MIDI inputs/outputs or create virtual inputs/outputs. Here's a simple example to listen for note on events from an existing MIDI input:
13
13
14
14
```javascript
15
-
var easymidi =require('easymidi');
16
-
var input =neweasymidi.Input('MIDI Input Name');
15
+
consteasymidi=require('easymidi');
16
+
constinput=neweasymidi.Input('MIDI Input Name');
17
17
input.on('noteon', function (msg) {
18
18
// do something with msg
19
19
});
@@ -22,8 +22,8 @@ input.on('noteon', function (msg) {
22
22
Here's an example of sending a note on message to an existing MIDI output:
23
23
24
24
```javascript
25
-
var easymidi =require('easymidi');
26
-
var output =neweasymidi.Output('MIDI Output Name');
0 commit comments