> myConstantSourceNode.offset.value = newValue;
>ConstantSourceNode: offset property / notebook
ConstantSourceNode: offset property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
gainNode2 = context.createGain();
gainNode3 = context.createGain();
gainNode2.gain.value = gainNode3.gain.value = 0.5;
volumeSliderControl.value = gainNode2.gain.value;
constantSource = context.createConstantSource();
constantSource.connect(gainNode2.gain);
constantSource.connect(gainNode3.gain);function handleClickEvent(event) {
constantSource.offset.value = volumeSliderControl.value;
}