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
package/src/EMIDIPort.ts
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
export {
|
|
2
|
+
// type AcquiredThing,
|
|
3
|
+
AllPortsRecord as FullRecord,
|
|
4
|
+
// assert,
|
|
5
|
+
// assumeImpl,
|
|
6
|
+
// clearPortById,
|
|
7
|
+
// type DualSendMIDIMessageFromAccess,
|
|
8
|
+
// EMIDIAccess,
|
|
9
|
+
// type EMIDIAccessInstance,
|
|
10
|
+
// type GetThingByPortId,
|
|
11
|
+
// type GetThingByPortIdAccessFirst,
|
|
12
|
+
// type GetThingByPortIdAccessLast,
|
|
13
|
+
// type GetThingByPortIdAccessLastSecondHalf,
|
|
14
|
+
getAllPortsRecord as getFullRecord,
|
|
15
|
+
// getInputsRecord,
|
|
16
|
+
// getOutputsRecord,
|
|
17
|
+
// InputsRecord,
|
|
18
|
+
// is,
|
|
19
|
+
// layer,
|
|
20
|
+
// layerMostRestricted,
|
|
21
|
+
// layerSoftwareSynthSupported,
|
|
22
|
+
// layerSystemExclusiveAndSoftwareSynthSupported,
|
|
23
|
+
// layerSystemExclusiveSupported,
|
|
24
|
+
makeAllPortsStateChangesStream,
|
|
25
|
+
makeAllPortsStateChangesStreamInContext,
|
|
26
|
+
// makeMessagesStreamByInputId,
|
|
27
|
+
// OutputsRecord,
|
|
28
|
+
// type PolymorphicAccessInstance,
|
|
29
|
+
// type PolymorphicAccessInstanceClean,
|
|
30
|
+
// type RequestMIDIAccessOptions,
|
|
31
|
+
// request,
|
|
32
|
+
// resolve,
|
|
33
|
+
// type SendFromAccessArgs,
|
|
34
|
+
// type SendMIDIMessageAccessFirst,
|
|
35
|
+
// type SendMIDIMessageAccessLast,
|
|
36
|
+
// type SentMessageEffectFromAccess,
|
|
37
|
+
// send,
|
|
38
|
+
// sendInContext,
|
|
39
|
+
// sendToPortById,
|
|
40
|
+
// type TargetPortSelector,
|
|
41
|
+
// type TypeId,
|
|
42
|
+
} from './internal/EMIDIAccess.ts'
|
|
43
|
+
// export {
|
|
44
|
+
// assert,
|
|
45
|
+
// type EMIDIInput,
|
|
46
|
+
// is,
|
|
47
|
+
// make,
|
|
48
|
+
// makeMessagesStream,
|
|
49
|
+
// } from './internal/EMIDIInput.ts'
|
|
50
|
+
// export {
|
|
51
|
+
// assert,
|
|
52
|
+
// clear,
|
|
53
|
+
// type DualSendMIDIMessageFromPort,
|
|
54
|
+
// type EMIDIOutput,
|
|
55
|
+
// is,
|
|
56
|
+
// make,
|
|
57
|
+
// type PolymorphicOutput,
|
|
58
|
+
// type SendFromPortArgs,
|
|
59
|
+
// type SendMIDIMessagePortFirst,
|
|
60
|
+
// type SendMIDIMessagePortLast,
|
|
61
|
+
// type SentMessageEffectFromPort,
|
|
62
|
+
// send,
|
|
63
|
+
// } from './internal/EMIDIOutput.ts'
|
|
64
|
+
export {
|
|
65
|
+
assert,
|
|
66
|
+
BothId,
|
|
67
|
+
// assumeImpl,
|
|
68
|
+
type EMIDIPort,
|
|
69
|
+
// type EMIDIPortImpl,
|
|
70
|
+
type ExtractTypeFromPort,
|
|
71
|
+
type Id,
|
|
72
|
+
is,
|
|
73
|
+
// isImplOfSpecificType,
|
|
74
|
+
// makeImpl,
|
|
75
|
+
type PolymorphicPort,
|
|
76
|
+
type PolymorphicPortClean,
|
|
77
|
+
type TypeId,
|
|
78
|
+
} from './internal/EMIDIPort.ts'
|
|
79
|
+
export {
|
|
80
|
+
// type GetPortById,
|
|
81
|
+
// getInputByPortIdAndAccess,
|
|
82
|
+
// getOutputByPortIdAndAccess,
|
|
83
|
+
getPortByPortIdAndAccess as getByIdAndAccess,
|
|
84
|
+
} from './internal/getPortByPortId/getPortByPortIdAndAccess.ts'
|
|
85
|
+
export {
|
|
86
|
+
// getInputByPortIdInContext,
|
|
87
|
+
// getOutputByPortIdInContext,
|
|
88
|
+
getPortByPortIdInContext as getById,
|
|
89
|
+
} from './internal/getPortByPortId/getPortByPortIdInContext.ts'
|
|
90
|
+
export {
|
|
91
|
+
// acquireReleaseInputConnectionByPort,
|
|
92
|
+
// acquireReleaseOutputConnectionByPort,
|
|
93
|
+
acquireReleasePortConnectionByPort as acquireReleaseConnection,
|
|
94
|
+
} from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts'
|
|
95
|
+
export {
|
|
96
|
+
// acquireReleaseInputConnectionByPortIdAndAccess,
|
|
97
|
+
// acquireReleaseOutputConnectionByPortIdAndAccess,
|
|
98
|
+
acquireReleasePortConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess,
|
|
99
|
+
} from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts'
|
|
100
|
+
export {
|
|
101
|
+
// acquireReleaseInputConnectionByPortIdInContext,
|
|
102
|
+
// acquireReleaseOutputConnectionByPortIdInContext,
|
|
103
|
+
acquireReleasePortConnectionByPortIdInContext as acquireReleaseConnectionById,
|
|
104
|
+
} from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts'
|
|
105
|
+
// export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts'
|
|
106
|
+
export {
|
|
107
|
+
// closeInputConnectionByPort,
|
|
108
|
+
// closeOutputConnectionByPort,
|
|
109
|
+
closePortConnectionByPort as closeConnection,
|
|
110
|
+
// makePortConnectionCloser,
|
|
111
|
+
} from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts'
|
|
112
|
+
export {
|
|
113
|
+
// closeInputConnectionByPortIdAndAccess,
|
|
114
|
+
// closeOutputConnectionByPortIdAndAccess,
|
|
115
|
+
closePortConnectionByPortIdAndAccess as closeConnectionByIdAndAccess,
|
|
116
|
+
} from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts'
|
|
117
|
+
export {
|
|
118
|
+
// closeInputConnectionByPortIdInContext,
|
|
119
|
+
// closeOutputConnectionByPortIdInContext,
|
|
120
|
+
closePortConnectionByPortIdInContext as closeConnectionById,
|
|
121
|
+
} from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts'
|
|
122
|
+
// export {
|
|
123
|
+
// makeMIDIPortMethodCallerFactory,
|
|
124
|
+
// type TouchPort,
|
|
125
|
+
// } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts'
|
|
126
|
+
export {
|
|
127
|
+
// makePortConnectionOpener,
|
|
128
|
+
// openInputConnectionByPort,
|
|
129
|
+
// openOutputConnectionByPort,
|
|
130
|
+
openPortConnectionByPort as openConnection,
|
|
131
|
+
} from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts'
|
|
132
|
+
export {
|
|
133
|
+
// openInputConnectionByPortIdAndAccess,
|
|
134
|
+
// openOutputConnectionByPortIdAndAccess,
|
|
135
|
+
openPortConnectionByPortIdAndAccess as openConnectionByIdAndAccess,
|
|
136
|
+
} from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts'
|
|
137
|
+
export {
|
|
138
|
+
// openInputConnectionByPortIdInContext,
|
|
139
|
+
// openOutputConnectionByPortIdInContext,
|
|
140
|
+
openPortConnectionByPortIdInContext as openConnectionById,
|
|
141
|
+
} from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts'
|
|
142
|
+
export {
|
|
143
|
+
// type DualMakeStateChangesStream,
|
|
144
|
+
// type MakeStateChangesStreamPortFirst,
|
|
145
|
+
// type MakeStateChangesStreamPortLast,
|
|
146
|
+
// makeInputStateChangesStreamByPort,
|
|
147
|
+
// makeOutputStateChangesStreamByPort,
|
|
148
|
+
makePortStateChangesStreamByPort as makeStateChangesStream,
|
|
149
|
+
type StateChangesStream,
|
|
150
|
+
} from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts'
|
|
151
|
+
export {
|
|
152
|
+
// makeInputStateChangesStreamByPortIdAndAccess,
|
|
153
|
+
// makeOutputStateChangesStreamByPortIdAndAccess,
|
|
154
|
+
makePortStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess,
|
|
155
|
+
} from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts'
|
|
156
|
+
export {
|
|
157
|
+
// makeInputStateChangesStreamByPortIdInContext,
|
|
158
|
+
// makeOutputStateChangesStreamByPortIdInContext,
|
|
159
|
+
makePortStateChangesStreamByPortIdInContext as makeStateChangesStreamById,
|
|
160
|
+
} from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts'
|
|
161
|
+
export {
|
|
162
|
+
// isInputConnectionClosedByPort,
|
|
163
|
+
// isInputConnectionOpenByPort,
|
|
164
|
+
// isInputConnectionPendingByPort,
|
|
165
|
+
// isInputDeviceConnectedByPort,
|
|
166
|
+
// isInputDeviceDisconnectedByPort,
|
|
167
|
+
// isOutputConnectionClosedByPort,
|
|
168
|
+
// isOutputConnectionOpenByPort,
|
|
169
|
+
// isOutputConnectionPendingByPort,
|
|
170
|
+
// isOutputDeviceConnectedByPort,
|
|
171
|
+
// isOutputDeviceDisconnectedByPort,
|
|
172
|
+
isPortConnectionClosedByPort as isConnectionClosed,
|
|
173
|
+
isPortConnectionOpenByPort as isConnectionOpen,
|
|
174
|
+
isPortConnectionPendingByPort as isConnectionPending,
|
|
175
|
+
isPortDeviceConnectedByPort as isDeviceConnected,
|
|
176
|
+
isPortDeviceDisconnectedByPort as isDeviceDisconnected,
|
|
177
|
+
} from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts'
|
|
178
|
+
export {
|
|
179
|
+
// isInputConnectionClosedByPortIdAndAccess,
|
|
180
|
+
// isInputConnectionOpenByPortIdAndAccess,
|
|
181
|
+
// isInputConnectionPendingByPortIdAndAccess,
|
|
182
|
+
// isInputDeviceConnectedByPortIdAndAccess,
|
|
183
|
+
// isInputDeviceDisconnectedByPortIdAndAccess,
|
|
184
|
+
// isOutputConnectionClosedByPortIdAndAccess,
|
|
185
|
+
// isOutputConnectionOpenByPortIdAndAccess,
|
|
186
|
+
// isOutputConnectionPendingByPortIdAndAccess,
|
|
187
|
+
// isOutputDeviceConnectedByPortIdAndAccess,
|
|
188
|
+
// isOutputDeviceDisconnectedByPortIdAndAccess,
|
|
189
|
+
isPortConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess,
|
|
190
|
+
isPortConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess,
|
|
191
|
+
isPortConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess,
|
|
192
|
+
isPortDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess,
|
|
193
|
+
isPortDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess,
|
|
194
|
+
} from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts'
|
|
195
|
+
export {
|
|
196
|
+
// isInputConnectionClosedByPortIdInContext,
|
|
197
|
+
// isInputConnectionOpenByPortIdInContext,
|
|
198
|
+
// isInputConnectionPendingByPortIdInContext,
|
|
199
|
+
// isInputDeviceConnectedByPortIdInContext,
|
|
200
|
+
// isInputDeviceDisconnectedByPortIdInContext,
|
|
201
|
+
// isOutputConnectionClosedByPortIdInContext,
|
|
202
|
+
// isOutputConnectionOpenByPortIdInContext,
|
|
203
|
+
// isOutputConnectionPendingByPortIdInContext,
|
|
204
|
+
// isOutputDeviceConnectedByPortIdInContext,
|
|
205
|
+
// isOutputDeviceDisconnectedByPortIdInContext,
|
|
206
|
+
isPortConnectionClosedByPortIdInContext as isConnectionClosedById,
|
|
207
|
+
isPortConnectionOpenByPortIdInContext as isConnectionOpenById,
|
|
208
|
+
isPortConnectionPendingByPortIdInContext as isConnectionPendingById,
|
|
209
|
+
isPortDeviceConnectedByPortIdInContext as isDeviceConnectedById,
|
|
210
|
+
isPortDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById,
|
|
211
|
+
} from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts'
|
|
212
|
+
export {
|
|
213
|
+
// getInputConnectionStateByPort,
|
|
214
|
+
// getInputDeviceStateByPort,
|
|
215
|
+
// getOutputConnectionStateByPort,
|
|
216
|
+
// getOutputDeviceStateByPort,
|
|
217
|
+
getPortConnectionStateByPort as getConnectionState,
|
|
218
|
+
getPortDeviceStateByPort as getDeviceState,
|
|
219
|
+
} from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts'
|
|
220
|
+
export {
|
|
221
|
+
// getInputConnectionStateByPortIdAndAccess,
|
|
222
|
+
// getInputDeviceStateByPortIdAndAccess,
|
|
223
|
+
// getOutputConnectionStateByPortIdAndAccess,
|
|
224
|
+
// getOutputDeviceStateByPortIdAndAccess,
|
|
225
|
+
getPortConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess,
|
|
226
|
+
getPortDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess,
|
|
227
|
+
} from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts'
|
|
228
|
+
export {
|
|
229
|
+
// getInputConnectionStateByPortId,
|
|
230
|
+
// getInputDeviceStateByPortId,
|
|
231
|
+
// getOutputConnectionStateByPortId,
|
|
232
|
+
// getOutputDeviceStateByPortId,
|
|
233
|
+
getPortConnectionStateByPortId as getConnectionStateById,
|
|
234
|
+
getPortDeviceStateByPortId as getDeviceStateById,
|
|
235
|
+
} from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts'
|
|
236
|
+
export {
|
|
237
|
+
// type DualMatchPortState,
|
|
238
|
+
// type MatcherConfigPlain,
|
|
239
|
+
// type MatchResult,
|
|
240
|
+
// type MatchStatePortFirst,
|
|
241
|
+
// type MatchStatePortLast,
|
|
242
|
+
// type MIDIPortMutableProperty,
|
|
243
|
+
// matchInputConnectionStateByPort,
|
|
244
|
+
// matchInputDeviceStateByPort,
|
|
245
|
+
// matchOutputConnectionStateByPort,
|
|
246
|
+
// matchOutputDeviceStateByPort,
|
|
247
|
+
matchPortConnectionStateByPort as matchConnectionState,
|
|
248
|
+
matchPortDeviceStateByPort as matchDeviceState,
|
|
249
|
+
// type PortStateHandler,
|
|
250
|
+
// type StateCaseToHandlerMap,
|
|
251
|
+
} from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts'
|
|
252
|
+
export {
|
|
253
|
+
// matchInputConnectionStateByPortIdAndAccess,
|
|
254
|
+
// matchInputDeviceStateByPortIdAndAccess,
|
|
255
|
+
// matchOutputConnectionStateByPortIdAndAccess,
|
|
256
|
+
// matchOutputDeviceStateByPortIdAndAccess,
|
|
257
|
+
matchPortConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess,
|
|
258
|
+
matchPortDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess,
|
|
259
|
+
} from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts'
|
|
260
|
+
export {
|
|
261
|
+
// matchInputConnectionStateByPortIdInContext,
|
|
262
|
+
// matchInputDeviceStateByPortIdInContext,
|
|
263
|
+
// matchOutputConnectionStateByPortIdInContext,
|
|
264
|
+
// matchOutputDeviceStateByPortIdInContext,
|
|
265
|
+
matchPortConnectionStateByPortIdInContext as matchConnectionStateById,
|
|
266
|
+
matchPortDeviceStateByPortIdInContext as matchDeviceStateById,
|
|
267
|
+
} from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {
|
|
2
|
+
AbortError,
|
|
3
|
+
CantSendSysexMessagesError,
|
|
4
|
+
ClearingSendingQueueIsNotSupportedError,
|
|
5
|
+
DisconnectedPortError,
|
|
6
|
+
MalformedMidiMessageError,
|
|
7
|
+
MIDIAccessNotAllowedError,
|
|
8
|
+
MIDIAccessNotSupportedError,
|
|
9
|
+
PortNotFoundError,
|
|
10
|
+
// remapErrorByName,
|
|
11
|
+
UnavailablePortError,
|
|
12
|
+
UnderlyingSystemError,
|
|
13
|
+
} from './internal/errors.ts'
|
package/src/Parsing.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export {
|
|
2
|
+
type ControlChange,
|
|
3
|
+
type NotePress,
|
|
4
|
+
type NoteRelease,
|
|
5
|
+
type ParsedMIDIMessages,
|
|
6
|
+
type PitchBendChange,
|
|
7
|
+
type TouchpadPositionUpdate,
|
|
8
|
+
type TouchpadRelease,
|
|
9
|
+
type UnknownReply,
|
|
10
|
+
withParsedDataField,
|
|
11
|
+
withTouchpadPositionUpdates,
|
|
12
|
+
} from './internal/parsing.ts'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
BuiltStream,
|
|
3
|
+
DualStreamMaker,
|
|
4
|
+
MakeStreamTargetFirst,
|
|
5
|
+
MakeStreamTargetLast,
|
|
6
|
+
OnNullStrategy,
|
|
7
|
+
StreamError,
|
|
8
|
+
StreamMakerOptions,
|
|
9
|
+
StreamMakerOptionsObject,
|
|
10
|
+
StreamMakerOptionsWellknown,
|
|
11
|
+
StreamValue,
|
|
12
|
+
} from './internal/StreamMaker.ts'
|
package/src/Util.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export {
|
|
2
|
+
type FallbackOnUnknownOrAny,
|
|
3
|
+
// fromPolymorphic,
|
|
4
|
+
getStaticMIDIPortInfo,
|
|
5
|
+
type IsEqualFlag,
|
|
6
|
+
isCertainConnectionState,
|
|
7
|
+
isCertainDeviceState,
|
|
8
|
+
isConnectionClosed,
|
|
9
|
+
isConnectionOpen,
|
|
10
|
+
isConnectionPending,
|
|
11
|
+
isDeviceConnected,
|
|
12
|
+
isDeviceDisconnected,
|
|
13
|
+
type MIDIPortStaticFields,
|
|
14
|
+
mapToGlidingStringLogOfLimitedEntriesCount,
|
|
15
|
+
midiPortStaticFields,
|
|
16
|
+
type PolymorphicEffect,
|
|
17
|
+
// polymorphicCheckInDual,
|
|
18
|
+
type SentMessageEffectFrom,
|
|
19
|
+
} from './internal/util.ts'
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as EMIDIAccess from './EMIDIAccess.ts'
|
|
2
|
+
export * as EMIDIInput from './EMIDIInput.ts'
|
|
3
|
+
export * as EMIDIOutput from './EMIDIOutput.ts'
|
|
4
|
+
export * as EMIDIPort from './EMIDIPort.ts'
|
|
5
|
+
export * as MIDIErrors from './MIDIErrors.ts'
|
|
6
|
+
export * as Parsing from './Parsing.ts'
|
|
7
|
+
export * as StreamMaker from './StreamMaker.ts'
|
|
8
|
+
export * as Util from './Util.ts'
|