@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/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
// <define:__INSTALL_SPECS__>
|
|
13
|
-
var define_INSTALL_SPECS_default = { "@dawcore/faust": "@dawcore/faust@^0.0.2-next.1", "@dawcore/midi": "@dawcore/midi@^0.0.6-next.
|
|
13
|
+
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" };
|
|
14
14
|
|
|
15
15
|
// src/elements/daw-annotation.ts
|
|
16
16
|
import { LitElement } from "lit";
|
|
@@ -3253,7 +3253,7 @@ DawRulerElement = __decorateClass([
|
|
|
3253
3253
|
], DawRulerElement);
|
|
3254
3254
|
|
|
3255
3255
|
// src/elements/daw-editor.ts
|
|
3256
|
-
import { createArrangement,
|
|
3256
|
+
import { createArrangement, EditorEngine } from "@waveform-playlist/engine";
|
|
3257
3257
|
|
|
3258
3258
|
// src/elements/daw-track-controls.ts
|
|
3259
3259
|
import { LitElement as LitElement12, html as html9, css as css8 } from "lit";
|
|
@@ -6284,9 +6284,7 @@ function canSplitAtTime(host, time) {
|
|
|
6284
6284
|
if (!track) return false;
|
|
6285
6285
|
const atSample = Math.round(time * host.effectiveSampleRate);
|
|
6286
6286
|
const clip = findClipAtSample(track.clips, atSample);
|
|
6287
|
-
|
|
6288
|
-
if (clip.midiNotes != null) return false;
|
|
6289
|
-
return true;
|
|
6287
|
+
return clip !== void 0;
|
|
6290
6288
|
}
|
|
6291
6289
|
function performSplit(host, time) {
|
|
6292
6290
|
const { engine } = host;
|
|
@@ -10637,7 +10635,7 @@ var DawEditorElement = class extends LitElement14 {
|
|
|
10637
10635
|
}
|
|
10638
10636
|
adapter.setPpqn?.(this._ppqn);
|
|
10639
10637
|
this.ppqn = adapter.ppqn;
|
|
10640
|
-
const engine = new
|
|
10638
|
+
const engine = new EditorEngine({
|
|
10641
10639
|
adapter,
|
|
10642
10640
|
arrangement: this._arrangement,
|
|
10643
10641
|
sampleRate: adapter.audioContext.sampleRate,
|