begin supradough

This commit is contained in:
Felix Roos 2025-06-01 18:06:36 +02:00
parent b312ff63a9
commit 483843bd0a
No known key found for this signature in database
4 changed files with 539 additions and 2 deletions

View file

@ -12,7 +12,7 @@ import {
} from './helpers.mjs';
import { getNoiseMix, getNoiseOscillator } from './noise.mjs';
const getFrequencyFromValue = (value) => {
export const getFrequencyFromValue = (value) => {
let { note, freq } = value;
note = note || 36;
if (typeof note === 'string') {
@ -25,7 +25,7 @@ const getFrequencyFromValue = (value) => {
return Number(freq);
};
function destroyAudioWorkletNode(node) {
export function destroyAudioWorkletNode(node) {
if (node == null) {
return;
}