spessasynth_lib 3.20.11 → 3.20.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/midi_parser/midi_editor.js +1 -1
- package/package.json +1 -1
- package/sequencer/worklet_sequencer/song_control.js +1 -5
- package/synthetizer/worklet_processor.min.js +5 -5
- package/synthetizer/worklet_system/main_processor.js +11 -3
- package/synthetizer/worklet_system/worklet_methods/program_control.js +22 -0
|
@@ -296,7 +296,7 @@ export function modifyMIDI(
|
|
|
296
296
|
/**
|
|
297
297
|
* @type {{index: number, track: number}[]}
|
|
298
298
|
*/
|
|
299
|
-
const firstNoteOnForTrack = getFirstVoiceForChannel(midiChannel, port,
|
|
299
|
+
const firstNoteOnForTrack = getFirstVoiceForChannel(midiChannel, port, true);
|
|
300
300
|
if(firstNoteOnForTrack.length === 0)
|
|
301
301
|
{
|
|
302
302
|
SpessaSynthWarn("Program change but no notes... ignoring!");
|
package/package.json
CHANGED
|
@@ -57,11 +57,7 @@ export function loadNewSequence(parsedMidi)
|
|
|
57
57
|
if(this.midiData.embeddedSoundFont !== undefined)
|
|
58
58
|
{
|
|
59
59
|
SpessaSynthInfo("%cEmbedded soundfont detected! Using it.", consoleColors.recognized);
|
|
60
|
-
|
|
61
|
-
this.synth.soundfontBankOffset = this.midiData.bankOffset;
|
|
62
|
-
this.synth.reloadSoundFont(this.midiData.embeddedSoundFont, true);
|
|
63
|
-
// preload all samples
|
|
64
|
-
this.synth.overrideSoundfont.samples.forEach(s => s.getAudioData());
|
|
60
|
+
this.synth.setEmbeddedSoundFont(this.midiData.embeddedSoundFont, this.midiData.bankOffset);
|
|
65
61
|
}
|
|
66
62
|
else
|
|
67
63
|
{
|