Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function muteToggle() {
let b = $("#muteButton");
let t = b.html();
if (t == "ON") {
b.html("OFF");
b.css('color', COLOR_6);
MIDI.setVolume(0, 127);
} else {
b.html("ON");
b.css('color', COLOR_4);
MIDI.setVolume(0, 0);
}
}
function muteToggle() {
let b = $("#muteButton");
let t = b.html();
if (t == "ON") {
b.html("OFF");
b.css('color', COLOR_6);
MIDI.setVolume(0, 127);
} else {
b.html("ON");
b.css('color', COLOR_4);
MIDI.setVolume(0, 0);
}
}