var gainNode = context.createGain(); gainNode.gain.value = 0.4; // 0..1 source.connect(gainNode); gainNode.connect(destination);