spessasynth_lib 4.2.5 → 4.2.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
|
@@ -255,7 +255,7 @@ declare abstract class BasicSynthesizerCore {
|
|
|
255
255
|
*/
|
|
256
256
|
protected alive: boolean;
|
|
257
257
|
protected readonly enableEventSystem: boolean;
|
|
258
|
-
protected constructor(sampleRate: number, options:
|
|
258
|
+
protected constructor(sampleRate: number, options: Partial<SynthProcessorOptions>, postMessage: PostMessageSynthCore);
|
|
259
259
|
protected createNewSequencer(): void;
|
|
260
260
|
protected postReady<K extends keyof SynthesizerReturn>(type: K, data: SynthesizerReturn[K], transferable?: Transferable[]): void;
|
|
261
261
|
protected postProgress<K extends keyof SynthesizerProgress>(type: K, data: SynthesizerProgress[K]): void;
|
package/dist/index.js
CHANGED
|
@@ -1684,7 +1684,7 @@ var BasicSynthesizerCore = class {
|
|
|
1684
1684
|
enableEventSystem;
|
|
1685
1685
|
constructor(sampleRate, options, postMessage) {
|
|
1686
1686
|
this.synthesizer = new SpessaSynthProcessor2(sampleRate, options);
|
|
1687
|
-
this.enableEventSystem = options.enableEventSystem;
|
|
1687
|
+
this.enableEventSystem = options.enableEventSystem ?? false;
|
|
1688
1688
|
this.post = postMessage;
|
|
1689
1689
|
this.synthesizer.onEventCall = (event) => {
|
|
1690
1690
|
this.post({
|