From 4b64168faa0c95b70edac6c6ec17ca178c72278a Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 3 Oct 2023 12:20:28 +0200 Subject: [PATCH] fix: imports --- packages/superdough/noise.mjs | 1 + packages/superdough/synth.mjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/superdough/noise.mjs b/packages/superdough/noise.mjs index eeb2a9d0..0e6c436e 100644 --- a/packages/superdough/noise.mjs +++ b/packages/superdough/noise.mjs @@ -1,4 +1,5 @@ import { drywet } from './helpers.mjs'; +import { getAudioContext } from './superdough.mjs'; // expects one of noises as type export function getNoiseOscillator(type = 'white', t) { diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index 8c07f34e..24d1d5ef 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -1,7 +1,7 @@ import { midiToFreq, noteToMidi } from './util.mjs'; import { registerSound, getAudioContext } from './superdough.mjs'; import { gainNode, getEnvelope, getExpEnvelope } from './helpers.mjs'; -import { getNoiseMix } from './noise.mjs'; +import { getNoiseMix, getNoiseOscillator } from './noise.mjs'; const mod = (freq, range = 1, type = 'sine') => { const ctx = getAudioContext();