keep sine as mod default
This commit is contained in:
parent
88b5b9b21c
commit
6ca89cb907
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue