@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.
@@ -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
- sampleRate: number;
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;