@libraz/libsonare 1.2.1 → 1.2.3
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 +56 -4
- package/dist/index.d.ts +820 -296
- package/dist/index.js +770 -128
- package/dist/index.js.map +1 -1
- package/dist/sonare-rt.wasm +0 -0
- package/dist/sonare.js +1 -1
- package/dist/sonare.wasm +0 -0
- package/dist/worklet.d.ts +101 -3
- package/dist/worklet.js +706 -69
- package/dist/worklet.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +1764 -287
- package/src/public_types.ts +128 -0
- package/src/sonare.js.d.ts +580 -79
- package/src/stream_types.ts +4 -1
- package/src/worklet.ts +796 -66
- package/src/wasm_types.ts +0 -1259
package/src/stream_types.ts
CHANGED
|
@@ -72,6 +72,8 @@ export interface AnalyzerStats {
|
|
|
72
72
|
*/
|
|
73
73
|
export interface FrameBuffer {
|
|
74
74
|
nFrames: number;
|
|
75
|
+
/** Number of mel bands; flat `mel` is `[nFrames * nMels]` row-major. */
|
|
76
|
+
nMels: number;
|
|
75
77
|
timestamps: Float32Array;
|
|
76
78
|
mel: Float32Array;
|
|
77
79
|
chroma: Float32Array;
|
|
@@ -112,7 +114,8 @@ export interface StreamFramesI16 {
|
|
|
112
114
|
* Configuration for StreamAnalyzer
|
|
113
115
|
*/
|
|
114
116
|
export interface StreamConfig {
|
|
115
|
-
|
|
117
|
+
/** Sample rate in Hz. Optional for parity with the Node/Python bindings (default 44100). */
|
|
118
|
+
sampleRate?: number;
|
|
116
119
|
nFft?: number;
|
|
117
120
|
hopLength?: number;
|
|
118
121
|
nMels?: number;
|