This commit is contained in:
Jade (Rose) Rowland 2025-03-30 20:26:44 -04:00
parent d8e4055c6e
commit 2f4cba4e94
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -278,7 +278,6 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '', option
const cutGroups = [];
export async function onTriggerSample(t, value, onended, bank, resolveUrl) {
let {
s,
@ -346,7 +345,7 @@ export async function onTriggerSample(t, value, onended, bank, resolveUrl) {
let envEnd = holdEnd + release + 0.01;
bufferSource.stop(envEnd);
const stop = (endTime) => {
bufferSource.stop(endTime)
bufferSource.stop(endTime);
};
const handle = { node: out, bufferSource, stop };