Open connorjclark opened 2 years ago
This works:
const gainNode = this.midiPlayer._audioContext.createGain();
gainNode.gain.value = 0.25;
gainNode.connect(this.midiPlayer._audioContext.destination);
this.midiPlayer._node.disconnect(this.midiPlayer._audioContext.destination)
this.midiPlayer._node.connect(gainNode);
Is there anyway to control the volume?