keep sine as mod default

This commit is contained in:
Felix Roos 2023-08-31 04:25:12 +02:00
parent 88b5b9b21c
commit 6ca89cb907

View File

@ -2,7 +2,7 @@ import { midiToFreq, noteToMidi } from './util.mjs';
import { registerSound, getAudioContext } from './superdough.mjs';
import { getOscillator, gainNode, getEnvelope, getExpEnvelope } from './helpers.mjs';
const mod = (freq, range = 1, type) => {
const mod = (freq, range = 1, type = 'sine') => {
const ctx = getAudioContext();
const osc = ctx.createOscillator();
osc.type = type;