mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +00:00
keep sine as mod default
This commit is contained in:
parent
88b5b9b21c
commit
6ca89cb907
@ -2,7 +2,7 @@ import { midiToFreq, noteToMidi } from './util.mjs';
|
|||||||
import { registerSound, getAudioContext } from './superdough.mjs';
|
import { registerSound, getAudioContext } from './superdough.mjs';
|
||||||
import { getOscillator, gainNode, getEnvelope, getExpEnvelope } from './helpers.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 ctx = getAudioContext();
|
||||||
const osc = ctx.createOscillator();
|
const osc = ctx.createOscillator();
|
||||||
osc.type = type;
|
osc.type = type;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user