@dawcore/components 0.0.39-next.16 → 0.0.39-next.18
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 +4 -4
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Framework-agnostic Web Components for multi-track audio editing. Drop `<daw-edit
|
|
|
21
21
|
- **Effect GUIs and persistence** — Mount plugin GUIs into your own panels; snapshot and restore whole chains. See [Effect GUIs](#effect-guis) and [Effects Persistence](#effects-persistence).
|
|
22
22
|
- **Offline export** — `editor.exportAudio()` renders the session (clips, mix, all effect chains) to an `AudioBuffer`. See [Offline Export](#offline-export).
|
|
23
23
|
- **Transport access** — Tempo, metronome, count-in, meter, effects via `@dawcore/transport`
|
|
24
|
-
- **Lightweight single-track player** — `<daw-player>` wraps `@waveform-playlist/media-element-playout` (`HTMLMediaElement`, no adapter/AudioContext/
|
|
24
|
+
- **Lightweight single-track player** — `<daw-player>` wraps `@waveform-playlist/media-element-playout` (`HTMLMediaElement`, no adapter/AudioContext/EditorEngine) for podcast/audiobook-style playback with pitch-preserving rate control (0.25×–4×). See [Single-Track Player](#single-track-player).
|
|
25
25
|
- **Time display & format** — `<daw-time-display>` / `<daw-time-format>` show and switch the playback clock (`hh:mm:ss.sss`, `hh:mm:ss`, `seconds`) for any transport target.
|
|
26
26
|
- **CSS theming** — Dark mode by default, fully customizable via CSS custom properties
|
|
27
27
|
- **Native Web Audio** — Uses `@dawcore/transport` for playback scheduling. No Tone.js dependency.
|
|
@@ -177,7 +177,7 @@ This expands to a MIDI track, `<daw-track kind="midi">`, containing a `<daw-clip
|
|
|
177
177
|
</script>
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
A clip is treated as MIDI iff `clip.midiNotes != null`. MIDI clips skip audio fetch + decode + peak generation. Move drag
|
|
180
|
+
A clip is treated as MIDI iff `clip.midiNotes != null`. MIDI clips skip audio fetch + decode + peak generation. Move drag and split-at-playhead work on MIDI clips (a split keeps the clip's notes, channel and program on both halves, each half playing and drawing the notes inside its own range); trim handles are inert on them.
|
|
181
181
|
|
|
182
182
|
**Theming:** the piano-roll honors `--daw-piano-roll-note-color` (default `#2a7070`), `--daw-piano-roll-selected-note-color` (default `#3d9e9e`), and `--daw-piano-roll-background` (default `#1a1a2e`).
|
|
183
183
|
|
|
@@ -398,7 +398,7 @@ During a take the editor shows the live preview with full clip chrome (header la
|
|
|
398
398
|
|
|
399
399
|
## Single-Track Player
|
|
400
400
|
|
|
401
|
-
`<daw-player>` is a standalone element for single-track playback (podcasts, audiobooks, previewing one file) — it wraps `@waveform-playlist/media-element-playout` and needs no `adapter`, `AudioContext`, or `
|
|
401
|
+
`<daw-player>` is a standalone element for single-track playback (podcasts, audiobooks, previewing one file) — it wraps `@waveform-playlist/media-element-playout` and needs no `adapter`, `AudioContext`, or `EditorEngine`. `@waveform-playlist/media-element-playout` ships as a direct dependency of `@dawcore/components`, so there's nothing extra to install:
|
|
402
402
|
|
|
403
403
|
```html
|
|
404
404
|
<daw-player
|
|
@@ -544,7 +544,7 @@ Formatted playback-time readout. Must be inside a `<daw-transport for="editor-id
|
|
|
544
544
|
|
|
545
545
|
### `<daw-player>`
|
|
546
546
|
|
|
547
|
-
Standalone single-track player — see [Single-Track Player](#single-track-player). No `adapter`/`AudioContext`/`
|
|
547
|
+
Standalone single-track player — see [Single-Track Player](#single-track-player). No `adapter`/`AudioContext`/`EditorEngine`; wraps `@waveform-playlist/media-element-playout`.
|
|
548
548
|
|
|
549
549
|
Attributes: `src`, `peaks-src`, `wave-height` (default `128`), `timescale`, `mono`, `bar-width` (default `1`), `bar-gap` (default `0`), `rounded-bars`, `playback-rate` (default `1`, clamped `0.25`–`4`).
|
|
550
550
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement, PropertyValues, ReactiveController, ReactiveControllerHost } from 'lit';
|
|
3
3
|
import { AnnotationData, AnnotationShortcutMap, MidiNoteData, PanLaw, TrackKind, RenderMode, SpectrogramConfig, Peaks, Bits, FadeType, PeakData, MeterEntry, AudioClip, SnapTo, ColorMapValue, ClipTrack, KeyBinding, KeyboardShortcut } from '@waveform-playlist/core';
|
|
4
4
|
import WaveformData from 'waveform-data';
|
|
5
|
-
import { Arrangement, TrackMixerValues, PlayoutAdapter,
|
|
5
|
+
import { Arrangement, TrackMixerValues, PlayoutAdapter, EditorEngine } from '@waveform-playlist/engine';
|
|
6
6
|
import { MidiLoadOptions, MidiLoadResult } from '@dawcore/midi';
|
|
7
7
|
import { ClipRegistration, CanvasRegistration, ViewportState } from '@dawcore/spectrogram';
|
|
8
8
|
|
|
@@ -2002,7 +2002,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2002
2002
|
*/
|
|
2003
2003
|
private _trackEventTarget;
|
|
2004
2004
|
get audioContext(): AudioContext;
|
|
2005
|
-
_engine:
|
|
2005
|
+
_engine: EditorEngine | null;
|
|
2006
2006
|
private _warnedMissingTicksToSeconds;
|
|
2007
2007
|
private _warnedMissingSecondsToTicks;
|
|
2008
2008
|
private _peaksCache;
|
|
@@ -2044,7 +2044,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2044
2044
|
private _annotationDrag;
|
|
2045
2045
|
private _trackReorderDrag;
|
|
2046
2046
|
get _clipHandler(): ClipPointerHandler | null;
|
|
2047
|
-
get engine():
|
|
2047
|
+
get engine(): EditorEngine | null;
|
|
2048
2048
|
get renderSamplesPerPixel(): number;
|
|
2049
2049
|
/** Re-extract peaks for a clip at new offset/duration from cached WaveformData. */
|
|
2050
2050
|
reextractClipPeaks(clipId: string, offsetSamples: number, durationSamples: number): PeakData | null;
|
|
@@ -2328,7 +2328,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2328
2328
|
* Rejects without an adapter, and on a detached editor (an engine built
|
|
2329
2329
|
* there would hold the adapter's graph with nothing to dispose it).
|
|
2330
2330
|
*/
|
|
2331
|
-
_ensureEngine(): Promise<
|
|
2331
|
+
_ensureEngine(): Promise<EditorEngine>;
|
|
2332
2332
|
/** Build the engine from the adapter setter or a connect: a failure is reported, not thrown. */
|
|
2333
2333
|
private _buildEngineReporting;
|
|
2334
2334
|
/** Last versions the statechange handler worked from; reset for each engine. */
|
|
@@ -2369,7 +2369,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2369
2369
|
* non-null `editor.engine` before any track has been loaded — useful for
|
|
2370
2370
|
* wiring analyzers, effects, or master taps before content arrives.
|
|
2371
2371
|
*/
|
|
2372
|
-
ready(): Promise<
|
|
2372
|
+
ready(): Promise<EditorEngine>;
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Add a track built from `config` to the arrangement the editor plays when
|
|
2375
2375
|
* it is called, and resolve with its id once it has entered (#848), before
|
|
@@ -2780,7 +2780,7 @@ declare global {
|
|
|
2780
2780
|
/**
|
|
2781
2781
|
* `<daw-player>` — lightweight single-track HTMLMediaElement player.
|
|
2782
2782
|
* Wraps a MediaElementPlayout engine for playback and composes
|
|
2783
|
-
* <daw-ruler>/<daw-waveform>/<daw-playhead> for visuals. No
|
|
2783
|
+
* <daw-ruler>/<daw-waveform>/<daw-playhead> for visuals. No EditorEngine,
|
|
2784
2784
|
* no adapter, no AudioContext. See docs/specs/2026-06-29-daw-player-core-design.md.
|
|
2785
2785
|
*/
|
|
2786
2786
|
declare class DawPlayerElement extends LitElement {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement, PropertyValues, ReactiveController, ReactiveControllerHost } from 'lit';
|
|
3
3
|
import { AnnotationData, AnnotationShortcutMap, MidiNoteData, PanLaw, TrackKind, RenderMode, SpectrogramConfig, Peaks, Bits, FadeType, PeakData, MeterEntry, AudioClip, SnapTo, ColorMapValue, ClipTrack, KeyBinding, KeyboardShortcut } from '@waveform-playlist/core';
|
|
4
4
|
import WaveformData from 'waveform-data';
|
|
5
|
-
import { Arrangement, TrackMixerValues, PlayoutAdapter,
|
|
5
|
+
import { Arrangement, TrackMixerValues, PlayoutAdapter, EditorEngine } from '@waveform-playlist/engine';
|
|
6
6
|
import { MidiLoadOptions, MidiLoadResult } from '@dawcore/midi';
|
|
7
7
|
import { ClipRegistration, CanvasRegistration, ViewportState } from '@dawcore/spectrogram';
|
|
8
8
|
|
|
@@ -2002,7 +2002,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2002
2002
|
*/
|
|
2003
2003
|
private _trackEventTarget;
|
|
2004
2004
|
get audioContext(): AudioContext;
|
|
2005
|
-
_engine:
|
|
2005
|
+
_engine: EditorEngine | null;
|
|
2006
2006
|
private _warnedMissingTicksToSeconds;
|
|
2007
2007
|
private _warnedMissingSecondsToTicks;
|
|
2008
2008
|
private _peaksCache;
|
|
@@ -2044,7 +2044,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2044
2044
|
private _annotationDrag;
|
|
2045
2045
|
private _trackReorderDrag;
|
|
2046
2046
|
get _clipHandler(): ClipPointerHandler | null;
|
|
2047
|
-
get engine():
|
|
2047
|
+
get engine(): EditorEngine | null;
|
|
2048
2048
|
get renderSamplesPerPixel(): number;
|
|
2049
2049
|
/** Re-extract peaks for a clip at new offset/duration from cached WaveformData. */
|
|
2050
2050
|
reextractClipPeaks(clipId: string, offsetSamples: number, durationSamples: number): PeakData | null;
|
|
@@ -2328,7 +2328,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2328
2328
|
* Rejects without an adapter, and on a detached editor (an engine built
|
|
2329
2329
|
* there would hold the adapter's graph with nothing to dispose it).
|
|
2330
2330
|
*/
|
|
2331
|
-
_ensureEngine(): Promise<
|
|
2331
|
+
_ensureEngine(): Promise<EditorEngine>;
|
|
2332
2332
|
/** Build the engine from the adapter setter or a connect: a failure is reported, not thrown. */
|
|
2333
2333
|
private _buildEngineReporting;
|
|
2334
2334
|
/** Last versions the statechange handler worked from; reset for each engine. */
|
|
@@ -2369,7 +2369,7 @@ declare class DawEditorElement extends LitElement implements MidiLoaderHost {
|
|
|
2369
2369
|
* non-null `editor.engine` before any track has been loaded — useful for
|
|
2370
2370
|
* wiring analyzers, effects, or master taps before content arrives.
|
|
2371
2371
|
*/
|
|
2372
|
-
ready(): Promise<
|
|
2372
|
+
ready(): Promise<EditorEngine>;
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Add a track built from `config` to the arrangement the editor plays when
|
|
2375
2375
|
* it is called, and resolve with its id once it has entered (#848), before
|
|
@@ -2780,7 +2780,7 @@ declare global {
|
|
|
2780
2780
|
/**
|
|
2781
2781
|
* `<daw-player>` — lightweight single-track HTMLMediaElement player.
|
|
2782
2782
|
* Wraps a MediaElementPlayout engine for playback and composes
|
|
2783
|
-
* <daw-ruler>/<daw-waveform>/<daw-playhead> for visuals. No
|
|
2783
|
+
* <daw-ruler>/<daw-waveform>/<daw-playhead> for visuals. No EditorEngine,
|
|
2784
2784
|
* no adapter, no AudioContext. See docs/specs/2026-06-29-daw-player-core-design.md.
|
|
2785
2785
|
*/
|
|
2786
2786
|
declare class DawPlayerElement extends LitElement {
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ __export(index_exports, {
|
|
|
82
82
|
module.exports = __toCommonJS(index_exports);
|
|
83
83
|
|
|
84
84
|
// <define:__INSTALL_SPECS__>
|
|
85
|
-
var define_INSTALL_SPECS_default = { "@dawcore/faust": "@dawcore/faust@^0.0.2-next.1", "@dawcore/midi": "@dawcore/midi@^0.0.6-next.
|
|
85
|
+
var define_INSTALL_SPECS_default = { "@dawcore/faust": "@dawcore/faust@^0.0.2-next.1", "@dawcore/midi": "@dawcore/midi@^0.0.6-next.12", "@dawcore/transport": "@dawcore/transport@^0.0.16-next.11", "@dawcore/wam": "@dawcore/wam@^0.0.5-next.0", "@waveform-playlist/core": "@waveform-playlist/core@^13.0.0-next.11", "@waveform-playlist/engine": "@waveform-playlist/engine@^14.0.0-next.9", "@waveform-playlist/worklets": "@waveform-playlist/worklets@^13.0.1-next.0", "@waveform-playlist/playout": "@waveform-playlist/playout@^13.0.0-next.11" };
|
|
86
86
|
|
|
87
87
|
// src/elements/daw-annotation.ts
|
|
88
88
|
var import_lit = require("lit");
|
|
@@ -6330,9 +6330,7 @@ function canSplitAtTime(host, time) {
|
|
|
6330
6330
|
if (!track) return false;
|
|
6331
6331
|
const atSample = Math.round(time * host.effectiveSampleRate);
|
|
6332
6332
|
const clip = findClipAtSample(track.clips, atSample);
|
|
6333
|
-
|
|
6334
|
-
if (clip.midiNotes != null) return false;
|
|
6335
|
-
return true;
|
|
6333
|
+
return clip !== void 0;
|
|
6336
6334
|
}
|
|
6337
6335
|
function performSplit(host, time) {
|
|
6338
6336
|
const { engine } = host;
|
|
@@ -10670,7 +10668,7 @@ var DawEditorElement = class extends import_lit19.LitElement {
|
|
|
10670
10668
|
}
|
|
10671
10669
|
adapter.setPpqn?.(this._ppqn);
|
|
10672
10670
|
this.ppqn = adapter.ppqn;
|
|
10673
|
-
const engine = new import_engine3.
|
|
10671
|
+
const engine = new import_engine3.EditorEngine({
|
|
10674
10672
|
adapter,
|
|
10675
10673
|
arrangement: this._arrangement,
|
|
10676
10674
|
sampleRate: adapter.audioContext.sampleRate,
|