@waveform-playlist/core 13.0.0-next.1 → 13.0.0-next.11

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 CHANGED
@@ -81,12 +81,48 @@ type SpectrogramDisplayConfig = Pick<SpectrogramConfig, 'frequencyScale' | 'minF
81
81
  * mode: it is always drawn as a piano roll.
82
82
  */
83
83
  type RenderMode = 'waveform' | 'spectrogram' | 'both';
84
- /** Per-track overrides for spectrogram rendering (render mode, config, color map) */
85
- interface TrackSpectrogramOverrides {
86
- renderMode: RenderMode;
87
- config?: SpectrogramConfig;
88
- colorMap?: ColorMapValue;
84
+
85
+ /**
86
+ * A track's pan law (#684).
87
+ *
88
+ * - `'mono'`: equal power, −3 dB per side at centre; the channels are never
89
+ * mixed.
90
+ * - `'stereo'`: unity at centre; panning folds one channel into the other.
91
+ * - `'auto'`: not decided yet. It is the default, and the first decoded
92
+ * audio a track holds decides it (an arrangement stores the result as a
93
+ * mixer value, and a track's clips never change it afterwards).
94
+ *
95
+ * The law says how a track is panned. It converts nothing: a stereo clip on
96
+ * a `'mono'` track still plays in stereo.
97
+ */
98
+ type PanLaw = 'auto' | 'mono' | 'stereo';
99
+ /** A law a pan stage can apply: every `PanLaw` except `'auto'`. */
100
+ type DecidedPanLaw = Exclude<PanLaw, 'auto'>;
101
+ declare const DEFAULT_PAN_LAW: PanLaw;
102
+ /** True for `'mono'` and `'stereo'` only; any other value, of any type, is not a decided law. */
103
+ declare function isDecidedPanLaw(value: unknown): value is DecidedPanLaw;
104
+ /** The part of a track `trackPanLaw` reads: `ClipTrack` satisfies it. */
105
+ interface TrackPanLawSource {
106
+ panLaw?: PanLaw;
107
+ clips: ReadonlyArray<{
108
+ audioBuffer?: {
109
+ numberOfChannels: number;
110
+ };
111
+ }>;
89
112
  }
113
+ /**
114
+ * The law of the decoded audio a track holds: `'stereo'` when any clip's
115
+ * buffer has two or more channels, `'mono'` when at least one clip has a
116
+ * buffer, `null` when none has (an empty track, loading clips, MIDI clips,
117
+ * clips made from peaks alone).
118
+ */
119
+ declare function audioPanLaw(track: Pick<TrackPanLawSource, 'clips'>): DecidedPanLaw | null;
120
+ /**
121
+ * The law a renderer pans a track with: the track's own when it is decided;
122
+ * else (`'auto'`, no field, or a value that is not a law) the law of its
123
+ * audio; else `'mono'`.
124
+ */
125
+ declare function trackPanLaw(track: TrackPanLawSource): DecidedPanLaw;
90
126
 
91
127
  /**
92
128
  * Clip-Based Model Types
@@ -235,6 +271,18 @@ interface LoadingClip {
235
271
  /** Pre-computed peaks, drawn while the audio loads */
236
272
  waveformData?: WaveformDataObject;
237
273
  }
274
+ /**
275
+ * The fields of a track that say how it is drawn, not how it plays. An
276
+ * adapter is never given them (`PlayoutTrack`), and the engine makes no
277
+ * adapter call for a change of these fields alone: on the native transport an
278
+ * `updateTrack` stops the track's playing sources (silent until its next
279
+ * clip), so a render-mode choice during playback silenced it (review of #930). The one list; the engine reads it.
280
+ */
281
+ declare const TRACK_VIEW_FIELDS: readonly ["name", "color", "height", "renderMode", "spectrogramConfig", "spectrogramColorMap"];
282
+ /** A field of `TRACK_VIEW_FIELDS`. */
283
+ type TrackViewField = (typeof TRACK_VIEW_FIELDS)[number];
284
+ /** A track as a playout adapter is given it: a `ClipTrack` without the view fields. */
285
+ type PlayoutTrack = Omit<ClipTrack, TrackViewField>;
238
286
  /** A track whose clips are loaded (`AudioClip`) or not loaded yet (`LoadingClip`). */
239
287
  type ArrangementTrack = Omit<ClipTrack, 'clips'> & {
240
288
  clips: (AudioClip | LoadingClip)[];
@@ -268,6 +316,12 @@ interface ClipTrack {
268
316
  volume: number;
269
317
  /** Stereo pan (-1.0 = left, 0 = center, 1.0 = right) */
270
318
  pan: number;
319
+ /**
320
+ * The pan law this track enters with (default `'auto'`: decided by its
321
+ * first decoded audio). While the track is in an arrangement, the
322
+ * arrangement's mixer holds the value (#684).
323
+ */
324
+ panLaw?: PanLaw;
271
325
  /** Optional track color for visual distinction */
272
326
  color?: string;
273
327
  /** Track height in pixels (for UI) */
@@ -513,7 +567,7 @@ interface AnnotationData {
513
567
  interface AnnotationFormat {
514
568
  name: string;
515
569
  parse: (data: unknown) => AnnotationData[];
516
- serialize: (annotations: AnnotationData[]) => unknown;
570
+ serialize: (annotations: readonly AnnotationData[]) => unknown;
517
571
  }
518
572
  /**
519
573
  * Options for annotation list behavior
@@ -627,23 +681,6 @@ type FadeType = 'logarithmic' | 'linear' | 'sCurve' | 'exponential';
627
681
  * Alias for Fade — used by media-element-playout and playout packages
628
682
  */
629
683
  type FadeConfig = Fade;
630
- interface PlaylistConfig {
631
- samplesPerPixel?: number;
632
- waveHeight?: number;
633
- container?: HTMLElement;
634
- isAutomaticScroll?: boolean;
635
- timescale?: boolean;
636
- colors?: {
637
- waveOutlineColor?: string;
638
- waveFillColor?: string;
639
- waveProgressColor?: string;
640
- };
641
- controls?: {
642
- show?: boolean;
643
- width?: number;
644
- };
645
- zoomLevels?: number[];
646
- }
647
684
  interface PlayoutState {
648
685
  isPlaying: boolean;
649
686
  isPaused: boolean;
@@ -876,10 +913,6 @@ declare function createAudioBuffer(audioContext: AudioContext, channelData: Floa
876
913
  * Append new samples to an existing AudioBuffer (mono convenience)
877
914
  */
878
915
  declare function appendToAudioBuffer(audioContext: AudioContext, existingBuffer: AudioBuffer | null, newSamples: Float32Array, sampleRate: number): AudioBuffer;
879
- /**
880
- * Calculate duration in seconds from sample count and sample rate
881
- */
882
- declare function calculateDuration(sampleCount: number, sampleRate: number): number;
883
916
 
884
917
  /**
885
918
  * Sample count corresponding to the audible-latency window
@@ -1065,8 +1098,8 @@ interface TrackChannelSource {
1065
1098
  }
1066
1099
  /**
1067
1100
  * Max audio channel count across a track's clips (1 for a track with no
1068
- * decoded audio). Selects the track's pan law (`createPanStage`) and the
1069
- * offline render's output channels.
1101
+ * decoded audio). Read for the React export's output channels. The track's
1102
+ * pan law is not chosen from it: that is `trackPanLaw(track)` (#684).
1070
1103
  */
1071
1104
  declare function trackChannelCount(track: TrackChannelSource): number;
1072
1105
  /**
@@ -1257,7 +1290,9 @@ declare function keyBelongsToFocusedControl(event: KeyboardEvent): boolean;
1257
1290
  * Pure function, no framework dependency.
1258
1291
  *
1259
1292
  * Shortcuts do not fire for a key the focused control uses itself; see
1260
- * `keyBelongsToFocusedControl`.
1293
+ * `keyBelongsToFocusedControl`. Nor for an Escape whose default something
1294
+ * other than a shortcut already prevented (a drag cancelled it): an Escape that
1295
+ * cancelled a drag does nothing else.
1261
1296
  */
1262
1297
  declare function handleKeyboardEvent(event: KeyboardEvent, shortcuts: KeyboardShortcut[], enabled: boolean): void;
1263
1298
 
@@ -1354,7 +1389,7 @@ interface AnnotationBoundaryUpdate {
1354
1389
  annotationIndex: number;
1355
1390
  newTime: number;
1356
1391
  isDraggingStart: boolean;
1357
- annotations: AnnotationData[];
1392
+ annotations: readonly AnnotationData[];
1358
1393
  duration: number;
1359
1394
  linkEndpoints: boolean;
1360
1395
  }
@@ -1390,6 +1425,61 @@ declare function resolveAnnotationShortcuts(remap: AnnotationShortcutMap | null)
1390
1425
  binding: KeyBinding;
1391
1426
  }>;
1392
1427
 
1428
+ /**
1429
+ * The owner of a list of annotations. The app makes one and gives it to a
1430
+ * provider; everything that reads the annotations reads them here, and every
1431
+ * change is a call to `set` or `update`.
1432
+ */
1433
+ interface AnnotationStore {
1434
+ /**
1435
+ * The current annotations. The same array until a change. Never write to
1436
+ * it: outside production builds it is frozen.
1437
+ */
1438
+ getAnnotations(): readonly AnnotationData[];
1439
+ /** Be told after every change. Returns the function that unsubscribes. */
1440
+ subscribe(listener: () => void): () => void;
1441
+ /** Replace the annotations. */
1442
+ set(annotations: readonly AnnotationData[]): void;
1443
+ /**
1444
+ * Change the annotations: `fn` gets the current array and returns the next.
1445
+ * The change is applied before `update` returns, so the next call's
1446
+ * `current` already holds it. Returning `current` changes nothing.
1447
+ */
1448
+ update(fn: (current: readonly AnnotationData[]) => readonly AnnotationData[]): void;
1449
+ }
1450
+ interface AnnotationStoreOptions {
1451
+ /**
1452
+ * The app's rule for every change. Gets the proposed list and the current
1453
+ * one, returns the list to store: `next` to accept, `current` to refuse,
1454
+ * or another list to adjust (e.g. clamp an edge so it does not overlap).
1455
+ * Not called for the initial list. A throw from it reaches the caller of
1456
+ * `set` or `update`, and the store keeps its value.
1457
+ */
1458
+ beforeChange?: (next: readonly AnnotationData[], current: readonly AnnotationData[]) => readonly AnnotationData[];
1459
+ }
1460
+ /**
1461
+ * Make an annotation store holding `initial` (empty when absent). Throws a
1462
+ * `TypeError` for an invalid list: an annotation without numeric `start` and
1463
+ * `end`, or two with one id.
1464
+ */
1465
+ declare function createAnnotationStore(initial?: readonly AnnotationData[], options?: AnnotationStoreOptions): AnnotationStore;
1466
+
1467
+ /** New bounds for the annotation with `id`. */
1468
+ interface AnnotationBoundsChange {
1469
+ id: string;
1470
+ start: number;
1471
+ end: number;
1472
+ }
1473
+ /**
1474
+ * Write `start` and `end` of each change onto the annotation with that id in
1475
+ * `current`. Every other field, and every annotation no change names, is kept
1476
+ * as it is (the same object). An id that is not in `current` is skipped.
1477
+ *
1478
+ * Returns `current` itself when nothing changes, so an `update` with it
1479
+ * notifies nobody.
1480
+ */
1481
+ declare function applyAnnotationBounds(current: readonly AnnotationData[], changes: readonly AnnotationBoundsChange[]): readonly AnnotationData[];
1482
+
1393
1483
  /** Gains of the pan matrix: `out = [[ll, rl], [lr, rr]] · in`, where e.g.
1394
1484
  * `rl` is how much of the input's RIGHT channel reaches the LEFT output. */
1395
1485
  interface PanMatrix {
@@ -1399,40 +1489,47 @@ interface PanMatrix {
1399
1489
  rr: number;
1400
1490
  }
1401
1491
  /**
1402
- * The pan law for a track, chosen by the channel count of its SOURCE
1403
- * material — exactly the two algorithms of the Web Audio `StereoPannerNode`.
1492
+ * The gains of a pan law at a pan position: exactly the two algorithms of
1493
+ * the Web Audio `StereoPannerNode`. Which law a track has is the track's own
1494
+ * value (`trackPanLaw`), not a property of the signal that reaches the stage.
1404
1495
  *
1405
- * - Mono source — equal-power pan, θ = (pan + 1)·π/4: L × cos θ, R × sin θ.
1496
+ * - `'mono'` — equal-power pan, θ = (pan + 1)·π/4: L × cos θ, R × sin θ.
1406
1497
  * For a mono signal (taken as L = R) that is the mono law, L = m·cos θ and
1407
1498
  * R = m·sin θ: −3 dB per side at centre. A stereo signal from the track's
1408
1499
  * effects is balanced by the same gains, so it stays stereo at the same
1409
1500
  * centre level as the dry signal.
1410
- * - Stereo source — the stereo law: centre passes both channels at unity;
1501
+ * - `'stereo'` — the stereo law: centre passes both channels at unity;
1411
1502
  * panning left folds the right channel into the left
1412
1503
  * (L + R·cos x, R·sin x with x = (pan + 1)·π/2), and symmetrically right.
1413
1504
  *
1414
1505
  * `pan` is clamped to −1 … 1; a non-finite value is treated as centre.
1415
1506
  */
1416
- declare function panMatrix(pan: number, sourceChannelCount: number): PanMatrix;
1507
+ declare function panMatrix(pan: number, panLaw: DecidedPanLaw): PanMatrix;
1417
1508
  /**
1418
1509
  * The part of an audio context the pan stage needs. Any `AudioContext` or
1419
1510
  * `OfflineAudioContext` satisfies it, and so does the `rawContext` behind
1420
1511
  * Tone.js (native or standardized-audio-context).
1421
1512
  */
1422
- type PanStageContext = Pick<BaseAudioContext, 'createGain' | 'createChannelSplitter' | 'createChannelMerger'>;
1513
+ type PanStageContext = Pick<BaseAudioContext, 'createGain' | 'createChannelSplitter' | 'createChannelMerger' | 'currentTime'>;
1514
+ /** How long a switch of pan law takes: the four gains ramp, so a switch during playback does not click (#684). */
1515
+ declare const PAN_LAW_RAMP_SECONDS = 0.01;
1423
1516
  /** A track's pan stage: `input → … → output`, with `setPan(-1 … 1)`. */
1424
1517
  interface PanStage {
1425
1518
  readonly input: AudioNode;
1426
1519
  readonly output: AudioNode;
1427
1520
  setPan(pan: number): void;
1428
- /** Switch the pan law (1 = mono law, 2+ = stereo law), keeping the pan. */
1429
- setSourceChannelCount(sourceChannelCount: number): void;
1521
+ /**
1522
+ * Switch the pan law, keeping the pan. The four gains ramp to the new
1523
+ * matrix over `PAN_LAW_RAMP_SECONDS`; the law the stage already has does
1524
+ * nothing.
1525
+ */
1526
+ setPanLaw(panLaw: DecidedPanLaw): void;
1430
1527
  /** Disconnect every node of the stage. */
1431
1528
  dispose(): void;
1432
1529
  }
1433
1530
  /**
1434
- * Build the pan stage for a track whose source material has
1435
- * `sourceChannelCount` channels (1 for mono clips and synth voices).
1531
+ * Build the pan stage for a track with the pan law `panLaw` (core's
1532
+ * `trackPanLaw(track)`; `'mono'` for synth voices).
1436
1533
  *
1437
1534
  * Why this is not a `StereoPannerNode`: a track's pan stage is fed by its
1438
1535
  * effects chain (pre-fader inserts), whose channel layout is not the
@@ -1446,7 +1543,7 @@ interface PanStage {
1446
1543
  * nodes — none of which is restricted — so it behaves identically on every
1447
1544
  * context, always passes stereo through, and takes its law from the caller.
1448
1545
  */
1449
- declare function createPanStage(context: PanStageContext, pan: number, sourceChannelCount: number): PanStage;
1546
+ declare function createPanStage(context: PanStageContext, pan: number, panLaw: DecidedPanLaw): PanStage;
1450
1547
 
1451
1548
  type SourceState<V> = {
1452
1549
  status: 'pending';
@@ -1511,6 +1608,8 @@ interface AudioTrackOptions {
1511
1608
  soloed?: boolean;
1512
1609
  volume?: number;
1513
1610
  pan?: number;
1611
+ /** The pan law the track enters with. Default: 'auto', decided by its first decoded audio. */
1612
+ panLaw?: PanLaw;
1514
1613
  renderMode?: RenderMode;
1515
1614
  spectrogramConfig?: SpectrogramConfig;
1516
1615
  spectrogramColorMap?: ColorMapValue;
@@ -1523,6 +1622,44 @@ interface AudioTrackOptions {
1523
1622
  */
1524
1623
  declare function audioTrack(options: AudioTrackOptions): ArrangementTrack;
1525
1624
 
1625
+ /**
1626
+ * One gesture on a mixer control (a fader drag, a held arrow key) as one
1627
+ * undo step (#843). The mixer setters join changes that carry the same
1628
+ * `gesture` id into one step; this helper makes the id, and ends the gesture
1629
+ * so that the next change starts a new one.
1630
+ *
1631
+ * Framework-free: React's sliders and dawcore's elements both use it. One
1632
+ * helper per control, so two sliders never share an id. It lives in core,
1633
+ * not beside the setters in the engine, because `<daw-editor>` loads the
1634
+ * engine with a dynamic `import()`: a value import of the engine would put
1635
+ * it back in dawcore's first bundle.
1636
+ */
1637
+ interface MixerGesture {
1638
+ /** The id to pass while a gesture is going on. */
1639
+ readonly id: string;
1640
+ /** The gesture is over: the next change starts a new one. */
1641
+ end(): void;
1642
+ /** Ends the gesture on the input's own events; returns the detach function. */
1643
+ attach(input: HTMLInputElement): () => void;
1644
+ }
1645
+ /**
1646
+ * Make the gesture helper of one mixer control.
1647
+ *
1648
+ * ```ts
1649
+ * const gesture = createMixerGesture();
1650
+ * const detach = gesture.attach(slider);
1651
+ * slider.addEventListener('input', () =>
1652
+ * engine.setTrackVolume(trackId, slider.valueAsNumber, { gesture: gesture.id })
1653
+ * );
1654
+ * ```
1655
+ *
1656
+ * `attach` ends the gesture on the input's `change` (the end of a pointer
1657
+ * drag), except while a key that moves the input is held down; then on that
1658
+ * key's `keyup`. A `blur` ends it too. Mute and solo buttons need no helper:
1659
+ * each click is a step of its own.
1660
+ */
1661
+ declare function createMixerGesture(): MixerGesture;
1662
+
1526
1663
  /**
1527
1664
  * The effect registry shared by `<daw-editor>` and the React effects hooks:
1528
1665
  * one `registerEffect()` call makes a custom effect (an AudioWorklet, or any
@@ -1631,4 +1768,4 @@ declare function needsPrepare(type: string, audioContext: BaseAudioContext): boo
1631
1768
  declare function ensureEffectPrepared(type: string, audioContext: BaseAudioContext): Promise<void>;
1632
1769
  declare function createEffectInstance(type: string, audioContext: BaseAudioContext, params?: Record<string, number>): CreatedNativeEffect;
1633
1770
 
1634
- export { ANNOTATION_LINK_THRESHOLD_TICKS, type AnnotationAction, type AnnotationActionOptions, type AnnotationBoundaryOptions, type AnnotationBoundaryUpdate, type AnnotationData, type AnnotationEventMap, type AnnotationFormat, type AnnotationListOptions, type AnnotationShortcutAction, type AnnotationShortcutMap, type ArrangementTrack, type AudioBuffer$1 as AudioBuffer, type AudioClip, type AudioTrackOptions, type Bits, type ClipSource, type ClipTrack, type ColorMapEntry, type ColorMapName, type ColorMapValue, type CreateClipOptions, type CreateClipOptionsSeconds, type CreateClipOptionsTicks, type CreateTrackOptions, type CreatedNativeEffect, DEFAULT_ANNOTATION_SHORTCUTS, DEFAULT_SPECTROGRAM_COLOR_MAP, type EffectParamDef, type FFTSize, type Fade, type FadeConfig, type FadeType, type Gap, InteractionState, type KeyBinding, type KeyboardShortcut, LINK_THRESHOLD, type LoadingClip, MAX_CANVAS_WIDTH, METER_PEAK_DECAY, MIN_ANNOTATION_DURATION, MIN_PIXELS_PER_UNIT, type MeterEntry, type MeterLevels, type MeterReading, type MeterSource, type MicrophoneDeviceInfo, type MicrophoneEnumeration, type MidiNoteData, type MusicalTick, type MusicalTickData, type MusicalTickParams, type NativeEffectDefinition, type NativeEffectInstance, PPQN, type PanMatrix, type PanStage, type PanStageContext, type PeakData, type Peaks, type PlaylistConfig, type PlayoutState, type RangeSupport, type ReadMeterMessageParams, type RecordingProgress, type RecordingProgressSource, type RenderAnnotationItemProps, type RenderMode, SPECTROGRAM_DEFAULTS, type SnapTo, type SourceLoader, type SourceState, type SpectrogramCanvasIdParts, type SpectrogramCanvasRegistration, type SpectrogramComputeConfig, type SpectrogramConfig, type SpectrogramData, type SpectrogramDisplayConfig, type TickType, type TimeSelection, type Timeline, type Track, type TrackChannelSource, type TrackKind, type TrackSpectrogramOverrides, type ValueSource, type ValueSourceHandle, type WaveformConfig, type WaveformDataObject, type ZoomLevel, annotationMinDurationTicks, appendPeaks, appendToAudioBuffer, applyFadeIn, applyFadeOut, assertTrackKind, audibleLatencySamples, audioTrack, buildSpectrogramCanvasId, calculateDuration, carveClipRange, clipDurationTime, clipEndTime, clipKind, clipOffsetTime, clipPixelWidth, clipStartTime, clipsOverlap, computeMusicalTicks, concatenateAudioData, createAudioBuffer, createClip, createClipFromSeconds, createClipFromTicks, createEffectInstance, createPanStage, createSourceLoader, createTimeline, createTrack, createValueSource, dBToNormalized, detectMeterChanges, ensureEffectPrepared, enumerateMicrophones, exponentialCurve, findGaps, gainToDb, gainToNormalized, generateCurve, generatePeaks, getClipsAtSample, getClipsInRange, getEffectDefinitions, handleKeyboardEvent, isLoadingClip, keyBelongsToFocusedControl, linearCurve, logarithmicCurve, matchesKeyBinding, needsPrepare, normalizedToDb, panMatrix, parseSpectrogramCanvasId, pixelsToSamples, pixelsToSeconds, prepareEffect, probeRangeSupport, readMeterMessage, registerEffect, resolveAnnotationShortcuts, resolveRecordingOffsetSamples, sCurveCurve, samplesToPixels, samplesToSeconds, samplesToTicks, secondsToPixels, secondsToSamples, silentMeterLevels, snapTickToGrid, snapToGrid, snapToTicks, sortClipsByTime, splitTrackByKind, ticksPerBar, ticksPerBeat, ticksToBarBeat, ticksToSamples, trackChannelCount, trackKind, unregisterEffect, updateAnnotationBoundaries, watchMicrophoneDevices };
1771
+ export { ANNOTATION_LINK_THRESHOLD_TICKS, type AnnotationAction, type AnnotationActionOptions, type AnnotationBoundaryOptions, type AnnotationBoundaryUpdate, type AnnotationBoundsChange, type AnnotationData, type AnnotationEventMap, type AnnotationFormat, type AnnotationListOptions, type AnnotationShortcutAction, type AnnotationShortcutMap, type AnnotationStore, type AnnotationStoreOptions, type ArrangementTrack, type AudioBuffer$1 as AudioBuffer, type AudioClip, type AudioTrackOptions, type Bits, type ClipSource, type ClipTrack, type ColorMapEntry, type ColorMapName, type ColorMapValue, type CreateClipOptions, type CreateClipOptionsSeconds, type CreateClipOptionsTicks, type CreateTrackOptions, type CreatedNativeEffect, DEFAULT_ANNOTATION_SHORTCUTS, DEFAULT_PAN_LAW, DEFAULT_SPECTROGRAM_COLOR_MAP, type DecidedPanLaw, type EffectParamDef, type FFTSize, type Fade, type FadeConfig, type FadeType, type Gap, InteractionState, type KeyBinding, type KeyboardShortcut, LINK_THRESHOLD, type LoadingClip, MAX_CANVAS_WIDTH, METER_PEAK_DECAY, MIN_ANNOTATION_DURATION, MIN_PIXELS_PER_UNIT, type MeterEntry, type MeterLevels, type MeterReading, type MeterSource, type MicrophoneDeviceInfo, type MicrophoneEnumeration, type MidiNoteData, type MixerGesture, type MusicalTick, type MusicalTickData, type MusicalTickParams, type NativeEffectDefinition, type NativeEffectInstance, PAN_LAW_RAMP_SECONDS, PPQN, type PanLaw, type PanMatrix, type PanStage, type PanStageContext, type PeakData, type Peaks, type PlayoutState, type PlayoutTrack, type RangeSupport, type ReadMeterMessageParams, type RecordingProgress, type RecordingProgressSource, type RenderAnnotationItemProps, type RenderMode, SPECTROGRAM_DEFAULTS, type SnapTo, type SourceLoader, type SourceState, type SpectrogramCanvasIdParts, type SpectrogramCanvasRegistration, type SpectrogramComputeConfig, type SpectrogramConfig, type SpectrogramData, type SpectrogramDisplayConfig, TRACK_VIEW_FIELDS, type TickType, type TimeSelection, type Timeline, type Track, type TrackChannelSource, type TrackKind, type TrackPanLawSource, type TrackViewField, type ValueSource, type ValueSourceHandle, type WaveformConfig, type WaveformDataObject, type ZoomLevel, annotationMinDurationTicks, appendPeaks, appendToAudioBuffer, applyAnnotationBounds, applyFadeIn, applyFadeOut, assertTrackKind, audibleLatencySamples, audioPanLaw, audioTrack, buildSpectrogramCanvasId, carveClipRange, clipDurationTime, clipEndTime, clipKind, clipOffsetTime, clipPixelWidth, clipStartTime, clipsOverlap, computeMusicalTicks, concatenateAudioData, createAnnotationStore, createAudioBuffer, createClip, createClipFromSeconds, createClipFromTicks, createEffectInstance, createMixerGesture, createPanStage, createSourceLoader, createTimeline, createTrack, createValueSource, dBToNormalized, detectMeterChanges, ensureEffectPrepared, enumerateMicrophones, exponentialCurve, findGaps, gainToDb, gainToNormalized, generateCurve, generatePeaks, getClipsAtSample, getClipsInRange, getEffectDefinitions, handleKeyboardEvent, isDecidedPanLaw, isLoadingClip, keyBelongsToFocusedControl, linearCurve, logarithmicCurve, matchesKeyBinding, needsPrepare, normalizedToDb, panMatrix, parseSpectrogramCanvasId, pixelsToSamples, pixelsToSeconds, prepareEffect, probeRangeSupport, readMeterMessage, registerEffect, resolveAnnotationShortcuts, resolveRecordingOffsetSamples, sCurveCurve, samplesToPixels, samplesToSeconds, samplesToTicks, secondsToPixels, secondsToSamples, silentMeterLevels, snapTickToGrid, snapToGrid, snapToTicks, sortClipsByTime, splitTrackByKind, ticksPerBar, ticksPerBeat, ticksToBarBeat, ticksToSamples, trackChannelCount, trackKind, trackPanLaw, unregisterEffect, updateAnnotationBoundaries, watchMicrophoneDevices };