spessasynth_lib
Version:
MIDI and SoundFont2/DLS library with no compromises
17 lines • 345 B
JavaScript
/**
* @param isMuted {boolean}
* @this {WorkletProcessorChannel}
*/
export function muteChannel(isMuted)
{
if (isMuted)
{
this.stopAllNotes(true);
}
this.isMuted = isMuted;
this.sendChannelProperty();
this.synth.callEvent("mutechannel", {
channel: this.channelNumber,
isMuted: isMuted
});
}