spessasynth_lib 4.0.5 → 4.0.7
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/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -1941,7 +1941,7 @@ var MIDIDataTrack = class extends MIDITrack {
|
|
|
1941
1941
|
this.events = [];
|
|
1942
1942
|
}
|
|
1943
1943
|
};
|
|
1944
|
-
var MIDIData = class extends BasicMIDI {
|
|
1944
|
+
var MIDIData = class _MIDIData extends BasicMIDI {
|
|
1945
1945
|
tracks;
|
|
1946
1946
|
/**
|
|
1947
1947
|
* THIS DATA WILL BE EMPTY! USE sequencer.getMIDI() TO GET THE ACTUAL DATA!
|
|
@@ -1955,7 +1955,11 @@ var MIDIData = class extends BasicMIDI {
|
|
|
1955
1955
|
super();
|
|
1956
1956
|
super.copyMetadataFrom(mid);
|
|
1957
1957
|
this.tracks = mid.tracks.map((t) => new MIDIDataTrack(t));
|
|
1958
|
-
|
|
1958
|
+
if (mid instanceof _MIDIData) {
|
|
1959
|
+
this.embeddedSoundBankSize = mid.embeddedSoundBankSize;
|
|
1960
|
+
} else {
|
|
1961
|
+
this.embeddedSoundBankSize = mid?.embeddedSoundBank?.byteLength;
|
|
1962
|
+
}
|
|
1959
1963
|
}
|
|
1960
1964
|
};
|
|
1961
1965
|
|