spessasynth_core 4.3.15 → 4.3.17
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/README.md +1 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +88 -533
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ and reworked, more powerful API!
|
|
|
50
50
|
- **Flexible:** _It's not just a MIDI player!_
|
|
51
51
|
- **Easy to Use:** _Basic setup is
|
|
52
52
|
just [two lines of code!](https://spessasus.github.io/spessasynth_core/getting-started#minimal-setup)_
|
|
53
|
-
- **No dependencies:**
|
|
53
|
+
- **No external dependencies:** _Only vorbis decoder for SF3 support!_
|
|
54
54
|
- **Full TypeScript definitions:** _Autocompletion in IDEs!_
|
|
55
55
|
|
|
56
56
|
### Powerful MIDI Synthesizer
|
|
@@ -203,7 +203,6 @@ and reworked, more powerful API!
|
|
|
203
203
|
- [Polyphone](https://github.com/davy7125/polyphone/) - for the soundfont testing and editing tool
|
|
204
204
|
- [Meltysynth](https://github.com/sinshu/meltysynth) - for the initial low-pass filter implementation
|
|
205
205
|
- [RecordingBlogs](https://www.recordingblogs.com/) - for detailed explanations on MIDI messages
|
|
206
|
-
- [stbvorbis.js](https://github.com/hajimehoshi/stbvorbis.js) - for the Vorbis decoder
|
|
207
206
|
- [fflate](https://github.com/101arrowz/fflate) - for the MIT DEFLATE implementation
|
|
208
207
|
- [tsup](https://github.com/egoist/tsup) - for the TypeScript bundler
|
|
209
208
|
- [foo_midi](https://github.com/stuerp/foo_midi) - for useful resources on XMF file format
|
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,19 @@ declare class SpessaLog {
|
|
|
95
95
|
* If grouping of the log messages is allowed. Recommended for the `info` verbosity level.
|
|
96
96
|
*/
|
|
97
97
|
static groupEnabled: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* The log functions that get called with the data.
|
|
100
|
+
* By default, they use `console` object.
|
|
101
|
+
*
|
|
102
|
+
* This may be overridden to capture the spessasynth log data.
|
|
103
|
+
*/
|
|
104
|
+
static logFunctions: {
|
|
105
|
+
info: (...data: any[]) => void;
|
|
106
|
+
warn: (...data: any[]) => void;
|
|
107
|
+
group: (...data: any[]) => void;
|
|
108
|
+
groupEnd: () => void;
|
|
109
|
+
groupCollapsed: (...data: any[]) => void;
|
|
110
|
+
};
|
|
98
111
|
/**
|
|
99
112
|
* Enables or disables logging.
|
|
100
113
|
* @param enableInfo enables info.
|
|
@@ -2520,7 +2533,7 @@ declare class SpessaSynthProcessor {
|
|
|
2520
2533
|
/**
|
|
2521
2534
|
* Controls if the processor is fully initialized.
|
|
2522
2535
|
*/
|
|
2523
|
-
readonly processorInitialized: Promise<
|
|
2536
|
+
readonly processorInitialized: Promise<void>;
|
|
2524
2537
|
/**
|
|
2525
2538
|
* Sample rate in Hertz.
|
|
2526
2539
|
*/
|
|
@@ -3374,7 +3387,7 @@ declare class BasicSoundBank {
|
|
|
3374
3387
|
/**
|
|
3375
3388
|
* Indicates if the SF3/SF2Pack decoder is ready.
|
|
3376
3389
|
*/
|
|
3377
|
-
static isSF3DecoderReady: Promise<
|
|
3390
|
+
static isSF3DecoderReady: Promise<void>;
|
|
3378
3391
|
/**
|
|
3379
3392
|
* The type of the sound bank that was loaded.
|
|
3380
3393
|
* Either `sf2` for SoundFont2/SoundFont3 or `dls` for DownLoadable Sounds or `sfe` for SF-Enhanced.
|