main
Jurij Podgoršek 2022-09-14 20:40:48 +02:00
parent af128acd36
commit a6a8733501
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ const rl = readline.createInterface({
const posljiMidi = (ukazi) => {
ukazi.forEach(midi => {
console.log('posiljam midi', midi)
mo.send(midi)
})
}
@ -80,6 +81,12 @@ rl.on('line', line => {
case 'q':
posljiMidi(quantize)
break;
case 'p':
posljiMidi(play)
break;
case 's':
posljiMidi(pause)
break;
}
rl.prompt()
})