This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var midi = require('midi'); | |
// Set up a new output. | |
var output = new midi.output(); | |
var input = new midi.input(); | |
output.openPort(0); | |
input.openPort(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const doesClassExist = (c)=>{ | |
let item = document.getElementsByClassName(c); | |
if (item.length > 0) { | |
return true; | |
} else { | |
return false; | |
} | |
} |