@waveform-playlist/browser 9.5.0 → 9.5.2
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 +6 -34
- package/dist/index.js +102 -102
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3018 -3110
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1385,32 +1385,7 @@ declare interface SpectrogramConfig {
|
|
|
1385
1385
|
labelsBackground?: string;
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
|
-
/**
|
|
1389
|
-
* Computed spectrogram data ready for rendering.
|
|
1390
|
-
*/
|
|
1391
|
-
declare interface SpectrogramData {
|
|
1392
|
-
/** Actual FFT length used for computation (includes zero padding) */
|
|
1393
|
-
fftSize: number;
|
|
1394
|
-
/** Original analysis window size before zero padding */
|
|
1395
|
-
windowSize: number;
|
|
1396
|
-
/** Number of frequency bins (fftSize / 2) */
|
|
1397
|
-
frequencyBinCount: number;
|
|
1398
|
-
/** Sample rate of the source audio */
|
|
1399
|
-
sampleRate: number;
|
|
1400
|
-
/** Hop size between FFT frames (in samples) */
|
|
1401
|
-
hopSize: number;
|
|
1402
|
-
/** Number of time frames */
|
|
1403
|
-
frameCount: number;
|
|
1404
|
-
/** dB values: frameCount * frequencyBinCount Float32Array (row-major, frame × bin) */
|
|
1405
|
-
data: Float32Array;
|
|
1406
|
-
/** Display brightness boost in dB */
|
|
1407
|
-
gainDb: number;
|
|
1408
|
-
/** Signal range in dB */
|
|
1409
|
-
rangeDb: number;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
1388
|
export declare interface SpectrogramIntegration {
|
|
1413
|
-
spectrogramDataMap: Map<string, SpectrogramData[]>;
|
|
1414
1389
|
trackSpectrogramOverrides: Map<string, TrackSpectrogramOverrides>;
|
|
1415
1390
|
spectrogramWorkerApi: SpectrogramWorkerApi | null;
|
|
1416
1391
|
spectrogramConfig?: SpectrogramConfig;
|
|
@@ -1933,21 +1908,18 @@ export declare interface UseExportWavReturn {
|
|
|
1933
1908
|
*
|
|
1934
1909
|
* @example
|
|
1935
1910
|
* ```tsx
|
|
1936
|
-
* const { splitClipAtPlayhead } = useClipSplitting({ ... });
|
|
1937
|
-
*
|
|
1938
1911
|
* useKeyboardShortcuts({
|
|
1939
1912
|
* shortcuts: [
|
|
1940
1913
|
* {
|
|
1941
|
-
* key: '
|
|
1942
|
-
* action:
|
|
1943
|
-
* description: '
|
|
1914
|
+
* key: ' ',
|
|
1915
|
+
* action: togglePlayPause,
|
|
1916
|
+
* description: 'Play/Pause',
|
|
1944
1917
|
* preventDefault: true,
|
|
1945
1918
|
* },
|
|
1946
1919
|
* {
|
|
1947
|
-
* key: '
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
* description: 'Split at selection boundaries',
|
|
1920
|
+
* key: 's',
|
|
1921
|
+
* action: splitClipAtPlayhead,
|
|
1922
|
+
* description: 'Split clip at playhead',
|
|
1951
1923
|
* preventDefault: true,
|
|
1952
1924
|
* },
|
|
1953
1925
|
* ],
|