disable lint for global worklet variables
This commit is contained in:
parent
c0b00339c5
commit
232b9c13d7
2 changed files with 63 additions and 41 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue