use superdough in webaudio package

This commit is contained in:
Felix Roos 2023-08-11 12:13:24 +02:00
parent 898bfaeecf
commit 738e714f45
13 changed files with 13 additions and 845 deletions

View file

@ -124,7 +124,7 @@ function effectSend(input, effect, wet) {
return send;
}
export const superdough = async (value, deadline, hapDuration, cps) => {
export const superdough = async (value, deadline, hapDuration) => {
const ac = getAudioContext();
if (typeof value !== 'object') {
throw new Error(
@ -164,7 +164,6 @@ export const superdough = async (value, deadline, hapDuration, cps) => {
size = 2,
velocity = 1,
} = value;
// const { velocity = 1 } = hap.context;
gain *= velocity; // legacy fix for velocity
let toDisconnect = []; // audio nodes that will be disconnected when the source has ended
const onended = () => {