WIP
This commit is contained in:
parent
ccbf28f2db
commit
c5f1085bd9
4 changed files with 21 additions and 3 deletions
|
|
@ -475,6 +475,7 @@ export const getDistortionAlgorithm = (algo) => {
|
|||
};
|
||||
|
||||
export const getDistortion = (distort, postgain, algorithm) => {
|
||||
debugger;
|
||||
return getWorklet(getAudioContext(), 'distort-processor', { distort, postgain }, { processorOptions: { algorithm } });
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { noteToMidi, valueToMidi, getSoundIndex, getCommonSampleInfo } from './util.mjs';
|
||||
import { registerSound, registerWavetable } from './index.mjs';
|
||||
import { getCommonSampleInfo } from './util.mjs';
|
||||
import { registerSound, registerWaveTable } from './index.mjs';
|
||||
import { getAudioContext } from './audioContext.mjs';
|
||||
import { getADSRValues, getParamADSR, getPitchEnvelope, getVibratoOscillator } from './helpers.mjs';
|
||||
import { logger } from './logger.mjs';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import {
|
|||
destroyAudioWorkletNode,
|
||||
getADSRValues,
|
||||
getFrequencyFromValue,
|
||||
getLfo,
|
||||
getParamADSR,
|
||||
getPitchEnvelope,
|
||||
getVibratoOscillator,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue