Manjsi require popravki

main
Jurij Podgoršek 2022-05-07 15:38:21 +02:00
parent 084ffa77d8
commit f958f5f24e
1 changed files with 4 additions and 5 deletions

View File

@ -27,10 +27,7 @@ const WebSocket = require('ws')
const osc = require('osc')
const readline = require('readline')
const fs = require('fs')
if (MIDI) {
const midi = require('midi')
}
const midi = require('midi')
// Vzemi iz argumenta
@ -300,6 +297,8 @@ wss.on('connection', function (ws) {
})
// Zapri midi
if (MIDI) {
/*
if (MIDI && mo) {
mo.closePort()
}
*/