ramp cut audio node

This commit is contained in:
Jade (Rose) Rowland 2025-03-30 16:33:47 -04:00
parent 8962e5a4f0
commit 6f9bcc53dc
5 changed files with 51 additions and 32 deletions

View file

@ -212,6 +212,7 @@ export function webAudioTimeout(audioContext, onComplete, startTime, stopTime) {
constantNode.onended = () => {
onComplete();
};
return constantNode
}
const mod = (freq, range = 1, type = 'sine') => {
const ctx = getAudioContext();