@opendaw/studio-core 0.0.134 → 0.0.136
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/capture/CaptureMidi.d.ts.map +1 -1
- package/dist/capture/CaptureMidi.js +0 -11
- package/dist/midi/MIDILearning.d.ts.map +1 -1
- package/dist/midi/MIDILearning.js +1 -4
- package/dist/processors.js +45 -20
- package/dist/processors.js.map +4 -4
- package/dist/project/ProjectApi.d.ts +2 -1
- package/dist/project/ProjectApi.d.ts.map +1 -1
- package/dist/project/ProjectApi.js +7 -4
- package/dist/project/audio/AudioContentHelpers.d.ts +1 -1
- package/dist/project/audio/AudioContentHelpers.d.ts.map +1 -1
- package/dist/project/audio/AudioContentHelpers.js +5 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaptureMidi.d.ts","sourceRoot":"","sources":["../../src/capture/CaptureMidi.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,UAAU,EACb,MAAM,kBAAkB,CAAA;AAIzB,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAEnD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAG/C,qBAAa,WAAY,SAAQ,OAAO,CAAC,cAAc,CAAC;;gBAOxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IA+B/F,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAEhC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY;IAE5D,IAAI,KAAK,IAAI,MAAM,CAgBlB;IAED,IAAI,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,CAIhC;IAEK,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"CaptureMidi.d.ts","sourceRoot":"","sources":["../../src/capture/CaptureMidi.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,UAAU,EACb,MAAM,kBAAkB,CAAA;AAIzB,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAEnD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAG/C,qBAAa,WAAY,SAAQ,OAAO,CAAC,cAAc,CAAC;;gBAOxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IA+B/F,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAEhC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY;IAE5D,IAAI,KAAK,IAAI,MAAM,CAgBlB;IAED,IAAI,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,CAIhC;IAEK,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYvC,cAAc,IAAI,UAAU;CA4C/B"}
|
|
@@ -61,14 +61,6 @@ export class CaptureMidi extends Capture {
|
|
|
61
61
|
.map(device => device.name));
|
|
62
62
|
}
|
|
63
63
|
async prepareRecording() {
|
|
64
|
-
if (MidiDevices.get().isEmpty()) {
|
|
65
|
-
if (MidiDevices.canRequestMidiAccess()) {
|
|
66
|
-
await MidiDevices.requestPermission();
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
console.warn("MIDI not available");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
64
|
const inputs = MidiDevices.inputDevices();
|
|
73
65
|
if (inputs.length === 0) {
|
|
74
66
|
return;
|
|
@@ -85,9 +77,6 @@ export class CaptureMidi extends Capture {
|
|
|
85
77
|
return RecordMidi.start({ notifier: this.#notifier, project: this.manager.project, capture: this });
|
|
86
78
|
}
|
|
87
79
|
async #updateStream() {
|
|
88
|
-
if (MidiDevices.get().isEmpty() && MidiDevices.canRequestMidiAccess()) {
|
|
89
|
-
await MidiDevices.requestPermission();
|
|
90
|
-
}
|
|
91
80
|
const inputs = MidiDevices.inputDevices();
|
|
92
81
|
const explicit = this.deviceId.getValue().match({
|
|
93
82
|
none: () => inputs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MIDILearning.d.ts","sourceRoot":"","sources":["../../src/midi/MIDILearning.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MIDILearning.d.ts","sourceRoot":"","sources":["../../src/midi/MIDILearning.ts"],"names":[],"mappings":"AAAA,OAAO,EAWH,UAAU,EAGb,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,kBAAkB,CAAA;AAEhF,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAelC,qBAAa,YAAa,YAAW,UAAU;;gBAS/B,OAAO,EAAE,OAAO;IAK5B,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,IAAI;IAexD,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAI5C,oBAAoB,CAAC,OAAO,EAAE,OAAO;IAK/B,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,eAAe,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC;IAsC/F,SAAS,IAAI,IAAI;CA8DpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { asDefined, asInstanceOf,
|
|
1
|
+
import { asDefined, asInstanceOf, Errors, isNotNull, Option, RuntimeNotifier, Terminator, UUID } from "@opendaw/lib-std";
|
|
2
2
|
import { Address } from "@opendaw/lib-box";
|
|
3
3
|
import { MidiData } from "@opendaw/lib-midi";
|
|
4
4
|
import { MidiDevices } from "./MidiDevices";
|
|
@@ -24,9 +24,6 @@ export class MIDILearning {
|
|
|
24
24
|
this.#optMIDIContollers = Option.wrap(field);
|
|
25
25
|
this.#optFieldSubscription = Option.wrap(field.pointerHub.catchupAndSubscribe({
|
|
26
26
|
onAdded: ({ box: anyBox }) => {
|
|
27
|
-
if (MidiDevices.get().isEmpty() && MidiDevices.canRequestMidiAccess()) {
|
|
28
|
-
MidiDevices.requestPermission().then(EmptyExec, EmptyExec);
|
|
29
|
-
}
|
|
30
27
|
const box = asInstanceOf(anyBox, MIDIControllerBox);
|
|
31
28
|
const { subscription, handleEvent } = this.#registerMIDIControllerBox(box);
|
|
32
29
|
this.#connections.add({ box, subscription, handleEvent });
|