@waveform-playlist/spectrogram 15.0.0-next.8 → 15.0.0-next.9
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 -1
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +109 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +108 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -93,6 +93,9 @@ function SpectrogramMenuItems({
|
|
|
93
93
|
// src/components/SpectrogramSettingsModal.tsx
|
|
94
94
|
import { useRef, useEffect, useId, useLayoutEffect, useState } from "react";
|
|
95
95
|
import styled2 from "styled-components";
|
|
96
|
+
import {
|
|
97
|
+
SPECTROGRAM_DEFAULTS
|
|
98
|
+
} from "@waveform-playlist/core";
|
|
96
99
|
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
97
100
|
var StyledDialog = styled2.dialog`
|
|
98
101
|
border: 1px solid rgba(128, 128, 128, 0.4);
|
|
@@ -167,11 +170,12 @@ var ModalButton = styled2.button`
|
|
|
167
170
|
border-radius: 4px;
|
|
168
171
|
cursor: pointer;
|
|
169
172
|
font-size: 0.85rem;
|
|
170
|
-
background: ${(p) => p.$primary ? "
|
|
171
|
-
color: ${(p) => p.$primary ? "#fff" : "inherit"};
|
|
173
|
+
background: ${(p) => p.$primary ? p.theme.buttonBackground ?? "#0091ff" : "transparent"};
|
|
174
|
+
color: ${(p) => p.$primary ? p.theme.buttonText ?? "#fff" : "inherit"};
|
|
175
|
+
${(p) => p.$primary && p.theme.buttonBorder ? `border-color: ${p.theme.buttonBorder};` : ""}
|
|
172
176
|
|
|
173
177
|
&:hover {
|
|
174
|
-
opacity: 0.85;
|
|
178
|
+
${(p) => p.$primary && p.theme.buttonHoverBackground ? `background: ${p.theme.buttonHoverBackground};` : "opacity: 0.85;"}
|
|
175
179
|
}
|
|
176
180
|
`;
|
|
177
181
|
var FFT_SIZES = [256, 512, 1024, 2048, 4096, 8192];
|
|
@@ -185,39 +189,40 @@ var WINDOW_FUNCTIONS = [
|
|
|
185
189
|
];
|
|
186
190
|
var FREQ_SCALES = ["linear", "logarithmic", "mel", "bark", "erb"];
|
|
187
191
|
var COLOR_MAPS = ["viridis", "magma", "inferno", "grayscale", "igray", "roseus"];
|
|
188
|
-
var
|
|
192
|
+
var CUSTOM_COLOR_MAP = "custom";
|
|
193
|
+
var SettingsForm = ({
|
|
194
|
+
onClose,
|
|
195
|
+
config,
|
|
196
|
+
colorMap,
|
|
197
|
+
onApply,
|
|
198
|
+
sampleRate
|
|
199
|
+
}) => {
|
|
189
200
|
const id = useId();
|
|
190
|
-
const [
|
|
191
|
-
const [
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
);
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
);
|
|
204
|
-
const
|
|
201
|
+
const [edits, setEdits] = useState({});
|
|
202
|
+
const [editedColorMap, setEditedColorMap] = useState(void 0);
|
|
203
|
+
const shown = (key) => key in edits ? edits[key] : config[key];
|
|
204
|
+
const edit = (changes) => setEdits((prev) => ({ ...prev, ...changes }));
|
|
205
|
+
const fftSize = shown("fftSize") ?? SPECTROGRAM_DEFAULTS.fftSize;
|
|
206
|
+
const hopSize = shown("hopSize") ?? Math.floor(fftSize / 4);
|
|
207
|
+
const zeroPadding = shown("zeroPaddingFactor") ?? SPECTROGRAM_DEFAULTS.zeroPaddingFactor;
|
|
208
|
+
const windowFn = shown("windowFunction") ?? SPECTROGRAM_DEFAULTS.windowFunction;
|
|
209
|
+
const freqScale = shown("frequencyScale") ?? SPECTROGRAM_DEFAULTS.frequencyScale;
|
|
210
|
+
const minFreq = shown("minFrequency") ?? SPECTROGRAM_DEFAULTS.minFrequency;
|
|
211
|
+
const nyquist = sampleRate !== void 0 ? sampleRate / 2 : void 0;
|
|
212
|
+
const maxFreq = "maxFrequency" in edits ? edits.maxFrequency : config.maxFrequency ?? nyquist;
|
|
213
|
+
const gainDb = shown("gainDb") ?? SPECTROGRAM_DEFAULTS.gainDb;
|
|
214
|
+
const rangeDb = shown("rangeDb") ?? SPECTROGRAM_DEFAULTS.rangeDb;
|
|
215
|
+
const showLabels = shown("labels") ?? SPECTROGRAM_DEFAULTS.labels;
|
|
216
|
+
const isCustomColorMap = typeof colorMap !== "string";
|
|
217
|
+
const colorMapValue = editedColorMap ?? (isCustomColorMap ? CUSTOM_COLOR_MAP : colorMap);
|
|
205
218
|
const handleApply = () => {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
fftSize,
|
|
209
|
-
windowFunction: windowFn,
|
|
210
|
-
frequencyScale: freqScale,
|
|
211
|
-
minFrequency: minFreq,
|
|
212
|
-
maxFrequency: maxFreq,
|
|
213
|
-
gainDb,
|
|
214
|
-
rangeDb,
|
|
215
|
-
zeroPaddingFactor: zeroPadding,
|
|
216
|
-
hopSize,
|
|
217
|
-
labels: showLabels
|
|
218
|
-
},
|
|
219
|
-
localColorMap
|
|
219
|
+
const configChanged = Object.keys(edits).some(
|
|
220
|
+
(key) => edits[key] !== config[key]
|
|
220
221
|
);
|
|
222
|
+
const colorMapChanged = editedColorMap !== void 0 && editedColorMap !== colorMap;
|
|
223
|
+
if (configChanged || colorMapChanged) {
|
|
224
|
+
onApply({ ...config, ...edits }, editedColorMap ?? colorMap);
|
|
225
|
+
}
|
|
221
226
|
onClose();
|
|
222
227
|
};
|
|
223
228
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
@@ -231,8 +236,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
231
236
|
value: fftSize,
|
|
232
237
|
onChange: (e) => {
|
|
233
238
|
const v = Number(e.target.value);
|
|
234
|
-
|
|
235
|
-
setHopSize(Math.floor(v / 4));
|
|
239
|
+
edit({ fftSize: v, hopSize: Math.floor(v / 4) });
|
|
236
240
|
},
|
|
237
241
|
children: FFT_SIZES.map((s) => /* @__PURE__ */ jsx2("option", { value: s, children: s }, s))
|
|
238
242
|
}
|
|
@@ -245,7 +249,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
245
249
|
{
|
|
246
250
|
id: `${id}-hop-size`,
|
|
247
251
|
value: hopSize,
|
|
248
|
-
onChange: (e) =>
|
|
252
|
+
onChange: (e) => edit({ hopSize: Number(e.target.value) }),
|
|
249
253
|
children: [
|
|
250
254
|
{ label: `${fftSize} (no overlap)`, value: fftSize },
|
|
251
255
|
{ label: `${Math.floor(fftSize / 2)} (50%)`, value: Math.floor(fftSize / 2) },
|
|
@@ -262,7 +266,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
262
266
|
{
|
|
263
267
|
id: `${id}-zero-padding`,
|
|
264
268
|
value: zeroPadding,
|
|
265
|
-
onChange: (e) =>
|
|
269
|
+
onChange: (e) => edit({ zeroPaddingFactor: Number(e.target.value) }),
|
|
266
270
|
children: [1, 2, 4, 8, 16].map((v) => /* @__PURE__ */ jsx2("option", { value: v, children: v }, v))
|
|
267
271
|
}
|
|
268
272
|
)
|
|
@@ -274,7 +278,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
274
278
|
{
|
|
275
279
|
id: `${id}-window-function`,
|
|
276
280
|
value: windowFn,
|
|
277
|
-
onChange: (e) =>
|
|
281
|
+
onChange: (e) => edit({ windowFunction: e.target.value }),
|
|
278
282
|
children: WINDOW_FUNCTIONS.map((w) => /* @__PURE__ */ jsx2("option", { value: w, children: w }, w))
|
|
279
283
|
}
|
|
280
284
|
)
|
|
@@ -286,20 +290,28 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
286
290
|
{
|
|
287
291
|
id: `${id}-frequency-scale`,
|
|
288
292
|
value: freqScale,
|
|
289
|
-
onChange: (e) =>
|
|
293
|
+
onChange: (e) => edit({ frequencyScale: e.target.value }),
|
|
290
294
|
children: FREQ_SCALES.map((s) => /* @__PURE__ */ jsx2("option", { value: s, children: s }, s))
|
|
291
295
|
}
|
|
292
296
|
)
|
|
293
297
|
] }),
|
|
294
298
|
/* @__PURE__ */ jsxs2(Field, { children: [
|
|
295
299
|
/* @__PURE__ */ jsx2(Label, { htmlFor: `${id}-color-map`, children: "Color Map" }),
|
|
296
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ jsxs2(
|
|
297
301
|
Select,
|
|
298
302
|
{
|
|
299
303
|
id: `${id}-color-map`,
|
|
300
|
-
value:
|
|
301
|
-
onChange: (e) =>
|
|
302
|
-
|
|
304
|
+
value: colorMapValue,
|
|
305
|
+
onChange: (e) => (
|
|
306
|
+
// "custom" is the colour map given (an array): no edit.
|
|
307
|
+
setEditedColorMap(
|
|
308
|
+
e.target.value === CUSTOM_COLOR_MAP ? void 0 : e.target.value
|
|
309
|
+
)
|
|
310
|
+
),
|
|
311
|
+
children: [
|
|
312
|
+
isCustomColorMap && /* @__PURE__ */ jsx2("option", { value: CUSTOM_COLOR_MAP, children: CUSTOM_COLOR_MAP }),
|
|
313
|
+
COLOR_MAPS.map((c) => /* @__PURE__ */ jsx2("option", { value: c, children: c }, c))
|
|
314
|
+
]
|
|
303
315
|
}
|
|
304
316
|
)
|
|
305
317
|
] }),
|
|
@@ -314,7 +326,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
314
326
|
max: 5e3,
|
|
315
327
|
step: 50,
|
|
316
328
|
value: minFreq,
|
|
317
|
-
onChange: (e) =>
|
|
329
|
+
onChange: (e) => edit({ minFrequency: Number(e.target.value) })
|
|
318
330
|
}
|
|
319
331
|
)
|
|
320
332
|
] }),
|
|
@@ -326,10 +338,13 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
326
338
|
id: `${id}-max-frequency`,
|
|
327
339
|
type: "number",
|
|
328
340
|
min: 1e3,
|
|
329
|
-
max:
|
|
341
|
+
max: nyquist,
|
|
330
342
|
step: 50,
|
|
331
|
-
value: maxFreq,
|
|
332
|
-
onChange: (e) =>
|
|
343
|
+
value: maxFreq ?? "",
|
|
344
|
+
onChange: (e) => (
|
|
345
|
+
// Emptied: back to the default, half the sample rate.
|
|
346
|
+
edit({ maxFrequency: e.target.value === "" ? void 0 : Number(e.target.value) })
|
|
347
|
+
)
|
|
333
348
|
}
|
|
334
349
|
)
|
|
335
350
|
] }),
|
|
@@ -344,7 +359,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
344
359
|
max: 120,
|
|
345
360
|
step: 1,
|
|
346
361
|
value: rangeDb,
|
|
347
|
-
onChange: (e) =>
|
|
362
|
+
onChange: (e) => edit({ rangeDb: Number(e.target.value) })
|
|
348
363
|
}
|
|
349
364
|
)
|
|
350
365
|
] }),
|
|
@@ -359,7 +374,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
359
374
|
max: 60,
|
|
360
375
|
step: 1,
|
|
361
376
|
value: gainDb,
|
|
362
|
-
onChange: (e) =>
|
|
377
|
+
onChange: (e) => edit({ gainDb: Number(e.target.value) })
|
|
363
378
|
}
|
|
364
379
|
)
|
|
365
380
|
] }),
|
|
@@ -369,7 +384,7 @@ var SettingsForm = ({ onClose, config, colorMap, onApply }) => {
|
|
|
369
384
|
{
|
|
370
385
|
type: "checkbox",
|
|
371
386
|
checked: showLabels,
|
|
372
|
-
onChange: (e) =>
|
|
387
|
+
onChange: (e) => edit({ labels: e.target.checked })
|
|
373
388
|
}
|
|
374
389
|
),
|
|
375
390
|
"Show Frequency Labels"
|
|
@@ -386,7 +401,8 @@ var SpectrogramSettingsModal = ({
|
|
|
386
401
|
onClose,
|
|
387
402
|
config,
|
|
388
403
|
colorMap,
|
|
389
|
-
onApply
|
|
404
|
+
onApply,
|
|
405
|
+
sampleRate
|
|
390
406
|
}) => {
|
|
391
407
|
const dialogRef = useRef(null);
|
|
392
408
|
const titleId = useId();
|
|
@@ -416,14 +432,24 @@ var SpectrogramSettingsModal = ({
|
|
|
416
432
|
}, [open]);
|
|
417
433
|
return /* @__PURE__ */ jsxs2(StyledDialog, { ref: dialogRef, "aria-labelledby": titleId, children: [
|
|
418
434
|
/* @__PURE__ */ jsx2(Title, { id: titleId, children: "Spectrogram Settings" }),
|
|
419
|
-
open && /* @__PURE__ */ jsx2(
|
|
435
|
+
open && /* @__PURE__ */ jsx2(
|
|
436
|
+
SettingsForm,
|
|
437
|
+
{
|
|
438
|
+
onClose,
|
|
439
|
+
config,
|
|
440
|
+
colorMap,
|
|
441
|
+
onApply,
|
|
442
|
+
sampleRate
|
|
443
|
+
}
|
|
444
|
+
)
|
|
420
445
|
] });
|
|
421
446
|
};
|
|
422
447
|
|
|
423
448
|
// src/SpectrogramProvider.tsx
|
|
424
449
|
import { useState as useState2, useEffect as useEffect2, useRef as useRef2, useCallback, useMemo as useMemo2 } from "react";
|
|
425
450
|
import {
|
|
426
|
-
MAX_CANVAS_WIDTH as MAX_CANVAS_WIDTH2
|
|
451
|
+
MAX_CANVAS_WIDTH as MAX_CANVAS_WIDTH2,
|
|
452
|
+
trackKind
|
|
427
453
|
} from "@waveform-playlist/core";
|
|
428
454
|
import {
|
|
429
455
|
getColorMap,
|
|
@@ -519,8 +545,8 @@ function computeChunkSampleRange({
|
|
|
519
545
|
samplesPerPixel
|
|
520
546
|
});
|
|
521
547
|
}
|
|
522
|
-
function resolveRenderMode(
|
|
523
|
-
return
|
|
548
|
+
function resolveRenderMode(trackRenderMode) {
|
|
549
|
+
return trackRenderMode ?? "waveform";
|
|
524
550
|
}
|
|
525
551
|
function buildConfigKey(params) {
|
|
526
552
|
const { mode, cfg, cm, mono } = params;
|
|
@@ -563,10 +589,10 @@ function createAudioKeyOf() {
|
|
|
563
589
|
return key;
|
|
564
590
|
};
|
|
565
591
|
}
|
|
566
|
-
function spectrogramAudio(tracks,
|
|
592
|
+
function spectrogramAudio(tracks, audioKeyOf) {
|
|
567
593
|
const wanted = /* @__PURE__ */ new Map();
|
|
568
594
|
for (const track of tracks) {
|
|
569
|
-
if (resolveRenderMode(
|
|
595
|
+
if (resolveRenderMode(track.renderMode) === "waveform") continue;
|
|
570
596
|
for (const clip of track.clips) {
|
|
571
597
|
if (clip.audioBuffer) wanted.set(audioKeyOf(clip.audioBuffer), clip.audioBuffer);
|
|
572
598
|
}
|
|
@@ -589,6 +615,7 @@ import {
|
|
|
589
615
|
SpectrogramIntegrationProvider
|
|
590
616
|
} from "@waveform-playlist/browser";
|
|
591
617
|
import {
|
|
618
|
+
useArrangement,
|
|
592
619
|
usePlaybackControls,
|
|
593
620
|
usePlaylistView,
|
|
594
621
|
usePlaylistZoom,
|
|
@@ -607,7 +634,7 @@ var SpectrogramProvider = ({
|
|
|
607
634
|
const { samplesPerPixel } = usePlaylistZoom();
|
|
608
635
|
const { tracks } = usePlaylistTimeline();
|
|
609
636
|
const { scrollContainerRef } = usePlaybackControls();
|
|
610
|
-
const
|
|
637
|
+
const arrangement = useArrangement();
|
|
611
638
|
const spectrogramCanvasRegistryRef = useRef2(/* @__PURE__ */ new Map());
|
|
612
639
|
const canvasHeightsRef = useRef2(/* @__PURE__ */ new Map());
|
|
613
640
|
const canvasRangesRef = useRef2(/* @__PURE__ */ new Map());
|
|
@@ -643,7 +670,7 @@ var SpectrogramProvider = ({
|
|
|
643
670
|
};
|
|
644
671
|
}, []);
|
|
645
672
|
useEffect2(() => {
|
|
646
|
-
const wanted = spectrogramAudio(tracks,
|
|
673
|
+
const wanted = spectrogramAudio(tracks, audioKeyOf);
|
|
647
674
|
const pool = wanted.size > 0 ? ensureWorkerPool() : spectrogramWorkerRef.current;
|
|
648
675
|
if (!pool) return;
|
|
649
676
|
const held = new Set(pool.registeredAudioClipIds());
|
|
@@ -653,16 +680,15 @@ var SpectrogramProvider = ({
|
|
|
653
680
|
for (const key of held) {
|
|
654
681
|
if (!wanted.has(key)) pool.unregisterAudioData(key);
|
|
655
682
|
}
|
|
656
|
-
}, [tracks,
|
|
683
|
+
}, [tracks, audioKeyOf, ensureWorkerPool]);
|
|
657
684
|
useEffect2(() => {
|
|
658
685
|
if (tracks.length === 0) return;
|
|
659
686
|
const currentKeys = /* @__PURE__ */ new Map();
|
|
660
687
|
tracks.forEach((track) => {
|
|
661
|
-
const
|
|
662
|
-
const mode = resolveRenderMode(override, track.renderMode);
|
|
688
|
+
const mode = resolveRenderMode(track.renderMode);
|
|
663
689
|
if (mode === "waveform") return;
|
|
664
|
-
const cfg =
|
|
665
|
-
const cm =
|
|
690
|
+
const cfg = track.spectrogramConfig ?? spectrogramConfig;
|
|
691
|
+
const cm = track.spectrogramColorMap ?? spectrogramColorMap;
|
|
666
692
|
currentKeys.set(track.id, buildConfigKey({ mode, cfg, cm, mono }));
|
|
667
693
|
});
|
|
668
694
|
const prevKeys = prevSpectrogramConfigRef.current;
|
|
@@ -682,14 +708,13 @@ var SpectrogramProvider = ({
|
|
|
682
708
|
workerApi.abortGeneration(generation);
|
|
683
709
|
const clipsToRender = [];
|
|
684
710
|
tracks.forEach((track) => {
|
|
685
|
-
const
|
|
686
|
-
const mode = resolveRenderMode(override, track.renderMode);
|
|
711
|
+
const mode = resolveRenderMode(track.renderMode);
|
|
687
712
|
if (mode === "waveform") return;
|
|
688
713
|
const trackConfigChanged = configChanged && currentKeys.get(track.id) !== prevKeys.get(track.id);
|
|
689
714
|
const hasRegisteredCanvases = canvasVersionChanged && track.clips.some((clip) => spectrogramCanvasRegistryRef.current.has(clip.id));
|
|
690
715
|
if (!trackConfigChanged && !hasRegisteredCanvases) return;
|
|
691
|
-
const cfg =
|
|
692
|
-
const cm =
|
|
716
|
+
const cfg = track.spectrogramConfig ?? spectrogramConfig ?? {};
|
|
717
|
+
const cm = track.spectrogramColorMap ?? spectrogramColorMap ?? "viridis";
|
|
693
718
|
for (const clip of track.clips) {
|
|
694
719
|
if (!clip.audioBuffer) continue;
|
|
695
720
|
const monoFlag = mono || clip.audioBuffer.numberOfChannels === 1;
|
|
@@ -909,35 +934,30 @@ var SpectrogramProvider = ({
|
|
|
909
934
|
mono,
|
|
910
935
|
spectrogramConfig,
|
|
911
936
|
spectrogramColorMap,
|
|
912
|
-
trackSpectrogramOverrides,
|
|
913
937
|
samplesPerPixel,
|
|
914
938
|
spectrogramCanvasVersion,
|
|
915
939
|
scrollContainerRef,
|
|
916
940
|
audioKeyOf,
|
|
917
941
|
ensureWorkerPool
|
|
918
942
|
]);
|
|
919
|
-
const setTrackRenderMode = useCallback(
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
926
|
-
|
|
943
|
+
const setTrackRenderMode = useCallback(
|
|
944
|
+
(trackId, mode) => {
|
|
945
|
+
arrangement.updateTrack(
|
|
946
|
+
trackId,
|
|
947
|
+
(track) => trackKind(track) === "midi" || resolveRenderMode(track.renderMode) === mode ? track : { ...track, renderMode: mode }
|
|
948
|
+
);
|
|
949
|
+
},
|
|
950
|
+
[arrangement]
|
|
951
|
+
);
|
|
927
952
|
const setTrackSpectrogramConfig = useCallback(
|
|
928
953
|
(trackId, config2, colorMap2) => {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
config: config2,
|
|
935
|
-
colorMap: colorMap2 ?? existing?.colorMap
|
|
936
|
-
});
|
|
937
|
-
return next;
|
|
938
|
-
});
|
|
954
|
+
arrangement.updateTrack(trackId, (track) => ({
|
|
955
|
+
...track,
|
|
956
|
+
spectrogramConfig: config2,
|
|
957
|
+
spectrogramColorMap: colorMap2 ?? track.spectrogramColorMap
|
|
958
|
+
}));
|
|
939
959
|
},
|
|
940
|
-
[]
|
|
960
|
+
[arrangement]
|
|
941
961
|
);
|
|
942
962
|
const registerSpectrogramCanvas = useCallback(
|
|
943
963
|
(reg) => {
|
|
@@ -1025,7 +1045,6 @@ var SpectrogramProvider = ({
|
|
|
1025
1045
|
);
|
|
1026
1046
|
const value = useMemo2(
|
|
1027
1047
|
() => ({
|
|
1028
|
-
trackSpectrogramOverrides,
|
|
1029
1048
|
spectrogramConfig,
|
|
1030
1049
|
spectrogramColorMap,
|
|
1031
1050
|
setTrackRenderMode,
|
|
@@ -1038,7 +1057,6 @@ var SpectrogramProvider = ({
|
|
|
1038
1057
|
getFrequencyScale
|
|
1039
1058
|
}),
|
|
1040
1059
|
[
|
|
1041
|
-
trackSpectrogramOverrides,
|
|
1042
1060
|
spectrogramConfig,
|
|
1043
1061
|
spectrogramColorMap,
|
|
1044
1062
|
setTrackRenderMode,
|