fix: stopNote fires noteOff(3 variants) + allNotesOff + CC123 for redundancy
This commit is contained in:
@@ -173,8 +173,11 @@
|
||||
stopNote: function (channel, pitch) {
|
||||
if (channel < 0 || channel > 15) return;
|
||||
if (_initialized && _synthInstance) {
|
||||
try { _synthInstance.noteOff(channel, pitch, 127); } catch (e) {}
|
||||
try { _synthInstance.noteOff(channel, pitch); } catch (e) {}
|
||||
try { _synthInstance.noteOff(channel, pitch, 0); } catch (e) {}
|
||||
try { _synthInstance.allNotesOff(channel); } catch (e) {}
|
||||
try { _synthInstance.controllerChange(channel, 123, 0); } catch (e) {}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user