@libraz/libsonare 1.1.0 → 1.2.0

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.
@@ -42,6 +42,7 @@ export interface ProgressiveEstimate {
42
42
  chordRoot: PitchClass;
43
43
  chordQuality: ChordQuality;
44
44
  chordConfidence: number;
45
+ chordStartTime: number;
45
46
  chordProgression: ChordChange[];
46
47
  barChordProgression: BarChord[];
47
48
  currentBar: number;
@@ -83,6 +84,30 @@ export interface FrameBuffer {
83
84
  chordConfidence: Float32Array;
84
85
  }
85
86
 
87
+ export interface StreamFramesU8 {
88
+ nFrames: number;
89
+ nMels: number;
90
+ timestamps: Float32Array;
91
+ mel: Uint8Array;
92
+ chroma: Uint8Array;
93
+ onsetStrength: Uint8Array;
94
+ rmsEnergy: Uint8Array;
95
+ spectralCentroid: Uint8Array;
96
+ spectralFlatness: Uint8Array;
97
+ }
98
+
99
+ export interface StreamFramesI16 {
100
+ nFrames: number;
101
+ nMels: number;
102
+ timestamps: Float32Array;
103
+ mel: Int16Array;
104
+ chroma: Int16Array;
105
+ onsetStrength: Int16Array;
106
+ rmsEnergy: Int16Array;
107
+ spectralCentroid: Int16Array;
108
+ spectralFlatness: Int16Array;
109
+ }
110
+
86
111
  /**
87
112
  * Configuration for StreamAnalyzer
88
113
  */
@@ -91,8 +116,18 @@ export interface StreamConfig {
91
116
  nFft?: number;
92
117
  hopLength?: number;
93
118
  nMels?: number;
119
+ fmin?: number;
120
+ fmax?: number;
121
+ tuningRefHz?: number;
122
+ computeMagnitude?: boolean;
94
123
  computeMel?: boolean;
95
124
  computeChroma?: boolean;
96
125
  computeOnset?: boolean;
126
+ computeSpectral?: boolean;
97
127
  emitEveryNFrames?: number;
128
+ magnitudeDownsample?: number;
129
+ keyUpdateIntervalSec?: number;
130
+ bpmUpdateIntervalSec?: number;
131
+ window?: number;
132
+ outputFormat?: number;
98
133
  }