disable lint for global worklet variables

This commit is contained in:
Jade (Rose) Rowland 2024-03-05 00:34:59 -05:00
parent c0b00339c5
commit 232b9c13d7
2 changed files with 63 additions and 41 deletions

View file

@ -219,7 +219,7 @@ export function applyFM(param, value, begin) {
if (fmModulationIndex) {
const ac = getAudioContext();
const envGain = ac.createGain();
const { node: modulator } = fm(param, fmHarmonicity, fmModulationIndex, fmWaveform);
const { node: modulator, stop } = fm(param, fmHarmonicity, fmModulationIndex, fmWaveform);
if (![fmAttack, fmDecay, fmSustain, fmRelease, fmVelocity].find((v) => v !== undefined)) {
// no envelope by default
modulator.connect(param);