added back (possibly unessecary? stop fm
This commit is contained in:
parent
232b9c13d7
commit
05887967e0
2 changed files with 9 additions and 3 deletions
|
|
@ -208,7 +208,7 @@ export function getOscillator(s, t, value) {
|
|||
|
||||
// pitch envelope
|
||||
getPitchEnvelope(o.detune, value, t, t + duration);
|
||||
applyFM(o.frequency, value, t);
|
||||
const fmModulator = applyFM(o.frequency, value, t);
|
||||
|
||||
let noiseMix;
|
||||
if (noise) {
|
||||
|
|
@ -218,9 +218,9 @@ export function getOscillator(s, t, value) {
|
|||
return {
|
||||
node: noiseMix?.node || o,
|
||||
stop: (time) => {
|
||||
fmModulator.stop(time);
|
||||
vibratoOscillator?.stop(time);
|
||||
noiseMix?.stop(time);
|
||||
// stopFm?.(time);
|
||||
o.stop(time);
|
||||
},
|
||||
triggerRelease: (time) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue