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.
Files changed (222) hide show
  1. package/README.md +7 -0
  2. package/dist/index.js +2 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/src/EMIDIAccess.js +68 -0
  5. package/dist/src/EMIDIAccess.js.map +1 -0
  6. package/dist/src/EMIDIInput.js +226 -0
  7. package/dist/src/EMIDIInput.js.map +1 -0
  8. package/dist/src/EMIDIOutput.js +225 -0
  9. package/dist/src/EMIDIOutput.js.map +1 -0
  10. package/dist/src/EMIDIPort.js +213 -0
  11. package/dist/src/EMIDIPort.js.map +1 -0
  12. package/dist/src/MIDIErrors.js +4 -0
  13. package/dist/src/MIDIErrors.js.map +1 -0
  14. package/dist/src/Parsing.js +2 -0
  15. package/dist/src/Parsing.js.map +1 -0
  16. package/dist/src/StreamMaker.js +1 -0
  17. package/dist/src/StreamMaker.js.map +1 -0
  18. package/dist/src/Util.js +4 -0
  19. package/dist/src/Util.js.map +1 -0
  20. package/dist/src/index.js +9 -0
  21. package/dist/src/index.js.map +1 -0
  22. package/dist/src/internal/EMIDIAccess.js +409 -0
  23. package/dist/src/internal/EMIDIAccess.js.map +1 -0
  24. package/dist/src/internal/EMIDIInput.js +69 -0
  25. package/dist/src/internal/EMIDIInput.js.map +1 -0
  26. package/dist/src/internal/EMIDIOutput.js +120 -0
  27. package/dist/src/internal/EMIDIOutput.js.map +1 -0
  28. package/dist/src/internal/EMIDIPort.js +125 -0
  29. package/dist/src/internal/EMIDIPort.js.map +1 -0
  30. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js +27 -0
  31. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js.map +1 -0
  32. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js +19 -0
  33. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js.map +1 -0
  34. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js +16 -0
  35. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js.map +1 -0
  36. package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js +18 -0
  37. package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js.map +1 -0
  38. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js +27 -0
  39. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js.map +1 -0
  40. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js +18 -0
  41. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js.map +1 -0
  42. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js +16 -0
  43. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js.map +1 -0
  44. package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js +21 -0
  45. package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js.map +1 -0
  46. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js +30 -0
  47. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js.map +1 -0
  48. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js +18 -0
  49. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js.map +1 -0
  50. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js +16 -0
  51. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js.map +1 -0
  52. package/dist/src/internal/StreamMaker.js +101 -0
  53. package/dist/src/internal/StreamMaker.js.map +1 -0
  54. package/dist/src/internal/errors.js +161 -0
  55. package/dist/src/internal/errors.js.map +1 -0
  56. package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js +53 -0
  57. package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js.map +1 -0
  58. package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js +18 -0
  59. package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js.map +1 -0
  60. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js +52 -0
  61. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js.map +1 -0
  62. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js +13 -0
  63. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js.map +1 -0
  64. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js +18 -0
  65. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js.map +1 -0
  66. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js +66 -0
  67. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js.map +1 -0
  68. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js +61 -0
  69. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js.map +1 -0
  70. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js +61 -0
  71. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map +1 -0
  72. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js +42 -0
  73. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js.map +1 -0
  74. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js +42 -0
  75. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js.map +1 -0
  76. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js +29 -0
  77. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js.map +1 -0
  78. package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js +6 -0
  79. package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js.map +1 -0
  80. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js +46 -0
  81. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js.map +1 -0
  82. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js +25 -0
  83. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js.map +1 -0
  84. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js +31 -0
  85. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js.map +1 -0
  86. package/dist/src/internal/parsing.js +117 -0
  87. package/dist/src/internal/parsing.js.map +1 -0
  88. package/dist/src/internal/util.js +59 -0
  89. package/dist/src/internal/util.js.map +1 -0
  90. package/dist-types/index.d.ts +2 -0
  91. package/dist-types/index.d.ts.map +1 -0
  92. package/dist-types/src/EMIDIAccess.d.ts +27 -0
  93. package/dist-types/src/EMIDIAccess.d.ts.map +1 -0
  94. package/dist-types/src/EMIDIInput.d.ts +26 -0
  95. package/dist-types/src/EMIDIInput.d.ts.map +1 -0
  96. package/dist-types/src/EMIDIOutput.d.ts +26 -0
  97. package/dist-types/src/EMIDIOutput.d.ts.map +1 -0
  98. package/dist-types/src/EMIDIPort.d.ts +26 -0
  99. package/dist-types/src/EMIDIPort.d.ts.map +1 -0
  100. package/dist-types/src/MIDIErrors.d.ts +2 -0
  101. package/dist-types/src/MIDIErrors.d.ts.map +1 -0
  102. package/dist-types/src/Parsing.d.ts +2 -0
  103. package/dist-types/src/Parsing.d.ts.map +1 -0
  104. package/dist-types/src/StreamMaker.d.ts +2 -0
  105. package/dist-types/src/StreamMaker.d.ts.map +1 -0
  106. package/dist-types/src/Util.d.ts +2 -0
  107. package/dist-types/src/Util.d.ts.map +1 -0
  108. package/dist-types/src/index.d.ts +9 -0
  109. package/dist-types/src/index.d.ts.map +1 -0
  110. package/dist-types/src/internal/EMIDIAccess.d.ts +339 -0
  111. package/dist-types/src/internal/EMIDIAccess.d.ts.map +1 -0
  112. package/dist-types/src/internal/EMIDIInput.d.ts +48 -0
  113. package/dist-types/src/internal/EMIDIInput.d.ts.map +1 -0
  114. package/dist-types/src/internal/EMIDIOutput.d.ts +93 -0
  115. package/dist-types/src/internal/EMIDIOutput.d.ts.map +1 -0
  116. package/dist-types/src/internal/EMIDIPort.d.ts +87 -0
  117. package/dist-types/src/internal/EMIDIPort.d.ts.map +1 -0
  118. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts +16 -0
  119. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts.map +1 -0
  120. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts +15 -0
  121. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts.map +1 -0
  122. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts +13 -0
  123. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts.map +1 -0
  124. package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts +11 -0
  125. package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts.map +1 -0
  126. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts +23 -0
  127. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts.map +1 -0
  128. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts +15 -0
  129. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts.map +1 -0
  130. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts +13 -0
  131. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts.map +1 -0
  132. package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts +15 -0
  133. package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts.map +1 -0
  134. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts +21 -0
  135. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts.map +1 -0
  136. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts +15 -0
  137. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts.map +1 -0
  138. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts +13 -0
  139. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts.map +1 -0
  140. package/dist-types/src/internal/StreamMaker.d.ts +202 -0
  141. package/dist-types/src/internal/StreamMaker.d.ts.map +1 -0
  142. package/dist-types/src/internal/errors.d.ts +260 -0
  143. package/dist-types/src/internal/errors.d.ts.map +1 -0
  144. package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts +27 -0
  145. package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts.map +1 -0
  146. package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts +20 -0
  147. package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts.map +1 -0
  148. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts +71 -0
  149. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts.map +1 -0
  150. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts +4 -0
  151. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts.map +1 -0
  152. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts +20 -0
  153. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts.map +1 -0
  154. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts +62 -0
  155. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts.map +1 -0
  156. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts +16 -0
  157. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts.map +1 -0
  158. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts +16 -0
  159. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map +1 -0
  160. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts +36 -0
  161. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts.map +1 -0
  162. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts +22 -0
  163. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
  164. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts +17 -0
  165. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
  166. package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts +7 -0
  167. package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts.map +1 -0
  168. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts +71 -0
  169. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts.map +1 -0
  170. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts +7 -0
  171. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
  172. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts +28 -0
  173. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
  174. package/dist-types/src/internal/parsing.d.ts +72 -0
  175. package/dist-types/src/internal/parsing.d.ts.map +1 -0
  176. package/dist-types/src/internal/util.d.ts +33 -0
  177. package/dist-types/src/internal/util.d.ts.map +1 -0
  178. package/index.ts +1 -0
  179. package/package.json +83 -0
  180. package/src/EMIDIAccess.ts +271 -0
  181. package/src/EMIDIInput.ts +270 -0
  182. package/src/EMIDIOutput.ts +269 -0
  183. package/src/EMIDIPort.ts +267 -0
  184. package/src/MIDIErrors.ts +13 -0
  185. package/src/Parsing.ts +12 -0
  186. package/src/StreamMaker.ts +12 -0
  187. package/src/Util.ts +19 -0
  188. package/src/index.ts +8 -0
  189. package/src/internal/EMIDIAccess.ts +893 -0
  190. package/src/internal/EMIDIInput.ts +114 -0
  191. package/src/internal/EMIDIOutput.ts +228 -0
  192. package/src/internal/EMIDIPort.ts +233 -0
  193. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts +43 -0
  194. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts +39 -0
  195. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts +27 -0
  196. package/src/internal/MIDIPortMethodCalls/actOnPort.ts +66 -0
  197. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts +38 -0
  198. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts +38 -0
  199. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts +27 -0
  200. package/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts +73 -0
  201. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts +44 -0
  202. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts +38 -0
  203. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts +27 -0
  204. package/src/internal/StreamMaker.ts +414 -0
  205. package/src/internal/errors.ts +220 -0
  206. package/src/internal/getPortByPortId/getPortByPortIdAndAccess.ts +116 -0
  207. package/src/internal/getPortByPortId/getPortByPortIdInContext.ts +26 -0
  208. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts +148 -0
  209. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts +14 -0
  210. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts +51 -0
  211. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts +127 -0
  212. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts +74 -0
  213. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts +74 -0
  214. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts +63 -0
  215. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts +110 -0
  216. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts +37 -0
  217. package/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.ts +12 -0
  218. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts +183 -0
  219. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts +29 -0
  220. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts +86 -0
  221. package/src/internal/parsing.ts +219 -0
  222. package/src/internal/util.ts +152 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Effect Web MIDI API wrapper
2
+
3
+ Huge thanks to [Web MIDI spec](https://www.w3.org/TR/webmidi/)!
4
+
5
+ ## TODO
6
+
7
+ 1. tests ([useful example](https://chromium-review.googlesource.com/c/chromium/src/+/7242095/1/third_party/blink/web_tests/wpt_internal/webmidi/requestmidiaccess.https.html))
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./src/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,68 @@
1
+ export { AllPortsRecord, assert,
2
+ // assumeImpl,
3
+ clearPortById, EMIDIAccess, getAllPortsRecord, getInputsRecord, getOutputsRecord, InputsRecord, is, layer, layerMostRestricted, layerSoftwareSynthSupported, layerSystemExclusiveAndSoftwareSynthSupported, layerSystemExclusiveSupported, makeAllPortsStateChangesStream, makeAllPortsStateChangesStreamInContext, makeMessagesStreamByInputId, makeMessagesStreamByInputIdAndAccess, OutputsRecord, request, send, sendInContext, sendToPortById, } from "./internal/EMIDIAccess.js";
4
+ // export {
5
+ // assert,
6
+ // type EMIDIInput,
7
+ // is,
8
+ // make,
9
+ // makeMessagesStreamByPort,
10
+ // type PolymorphicInput,
11
+ // type PolymorphicInputClean,
12
+ // } from './internal/EMIDIInput.ts'
13
+ // export {
14
+ // assert,
15
+ // clear,
16
+ // type DualSendMIDIMessageFromPort,
17
+ // type EMIDIOutput,
18
+ // is,
19
+ // make,
20
+ // type PolymorphicOutput,
21
+ // type PolymorphicOutputClean,
22
+ // type SendFromPortArgs,
23
+ // type SendMIDIMessagePortFirst,
24
+ // type SendMIDIMessagePortLast,
25
+ // type SentMessageEffectFromPort,
26
+ // send,
27
+ // } from './internal/EMIDIOutput.ts'
28
+ // export {
29
+ // assert,
30
+ // assumeImpl,
31
+ // type EMIDIPort,
32
+ // BothId,
33
+ // type Id,
34
+ // type EMIDIPortImpl,
35
+ // type ExtractTypeFromPort,
36
+ // is,
37
+ // isImplOfSpecificType,
38
+ // makeImpl,
39
+ // type PolymorphicPort,
40
+ // type PolymorphicPortClean,
41
+ // type TypeId,
42
+ // } from './internal/EMIDIPort.ts'
43
+ export { getInputByPortIdAndAccess as getInputByIdInPipe, getOutputByPortIdAndAccess as getOutputByIdInPipe, getPortByPortIdAndAccess as getPortByIdInPipe, } from "./internal/getPortByPortId/getPortByPortIdAndAccess.js";
44
+ export { getInputByPortIdInContext as getInputById, getOutputByPortIdInContext as getOutputById, getPortByPortIdInContext as getPortById, } from "./internal/getPortByPortId/getPortByPortIdInContext.js";
45
+ export { acquireReleaseInputConnectionByPort, acquireReleaseOutputConnectionByPort, acquireReleasePortConnectionByPort, } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js";
46
+ export { acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseInputConnectionByIdInPipe, acquireReleaseOutputConnectionByPortIdAndAccess as acquireReleaseOutputConnectionByIdInPipe, acquireReleasePortConnectionByPortIdAndAccess as acquireReleasePortConnectionByIdInPipe, } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js";
47
+ export { acquireReleaseInputConnectionByPortIdInContext as acquireReleaseInputConnectionById, acquireReleaseOutputConnectionByPortIdInContext as acquireReleaseOutputConnectionById, acquireReleasePortConnectionByPortIdInContext as acquireReleasePortConnectionById, } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js";
48
+ export { actOnPort } from "./internal/MIDIPortMethodCalls/actOnPort.js";
49
+ export { closeInputConnectionByPort, closeOutputConnectionByPort, closePortConnectionByPort, makePortConnectionCloser, } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js";
50
+ export { closeInputConnectionByPortIdAndAccess as closeInputConnectionByIdInPipe, closeOutputConnectionByPortIdAndAccess as closeOutputConnectionByIdInPipe, closePortConnectionByPortIdAndAccess as closePortConnectionByIdInPipe, } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js";
51
+ export { closeInputConnectionByPortIdInContext as closeInputConnectionById, closeOutputConnectionByPortIdInContext as closeOutputConnectionById, closePortConnectionByPortIdInContext as closePortConnectionById, } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js";
52
+ export { makeMIDIPortMethodCallerFactory, } from "./internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js";
53
+ export { makePortConnectionOpener, openInputConnectionByPort, openOutputConnectionByPort, openPortConnectionByPort, } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js";
54
+ export { openInputConnectionByPortIdAndAccess as openInputConnectionByIdInPipe, openOutputConnectionByPortIdAndAccess as openOutputConnectionByIdInPipe, openPortConnectionByPortIdAndAccess as openPortConnectionByIdInPipe, } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js";
55
+ export { openInputConnectionByPortIdInContext as openInputConnectionById, openOutputConnectionByPortIdInContext as openOutputConnectionById, openPortConnectionByPortIdInContext as openPortConnectionById, } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js";
56
+ export { makeInputStateChangesStreamByPort, makeOutputStateChangesStreamByPort, makePortStateChangesStreamByPort, } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js";
57
+ export { makeInputStateChangesStreamByPortIdAndAccess as makeInputStateChangesStreamByIdInPipe, makeOutputStateChangesStreamByPortIdAndAccess as makeOutputStateChangesStreamByIdInPipe, makePortStateChangesStreamByPortIdAndAccess as makePortStateChangesStreamByIdInPipe, } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js";
58
+ export { makeInputStateChangesStreamByPortIdInContext as makeInputStateChangesStreamById, makeOutputStateChangesStreamByPortIdInContext as makeOutputStateChangesStreamById, makePortStateChangesStreamByPortIdInContext as makePortStateChangesStreamById, } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js";
59
+ export { isInputConnectionClosedByPort, isInputConnectionOpenByPort, isInputConnectionPendingByPort, isInputDeviceConnectedByPort, isInputDeviceDisconnectedByPort, isOutputConnectionClosedByPort, isOutputConnectionOpenByPort, isOutputConnectionPendingByPort, isOutputDeviceConnectedByPort, isOutputDeviceDisconnectedByPort, isPortConnectionClosedByPort, isPortConnectionOpenByPort, isPortConnectionPendingByPort, isPortDeviceConnectedByPort, isPortDeviceDisconnectedByPort, } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js";
60
+ 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.js";
61
+ 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.js";
62
+ export { getInputConnectionStateByPort, getInputDeviceStateByPort, getOutputConnectionStateByPort, getOutputDeviceStateByPort, getPortConnectionStateByPort, getPortDeviceStateByPort, } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js";
63
+ export { getInputConnectionStateByPortIdAndAccess as getInputConnectionStateByIdInPipe, getInputDeviceStateByPortIdAndAccess as getInputDeviceStateByIdInPipe, getOutputConnectionStateByPortIdAndAccess as getOutputConnectionStateByIdInPipe, getOutputDeviceStateByPortIdAndAccess as getOutputDeviceStateByIdInPipe, getPortConnectionStateByPortIdAndAccess as getPortConnectionStateByIdInPipe, getPortDeviceStateByPortIdAndAccess as getPortDeviceStateByIdInPipe, } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js";
64
+ export { getInputConnectionStateByPortId as getInputConnectionStateById, getInputDeviceStateByPortId as getInputDeviceStateById, getOutputConnectionStateByPortId as getOutputConnectionStateById, getOutputDeviceStateByPortId as getOutputDeviceStateById, getPortConnectionStateByPortId as getPortConnectionStateById, getPortDeviceStateByPortId as getPortDeviceStateById, } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js";
65
+ export { matchInputConnectionStateByPort, matchInputDeviceStateByPort, matchOutputConnectionStateByPort, matchOutputDeviceStateByPort, matchPortConnectionStateByPort, matchPortDeviceStateByPort, } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js";
66
+ export { matchInputConnectionStateByPortIdAndAccess as matchInputConnectionStateByIdInPipe, matchInputDeviceStateByPortIdAndAccess as matchInputDeviceStateByIdInPipe, matchOutputConnectionStateByPortIdAndAccess as matchOutputConnectionStateByIdInPipe, matchOutputDeviceStateByPortIdAndAccess as matchOutputDeviceStateByIdInPipe, matchPortConnectionStateByPortIdAndAccess as matchPortConnectionStateBydInPipe, matchPortDeviceStateByPortIdAndAccess as matchPortDeviceStateByIdInPipe, } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js";
67
+ export { matchInputConnectionStateByPortIdInContext as matchInputConnectionStateById, matchInputDeviceStateByPortIdInContext as matchInputDeviceStateById, matchOutputConnectionStateByPortIdInContext as matchOutputConnectionStateById, matchOutputDeviceStateByPortIdInContext as matchOutputDeviceStateById, matchPortConnectionStateByPortIdInContext as matchPortConnectionStateById, matchPortDeviceStateByPortIdInContext as matchPortDeviceStateByPortId, } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js";
68
+ //# sourceMappingURL=EMIDIAccess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EMIDIAccess.js","sourceRoot":"","sources":["../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BAA4B,GACtE,MAAM,uGAAuG,CAAA"}
@@ -0,0 +1,226 @@
1
+ export {
2
+ // type AcquiredThing,
3
+ // AllPortsRecord,
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,
15
+ getInputsRecord as getRecord,
16
+ // getOutputsRecord,
17
+ InputsRecord as Record,
18
+ // is,
19
+ // layer,
20
+ // layerMostRestricted,
21
+ // layerSoftwareSynthSupported,
22
+ // layerSystemExclusiveAndSoftwareSynthSupported,
23
+ // layerSystemExclusiveSupported,
24
+ // makeAllPortsStateChangesStream,
25
+ // makeAllPortsStateChangesStreamInContext,
26
+ makeMessagesStreamByInputId as makeMessagesStreamById, makeMessagesStreamByInputIdAndAccess as makeMessagesStreamByIdAndAccess,
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.js";
43
+ export { assert, Id, is,
44
+ // make,
45
+ makeMessagesStreamByPort as makeMessagesStream, } from "./internal/EMIDIInput.js";
46
+ // export {
47
+ // assert,
48
+ // clear,
49
+ // type DualSendMIDIMessageFromPort,
50
+ // type EMIDIOutput,
51
+ // is,
52
+ // make,
53
+ // type PolymorphicOutput,
54
+ // type PolymorphicOutputClean,
55
+ // type SendFromPortArgs,
56
+ // type SendMIDIMessagePortFirst,
57
+ // type SendMIDIMessagePortLast,
58
+ // type SentMessageEffectFromPort,
59
+ // send,
60
+ // } from './internal/EMIDIOutput.ts'
61
+ // export {
62
+ // assert,
63
+ // assumeImpl,
64
+ // type EMIDIPort,
65
+ // type EMIDIPortImpl,
66
+ // type ExtractTypeFromPort,
67
+ // is,
68
+ // isImplOfSpecificType,
69
+ // makeImpl,
70
+ // type PolymorphicPort,
71
+ // type PolymorphicPortClean,
72
+ // type TypeId,
73
+ // } from './internal/EMIDIPort.ts'
74
+ export {
75
+ // type GetPortById,
76
+ getInputByPortIdAndAccess as getByIdAndAccess,
77
+ // getOutputByPortIdAndAccess,
78
+ // getPortByPortIdAndAccess,
79
+ } from "./internal/getPortByPortId/getPortByPortIdAndAccess.js";
80
+ export { getInputByPortIdInContext as getById,
81
+ // getOutputByPortIdInContext,
82
+ // getPortByPortIdInContext,
83
+ } from "./internal/getPortByPortId/getPortByPortIdInContext.js";
84
+ export { acquireReleaseInputConnectionByPort as acquireReleaseConnection,
85
+ // acquireReleaseOutputConnectionByPort,
86
+ // acquireReleasePortConnectionByPort,
87
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js";
88
+ export { acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess,
89
+ // acquireReleaseOutputConnectionByPortIdAndAccess,
90
+ // acquireReleasePortConnectionByPortIdAndAccess,
91
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js";
92
+ export { acquireReleaseInputConnectionByPortIdInContext as acquireReleaseConnectionById,
93
+ // acquireReleaseOutputConnectionByPortIdInContext,
94
+ // acquireReleasePortConnectionByPortIdInContext,
95
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js";
96
+ // export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts'
97
+ export { closeInputConnectionByPort as closeConnection,
98
+ // closeOutputConnectionByPort,
99
+ // closePortConnectionByPort,
100
+ // makePortConnectionCloser,
101
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js";
102
+ export { closeInputConnectionByPortIdAndAccess as closeConnectionByIdAndAccess,
103
+ // closeOutputConnectionByPortIdAndAccess,
104
+ // closePortConnectionByPortIdAndAccess,
105
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js";
106
+ export { closeInputConnectionByPortIdInContext as closeConnectionById,
107
+ // closeOutputConnectionByPortIdInContext,
108
+ // closePortConnectionByPortIdInContext,
109
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js";
110
+ // export {
111
+ // makeMIDIPortMethodCallerFactory,
112
+ // type TouchPort,
113
+ // } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts'
114
+ export {
115
+ // makePortConnectionOpener,
116
+ openInputConnectionByPort as openConnection,
117
+ // openOutputConnectionByPort,
118
+ // openPortConnectionByPort,
119
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js";
120
+ export { openInputConnectionByPortIdAndAccess as openConnectionById,
121
+ // openOutputConnectionByPortIdAndAccess,
122
+ // openPortConnectionByPortIdAndAccess,
123
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js";
124
+ export { openInputConnectionByPortIdInContext as openConnectionByIdAndAccess,
125
+ // openOutputConnectionByPortIdInContext,
126
+ // openPortConnectionByPortIdInContext,
127
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js";
128
+ export {
129
+ // type DualMakeStateChangesStream,
130
+ // type MakeStateChangesStreamPortFirst,
131
+ // type MakeStateChangesStreamPortLast,
132
+ makeInputStateChangesStreamByPort as makeStateChangesStream,
133
+ // makeOutputStateChangesStreamByPort,
134
+ // makePortStateChangesStreamByPort,
135
+ // type StateChangesStream,
136
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js";
137
+ export { makeInputStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess,
138
+ // makeOutputStateChangesStreamByPortIdAndAccess,
139
+ // makePortStateChangesStreamByPortIdAndAccess,
140
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js";
141
+ export { makeInputStateChangesStreamByPortIdInContext as makeStateChangesStreamById,
142
+ // makeOutputStateChangesStreamByPortIdInContext,
143
+ // makePortStateChangesStreamByPortIdInContext,
144
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js";
145
+ export { isInputConnectionClosedByPort as isConnectionClosed, isInputConnectionOpenByPort as isConnectionOpen, isInputConnectionPendingByPort as isConnectionPending, isInputDeviceConnectedByPort as isDeviceConnected, isInputDeviceDisconnectedByPort as isDeviceDisconnected,
146
+ // isOutputConnectionClosedByPort,
147
+ // isOutputConnectionOpenByPort,
148
+ // isOutputConnectionPendingByPort,
149
+ // isOutputDeviceConnectedByPort,
150
+ // isOutputDeviceDisconnectedByPort,
151
+ // isPortConnectionClosedByPort,
152
+ // isPortConnectionOpenByPort,
153
+ // isPortConnectionPendingByPort,
154
+ // isPortDeviceConnectedByPort,
155
+ // isPortDeviceDisconnectedByPort,
156
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js";
157
+ export { isInputConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess, isInputConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess, isInputConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess, isInputDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess, isInputDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess,
158
+ // isOutputConnectionClosedByPortIdAndAccess,
159
+ // isOutputConnectionOpenByPortIdAndAccess,
160
+ // isOutputConnectionPendingByPortIdAndAccess,
161
+ // isOutputDeviceConnectedByPortIdAndAccess,
162
+ // isOutputDeviceDisconnectedByPortIdAndAccess,
163
+ // isPortConnectionClosedByPortIdAndAccess,
164
+ // isPortConnectionOpenByPortIdAndAccess,
165
+ // isPortConnectionPendingByPortIdAndAccess,
166
+ // isPortDeviceConnectedByPortIdAndAccess,
167
+ // isPortDeviceDisconnectedByPortIdAndAccess,
168
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js";
169
+ export { isInputConnectionClosedByPortIdInContext as isConnectionClosedById, isInputConnectionOpenByPortIdInContext as isConnectionOpenById, isInputConnectionPendingByPortIdInContext as isConnectionPendingById, isInputDeviceConnectedByPortIdInContext as isDeviceConnectedById, isInputDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById,
170
+ // isOutputConnectionClosedByPortIdInContext,
171
+ // isOutputConnectionOpenByPortIdInContext,
172
+ // isOutputConnectionPendingByPortIdInContext,
173
+ // isOutputDeviceConnectedByPortIdInContext,
174
+ // isOutputDeviceDisconnectedByPortIdInContext,
175
+ // isPortConnectionClosedByPortIdInContext,
176
+ // isPortConnectionOpenByPortIdInContext,
177
+ // isPortConnectionPendingByPortIdInContext,
178
+ // isPortDeviceConnectedByPortIdInContext,
179
+ // isPortDeviceDisconnectedByPortIdInContext,
180
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js";
181
+ export { getInputConnectionStateByPort as getConnectionState, getInputDeviceStateByPort as getDeviceState,
182
+ // getOutputConnectionStateByPort,
183
+ // getOutputDeviceStateByPort,
184
+ // getPortConnectionStateByPort,
185
+ // getPortDeviceStateByPort,
186
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js";
187
+ export { getInputConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess, getInputDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess,
188
+ // getOutputConnectionStateByPortIdAndAccess,
189
+ // getOutputDeviceStateByPortIdAndAccess,
190
+ // getPortConnectionStateByPortIdAndAccess,
191
+ // getPortDeviceStateByPortIdAndAccess,
192
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js";
193
+ export { getInputConnectionStateByPortId as getConnectionStateById, getInputDeviceStateByPortId as getDeviceStateById,
194
+ // getOutputConnectionStateByPortId,
195
+ // getOutputDeviceStateByPortId,
196
+ // getPortConnectionStateByPortId,
197
+ // getPortDeviceStateByPortId,
198
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js";
199
+ export {
200
+ // type DualMatchPortState,
201
+ // type MatcherConfigPlain,
202
+ // type MatchResult,
203
+ // type MatchStatePortFirst,
204
+ // type MatchStatePortLast,
205
+ // type MIDIPortMutableProperty,
206
+ matchInputConnectionStateByPort as matchConnectionState, matchInputDeviceStateByPort as matchDeviceState,
207
+ // matchOutputConnectionStateByPort,
208
+ // matchOutputDeviceStateByPort,
209
+ // matchPortConnectionStateByPort,
210
+ // matchPortDeviceStateByPort,
211
+ // type PortStateHandler,
212
+ // type StateCaseToHandlerMap,
213
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js";
214
+ export { matchInputConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess, matchInputDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess,
215
+ // matchOutputConnectionStateByPortIdAndAccess,
216
+ // matchOutputDeviceStateByPortIdAndAccess,
217
+ // matchPortConnectionStateByPortIdAndAccess,
218
+ // matchPortDeviceStateByPortIdAndAccess,
219
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js";
220
+ export { matchInputConnectionStateByPortIdInContext as matchConnectionStateById, matchInputDeviceStateByPortIdInContext as matchDeviceStateById,
221
+ // matchOutputConnectionStateByPortIdInContext,
222
+ // matchOutputDeviceStateByPortIdInContext,
223
+ // matchPortConnectionStateByPortIdInContext,
224
+ // matchPortDeviceStateByPortIdInContext,
225
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js";
226
+ //# sourceMappingURL=EMIDIInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EMIDIInput.js","sourceRoot":"","sources":["../../src/EMIDIInput.ts"],"names":[],"mappings":"AAAA,OAAO;AACL,sBAAsB;AACtB,kBAAkB;AAClB,UAAU;AACV,cAAc;AACd,iBAAiB;AACjB,sCAAsC;AACtC,eAAe;AACf,4BAA4B;AAC5B,yBAAyB;AACzB,oCAAoC;AACpC,mCAAmC;AACnC,6CAA6C;AAC7C,qBAAqB;AACrB,eAAe,IAAI,SAAS;AAC5B,oBAAoB;AACpB,YAAY,IAAI,MAAM;AACtB,MAAM;AACN,SAAS;AACT,uBAAuB;AACvB,+BAA+B;AAC/B,iDAAiD;AACjD,iCAAiC;AACjC,kCAAkC;AAClC,2CAA2C;AAC3C,2BAA2B,IAAI,sBAAsB,EACrD,oCAAoC,IAAI,+BAA+B;AACvE,iBAAiB;AACjB,kCAAkC;AAClC,uCAAuC;AACvC,iCAAiC;AACjC,WAAW;AACX,WAAW;AACX,2BAA2B;AAC3B,mCAAmC;AACnC,kCAAkC;AAClC,oCAAoC;AACpC,QAAQ;AACR,iBAAiB;AACjB,kBAAkB;AAClB,2BAA2B;AAC3B,eAAe;EAChB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,MAAM,EAEN,EAAE,EACF,EAAE;AACF,QAAQ;AACR,wBAAwB,IAAI,kBAAkB,GAG/C,MAAM,0BAA0B,CAAA;AACjC,WAAW;AACX,YAAY;AACZ,WAAW;AACX,sCAAsC;AACtC,sBAAsB;AACtB,QAAQ;AACR,UAAU;AACV,4BAA4B;AAC5B,iCAAiC;AACjC,2BAA2B;AAC3B,mCAAmC;AACnC,kCAAkC;AAClC,oCAAoC;AACpC,UAAU;AACV,qCAAqC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C9D,+CAA+C;AAC/C,2CAA2C;AAC3C,6CAA6C;AAC7C,yCAAyC;EAC1C,MAAM,uGAAuG,CAAA"}
@@ -0,0 +1,225 @@
1
+ export {
2
+ // type AcquiredThing,
3
+ // AllPortsRecord,
4
+ // assert,
5
+ // assumeImpl,
6
+ clearPortById,
7
+ // EMIDIAccess,
8
+ // type EMIDIAccessInstance,
9
+ // type GetThingByPortId,
10
+ // type GetThingByPortIdAccessFirst,
11
+ // type GetThingByPortIdAccessLast,
12
+ // type GetThingByPortIdAccessLastSecondHalf,
13
+ // getAllPortsRecord,
14
+ // getInputsRecord,
15
+ getOutputsRecord as getRecord,
16
+ // InputsRecord,
17
+ // is,
18
+ // layer,
19
+ // layerMostRestricted,
20
+ // layerSoftwareSynthSupported,
21
+ // layerSystemExclusiveAndSoftwareSynthSupported,
22
+ // layerSystemExclusiveSupported,
23
+ // makeAllPortsStateChangesStream,
24
+ // makeAllPortsStateChangesStreamInContext,
25
+ // makeMessagesStreamByInputId,
26
+ OutputsRecord as Record,
27
+ // send,
28
+ sendInContext, sendToPortById,
29
+ // type TypeId,
30
+ } from "./internal/EMIDIAccess.js";
31
+ // export {
32
+ // assert,
33
+ // type EMIDIInput,
34
+ // is,
35
+ // make,
36
+ // makeMessagesStream,
37
+ // type PolymorphicInput,
38
+ // type PolymorphicInputClean,
39
+ // } from './internal/EMIDIInput.ts'
40
+ export { assert, clear, Id, is, send, } from "./internal/EMIDIOutput.js";
41
+ // export {
42
+ // assert,
43
+ // assumeImpl,
44
+ // type EMIDIPort,
45
+ // type EMIDIPortImpl,
46
+ // type ExtractTypeFromPort,
47
+ // is,
48
+ // isImplOfSpecificType,
49
+ // makeImpl,
50
+ // type PolymorphicPort,
51
+ // type PolymorphicPortClean,
52
+ // type TypeId,
53
+ // } from './internal/EMIDIPort.ts'
54
+ export {
55
+ // type GetPortById,
56
+ // getInputByPortIdAndAccess,
57
+ getOutputByPortIdAndAccess as getByIdAndAccess,
58
+ // getPortByPortIdAndAccess,
59
+ } from "./internal/getPortByPortId/getPortByPortIdAndAccess.js";
60
+ export {
61
+ // getInputByPortIdInContext,
62
+ getOutputByPortIdInContext as getById,
63
+ // getPortByPortIdInContext,
64
+ } from "./internal/getPortByPortId/getPortByPortIdInContext.js";
65
+ export {
66
+ // acquireReleaseInputConnectionByPort,
67
+ acquireReleaseOutputConnectionByPort as acquireReleaseConnection,
68
+ // acquireReleasePortConnectionByPort,
69
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js";
70
+ export {
71
+ // acquireReleaseInputConnectionByPortIdAndAccess,
72
+ acquireReleaseOutputConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess,
73
+ // acquireReleasePortConnectionByPortIdAndAccess,
74
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js";
75
+ export {
76
+ // acquireReleaseInputConnectionByPortIdInContext,
77
+ acquireReleaseOutputConnectionByPortIdInContext as acquireReleaseConnectionById,
78
+ // acquireReleasePortConnectionByPortIdInContext,
79
+ } from "./internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js";
80
+ // export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts'
81
+ export {
82
+ // closeInputConnectionByPort,
83
+ closeOutputConnectionByPort as closeConnection,
84
+ // closePortConnectionByPort,
85
+ // makePortConnectionCloser,
86
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js";
87
+ export {
88
+ // closeInputConnectionByPortIdAndAccess,
89
+ closeOutputConnectionByPortIdAndAccess as closeConnectionByIdAndAccess,
90
+ // closePortConnectionByPortIdAndAccess,
91
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js";
92
+ export {
93
+ // closeInputConnectionByPortIdInContext,
94
+ closeOutputConnectionByPortIdInContext as closeConnectionById,
95
+ // closePortConnectionByPortIdInContext,
96
+ } from "./internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js";
97
+ // export {
98
+ // makeMIDIPortMethodCallerFactory,
99
+ // type TouchPort,
100
+ // } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts'
101
+ export {
102
+ // makePortConnectionOpener,
103
+ // openInputConnectionByPort,
104
+ openOutputConnectionByPort as openConnection,
105
+ // openPortConnectionByPort,
106
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js";
107
+ export {
108
+ // openInputConnectionByPortIdAndAccess,
109
+ openOutputConnectionByPortIdAndAccess as openConnectionByIdAndAccess,
110
+ // openPortConnectionByPortIdAndAccess,
111
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js";
112
+ export {
113
+ // openInputConnectionByPortIdInContext,
114
+ openOutputConnectionByPortIdInContext as openConnectionById,
115
+ // openPortConnectionByPortIdInContext,
116
+ } from "./internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js";
117
+ export {
118
+ // type DualMakeStateChangesStream,
119
+ // type MakeStateChangesStreamPortFirst,
120
+ // type MakeStateChangesStreamPortLast,
121
+ // makeInputStateChangesStreamByPort,
122
+ makeOutputStateChangesStreamByPort as makeStateChangesStream,
123
+ // makePortStateChangesStreamByPort,
124
+ // type StateChangesStream,
125
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js";
126
+ export {
127
+ // makeInputStateChangesStreamByPortIdAndAccess,
128
+ makeOutputStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess,
129
+ // makePortStateChangesStreamByPortIdAndAccess,
130
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js";
131
+ export {
132
+ // makeInputStateChangesStreamByPortIdInContext,
133
+ makeOutputStateChangesStreamByPortIdInContext as makeStateChangesStreamById,
134
+ // makePortStateChangesStreamByPortIdInContext,
135
+ } from "./internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js";
136
+ export {
137
+ // isInputConnectionClosedByPort,
138
+ // isInputConnectionOpenByPort,
139
+ // isInputConnectionPendingByPort,
140
+ // isInputDeviceConnectedByPort,
141
+ // isInputDeviceDisconnectedByPort,
142
+ isOutputConnectionClosedByPort as isConnectionClosed, isOutputConnectionOpenByPort as isConnectionOpen, isOutputConnectionPendingByPort as isConnectionPending, isOutputDeviceConnectedByPort as isDeviceConnected, isOutputDeviceDisconnectedByPort as isDeviceDisconnected,
143
+ // isPortConnectionClosedByPort,
144
+ // isPortConnectionOpenByPort,
145
+ // isPortConnectionPendingByPort,
146
+ // isPortDeviceConnectedByPort,
147
+ // isPortDeviceDisconnectedByPort,
148
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js";
149
+ export {
150
+ // isInputConnectionClosedByPortIdAndAccess,
151
+ // isInputConnectionOpenByPortIdAndAccess,
152
+ // isInputConnectionPendingByPortIdAndAccess,
153
+ // isInputDeviceConnectedByPortIdAndAccess,
154
+ // isInputDeviceDisconnectedByPortIdAndAccess,
155
+ isOutputConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess, isOutputConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess, isOutputConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess, isOutputDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess, isOutputDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess,
156
+ // isPortConnectionClosedByPortIdAndAccess,
157
+ // isPortConnectionOpenByPortIdAndAccess,
158
+ // isPortConnectionPendingByPortIdAndAccess,
159
+ // isPortDeviceConnectedByPortIdAndAccess,
160
+ // isPortDeviceDisconnectedByPortIdAndAccess,
161
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js";
162
+ export {
163
+ // isInputConnectionClosedByPortIdInContext,
164
+ // isInputConnectionOpenByPortIdInContext,
165
+ // isInputConnectionPendingByPortIdInContext,
166
+ // isInputDeviceConnectedByPortIdInContext,
167
+ // isInputDeviceDisconnectedByPortIdInContext,
168
+ isOutputConnectionClosedByPortIdInContext as isConnectionClosedById, isOutputConnectionOpenByPortIdInContext as isConnectionOpenById, isOutputConnectionPendingByPortIdInContext as isConnectionPendingById, isOutputDeviceConnectedByPortIdInContext as isDeviceConnectedById, isOutputDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById,
169
+ // isPortConnectionClosedByPortIdInContext,
170
+ // isPortConnectionOpenByPortIdInContext,
171
+ // isPortConnectionPendingByPortIdInContext,
172
+ // isPortDeviceConnectedByPortIdInContext,
173
+ // isPortDeviceDisconnectedByPortIdInContext,
174
+ } from "./internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js";
175
+ export {
176
+ // getInputConnectionStateByPort,
177
+ // getInputDeviceStateByPort,
178
+ getOutputConnectionStateByPort as getConnectionState, getOutputDeviceStateByPort as getDeviceState,
179
+ // getPortConnectionStateByPort,
180
+ // getPortDeviceStateByPort,
181
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js";
182
+ export {
183
+ // getInputConnectionStateByPortIdAndAccess,
184
+ // getInputDeviceStateByPortIdAndAccess,
185
+ getOutputConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess, getOutputDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess,
186
+ // getPortConnectionStateByPortIdAndAccess,
187
+ // getPortDeviceStateByPortIdAndAccess,
188
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js";
189
+ export {
190
+ // getInputConnectionStateByPortId,
191
+ // getInputDeviceStateByPortId,
192
+ getOutputConnectionStateByPortId as getConnectionStateById, getOutputDeviceStateByPortId as getDeviceStateById,
193
+ // getPortConnectionStateByPortId,
194
+ // getPortDeviceStateByPortId,
195
+ } from "./internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js";
196
+ export {
197
+ // type DualMatchPortState,
198
+ // type MatcherConfigPlain,
199
+ // type MatchResult,
200
+ // type MatchStatePortFirst,
201
+ // type MatchStatePortLast,
202
+ // type MIDIPortMutableProperty,
203
+ // matchInputConnectionStateByPort,
204
+ // matchInputDeviceStateByPort,
205
+ matchOutputConnectionStateByPort as matchConnectionState, matchOutputDeviceStateByPort as matchDeviceState,
206
+ // matchPortConnectionStateByPort,
207
+ // matchPortDeviceStateByPort,
208
+ // type PortStateHandler,
209
+ // type StateCaseToHandlerMap,
210
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js";
211
+ export {
212
+ // matchInputConnectionStateByPortIdAndAccess,
213
+ // matchInputDeviceStateByPortIdAndAccess,
214
+ matchOutputConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess, matchOutputDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess,
215
+ // matchPortConnectionStateByPortIdAndAccess,
216
+ // matchPortDeviceStateByPortIdAndAccess,
217
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js";
218
+ export {
219
+ // matchInputConnectionStateByPortIdInContext,
220
+ // matchInputDeviceStateByPortIdInContext,
221
+ matchOutputConnectionStateByPortIdInContext as matchConnectionStateById, matchOutputDeviceStateByPortIdInContext as matchDeviceStateById,
222
+ // matchPortConnectionStateByPortIdInContext,
223
+ // matchPortDeviceStateByPortIdInContext,
224
+ } from "./internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js";
225
+ //# sourceMappingURL=EMIDIOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EMIDIOutput.js","sourceRoot":"","sources":["../../src/EMIDIOutput.ts"],"names":[],"mappings":"AAAA,OAAO;AACL,sBAAsB;AACtB,kBAAkB;AAClB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