@opendaw/studio-core 0.0.46 → 0.0.47
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/EffectFactories.js +1 -1
- package/dist/EngineWorklet.d.ts.map +1 -1
- package/dist/EngineWorklet.js +8 -1
- package/dist/InstrumentBox.d.ts +2 -2
- package/dist/InstrumentBox.d.ts.map +1 -1
- package/dist/InstrumentFactories.d.ts +2 -0
- package/dist/InstrumentFactories.d.ts.map +1 -1
- package/dist/InstrumentFactories.js +13 -2
- package/dist/processors.js +11 -11
- package/dist/processors.js.map +4 -4
- package/dist/project/Project.d.ts +6 -1
- package/dist/project/Project.d.ts.map +1 -1
- package/dist/project/Project.js +28 -1
- package/dist/project/ProjectApi.js +1 -1
- package/dist/ui/TimeGrid.d.ts +19 -0
- package/dist/ui/TimeGrid.d.ts.map +1 -0
- package/dist/ui/TimeGrid.js +74 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/workers-main.js +2 -2
- package/package.json +15 -15
package/dist/EffectFactories.js
CHANGED
|
@@ -113,7 +113,7 @@ export var EffectFactories;
|
|
|
113
113
|
};
|
|
114
114
|
EffectFactories.Fold = {
|
|
115
115
|
defaultName: "Fold",
|
|
116
|
-
defaultIcon: IconSymbol.
|
|
116
|
+
defaultIcon: IconSymbol.Fold,
|
|
117
117
|
description: "Folds the signal back into audio-range",
|
|
118
118
|
separatorBefore: false,
|
|
119
119
|
type: "audio",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngineWorklet.d.ts","sourceRoot":"","sources":["../src/EngineWorklet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,GAAG,EACH,sBAAsB,EAEtB,QAAQ,EACR,eAAe,EACf,QAAQ,EAER,YAAY,EAGZ,IAAI,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAk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CAAC,GAAG,IAAI;IAG3D,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,YAAY;IAQ7E,SAAS,IAAI,IAAI;CAIpB"}
|
package/dist/EngineWorklet.js
CHANGED
|
@@ -126,7 +126,14 @@ export class EngineWorklet extends AudioWorkletNode {
|
|
|
126
126
|
changes.started.forEach(uuid => this.#playingClips.push(uuid));
|
|
127
127
|
this.#notifyClipNotification.notify({ type: "sequencing", changes });
|
|
128
128
|
},
|
|
129
|
-
switchMarkerState: (state) => this.#markerState.setValue(state)
|
|
129
|
+
switchMarkerState: (state) => this.#markerState.setValue(state),
|
|
130
|
+
sendMIDIData: (target, data, relativeTimeInMs) => {
|
|
131
|
+
let delay = 20.0; // default 20ms
|
|
132
|
+
if (this.context instanceof AudioContext) {
|
|
133
|
+
delay = this.context.outputLatency / 1000.0;
|
|
134
|
+
}
|
|
135
|
+
this.#project.receivedMIDIFromEngine(target, data, relativeTimeInMs + delay);
|
|
136
|
+
}
|
|
130
137
|
});
|
|
131
138
|
this.#terminator.ownAll(AnimationFrame.add(() => reader.tryRead()), project.liveStreamReceiver.connect(messenger.channel("engine-live-data")), new SyncSource(project.boxGraph, messenger.channel("engine-sync"), false), this.#metronomeEnabled.catchupAndSubscribe(owner => this.#commands.setMetronomeEnabled(owner.getValue())), this.#playbackTimestampEnabled.catchupAndSubscribe(owner => this.#commands.setPlaybackTimestampEnabled(owner.getValue())));
|
|
132
139
|
}
|
package/dist/InstrumentBox.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NanoDeviceBox, PlayfieldDeviceBox, SoundfontDeviceBox, TapeDeviceBox, VaporisateurDeviceBox } from "@opendaw/studio-boxes";
|
|
2
|
-
export type InstrumentBox = TapeDeviceBox | VaporisateurDeviceBox | NanoDeviceBox | PlayfieldDeviceBox | SoundfontDeviceBox;
|
|
1
|
+
import { MIDIOutputDeviceBox, NanoDeviceBox, PlayfieldDeviceBox, SoundfontDeviceBox, TapeDeviceBox, VaporisateurDeviceBox } from "@opendaw/studio-boxes";
|
|
2
|
+
export type InstrumentBox = TapeDeviceBox | VaporisateurDeviceBox | NanoDeviceBox | PlayfieldDeviceBox | SoundfontDeviceBox | MIDIOutputDeviceBox;
|
|
3
3
|
//# sourceMappingURL=InstrumentBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstrumentBox.d.ts","sourceRoot":"","sources":["../src/InstrumentBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACxB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,aAAa,GACrB,aAAa,GACX,qBAAqB,GACrB,aAAa,GACb,kBAAkB,GAClB,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"InstrumentBox.d.ts","sourceRoot":"","sources":["../src/InstrumentBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACxB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,aAAa,GACrB,aAAa,GACX,qBAAqB,GACrB,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,CAAA"}
|
|
@@ -5,6 +5,7 @@ export declare namespace InstrumentFactories {
|
|
|
5
5
|
const Nano: InstrumentFactory;
|
|
6
6
|
const Playfield: InstrumentFactory;
|
|
7
7
|
const Vaporisateur: InstrumentFactory;
|
|
8
|
+
const MIDIOutput: InstrumentFactory;
|
|
8
9
|
const Soundfont: InstrumentFactory<{
|
|
9
10
|
uuid: UUID.String;
|
|
10
11
|
name: string;
|
|
@@ -18,6 +19,7 @@ export declare namespace InstrumentFactories {
|
|
|
18
19
|
uuid: UUID.String;
|
|
19
20
|
name: string;
|
|
20
21
|
}>;
|
|
22
|
+
MIDIOutput: InstrumentFactory<never>;
|
|
21
23
|
};
|
|
22
24
|
type Keys = keyof typeof Named;
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstrumentFactories.d.ts","sourceRoot":"","sources":["../src/InstrumentFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InstrumentFactories.d.ts","sourceRoot":"","sources":["../src/InstrumentFactories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAKrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAGrD,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,IAAI,EAAE,iBAmBlB,CAAA;IAEM,MAAM,IAAI,EAAE,iBAwBlB,CAAA;IAEM,MAAM,SAAS,EAAE,iBAsCvB,CAAA;IAEM,MAAM,YAAY,EAAE,iBAqB1B,CAAA;IAEM,MAAM,UAAU,EAAE,iBAexB,CAAA;IAEM,MAAM,SAAS,EAAE,iBAAiB,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAqB5E,CAAA;IAEM,MAAM,KAAK;;;;;;kBAvBgC,IAAI,CAAC,MAAM;kBAAQ,MAAM;;;KAuBM,CAAA;IACjF,KAAY,IAAI,GAAG,MAAM,OAAO,KAAK,CAAA;CAYxC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AudioFileBox, NanoDeviceBox, PlayfieldDeviceBox, PlayfieldSampleBox, SoundfontDeviceBox, SoundfontFileBox, TapeDeviceBox, VaporisateurDeviceBox } from "@opendaw/studio-boxes";
|
|
1
|
+
import { AudioFileBox, MIDIOutputDeviceBox, NanoDeviceBox, PlayfieldDeviceBox, PlayfieldSampleBox, SoundfontDeviceBox, SoundfontFileBox, TapeDeviceBox, VaporisateurDeviceBox } from "@opendaw/studio-boxes";
|
|
2
2
|
import { UUID } from "@opendaw/lib-std";
|
|
3
3
|
import { Waveform } from "@opendaw/lib-dsp";
|
|
4
4
|
import { IconSymbol, TrackType } from "@opendaw/studio-adapters";
|
|
@@ -91,6 +91,17 @@ export var InstrumentFactories;
|
|
|
91
91
|
box.host.refer(host);
|
|
92
92
|
})
|
|
93
93
|
};
|
|
94
|
+
InstrumentFactories.MIDIOutput = {
|
|
95
|
+
defaultName: "MIDIOutput",
|
|
96
|
+
defaultIcon: IconSymbol.Midi,
|
|
97
|
+
description: "MIDI Output",
|
|
98
|
+
trackType: TrackType.Notes,
|
|
99
|
+
create: (boxGraph, host, name, icon, _attachment) => MIDIOutputDeviceBox.create(boxGraph, UUID.generate(), box => {
|
|
100
|
+
box.label.setValue(name);
|
|
101
|
+
box.icon.setValue(IconSymbol.toName(icon));
|
|
102
|
+
box.host.refer(host);
|
|
103
|
+
})
|
|
104
|
+
};
|
|
94
105
|
InstrumentFactories.Soundfont = {
|
|
95
106
|
defaultName: "Soundfont",
|
|
96
107
|
defaultIcon: IconSymbol.Book,
|
|
@@ -109,7 +120,7 @@ export var InstrumentFactories;
|
|
|
109
120
|
});
|
|
110
121
|
}
|
|
111
122
|
};
|
|
112
|
-
InstrumentFactories.Named = { Vaporisateur: InstrumentFactories.Vaporisateur, Playfield: InstrumentFactories.Playfield, Nano: InstrumentFactories.Nano, Tape: InstrumentFactories.Tape, Soundfont: InstrumentFactories.Soundfont };
|
|
123
|
+
InstrumentFactories.Named = { Vaporisateur: InstrumentFactories.Vaporisateur, Playfield: InstrumentFactories.Playfield, Nano: InstrumentFactories.Nano, Tape: InstrumentFactories.Tape, Soundfont: InstrumentFactories.Soundfont, MIDIOutput: InstrumentFactories.MIDIOutput };
|
|
113
124
|
const useAudioFile = (boxGraph, fileUUID, name, duration) => boxGraph.findBox(fileUUID)
|
|
114
125
|
.unwrapOrElse(() => AudioFileBox.create(boxGraph, fileUUID, box => {
|
|
115
126
|
box.fileName.setValue(name);
|