effect-web-midi 0.1.0
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 +7 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/src/EMIDIAccess.js +68 -0
- package/dist/src/EMIDIAccess.js.map +1 -0
- package/dist/src/EMIDIInput.js +226 -0
- package/dist/src/EMIDIInput.js.map +1 -0
- package/dist/src/EMIDIOutput.js +225 -0
- package/dist/src/EMIDIOutput.js.map +1 -0
- package/dist/src/EMIDIPort.js +213 -0
- package/dist/src/EMIDIPort.js.map +1 -0
- package/dist/src/MIDIErrors.js +4 -0
- package/dist/src/MIDIErrors.js.map +1 -0
- package/dist/src/Parsing.js +2 -0
- package/dist/src/Parsing.js.map +1 -0
- package/dist/src/StreamMaker.js +1 -0
- package/dist/src/StreamMaker.js.map +1 -0
- package/dist/src/Util.js +4 -0
- package/dist/src/Util.js.map +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/EMIDIAccess.js +409 -0
- package/dist/src/internal/EMIDIAccess.js.map +1 -0
- package/dist/src/internal/EMIDIInput.js +69 -0
- package/dist/src/internal/EMIDIInput.js.map +1 -0
- package/dist/src/internal/EMIDIOutput.js +120 -0
- package/dist/src/internal/EMIDIOutput.js.map +1 -0
- package/dist/src/internal/EMIDIPort.js +125 -0
- package/dist/src/internal/EMIDIPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js +27 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js +19 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js +27 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js +21 -0
- package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js +30 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/StreamMaker.js +101 -0
- package/dist/src/internal/StreamMaker.js.map +1 -0
- package/dist/src/internal/errors.js +161 -0
- package/dist/src/internal/errors.js.map +1 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js +53 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js +18 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js +52 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js +13 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js +18 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js +66 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js +61 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js +61 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js +42 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js +42 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js +29 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js +6 -0
- package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js +46 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js +25 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js +31 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js.map +1 -0
- package/dist/src/internal/parsing.js +117 -0
- package/dist/src/internal/parsing.js.map +1 -0
- package/dist/src/internal/util.js +59 -0
- package/dist/src/internal/util.js.map +1 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/index.d.ts.map +1 -0
- package/dist-types/src/EMIDIAccess.d.ts +27 -0
- package/dist-types/src/EMIDIAccess.d.ts.map +1 -0
- package/dist-types/src/EMIDIInput.d.ts +26 -0
- package/dist-types/src/EMIDIInput.d.ts.map +1 -0
- package/dist-types/src/EMIDIOutput.d.ts +26 -0
- package/dist-types/src/EMIDIOutput.d.ts.map +1 -0
- package/dist-types/src/EMIDIPort.d.ts +26 -0
- package/dist-types/src/EMIDIPort.d.ts.map +1 -0
- package/dist-types/src/MIDIErrors.d.ts +2 -0
- package/dist-types/src/MIDIErrors.d.ts.map +1 -0
- package/dist-types/src/Parsing.d.ts +2 -0
- package/dist-types/src/Parsing.d.ts.map +1 -0
- package/dist-types/src/StreamMaker.d.ts +2 -0
- package/dist-types/src/StreamMaker.d.ts.map +1 -0
- package/dist-types/src/Util.d.ts +2 -0
- package/dist-types/src/Util.d.ts.map +1 -0
- package/dist-types/src/index.d.ts +9 -0
- package/dist-types/src/index.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIAccess.d.ts +339 -0
- package/dist-types/src/internal/EMIDIAccess.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIInput.d.ts +48 -0
- package/dist-types/src/internal/EMIDIInput.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIOutput.d.ts +93 -0
- package/dist-types/src/internal/EMIDIOutput.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIPort.d.ts +87 -0
- package/dist-types/src/internal/EMIDIPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts +16 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts +11 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts +23 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts +21 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/StreamMaker.d.ts +202 -0
- package/dist-types/src/internal/StreamMaker.d.ts.map +1 -0
- package/dist-types/src/internal/errors.d.ts +260 -0
- package/dist-types/src/internal/errors.d.ts.map +1 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts +27 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts +20 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts +71 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts +4 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts +20 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts +62 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts +16 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts +16 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts +36 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts +22 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts +17 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts +7 -0
- package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts +71 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts +7 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts +28 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/parsing.d.ts +72 -0
- package/dist-types/src/internal/parsing.d.ts.map +1 -0
- package/dist-types/src/internal/util.d.ts +33 -0
- package/dist-types/src/internal/util.d.ts.map +1 -0
- package/index.ts +1 -0
- package/package.json +83 -0
- package/src/EMIDIAccess.ts +271 -0
- package/src/EMIDIInput.ts +270 -0
- package/src/EMIDIOutput.ts +269 -0
- package/src/EMIDIPort.ts +267 -0
- package/src/MIDIErrors.ts +13 -0
- package/src/Parsing.ts +12 -0
- package/src/StreamMaker.ts +12 -0
- package/src/Util.ts +19 -0
- package/src/index.ts +8 -0
- package/src/internal/EMIDIAccess.ts +893 -0
- package/src/internal/EMIDIInput.ts +114 -0
- package/src/internal/EMIDIOutput.ts +228 -0
- package/src/internal/EMIDIPort.ts +233 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts +43 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts +39 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/MIDIPortMethodCalls/actOnPort.ts +66 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts +73 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts +44 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/StreamMaker.ts +414 -0
- package/src/internal/errors.ts +220 -0
- package/src/internal/getPortByPortId/getPortByPortIdAndAccess.ts +116 -0
- package/src/internal/getPortByPortId/getPortByPortIdInContext.ts +26 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts +148 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts +14 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts +51 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts +127 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts +74 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts +74 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts +63 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts +110 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts +37 -0
- package/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.ts +12 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts +183 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts +29 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts +86 -0
- package/src/internal/parsing.ts +219 -0
- package/src/internal/util.ts +152 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import * as EFunction from 'effect/Function';
|
|
3
|
+
import * as Option from 'effect/Option';
|
|
4
|
+
import * as Record from 'effect/Record';
|
|
5
|
+
import * as EMIDIAccess from "../../EMIDIAccess.js";
|
|
6
|
+
import * as Errors from "../../errors.js";
|
|
7
|
+
import * as Get from "./getMutablePortPropertyByPort.js";
|
|
8
|
+
const getPortByIdGeneric2 =
|
|
9
|
+
// biome-ignore lint/suspicious/noExplicitAny: I don't care
|
|
10
|
+
(getPortMap) => (polymorphicAccess, transformPortEffect, portId) => EFunction.pipe(getPortMap(polymorphicAccess), Effect.flatMap(EFunction.flow(Record.get(portId), Option.match({
|
|
11
|
+
onNone: () => new Errors.PortNotFoundError({ portId }),
|
|
12
|
+
onSome: e => Effect.succeed(e),
|
|
13
|
+
}))), transformPortEffect);
|
|
14
|
+
// TODO: Check if software synth devices access is present. Having desired
|
|
15
|
+
// port absent in the record doesn't guarantee it's disconnected
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export const getPortDeviceStateByPortIdAndAccess = (polymorphicAccess, id) => getPortByIdGeneric2(EMIDIAccess.getAllPortsRecord)(polymorphicAccess, EFunction.flow(Get.getPortDeviceStateByPort, Effect.catchTag('PortNotFound', () => Effect.succeed('disconnected'))), id);
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export const getPortConnectionStateByPortIdAndAccess = (polymorphicAccess, id) => getPortByIdGeneric2(EMIDIAccess.getAllPortsRecord)(polymorphicAccess, Get.getPortConnectionStateByPort, id);
|
|
26
|
+
// TODO: getInputConnectionStateByPortIdAndAccess
|
|
27
|
+
export const getInputConnectionStateByPortIdAndAccess = () => {
|
|
28
|
+
throw new Error('not implemented');
|
|
29
|
+
};
|
|
30
|
+
// TODO: getInputDeviceStateByPortIdAndAccess
|
|
31
|
+
export const getInputDeviceStateByPortIdAndAccess = () => {
|
|
32
|
+
throw new Error('not implemented');
|
|
33
|
+
};
|
|
34
|
+
// TODO: getOutputConnectionStateByPortIdAndAccess
|
|
35
|
+
export const getOutputConnectionStateByPortIdAndAccess = () => {
|
|
36
|
+
throw new Error('not implemented');
|
|
37
|
+
};
|
|
38
|
+
// TODO: getOutputDeviceStateByPortIdAndAccess
|
|
39
|
+
export const getOutputDeviceStateByPortIdAndAccess = () => {
|
|
40
|
+
throw new Error('not implemented');
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=getMutablePortPropertyByPortIdAndAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPortIdAndAccess.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMut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ACH,CAAA;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CACrD,iBAIC,EACD,EAAoB,EACpB,EAAE,CACF,mBAAmB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAChD,iBAAiB,EACjB,GAAG,CAAC,4BAA4B,EAChC,EAAE,CACH,CAAA;AAEH,iDAAiD;AACjD,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAG,EAAE;IAC3D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,6CAA6C;AAC7C,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,EAAE;IACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,kDAAkD;AAClD,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE;IAC5D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,EAAE;IACxD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as EMIDIAccess from "../../EMIDIAccess.js";
|
|
2
|
+
import * as Get from "./getMutablePortPropertyByPortIdAndAccess.js";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export const getPortDeviceStateByPortId = (id) => Get.getPortDeviceStateByPortIdAndAccess(EMIDIAccess.EMIDIAccess, id);
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export const getPortConnectionStateByPortId = (id) => Get.getPortConnectionStateByPortIdAndAccess(EMIDIAccess.EMIDIAccess, id);
|
|
13
|
+
// TODO: getInputConnectionStateByPortId
|
|
14
|
+
export const getInputConnectionStateByPortId = () => {
|
|
15
|
+
throw new Error('not implemented');
|
|
16
|
+
};
|
|
17
|
+
// TODO: getInputDeviceStateByPortId
|
|
18
|
+
export const getInputDeviceStateByPortId = () => {
|
|
19
|
+
throw new Error('not implemented');
|
|
20
|
+
};
|
|
21
|
+
// TODO: getOutputConnectionStateByPortId
|
|
22
|
+
export const getOutputConnectionStateByPortId = () => {
|
|
23
|
+
throw new Error('not implemented');
|
|
24
|
+
};
|
|
25
|
+
// TODO: getOutputDeviceStateByPortId
|
|
26
|
+
export const getOutputDeviceStateByPortId = () => {
|
|
27
|
+
throw new Error('not implemented');
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=getMutablePortPropertyByPortIdInContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPortIdInContext.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAEnD,OAAO,KAAK,GAAG,MAAM,8CAA8C,CAAA;AAEnE;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAoB,EAAE,EAAE,CACjE,GAAG,CAAC,mCAAmC,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAEtE;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAAoB,EAAE,EAAE,CACrE,GAAG,CAAC,uCAAuC,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAE1E,wCAAwC;AACxC,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAClD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,oCAAoC;AACpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,yCAAyC;AACzC,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE;IACnD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC/C,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getValueInRawPortFieldUnsafe.js","sourceRoot":"","sources":["../../../../src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAG5C;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GACvC,CACE,QAAkC,EAClC,EAAE,CACJ,CAAC,IAAyB,EAAE,EAAE,CAC5B,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** biome-ignore-all lint/style/useShorthandFunctionType: It's a nice way to
|
|
2
|
+
* preserve JSDoc comments attached to the function signature */
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
import * as EFunction from 'effect/Function';
|
|
5
|
+
import * as Record from 'effect/Record';
|
|
6
|
+
import * as EMIDIInput from "../../EMIDIInput.js";
|
|
7
|
+
import * as EMIDIOutput from "../../EMIDIOutput.js";
|
|
8
|
+
import * as EMIDIPort from "../../EMIDIPort.js";
|
|
9
|
+
import * as Util from "../../util.js";
|
|
10
|
+
import * as Get from "../getValueInRawPortFieldUnsafe.js";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
const matchMutableMIDIPortProperty = (property, is) => EFunction.dual(Util.polymorphicCheckInDual(is), Effect.fn(function* (polymorphicPort, config) {
|
|
15
|
+
const port = yield* Util.fromPolymorphic(polymorphicPort, is);
|
|
16
|
+
const state = Get.getValueInRawPortFieldUnsafe(property)(port);
|
|
17
|
+
for (const [stateCase, stateCallback] of Record.toEntries(config))
|
|
18
|
+
if (state === stateCase)
|
|
19
|
+
return stateCallback(port);
|
|
20
|
+
return yield* Effect.dieMessage(`AssertionFailed: Missing handler for "${state}" state inside "${property}" property`);
|
|
21
|
+
}));
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export const matchPortConnectionStateByPort = matchMutableMIDIPortProperty('connection', EMIDIPort.is);
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export const matchPortDeviceStateByPort = matchMutableMIDIPortProperty('state', EMIDIPort.is);
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export const matchInputConnectionStateByPort = matchMutableMIDIPortProperty('connection', EMIDIInput.is);
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export const matchInputDeviceStateByPort = matchMutableMIDIPortProperty('state', EMIDIInput.is);
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export const matchOutputConnectionStateByPort = matchMutableMIDIPortProperty('connection', EMIDIOutput.is);
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export const matchOutputDeviceStateByPort = matchMutableMIDIPortProperty('state', EMIDIOutput.is);
|
|
46
|
+
//# sourceMappingURL=matchMutablePortPropertyByPort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMutablePortPropertyByPort.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts"],"names":[],"mappings":"AAAA;gEACgE;AAEhE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,K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AC,MAAM,+BAA+B,GAAG,4BAA4B,CACzE,YAAY,EACZ,UAAU,CAAC,EAAE,CACd,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,4BAA4B,CACrE,OAAO,EACP,UAAU,CAAC,EAAE,CACd,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,4BAA4B,CAC1E,YAAY,EACZ,WAAW,CAAC,EAAE,CACf,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,4BAA4B,CACtE,OAAO,EACP,WAAW,CAAC,EAAE,CACf,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// TODO: matchInputConnectionStateByPortIdAndAccess
|
|
2
|
+
export const matchInputConnectionStateByPortIdAndAccess = () => {
|
|
3
|
+
throw new Error('not implemented');
|
|
4
|
+
};
|
|
5
|
+
// TODO: matchInputDeviceStateByPortIdAndAccess
|
|
6
|
+
export const matchInputDeviceStateByPortIdAndAccess = () => {
|
|
7
|
+
throw new Error('not implemented');
|
|
8
|
+
};
|
|
9
|
+
// TODO: matchOutputConnectionStateByPortIdAndAccess
|
|
10
|
+
export const matchOutputConnectionStateByPortIdAndAccess = () => {
|
|
11
|
+
throw new Error('not implemented');
|
|
12
|
+
};
|
|
13
|
+
// TODO: matchOutputDeviceStateByPortIdAndAccess
|
|
14
|
+
export const matchOutputDeviceStateByPortIdAndAccess = () => {
|
|
15
|
+
throw new Error('not implemented');
|
|
16
|
+
};
|
|
17
|
+
// TODO: matchPortConnectionStateByPortIdAndAccess
|
|
18
|
+
export const matchPortConnectionStateByPortIdAndAccess = () => {
|
|
19
|
+
throw new Error('not implemented');
|
|
20
|
+
};
|
|
21
|
+
// TODO: matchPortDeviceStateByPortIdAndAccess
|
|
22
|
+
export const matchPortDeviceStateByPortIdAndAccess = () => {
|
|
23
|
+
throw new Error('not implemented');
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=matchMutablePortPropertyByPortIdAndAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMutablePortPropertyByPortIdAndAccess.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,MAAM,CAAC,MAAM,0CAA0C,GAAG,GAAG,EAAE;IAC7D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,+CAA+C;AAC/C,MAAM,CAAC,MAAM,sCAAsC,GAAG,GAAG,EAAE;IACzD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,oDAAoD;AACpD,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,EAAE;IAC9D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,gDAAgD;AAChD,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,EAAE;IAC1D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,kDAAkD;AAClD,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE;IAC5D,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,EAAE;IACxD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Get from "../../getPortByPortId/getPortByPortIdInContext.js";
|
|
2
|
+
import * as Match from "./matchMutablePortPropertyByPort.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
const makeMatcherTakingPortIds = (match, getPort) => (id, stateCaseToHandlerMap) => match(getPort(id), stateCaseToHandlerMap);
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export const matchPortConnectionStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchPortConnectionStateByPort, Get.getPortByPortIdInContext);
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export const matchInputConnectionStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchInputConnectionStateByPort, Get.getInputByPortIdInContext);
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export const matchOutputConnectionStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchOutputConnectionStateByPort, Get.getOutputByPortIdInContext);
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export const matchPortDeviceStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchPortDeviceStateByPort, Get.getPortByPortIdInContext);
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export const matchInputDeviceStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchInputDeviceStateByPort, Get.getInputByPortIdInContext);
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export const matchOutputDeviceStateByPortIdInContext = makeMatcherTakingPortIds(Match.matchOutputDeviceStateByPort, Get.getOutputByPortIdInContext);
|
|
31
|
+
//# sourceMappingURL=matchMutablePortPropertyByPortIdInContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMutablePortPropertyByPortIdInContext.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,mDAAmD,CAAA;AACxE,OAAO,KAAK,KAAK,MAAM,qCAAqC,CAAA;AAE5D;;GAEG;AACH,MAAM,wBAAwB,GAC5B,CAIE,KAAsE,EACtE,OAMC,EACD,EAAE,CACJ,CAOE,EAAoC,EACpC,qBAA6C,EAC7C,EAAE,CACF,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,qBAAqB,CAAC,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GACpD,wBAAwB,CACtB,KAAK,CAAC,8BAA8B,EACpC,GAAG,CAAC,wBAAwB,CAC7B,CAAA;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GACrD,wBAAwB,CACtB,KAAK,CAAC,+BAA+B,EACrC,GAAG,CAAC,yBAAyB,CAC9B,CAAA;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GACtD,wBAAwB,CACtB,KAAK,CAAC,gCAAgC,EACtC,GAAG,CAAC,0BAA0B,CAC/B,CAAA;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,wBAAwB,CAC3E,KAAK,CAAC,0BAA0B,EAChC,GAAG,CAAC,wBAAwB,CAC7B,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,wBAAwB,CAC5E,KAAK,CAAC,2BAA2B,EACjC,GAAG,CAAC,yBAAyB,CAC9B,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wBAAwB,CAC7E,KAAK,CAAC,4BAA4B,EAClC,GAAG,CAAC,0BAA0B,CAC/B,CAAA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file This module is not for general use, these are just helpers to test the
|
|
3
|
+
* MIDI API with the only MIDI device I have: nanoPAD v1
|
|
4
|
+
*/
|
|
5
|
+
import * as Stream from 'effect/Stream';
|
|
6
|
+
//? NOTE: Look at the issue https://github.com/WebAudio/web-midi-api/issues/179
|
|
7
|
+
// which discusses higher-level MIDI message access
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param self
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export const withParsedDataField = (self) => Stream.map(self, ({ midiMessage, ...obj }) => ({
|
|
14
|
+
...obj,
|
|
15
|
+
midiMessage: dataEntryParser(midiMessage),
|
|
16
|
+
}));
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param self
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export const withTouchpadPositionUpdates = (self) => Stream.mapAccum(self, { x: 0, y: 0, seenPressedTouchpadEventsInARow: 0 }, (ctx, current) => {
|
|
23
|
+
const { midiMessage, ...rest } = current;
|
|
24
|
+
const select = (control, pitch, previous) => ({
|
|
25
|
+
'Control Change': control,
|
|
26
|
+
'Pitch Bend Change': pitch,
|
|
27
|
+
'Touchpad Release': 0, // resets everything
|
|
28
|
+
})[midiMessage._tag] ?? previous;
|
|
29
|
+
const position = {
|
|
30
|
+
x: select(ctx.x, midiMessage.value, ctx.x),
|
|
31
|
+
y: select(midiMessage.value, ctx.y, ctx.y),
|
|
32
|
+
};
|
|
33
|
+
const seenPressedTouchpadEventsInARow = select(ctx.seenPressedTouchpadEventsInARow + 1, ctx.seenPressedTouchpadEventsInARow + 1, ctx.seenPressedTouchpadEventsInARow);
|
|
34
|
+
return [
|
|
35
|
+
{ ...position, seenPressedTouchpadEventsInARow },
|
|
36
|
+
seenPressedTouchpadEventsInARow > 1 &&
|
|
37
|
+
(position.x !== ctx.x || position.y !== ctx.y)
|
|
38
|
+
? Stream.make(current, {
|
|
39
|
+
...rest,
|
|
40
|
+
midiMessage: {
|
|
41
|
+
_tag: 'Touchpad Position Update',
|
|
42
|
+
...position,
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
: Stream.succeed(current),
|
|
46
|
+
];
|
|
47
|
+
}).pipe(Stream.flatten());
|
|
48
|
+
function dataEntryParser(midiMessage) {
|
|
49
|
+
const unknown = () => {
|
|
50
|
+
let stack = '';
|
|
51
|
+
if ('stackTraceLimit' in Error &&
|
|
52
|
+
'captureStackTrace' in Error &&
|
|
53
|
+
typeof Error.captureStackTrace === 'function') {
|
|
54
|
+
const { stackTraceLimit } = Error;
|
|
55
|
+
Error.stackTraceLimit = 4;
|
|
56
|
+
const stackHolder = {};
|
|
57
|
+
Error.captureStackTrace(stackHolder);
|
|
58
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
59
|
+
stack = stackHolder.stack ?? new Error().stack ?? '';
|
|
60
|
+
}
|
|
61
|
+
const result = {
|
|
62
|
+
_tag: 'Unknown Reply',
|
|
63
|
+
unexpectedData: midiMessage.toString(),
|
|
64
|
+
stack,
|
|
65
|
+
};
|
|
66
|
+
return result;
|
|
67
|
+
};
|
|
68
|
+
if (midiMessage.length !== 3)
|
|
69
|
+
return unknown();
|
|
70
|
+
const first = midiMessage.at(0);
|
|
71
|
+
if (first === undefined)
|
|
72
|
+
return unknown();
|
|
73
|
+
const second = midiMessage.at(1);
|
|
74
|
+
if (second === undefined)
|
|
75
|
+
return unknown();
|
|
76
|
+
const third = midiMessage.at(2);
|
|
77
|
+
if (third === undefined)
|
|
78
|
+
return unknown();
|
|
79
|
+
const code = first >> 4;
|
|
80
|
+
const channel = first & 0b1111;
|
|
81
|
+
if (code === 0x8) {
|
|
82
|
+
if (third !== 0x40)
|
|
83
|
+
return unknown();
|
|
84
|
+
return {
|
|
85
|
+
_tag: 'Note Release',
|
|
86
|
+
channel,
|
|
87
|
+
note: second,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
if (code === 0x9) {
|
|
91
|
+
if (third === 0)
|
|
92
|
+
return unknown();
|
|
93
|
+
return {
|
|
94
|
+
_tag: 'Note Press',
|
|
95
|
+
channel,
|
|
96
|
+
note: second,
|
|
97
|
+
velocity: third,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
if (code === 0xb) {
|
|
101
|
+
return {
|
|
102
|
+
_tag: 'Control Change',
|
|
103
|
+
channel,
|
|
104
|
+
control: second,
|
|
105
|
+
value: third,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
if (code === 0xe) {
|
|
109
|
+
if (second === 0 && third === 0x40)
|
|
110
|
+
return { _tag: 'Touchpad Release', channel };
|
|
111
|
+
if (second === third)
|
|
112
|
+
return { _tag: 'Pitch Bend Change', channel, value: second };
|
|
113
|
+
return unknown();
|
|
114
|
+
}
|
|
115
|
+
return unknown();
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=parsing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsing.js","sourceRoot":"","sources":["../../../src/internal/parsing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,+EAA+E;AAC/E,mDAAmD;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAKjC,IAA4B,EAC5B,EAAE,CACF,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7C,GAAG,GAAG;IACN,WAAW,EAAE,eAAe,CAAC,WAAW,CAAC;CAC1C,CAAC,CAID,CAAA;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAWzC,IAA4B,EAM5B,EAAE,CACF,MAAM,CAAC,QAAQ,CACb,IAAI,EACJ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,+BAA+B,EAAE,CAAC,EAAE,EAClD,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;IACf,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IACxC,MAAM,MAAM,GAAG,CAAI,OAAU,EAAE,KAAQ,EAAE,QAAW,EAAE,EAAE,CACtD,CAAC;QACC,gBAAgB,EAAE,OAAO;QACzB,mBAAmB,EAAE,KAAK;QAC1B,kBAAkB,EAAE,CAAC,EAAE,oBAAoB;KAC5C,CAAC,CAAC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EAAE,CAAA;QACjC,OAAO;YACL,IAAI,EAAE,YAAY;YAClB,OAAO;YACP,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;SAChB,CAAA;IACH,CAAC;IAED,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,OAAO;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO;YACP,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,KAAK;SACb,CAAA;IACH,CAAC;IAED,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,IAAI,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI;YAChC,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAA;QAE9C,IAAI,MAAM,KAAK,KAAK;YAClB,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;QAC9D,OAAO,OAAO,EAAE,CAAA;IAClB,CAAC;IACD,OAAO,OAAO,EAAE,CAAA;AAClB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as EArray from 'effect/Array';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import * as EFunction from 'effect/Function';
|
|
4
|
+
import * as Record from 'effect/Record';
|
|
5
|
+
import * as Stream from 'effect/Stream';
|
|
6
|
+
import * as Struct from 'effect/Struct';
|
|
7
|
+
export const midiPortStaticFields = [
|
|
8
|
+
'id',
|
|
9
|
+
'name',
|
|
10
|
+
'manufacturer',
|
|
11
|
+
'version',
|
|
12
|
+
'type',
|
|
13
|
+
];
|
|
14
|
+
export const getStaticMIDIPortInfo = (port) => Struct.pick(port, ...midiPortStaticFields);
|
|
15
|
+
export const polymorphicCheckInDual = (is) => (arg) => Effect.isEffect(arg[0]) || is(arg[0]);
|
|
16
|
+
export function fromPolymorphic(polymorphicValue, is) {
|
|
17
|
+
const check = (value) => is(value)
|
|
18
|
+
? Effect.succeed(value)
|
|
19
|
+
: Effect.dieMessage('Assertion failed on polymorphic value');
|
|
20
|
+
return Effect.isEffect(polymorphicValue)
|
|
21
|
+
? Effect.flatMap(polymorphicValue, check)
|
|
22
|
+
: check(polymorphicValue);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
const isEqual = () => (expected) => (self) => Effect.map(self, current => (current === expected));
|
|
28
|
+
export const isCertainDeviceState = isEqual();
|
|
29
|
+
export const isCertainConnectionState = isEqual();
|
|
30
|
+
export const isDeviceConnected = isCertainDeviceState('connected');
|
|
31
|
+
export const isDeviceDisconnected = isCertainDeviceState('disconnected');
|
|
32
|
+
export const isConnectionOpen = isCertainConnectionState('open');
|
|
33
|
+
export const isConnectionPending = isCertainConnectionState('pending');
|
|
34
|
+
export const isConnectionClosed = isCertainConnectionState('closed');
|
|
35
|
+
export const mapToGlidingStringLogOfLimitedEntriesCount = (windowSize, show, objectify) => (self) => {
|
|
36
|
+
if (windowSize < 1)
|
|
37
|
+
throw new Error('Window size should be greater than 0');
|
|
38
|
+
return Stream.mapAccum(self, { text: '', entrySizeLog: [] }, ({ entrySizeLog: oldLog, text: oldText }, current) => {
|
|
39
|
+
const currMapped = EFunction.pipe(objectify(current), Record.toEntries, EArray.map(EArray.join(': ')), EArray.join(', ')) + '\n';
|
|
40
|
+
const potentiallyShiftedLog = oldLog.length >= windowSize
|
|
41
|
+
? oldLog.slice(...(show === 'latestFirst' ? [0, -1] : [1]))
|
|
42
|
+
: oldLog;
|
|
43
|
+
const potentiallyShiftedText = oldLog.length >= windowSize
|
|
44
|
+
? oldText.slice(...(show === 'latestFirst'
|
|
45
|
+
? // biome-ignore lint/style/noNonNullAssertion: oldLog guaranteed to have at least one element by oldLog.length >= windowSize
|
|
46
|
+
[0, -oldLog.at(-1)]
|
|
47
|
+
: // biome-ignore lint/style/noNonNullAssertion: oldLog guaranteed to have at least one element by oldLog.length >= windowSize
|
|
48
|
+
[oldLog.at(0)]))
|
|
49
|
+
: oldText;
|
|
50
|
+
const text = show === 'latestFirst'
|
|
51
|
+
? currMapped + potentiallyShiftedText
|
|
52
|
+
: potentiallyShiftedText + currMapped;
|
|
53
|
+
const entrySizeLog = show === 'latestFirst'
|
|
54
|
+
? [currMapped.length, ...potentiallyShiftedLog]
|
|
55
|
+
: [...potentiallyShiftedLog, currMapped.length];
|
|
56
|
+
return [{ text, entrySizeLog }, text];
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/internal/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAEtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI;IACJ,MAAM;IACN,cAAc;IACd,SAAS;IACT,MAAM;CACE,CAAA;AAIV,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAA0C,EAC1C,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,oBAAoB,CAAC,CAAA;AAyB/C,MAAM,CAAC,MAAM,sBAAsB,GACjC,CAAC,EAA6B,EAAE,EAAE,CAAC,CAAC,GAAe,EAAE,EAAE,CACrD,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzC,MAAM,UAAU,eAAe,CAC7B,gBAA4C,EAC5C,EAAuC;IAEvC,MAAM,KAAK,GAAG,CAAC,KAAQ,EAAE,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AC,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,qBAAqB,CAAC;YAC/C,CAAC,CAAC,CAAC,GAAG,qBAAqB,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QAEnD,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,IAAI,CAAC,CAAA;IACvC,CAAC,CACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { type AcquiredThing, AllPortsRecord, assert, clearPortById, type DualSendMIDIMessageFromAccess, EMIDIAccess, type EMIDIAccessInstance, type GetThingByPortId, type GetThingByPortIdAccessFirst, type GetThingByPortIdAccessLast, type GetThingByPortIdAccessLastSecondHalf, getAllPortsRecord, getInputsRecord, getOutputsRecord, InputsRecord, is, layer, layerMostRestricted, layerSoftwareSynthSupported, layerSystemExclusiveAndSoftwareSynthSupported, layerSystemExclusiveSupported, makeAllPortsStateChangesStream, makeAllPortsStateChangesStreamInContext, makeMessagesStreamByInputId, makeMessagesStreamByInputIdAndAccess, OutputsRecord, type PolymorphicAccessInstance, type PolymorphicAccessInstanceClean, type RequestMIDIAccessOptions, request, type SendFromAccessArgs, type SendMIDIMessageAccessFirst, type SendMIDIMessageAccessLast, type SentMessageEffectFromAccess, send, sendInContext, sendToPortById, type TargetPortSelector, type TypeId, } from './internal/EMIDIAccess.ts';
|
|
2
|
+
export { type GetPortById, getInputByPortIdAndAccess as getInputByIdInPipe, getOutputByPortIdAndAccess as getOutputByIdInPipe, getPortByPortIdAndAccess as getPortByIdInPipe, } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts';
|
|
3
|
+
export { getInputByPortIdInContext as getInputById, getOutputByPortIdInContext as getOutputById, getPortByPortIdInContext as getPortById, } from './internal/getPortByPortId/getPortByPortIdInContext.ts';
|
|
4
|
+
export { acquireReleaseInputConnectionByPort, acquireReleaseOutputConnectionByPort, acquireReleasePortConnectionByPort, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts';
|
|
5
|
+
export { acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseInputConnectionByIdInPipe, acquireReleaseOutputConnectionByPortIdAndAccess as acquireReleaseOutputConnectionByIdInPipe, acquireReleasePortConnectionByPortIdAndAccess as acquireReleasePortConnectionByIdInPipe, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts';
|
|
6
|
+
export { acquireReleaseInputConnectionByPortIdInContext as acquireReleaseInputConnectionById, acquireReleaseOutputConnectionByPortIdInContext as acquireReleaseOutputConnectionById, acquireReleasePortConnectionByPortIdInContext as acquireReleasePortConnectionById, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts';
|
|
7
|
+
export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts';
|
|
8
|
+
export { closeInputConnectionByPort, closeOutputConnectionByPort, closePortConnectionByPort, makePortConnectionCloser, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts';
|
|
9
|
+
export { closeInputConnectionByPortIdAndAccess as closeInputConnectionByIdInPipe, closeOutputConnectionByPortIdAndAccess as closeOutputConnectionByIdInPipe, closePortConnectionByPortIdAndAccess as closePortConnectionByIdInPipe, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts';
|
|
10
|
+
export { closeInputConnectionByPortIdInContext as closeInputConnectionById, closeOutputConnectionByPortIdInContext as closeOutputConnectionById, closePortConnectionByPortIdInContext as closePortConnectionById, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts';
|
|
11
|
+
export { makeMIDIPortMethodCallerFactory, type TouchPort, } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts';
|
|
12
|
+
export { makePortConnectionOpener, openInputConnectionByPort, openOutputConnectionByPort, openPortConnectionByPort, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts';
|
|
13
|
+
export { openInputConnectionByPortIdAndAccess as openInputConnectionByIdInPipe, openOutputConnectionByPortIdAndAccess as openOutputConnectionByIdInPipe, openPortConnectionByPortIdAndAccess as openPortConnectionByIdInPipe, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts';
|
|
14
|
+
export { openInputConnectionByPortIdInContext as openInputConnectionById, openOutputConnectionByPortIdInContext as openOutputConnectionById, openPortConnectionByPortIdInContext as openPortConnectionById, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts';
|
|
15
|
+
export { type DualMakeStateChangesStream, type MakeStateChangesStreamPortFirst, type MakeStateChangesStreamPortLast, makeInputStateChangesStreamByPort, makeOutputStateChangesStreamByPort, makePortStateChangesStreamByPort, type StateChangesStream, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts';
|
|
16
|
+
export { makeInputStateChangesStreamByPortIdAndAccess as makeInputStateChangesStreamByIdInPipe, makeOutputStateChangesStreamByPortIdAndAccess as makeOutputStateChangesStreamByIdInPipe, makePortStateChangesStreamByPortIdAndAccess as makePortStateChangesStreamByIdInPipe, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts';
|
|
17
|
+
export { makeInputStateChangesStreamByPortIdInContext as makeInputStateChangesStreamById, makeOutputStateChangesStreamByPortIdInContext as makeOutputStateChangesStreamById, makePortStateChangesStreamByPortIdInContext as makePortStateChangesStreamById, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts';
|
|
18
|
+
export { isInputConnectionClosedByPort, isInputConnectionOpenByPort, isInputConnectionPendingByPort, isInputDeviceConnectedByPort, isInputDeviceDisconnectedByPort, isOutputConnectionClosedByPort, isOutputConnectionOpenByPort, isOutputConnectionPendingByPort, isOutputDeviceConnectedByPort, isOutputDeviceDisconnectedByPort, isPortConnectionClosedByPort, isPortConnectionOpenByPort, isPortConnectionPendingByPort, isPortDeviceConnectedByPort, isPortDeviceDisconnectedByPort, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts';
|
|
19
|
+
export { isInputConnectionClosedByPortIdAndAccess as isInputConnectionClosedByIdInPipe, isInputConnectionOpenByPortIdAndAccess as isInputConnectionOpenByIdInPipe, isInputConnectionPendingByPortIdAndAccess as isInputConnectionPendingByIdInPipe, isInputDeviceConnectedByPortIdAndAccess as isInputDeviceConnectedByIdInPipe, isInputDeviceDisconnectedByPortIdAndAccess as isInputDeviceDisconnectedByIdInPipe, isOutputConnectionClosedByPortIdAndAccess as isOutputConnectionClosedByIdInPipe, isOutputConnectionOpenByPortIdAndAccess as isOutputConnectionOpenByIdInPipe, isOutputConnectionPendingByPortIdAndAccess as isOutputConnectionPendingByIdInPipe, isOutputDeviceConnectedByPortIdAndAccess as isOutputDeviceConnectedByIdInPipe, isOutputDeviceDisconnectedByPortIdAndAccess as isOutputDeviceDisconnectedByIdInPipe, isPortConnectionClosedByPortIdAndAccess as isPortConnectionClosedByIdInPipe, isPortConnectionOpenByPortIdAndAccess as isPortConnectionOpenByIdInPipe, isPortConnectionPendingByPortIdAndAccess as isPortConnectionPendingByIdInPipe, isPortDeviceConnectedByPortIdAndAccess as isPortDeviceConnectedByIdInPipe, isPortDeviceDisconnectedByPortIdAndAccess as isPortDeviceDisconnectedByIdInPipe, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts';
|
|
20
|
+
export { isInputConnectionClosedByPortIdInContext as isInputConnectionClosedById, isInputConnectionOpenByPortIdInContext as isInputConnectionOpenById, isInputConnectionPendingByPortIdInContext as isInputConnectionPendingById, isInputDeviceConnectedByPortIdInContext as isInputDeviceConnectedById, isInputDeviceDisconnectedByPortIdInContext as isInputDeviceDisconnectedById, isOutputConnectionClosedByPortIdInContext as isOutputConnectionClosedById, isOutputConnectionOpenByPortIdInContext as isOutputConnectionOpenById, isOutputConnectionPendingByPortIdInContext as isOutputConnectionPendingById, isOutputDeviceConnectedByPortIdInContext as isOutputDeviceConnectedById, isOutputDeviceDisconnectedByPortIdInContext as isOutputDeviceDisconnectedById, isPortConnectionClosedByPortIdInContext as isPortConnectionClosedById, isPortConnectionOpenByPortIdInContext as isPortConnectionOpenById, isPortConnectionPendingByPortIdInContext as isPortConnectionPendingById, isPortDeviceConnectedByPortIdInContext as isPortDeviceConnectedById, isPortDeviceDisconnectedByPortIdInContext as isPortDeviceDisconnectedById, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts';
|
|
21
|
+
export { getInputConnectionStateByPort, getInputDeviceStateByPort, getOutputConnectionStateByPort, getOutputDeviceStateByPort, getPortConnectionStateByPort, getPortDeviceStateByPort, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts';
|
|
22
|
+
export { getInputConnectionStateByPortIdAndAccess as getInputConnectionStateByIdInPipe, getInputDeviceStateByPortIdAndAccess as getInputDeviceStateByIdInPipe, getOutputConnectionStateByPortIdAndAccess as getOutputConnectionStateByIdInPipe, getOutputDeviceStateByPortIdAndAccess as getOutputDeviceStateByIdInPipe, getPortConnectionStateByPortIdAndAccess as getPortConnectionStateByIdInPipe, getPortDeviceStateByPortIdAndAccess as getPortDeviceStateByIdInPipe, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts';
|
|
23
|
+
export { getInputConnectionStateByPortId as getInputConnectionStateById, getInputDeviceStateByPortId as getInputDeviceStateById, getOutputConnectionStateByPortId as getOutputConnectionStateById, getOutputDeviceStateByPortId as getOutputDeviceStateById, getPortConnectionStateByPortId as getPortConnectionStateById, getPortDeviceStateByPortId as getPortDeviceStateById, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts';
|
|
24
|
+
export { type DualMatchPortState, type MatcherConfigPlain, type MatchResult, type MatchStatePortFirst, type MatchStatePortLast, type MIDIPortMutableProperty, matchInputConnectionStateByPort, matchInputDeviceStateByPort, matchOutputConnectionStateByPort, matchOutputDeviceStateByPort, matchPortConnectionStateByPort, matchPortDeviceStateByPort, type PortStateHandler, type StateCaseToHandlerMap, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts';
|
|
25
|
+
export { matchInputConnectionStateByPortIdAndAccess as matchInputConnectionStateByIdInPipe, matchInputDeviceStateByPortIdAndAccess as matchInputDeviceStateByIdInPipe, matchOutputConnectionStateByPortIdAndAccess as matchOutputConnectionStateByIdInPipe, matchOutputDeviceStateByPortIdAndAccess as matchOutputDeviceStateByIdInPipe, matchPortConnectionStateByPortIdAndAccess as matchPortConnectionStateBydInPipe, matchPortDeviceStateByPortIdAndAccess as matchPortDeviceStateByIdInPipe, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts';
|
|
26
|
+
export { matchInputConnectionStateByPortIdInContext as matchInputConnectionStateById, matchInputDeviceStateByPortIdInContext as matchInputDeviceStateById, matchOutputConnectionStateByPortIdInContext as matchOutputConnectionStateById, matchOutputDeviceStateByPortIdInContext as matchOutputDeviceStateById, matchPortConnectionStateByPortIdInContext as matchPortConnectionStateById, matchPortDeviceStateByPortIdInContext as matchPortDeviceStateByPortId, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts';
|
|
27
|
+
//# sourceMappingURL=EMIDIAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EMIDIAccess.d.ts","sourceRoot":"","sources":["../../src/EMIDIAccess.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,cAAc,EACd,MAAM,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M,uGAAuG,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { getInputsRecord as getRecord, InputsRecord as Record, makeMessagesStreamByInputId as makeMessagesStreamById, makeMessagesStreamByInputIdAndAccess as makeMessagesStreamByIdAndAccess, } from './internal/EMIDIAccess.ts';
|
|
2
|
+
export { assert, type EMIDIInput, Id, is, makeMessagesStreamByPort as makeMessagesStream, type PolymorphicInput, type PolymorphicInputClean, } from './internal/EMIDIInput.ts';
|
|
3
|
+
export { getInputByPortIdAndAccess as getByIdAndAccess, } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts';
|
|
4
|
+
export { getInputByPortIdInContext as getById, } from './internal/getPortByPortId/getPortByPortIdInContext.ts';
|
|
5
|
+
export { acquireReleaseInputConnectionByPort as acquireReleaseConnection, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts';
|
|
6
|
+
export { acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts';
|
|
7
|
+
export { acquireReleaseInputConnectionByPortIdInContext as acquireReleaseConnectionById, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts';
|
|
8
|
+
export { closeInputConnectionByPort as closeConnection, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts';
|
|
9
|
+
export { closeInputConnectionByPortIdAndAccess as closeConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts';
|
|
10
|
+
export { closeInputConnectionByPortIdInContext as closeConnectionById, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts';
|
|
11
|
+
export { openInputConnectionByPort as openConnection, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts';
|
|
12
|
+
export { openInputConnectionByPortIdAndAccess as openConnectionById, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts';
|
|
13
|
+
export { openInputConnectionByPortIdInContext as openConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts';
|
|
14
|
+
export { makeInputStateChangesStreamByPort as makeStateChangesStream, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts';
|
|
15
|
+
export { makeInputStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts';
|
|
16
|
+
export { makeInputStateChangesStreamByPortIdInContext as makeStateChangesStreamById, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts';
|
|
17
|
+
export { isInputConnectionClosedByPort as isConnectionClosed, isInputConnectionOpenByPort as isConnectionOpen, isInputConnectionPendingByPort as isConnectionPending, isInputDeviceConnectedByPort as isDeviceConnected, isInputDeviceDisconnectedByPort as isDeviceDisconnected, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts';
|
|
18
|
+
export { isInputConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess, isInputConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess, isInputConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess, isInputDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess, isInputDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts';
|
|
19
|
+
export { isInputConnectionClosedByPortIdInContext as isConnectionClosedById, isInputConnectionOpenByPortIdInContext as isConnectionOpenById, isInputConnectionPendingByPortIdInContext as isConnectionPendingById, isInputDeviceConnectedByPortIdInContext as isDeviceConnectedById, isInputDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts';
|
|
20
|
+
export { getInputConnectionStateByPort as getConnectionState, getInputDeviceStateByPort as getDeviceState, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts';
|
|
21
|
+
export { getInputConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess, getInputDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts';
|
|
22
|
+
export { getInputConnectionStateByPortId as getConnectionStateById, getInputDeviceStateByPortId as getDeviceStateById, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts';
|
|
23
|
+
export { matchInputConnectionStateByPort as matchConnectionState, matchInputDeviceStateByPort as matchDeviceState, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts';
|
|
24
|
+
export { matchInputConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess, matchInputDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts';
|
|
25
|
+
export { matchInputConnectionStateByPortIdInContext as matchConnectionStateById, matchInputDeviceStateByPortIdInContext as matchDeviceStateById, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts';
|
|
26
|
+
//# sourceMappingURL=EMIDIInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EMIDIInput.d.ts","sourceRoot":"","sources":["../../src/EMIDIInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAcL,eAAe,IAAI,SAAS,EAE5B,YAAY,IAAI,MAAM,EAStB,2BAA2B,IAAI,sBAAsB,EACrD,oCAAoC,IAAI,+BAA+B,GA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B,EACrD,4BAA4B,IAAI,iBAAiB,EACjD,+BAA+B,IAAI,oBAAoB,GAWxD,MAAM,4HAA4H,CAAA;AACnI,OAAO,EACL,wCAAwC,IAAI,+BAA+B,EAC3E,sCAAsC,IAAI,6BAA6B,EACvE,yCAAyC,IAAI,gCAAgC,EAC7E,uCAAuC,IAAI,8BAA8B,EACzE,0CAA0C,IAAI,iCAAiC,GAWhF,MAAM,uIAAuI,CAAA;AAC9I,OAAO,EACL,wCAAwC,IAAI,sBAAsB,EAClE,sCAAsC,IAAI,oBAAoB,EAC9D,yCAAyC,IAAI,uBAAuB,EACpE,uCAAuC,IAAI,qBAAqB,EAChE,0CAA0C,IAAI,wBAAwB,GAWvE,MAAM,uIAAuI,CAAA;AAC9I,OAAO,EACL,6BAA6B,IAAI,kBAAkB,EACnD,yBAAyB,IAAI,cAAc,GAK5C,MAAM,wFAAwF,CAAA;AAC/F,OAAO,EACL,wCAAwC,IAAI,+BAA+B,EAC3E,oCAAoC,IAAI,2BAA2B,GAKpE,MAAM,mGAAmG,CAAA;AAC1G,OAAO,EACL,+BAA+B,IAAI,sBAAsB,EACzD,2BAA2B,IAAI,kBAAkB,GAKlD,MAAM,mGAAmG,CAAA;AAC1G,OAAO,EAOL,+BAA+B,IAAI,oBAAoB,EACvD,2BAA2B,IAAI,gBAAgB,GAOhD,MAAM,4FAA4F,CAAA;AACnG,OAAO,EACL,0CAA0C,IAAI,iCAAiC,EAC/E,sCAAsC,IAAI,6BAA6B,GAKxE,MAAM,uGAAuG,CAAA;AAC9G,OAAO,EACL,0CAA0C,IAAI,wBAAwB,EACtE,sCAAsC,IAAI,oBAAoB,GAK/D,MAAM,uGAAuG,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { clearPortById, type DualSendMIDIMessageFromAccess, getOutputsRecord as getRecord, OutputsRecord as Record, type SendFromAccessArgs, type SendMIDIMessageAccessFirst, type SendMIDIMessageAccessLast, type SentMessageEffectFromAccess, sendInContext, sendToPortById, type TargetPortSelector, } from './internal/EMIDIAccess.ts';
|
|
2
|
+
export { assert, clear, type DualSendMIDIMessageFromPort, type EMIDIOutput, Id, is, type PolymorphicOutput, type PolymorphicOutputClean, type SendFromPortArgs, type SendMIDIMessagePortFirst, type SendMIDIMessagePortLast, type SentMessageEffectFromPort, send, } from './internal/EMIDIOutput.ts';
|
|
3
|
+
export { getOutputByPortIdAndAccess as getByIdAndAccess, } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts';
|
|
4
|
+
export { getOutputByPortIdInContext as getById, } from './internal/getPortByPortId/getPortByPortIdInContext.ts';
|
|
5
|
+
export { acquireReleaseOutputConnectionByPort as acquireReleaseConnection, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts';
|
|
6
|
+
export { acquireReleaseOutputConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts';
|
|
7
|
+
export { acquireReleaseOutputConnectionByPortIdInContext as acquireReleaseConnectionById, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts';
|
|
8
|
+
export { closeOutputConnectionByPort as closeConnection, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts';
|
|
9
|
+
export { closeOutputConnectionByPortIdAndAccess as closeConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts';
|
|
10
|
+
export { closeOutputConnectionByPortIdInContext as closeConnectionById, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts';
|
|
11
|
+
export { openOutputConnectionByPort as openConnection, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts';
|
|
12
|
+
export { openOutputConnectionByPortIdAndAccess as openConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts';
|
|
13
|
+
export { openOutputConnectionByPortIdInContext as openConnectionById, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts';
|
|
14
|
+
export { makeOutputStateChangesStreamByPort as makeStateChangesStream, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts';
|
|
15
|
+
export { makeOutputStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts';
|
|
16
|
+
export { makeOutputStateChangesStreamByPortIdInContext as makeStateChangesStreamById, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts';
|
|
17
|
+
export { isOutputConnectionClosedByPort as isConnectionClosed, isOutputConnectionOpenByPort as isConnectionOpen, isOutputConnectionPendingByPort as isConnectionPending, isOutputDeviceConnectedByPort as isDeviceConnected, isOutputDeviceDisconnectedByPort as isDeviceDisconnected, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts';
|
|
18
|
+
export { isOutputConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess, isOutputConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess, isOutputConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess, isOutputDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess, isOutputDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts';
|
|
19
|
+
export { isOutputConnectionClosedByPortIdInContext as isConnectionClosedById, isOutputConnectionOpenByPortIdInContext as isConnectionOpenById, isOutputConnectionPendingByPortIdInContext as isConnectionPendingById, isOutputDeviceConnectedByPortIdInContext as isDeviceConnectedById, isOutputDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts';
|
|
20
|
+
export { getOutputConnectionStateByPort as getConnectionState, getOutputDeviceStateByPort as getDeviceState, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts';
|
|
21
|
+
export { getOutputConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess, getOutputDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts';
|
|
22
|
+
export { getOutputConnectionStateByPortId as getConnectionStateById, getOutputDeviceStateByPortId as getDeviceStateById, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts';
|
|
23
|
+
export { matchOutputConnectionStateByPort as matchConnectionState, matchOutputDeviceStateByPort as matchDeviceState, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts';
|
|
24
|
+
export { matchOutputConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess, matchOutputDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts';
|
|
25
|
+
export { matchOutputConnectionStateByPortIdInContext as matchConnectionStateById, matchOutputDeviceStateByPortIdInContext as matchDeviceStateById, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts';
|
|
26
|
+
//# sourceMappingURL=EMIDIOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EMIDIOutput.d.ts","sourceRoot":"","sources":["../../src/EMIDIOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,KAAK,6BAA6B,EASlC,gBAAgB,IAAI,SAAS,EAW7B,aAAa,IAAI,MAAM,EAMvB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KA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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { AllPortsRecord as FullRecord, getAllPortsRecord as getFullRecord, makeAllPortsStateChangesStream, makeAllPortsStateChangesStreamInContext, } from './internal/EMIDIAccess.ts';
|
|
2
|
+
export { assert, BothId, type EMIDIPort, type ExtractTypeFromPort, type Id, is, type PolymorphicPort, type PolymorphicPortClean, type TypeId, } from './internal/EMIDIPort.ts';
|
|
3
|
+
export { getPortByPortIdAndAccess as getByIdAndAccess, } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts';
|
|
4
|
+
export { getPortByPortIdInContext as getById, } from './internal/getPortByPortId/getPortByPortIdInContext.ts';
|
|
5
|
+
export { acquireReleasePortConnectionByPort as acquireReleaseConnection, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts';
|
|
6
|
+
export { acquireReleasePortConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts';
|
|
7
|
+
export { acquireReleasePortConnectionByPortIdInContext as acquireReleaseConnectionById, } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts';
|
|
8
|
+
export { closePortConnectionByPort as closeConnection, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts';
|
|
9
|
+
export { closePortConnectionByPortIdAndAccess as closeConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts';
|
|
10
|
+
export { closePortConnectionByPortIdInContext as closeConnectionById, } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts';
|
|
11
|
+
export { openPortConnectionByPort as openConnection, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts';
|
|
12
|
+
export { openPortConnectionByPortIdAndAccess as openConnectionByIdAndAccess, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts';
|
|
13
|
+
export { openPortConnectionByPortIdInContext as openConnectionById, } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts';
|
|
14
|
+
export { makePortStateChangesStreamByPort as makeStateChangesStream, type StateChangesStream, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts';
|
|
15
|
+
export { makePortStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts';
|
|
16
|
+
export { makePortStateChangesStreamByPortIdInContext as makeStateChangesStreamById, } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts';
|
|
17
|
+
export { isPortConnectionClosedByPort as isConnectionClosed, isPortConnectionOpenByPort as isConnectionOpen, isPortConnectionPendingByPort as isConnectionPending, isPortDeviceConnectedByPort as isDeviceConnected, isPortDeviceDisconnectedByPort as isDeviceDisconnected, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts';
|
|
18
|
+
export { isPortConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess, isPortConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess, isPortConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess, isPortDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess, isPortDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts';
|
|
19
|
+
export { isPortConnectionClosedByPortIdInContext as isConnectionClosedById, isPortConnectionOpenByPortIdInContext as isConnectionOpenById, isPortConnectionPendingByPortIdInContext as isConnectionPendingById, isPortDeviceConnectedByPortIdInContext as isDeviceConnectedById, isPortDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById, } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts';
|
|
20
|
+
export { getPortConnectionStateByPort as getConnectionState, getPortDeviceStateByPort as getDeviceState, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts';
|
|
21
|
+
export { getPortConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess, getPortDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts';
|
|
22
|
+
export { getPortConnectionStateByPortId as getConnectionStateById, getPortDeviceStateByPortId as getDeviceStateById, } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts';
|
|
23
|
+
export { matchPortConnectionStateByPort as matchConnectionState, matchPortDeviceStateByPort as matchDeviceState, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts';
|
|
24
|
+
export { matchPortConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess, matchPortDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts';
|
|
25
|
+
export { matchPortConnectionStateByPortIdInContext as matchConnectionStateById, matchPortDeviceStateByPortIdInContext as matchDeviceStateById, } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts';
|
|
26
|
+
//# sourceMappingURL=EMIDIPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EMIDIPort.d.ts","sourceRoot":"","sources":["../../src/EMIDIPort.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,IAAI,UAAU,EAW5B,iBAAiB,IAAI,aAAa,EAUlC,8BAA8B,EAC9B,uCAAuC,GAiBxC,MAAM,2BAA2B,CAAA;AAsBlC,OAAO,EACL,MAAM,EACN,MAAM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