effect-web-midi 0.2.3

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 (232) hide show
  1. package/README.md +276 -0
  2. package/dist/index.js +2 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/src/EMIDIAccess.js +129 -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 +227 -0
  9. package/dist/src/EMIDIOutput.js.map +1 -0
  10. package/dist/src/EMIDIPort.js +218 -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/MIDIEventStreams.js +2 -0
  15. package/dist/src/MIDIEventStreams.js.map +1 -0
  16. package/dist/src/Parsing.js +2 -0
  17. package/dist/src/Parsing.js.map +1 -0
  18. package/dist/src/StreamMaker.js +1 -0
  19. package/dist/src/StreamMaker.js.map +1 -0
  20. package/dist/src/Util.js +2 -0
  21. package/dist/src/Util.js.map +1 -0
  22. package/dist/src/index.js +10 -0
  23. package/dist/src/index.js.map +1 -0
  24. package/dist/src/internal/EMIDIAccess.js +634 -0
  25. package/dist/src/internal/EMIDIAccess.js.map +1 -0
  26. package/dist/src/internal/EMIDIInput.js +66 -0
  27. package/dist/src/internal/EMIDIInput.js.map +1 -0
  28. package/dist/src/internal/EMIDIOutput.js +120 -0
  29. package/dist/src/internal/EMIDIOutput.js.map +1 -0
  30. package/dist/src/internal/EMIDIPort.js +125 -0
  31. package/dist/src/internal/EMIDIPort.js.map +1 -0
  32. package/dist/src/internal/MIDIErrors.js +190 -0
  33. package/dist/src/internal/MIDIErrors.js.map +1 -0
  34. package/dist/src/internal/MIDIEventStreams.js +41 -0
  35. package/dist/src/internal/MIDIEventStreams.js.map +1 -0
  36. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js +27 -0
  37. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js.map +1 -0
  38. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js +19 -0
  39. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js.map +1 -0
  40. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js +16 -0
  41. package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js.map +1 -0
  42. package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js +17 -0
  43. package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js.map +1 -0
  44. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js +27 -0
  45. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js.map +1 -0
  46. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js +18 -0
  47. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js.map +1 -0
  48. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js +16 -0
  49. package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js.map +1 -0
  50. package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js +21 -0
  51. package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js.map +1 -0
  52. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js +34 -0
  53. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js.map +1 -0
  54. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js +18 -0
  55. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js.map +1 -0
  56. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js +16 -0
  57. package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js.map +1 -0
  58. package/dist/src/internal/Parsing.js +119 -0
  59. package/dist/src/internal/Parsing.js.map +1 -0
  60. package/dist/src/internal/StreamMaker.js +105 -0
  61. package/dist/src/internal/StreamMaker.js.map +1 -0
  62. package/dist/src/internal/Util.js +59 -0
  63. package/dist/src/internal/Util.js.map +1 -0
  64. package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js +53 -0
  65. package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js.map +1 -0
  66. package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js +18 -0
  67. package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js.map +1 -0
  68. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js +52 -0
  69. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js.map +1 -0
  70. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js +21 -0
  71. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js.map +1 -0
  72. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js +21 -0
  73. package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js.map +1 -0
  74. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js +66 -0
  75. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js.map +1 -0
  76. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js +61 -0
  77. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js.map +1 -0
  78. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js +68 -0
  79. package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map +1 -0
  80. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js +42 -0
  81. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js.map +1 -0
  82. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js +43 -0
  83. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js.map +1 -0
  84. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js +33 -0
  85. package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js.map +1 -0
  86. package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js +6 -0
  87. package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js.map +1 -0
  88. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js +46 -0
  89. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js.map +1 -0
  90. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js +25 -0
  91. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js.map +1 -0
  92. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js +31 -0
  93. package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js.map +1 -0
  94. package/dist-types/index.d.ts +2 -0
  95. package/dist-types/index.d.ts.map +1 -0
  96. package/dist-types/src/EMIDIAccess.d.ts +18 -0
  97. package/dist-types/src/EMIDIAccess.d.ts.map +1 -0
  98. package/dist-types/src/EMIDIInput.d.ts +26 -0
  99. package/dist-types/src/EMIDIInput.d.ts.map +1 -0
  100. package/dist-types/src/EMIDIOutput.d.ts +26 -0
  101. package/dist-types/src/EMIDIOutput.d.ts.map +1 -0
  102. package/dist-types/src/EMIDIPort.d.ts +26 -0
  103. package/dist-types/src/EMIDIPort.d.ts.map +1 -0
  104. package/dist-types/src/MIDIErrors.d.ts +2 -0
  105. package/dist-types/src/MIDIErrors.d.ts.map +1 -0
  106. package/dist-types/src/MIDIEventStreams.d.ts +2 -0
  107. package/dist-types/src/MIDIEventStreams.d.ts.map +1 -0
  108. package/dist-types/src/Parsing.d.ts +2 -0
  109. package/dist-types/src/Parsing.d.ts.map +1 -0
  110. package/dist-types/src/StreamMaker.d.ts +2 -0
  111. package/dist-types/src/StreamMaker.d.ts.map +1 -0
  112. package/dist-types/src/Util.d.ts +2 -0
  113. package/dist-types/src/Util.d.ts.map +1 -0
  114. package/dist-types/src/index.d.ts +10 -0
  115. package/dist-types/src/index.d.ts.map +1 -0
  116. package/dist-types/src/internal/EMIDIAccess.d.ts +551 -0
  117. package/dist-types/src/internal/EMIDIAccess.d.ts.map +1 -0
  118. package/dist-types/src/internal/EMIDIInput.d.ts +50 -0
  119. package/dist-types/src/internal/EMIDIInput.d.ts.map +1 -0
  120. package/dist-types/src/internal/EMIDIOutput.d.ts +95 -0
  121. package/dist-types/src/internal/EMIDIOutput.d.ts.map +1 -0
  122. package/dist-types/src/internal/EMIDIPort.d.ts +90 -0
  123. package/dist-types/src/internal/EMIDIPort.d.ts.map +1 -0
  124. package/dist-types/src/internal/MIDIErrors.d.ts +270 -0
  125. package/dist-types/src/internal/MIDIErrors.d.ts.map +1 -0
  126. package/dist-types/src/internal/MIDIEventStreams.d.ts +74 -0
  127. package/dist-types/src/internal/MIDIEventStreams.d.ts.map +1 -0
  128. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts +16 -0
  129. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts.map +1 -0
  130. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts +15 -0
  131. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts.map +1 -0
  132. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts +13 -0
  133. package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts.map +1 -0
  134. package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts +11 -0
  135. package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts.map +1 -0
  136. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts +23 -0
  137. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts.map +1 -0
  138. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts +15 -0
  139. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts.map +1 -0
  140. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts +13 -0
  141. package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts.map +1 -0
  142. package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts +15 -0
  143. package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts.map +1 -0
  144. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts +21 -0
  145. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts.map +1 -0
  146. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts +15 -0
  147. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts.map +1 -0
  148. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts +13 -0
  149. package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts.map +1 -0
  150. package/dist-types/src/internal/Parsing.d.ts +110 -0
  151. package/dist-types/src/internal/Parsing.d.ts.map +1 -0
  152. package/dist-types/src/internal/StreamMaker.d.ts +204 -0
  153. package/dist-types/src/internal/StreamMaker.d.ts.map +1 -0
  154. package/dist-types/src/internal/Util.d.ts +33 -0
  155. package/dist-types/src/internal/Util.d.ts.map +1 -0
  156. package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts +27 -0
  157. package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts.map +1 -0
  158. package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts +20 -0
  159. package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts.map +1 -0
  160. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts +76 -0
  161. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts.map +1 -0
  162. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts +39 -0
  163. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts.map +1 -0
  164. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts +29 -0
  165. package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts.map +1 -0
  166. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts +62 -0
  167. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts.map +1 -0
  168. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts +16 -0
  169. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts.map +1 -0
  170. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts +65 -0
  171. package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map +1 -0
  172. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts +36 -0
  173. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts.map +1 -0
  174. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts +23 -0
  175. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
  176. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts +35 -0
  177. package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
  178. package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts +7 -0
  179. package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts.map +1 -0
  180. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts +71 -0
  181. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts.map +1 -0
  182. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts +7 -0
  183. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
  184. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts +28 -0
  185. package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
  186. package/index.ts +1 -0
  187. package/package.json +87 -0
  188. package/src/EMIDIAccess.ts +285 -0
  189. package/src/EMIDIInput.ts +273 -0
  190. package/src/EMIDIOutput.ts +272 -0
  191. package/src/EMIDIPort.ts +270 -0
  192. package/src/MIDIErrors.ts +13 -0
  193. package/src/MIDIEventStreams.ts +36 -0
  194. package/src/Parsing.ts +32 -0
  195. package/src/StreamMaker.ts +12 -0
  196. package/src/Util.ts +19 -0
  197. package/src/index.ts +9 -0
  198. package/src/internal/EMIDIAccess.ts +1280 -0
  199. package/src/internal/EMIDIInput.ts +114 -0
  200. package/src/internal/EMIDIOutput.ts +231 -0
  201. package/src/internal/EMIDIPort.ts +239 -0
  202. package/src/internal/MIDIErrors.ts +260 -0
  203. package/src/internal/MIDIEventStreams.ts +255 -0
  204. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts +48 -0
  205. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts +31 -0
  206. package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts +28 -0
  207. package/src/internal/MIDIPortMethodCalls/actOnPort.ts +66 -0
  208. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts +38 -0
  209. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts +38 -0
  210. package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts +28 -0
  211. package/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts +68 -0
  212. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts +48 -0
  213. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts +38 -0
  214. package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts +28 -0
  215. package/src/internal/Parsing.ts +304 -0
  216. package/src/internal/StreamMaker.ts +416 -0
  217. package/src/internal/Util.ts +152 -0
  218. package/src/internal/getPortByPortId/getPortByPortIdAndAccess.ts +117 -0
  219. package/src/internal/getPortByPortId/getPortByPortIdInContext.ts +26 -0
  220. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts +148 -0
  221. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts +135 -0
  222. package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts +70 -0
  223. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts +128 -0
  224. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts +74 -0
  225. package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts +132 -0
  226. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts +64 -0
  227. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts +114 -0
  228. package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts +47 -0
  229. package/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.ts +12 -0
  230. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts +182 -0
  231. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts +29 -0
  232. package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts +87 -0
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "effect-web-midi",
3
+ "type": "module",
4
+ "version": "0.2.3",
5
+ "description": "Effect WEB MIDI API wrapper",
6
+ "devDependencies": {
7
+ "@effect/language-service": "^0.86.2",
8
+ "@evadev/tsconfig": "^1.0.1",
9
+ "@typescript/native-preview": "^7.0.0-dev.20260524.1",
10
+ "ts-namespace-import": "nounder/ts-namespace-import",
11
+ "ts-patch": "^4.0.1",
12
+ "typescript": "^6.0.3"
13
+ },
14
+ "peerDependencies": {
15
+ "effect": "^3.19.16"
16
+ },
17
+ "homepage": "https://github.com/nikelborm/effect-garden/tree/main/packages/effect-web-midi#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/nikelborm/effect-garden/issues",
20
+ "email": "evadev@duck.com"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+ssh://git@github.com/nikelborm/effect-garden.git",
25
+ "directory": "packages/effect-web-midi"
26
+ },
27
+ "scripts": {
28
+ "build": "tsgo",
29
+ "dev": "tsgo --watch --preserveWatchOutput false",
30
+ "prepack": "rm -rf dist dist-types && ./node_modules/.bin/tsgo"
31
+ },
32
+ "author": {
33
+ "name": "nikelborm",
34
+ "email": "evadev@duck.com",
35
+ "url": "https://github.com/nikelborm"
36
+ },
37
+ "contributors": [
38
+ {
39
+ "name": "nikelborm",
40
+ "email": "evadev@duck.com",
41
+ "url": "https://github.com/nikelborm"
42
+ }
43
+ ],
44
+ "maintainers": [
45
+ {
46
+ "name": "nikelborm",
47
+ "email": "evadev@duck.com",
48
+ "url": "https://github.com/nikelborm"
49
+ }
50
+ ],
51
+ "license": "MIT",
52
+ "private": false,
53
+ "publishConfig": {
54
+ "access": "public",
55
+ "provenance": false
56
+ },
57
+ "exports": {
58
+ ".": {
59
+ "types": "./dist-types/index.d.ts",
60
+ "default": "./dist/index.js"
61
+ },
62
+ "./*.js": {
63
+ "types": "./dist-types/src/*.d.ts",
64
+ "default": "./dist/src/*.js"
65
+ },
66
+ "./*.ts": "./src/*.ts",
67
+ "./*": {
68
+ "types": "./dist-types/src/*.d.ts",
69
+ "default": "./dist/src/*.js"
70
+ },
71
+ "./internal/*": null,
72
+ "./package.json": "./package.json"
73
+ },
74
+ "main": "./dist/index.js",
75
+ "module": "./dist/index.js",
76
+ "types": "./dist-types/index.d.ts",
77
+ "files": [
78
+ "dist-types",
79
+ "dist",
80
+ "index.ts",
81
+ "package.json",
82
+ "src",
83
+ "!**/*.spec.*",
84
+ "!**/*.tsbuildinfo",
85
+ "!**/scratchpad.*"
86
+ ]
87
+ }
@@ -0,0 +1,285 @@
1
+ export {
2
+ // assumeImpl,
3
+ // simplify,
4
+ type AcquiredThing,
5
+ AllPortsArray,
6
+ type AllPortsArrayInContextEffect,
7
+ AllPortsRecord,
8
+ type AllPortsRecordInContextEffect,
9
+ assert,
10
+ clearPortById,
11
+ type DualSendMIDIMessageFromAccess,
12
+ EMIDIAccess,
13
+ type EMIDIAccessInstance as Instance,
14
+ type GetPortArrayFromPolymorphicAccess,
15
+ type GetPortRecordFromPolymorphicAccess,
16
+ type GetThingByPortId,
17
+ type GetThingByPortIdAccessFirst,
18
+ type GetThingByPortIdAccessLast,
19
+ type GetThingByPortIdAccessLastSecondHalf,
20
+ getAllPortsArray,
21
+ getAllPortsRecord,
22
+ getInputsArray,
23
+ getInputsRecord,
24
+ getOutputsArray,
25
+ getOutputsRecord,
26
+ InputsArray,
27
+ type InputsArrayInContextEffect,
28
+ InputsRecord,
29
+ type InputsRecordInContextEffect,
30
+ is,
31
+ layer,
32
+ layerMostRestricted,
33
+ layerSoftwareSynthSupported,
34
+ layerSystemExclusiveAndSoftwareSynthSupported,
35
+ layerSystemExclusiveSupported,
36
+ makeAllPortsStateChangesStream,
37
+ makeAllPortsStateChangesStreamInContext,
38
+ makeMessagesStreamByInputId,
39
+ makeMessagesStreamByInputIdAndAccess,
40
+ OutputsArray,
41
+ type OutputsArrayInContextEffect,
42
+ OutputsRecord,
43
+ type OutputsRecordInContextEffect,
44
+ type PolymorphicAccessInstance as PolymorphicInstance,
45
+ type PolymorphicAccessInstanceClean as PolymorphicCleanInstance,
46
+ type RequestMIDIAccessOptions,
47
+ request,
48
+ type SendFromAccessArgs,
49
+ type SendMIDIMessageAccessFirst,
50
+ type SendMIDIMessageAccessLast,
51
+ type SentMessageEffectFromAccess,
52
+ send,
53
+ sendInContext,
54
+ sendToPortById,
55
+ type TargetPortSelector,
56
+ type TypeId,
57
+ } from './internal/EMIDIAccess.ts'
58
+ // export {
59
+ // assert,
60
+ // type EMIDIInput,
61
+ // is,
62
+ // make,
63
+ // makeMessagesStreamByPort,
64
+ // type PolymorphicInput,
65
+ // type PolymorphicInputClean,
66
+ // } from './internal/EMIDIInput.ts'
67
+ // export {
68
+ // assert,
69
+ // clear,
70
+ // type DualSendMIDIMessageFromPort,
71
+ // type EMIDIOutput,
72
+ // is,
73
+ // make,
74
+ // type PolymorphicOutput,
75
+ // type PolymorphicOutputClean,
76
+ // type SendFromPortArgs,
77
+ // type SendMIDIMessagePortFirst,
78
+ // type SendMIDIMessagePortLast,
79
+ // type SentMessageEffectFromPort,
80
+ // send,
81
+ // } from './internal/EMIDIOutput.ts'
82
+ // export {
83
+ // assert,
84
+ // assumeImpl,
85
+ // type EMIDIPort,
86
+ // BothId,
87
+ // type Id,
88
+ // type EMIDIPortImpl,
89
+ // type ExtractTypeFromPort,
90
+ // is,
91
+ // isImplOfSpecificType,
92
+ // makeImpl,
93
+ // type PolymorphicPort,
94
+ // type PolymorphicPortClean,
95
+ // type TypeId,
96
+ // } from './internal/EMIDIPort.ts'
97
+ export {
98
+ type GetPortById,
99
+ getInputByPortIdAndAccess as getInputByIdInPipe,
100
+ getOutputByPortIdAndAccess as getOutputByIdInPipe,
101
+ getPortByPortIdAndAccess as getPortByIdInPipe,
102
+ } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts'
103
+ export {
104
+ getInputByPortIdInContext as getInputById,
105
+ getOutputByPortIdInContext as getOutputById,
106
+ getPortByPortIdInContext as getPortById,
107
+ } from './internal/getPortByPortId/getPortByPortIdInContext.ts'
108
+ // export {
109
+ // acquireReleaseInputConnectionByPort,
110
+ // acquireReleaseOutputConnectionByPort,
111
+ // acquireReleasePortConnectionByPort,
112
+ // } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts'
113
+ export {
114
+ acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseInputConnectionByIdInPipe,
115
+ acquireReleaseOutputConnectionByPortIdAndAccess as acquireReleaseOutputConnectionByIdInPipe,
116
+ acquireReleasePortConnectionByPortIdAndAccess as acquireReleasePortConnectionByIdInPipe,
117
+ } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts'
118
+ export {
119
+ acquireReleaseInputConnectionByPortIdInContext as acquireReleaseInputConnectionById,
120
+ acquireReleaseOutputConnectionByPortIdInContext as acquireReleaseOutputConnectionById,
121
+ acquireReleasePortConnectionByPortIdInContext as acquireReleasePortConnectionById,
122
+ } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts'
123
+ // export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts'
124
+ // export {
125
+ // closeInputConnectionByPort,
126
+ // closeOutputConnectionByPort,
127
+ // closePortConnectionByPort,
128
+ // makePortConnectionCloser,
129
+ // } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts'
130
+ export {
131
+ closeInputConnectionByPortIdAndAccess as closeInputConnectionByIdInPipe,
132
+ closeOutputConnectionByPortIdAndAccess as closeOutputConnectionByIdInPipe,
133
+ closePortConnectionByPortIdAndAccess as closePortConnectionByIdInPipe,
134
+ } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts'
135
+ export {
136
+ closeInputConnectionByPortIdInContext as closeInputConnectionById,
137
+ closeOutputConnectionByPortIdInContext as closeOutputConnectionById,
138
+ closePortConnectionByPortIdInContext as closePortConnectionById,
139
+ } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts'
140
+ // export {
141
+ // makeMIDIPortMethodCallerFactory,
142
+ // type TouchPort,
143
+ // } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts'
144
+ // export {
145
+ // makePortConnectionOpener,
146
+ // openInputConnectionByPort,
147
+ // openOutputConnectionByPort,
148
+ // openPortConnectionByPort,
149
+ // } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts'
150
+ export {
151
+ openInputConnectionByPortIdAndAccess as openInputConnectionByIdInPipe,
152
+ openOutputConnectionByPortIdAndAccess as openOutputConnectionByIdInPipe,
153
+ openPortConnectionByPortIdAndAccess as openPortConnectionByIdInPipe,
154
+ } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts'
155
+ export {
156
+ openInputConnectionByPortIdInContext as openInputConnectionById,
157
+ openOutputConnectionByPortIdInContext as openOutputConnectionById,
158
+ openPortConnectionByPortIdInContext as openPortConnectionById,
159
+ } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts'
160
+ // export {
161
+ // type DualMakeStateChangesStream,
162
+ // type MakeStateChangesStreamPortFirst,
163
+ // type MakeStateChangesStreamPortLast,
164
+ // makeInputStateChangesStreamByPort,
165
+ // makeOutputStateChangesStreamByPort,
166
+ // makePortStateChangesStreamByPort,
167
+ // type StateChangesStream,
168
+ // } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts'
169
+ export {
170
+ makeInputStateChangesStreamByPortIdAndAccess as makeInputStateChangesStreamByIdInPipe,
171
+ makeOutputStateChangesStreamByPortIdAndAccess as makeOutputStateChangesStreamByIdInPipe,
172
+ makePortStateChangesStreamByPortIdAndAccess as makePortStateChangesStreamByIdInPipe,
173
+ } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts'
174
+ export {
175
+ makeInputStateChangesStreamByPortIdInContext as makeInputStateChangesStreamById,
176
+ makeOutputStateChangesStreamByPortIdInContext as makeOutputStateChangesStreamById,
177
+ makePortStateChangesStreamByPortIdInContext as makePortStateChangesStreamById,
178
+ } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts'
179
+ // export {
180
+ // isInputConnectionClosedByPort,
181
+ // isInputConnectionOpenByPort,
182
+ // isInputConnectionPendingByPort,
183
+ // isInputDeviceConnectedByPort,
184
+ // isInputDeviceDisconnectedByPort,
185
+ // isOutputConnectionClosedByPort,
186
+ // isOutputConnectionOpenByPort,
187
+ // isOutputConnectionPendingByPort,
188
+ // isOutputDeviceConnectedByPort,
189
+ // isOutputDeviceDisconnectedByPort,
190
+ // isPortConnectionClosedByPort,
191
+ // isPortConnectionOpenByPort,
192
+ // isPortConnectionPendingByPort,
193
+ // isPortDeviceConnectedByPort,
194
+ // isPortDeviceDisconnectedByPort,
195
+ // } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts'
196
+ export {
197
+ isInputConnectionClosedByPortIdAndAccess as isInputConnectionClosedByIdInPipe,
198
+ isInputConnectionOpenByPortIdAndAccess as isInputConnectionOpenByIdInPipe,
199
+ isInputConnectionPendingByPortIdAndAccess as isInputConnectionPendingByIdInPipe,
200
+ isInputDeviceConnectedByPortIdAndAccess as isInputDeviceConnectedByIdInPipe,
201
+ isInputDeviceDisconnectedByPortIdAndAccess as isInputDeviceDisconnectedByIdInPipe,
202
+ isOutputConnectionClosedByPortIdAndAccess as isOutputConnectionClosedByIdInPipe,
203
+ isOutputConnectionOpenByPortIdAndAccess as isOutputConnectionOpenByIdInPipe,
204
+ isOutputConnectionPendingByPortIdAndAccess as isOutputConnectionPendingByIdInPipe,
205
+ isOutputDeviceConnectedByPortIdAndAccess as isOutputDeviceConnectedByIdInPipe,
206
+ isOutputDeviceDisconnectedByPortIdAndAccess as isOutputDeviceDisconnectedByIdInPipe,
207
+ isPortConnectionClosedByPortIdAndAccess as isPortConnectionClosedByIdInPipe,
208
+ isPortConnectionOpenByPortIdAndAccess as isPortConnectionOpenByIdInPipe,
209
+ isPortConnectionPendingByPortIdAndAccess as isPortConnectionPendingByIdInPipe,
210
+ isPortDeviceConnectedByPortIdAndAccess as isPortDeviceConnectedByIdInPipe,
211
+ isPortDeviceDisconnectedByPortIdAndAccess as isPortDeviceDisconnectedByIdInPipe,
212
+ } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts'
213
+ export {
214
+ isInputConnectionClosedByPortIdInContext as isInputConnectionClosedById,
215
+ isInputConnectionOpenByPortIdInContext as isInputConnectionOpenById,
216
+ isInputConnectionPendingByPortIdInContext as isInputConnectionPendingById,
217
+ isInputDeviceConnectedByPortIdInContext as isInputDeviceConnectedById,
218
+ isInputDeviceDisconnectedByPortIdInContext as isInputDeviceDisconnectedById,
219
+ isOutputConnectionClosedByPortIdInContext as isOutputConnectionClosedById,
220
+ isOutputConnectionOpenByPortIdInContext as isOutputConnectionOpenById,
221
+ isOutputConnectionPendingByPortIdInContext as isOutputConnectionPendingById,
222
+ isOutputDeviceConnectedByPortIdInContext as isOutputDeviceConnectedById,
223
+ isOutputDeviceDisconnectedByPortIdInContext as isOutputDeviceDisconnectedById,
224
+ isPortConnectionClosedByPortIdInContext as isPortConnectionClosedById,
225
+ isPortConnectionOpenByPortIdInContext as isPortConnectionOpenById,
226
+ isPortConnectionPendingByPortIdInContext as isPortConnectionPendingById,
227
+ isPortDeviceConnectedByPortIdInContext as isPortDeviceConnectedById,
228
+ isPortDeviceDisconnectedByPortIdInContext as isPortDeviceDisconnectedById,
229
+ } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts'
230
+ // export {
231
+ // getInputConnectionStateByPort,
232
+ // getInputDeviceStateByPort,
233
+ // getOutputConnectionStateByPort,
234
+ // getOutputDeviceStateByPort,
235
+ // getPortConnectionStateByPort,
236
+ // getPortDeviceStateByPort,
237
+ // } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts'
238
+ export {
239
+ getInputConnectionStateByPortIdAndAccess as getInputConnectionStateByIdInPipe,
240
+ getInputDeviceStateByPortIdAndAccess as getInputDeviceStateByIdInPipe,
241
+ getOutputConnectionStateByPortIdAndAccess as getOutputConnectionStateByIdInPipe,
242
+ getOutputDeviceStateByPortIdAndAccess as getOutputDeviceStateByIdInPipe,
243
+ getPortConnectionStateByPortIdAndAccess as getPortConnectionStateByIdInPipe,
244
+ getPortDeviceStateByPortIdAndAccess as getPortDeviceStateByIdInPipe,
245
+ } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts'
246
+ export {
247
+ getInputConnectionStateByPortId as getInputConnectionStateById,
248
+ getInputDeviceStateByPortId as getInputDeviceStateById,
249
+ getOutputConnectionStateByPortId as getOutputConnectionStateById,
250
+ getOutputDeviceStateByPortId as getOutputDeviceStateById,
251
+ getPortConnectionStateByPortId as getPortConnectionStateById,
252
+ getPortDeviceStateByPortId as getPortDeviceStateById,
253
+ } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts'
254
+ // export {
255
+ // type DualMatchPortState,
256
+ // type MatcherConfigPlain,
257
+ // type MatchResult,
258
+ // type MatchStatePortFirst,
259
+ // type MatchStatePortLast,
260
+ // type MIDIPortMutableProperty,
261
+ // matchInputConnectionStateByPort,
262
+ // matchInputDeviceStateByPort,
263
+ // matchOutputConnectionStateByPort,
264
+ // matchOutputDeviceStateByPort,
265
+ // matchPortConnectionStateByPort,
266
+ // matchPortDeviceStateByPort,
267
+ // type PortStateHandler,
268
+ // type StateCaseToHandlerMap,
269
+ // } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts'
270
+ export {
271
+ matchInputConnectionStateByPortIdAndAccess as matchInputConnectionStateByIdInPipe,
272
+ matchInputDeviceStateByPortIdAndAccess as matchInputDeviceStateByIdInPipe,
273
+ matchOutputConnectionStateByPortIdAndAccess as matchOutputConnectionStateByIdInPipe,
274
+ matchOutputDeviceStateByPortIdAndAccess as matchOutputDeviceStateByIdInPipe,
275
+ matchPortConnectionStateByPortIdAndAccess as matchPortConnectionStateBydInPipe,
276
+ matchPortDeviceStateByPortIdAndAccess as matchPortDeviceStateByIdInPipe,
277
+ } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts'
278
+ export {
279
+ matchInputConnectionStateByPortIdInContext as matchInputConnectionStateById,
280
+ matchInputDeviceStateByPortIdInContext as matchInputDeviceStateById,
281
+ matchOutputConnectionStateByPortIdInContext as matchOutputConnectionStateById,
282
+ matchOutputDeviceStateByPortIdInContext as matchOutputDeviceStateById,
283
+ matchPortConnectionStateByPortIdInContext as matchPortConnectionStateById,
284
+ matchPortDeviceStateByPortIdInContext as matchPortDeviceStateByPortId,
285
+ } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts'
@@ -0,0 +1,273 @@
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
+ getInputsArray as getArray,
16
+ getInputsRecord as getRecord,
17
+ // getOutputsRecord,
18
+ InputsArray as Array,
19
+ InputsRecord as Record,
20
+ // is,
21
+ // layer,
22
+ // layerMostRestricted,
23
+ // layerSoftwareSynthSupported,
24
+ // layerSystemExclusiveAndSoftwareSynthSupported,
25
+ // layerSystemExclusiveSupported,
26
+ // makeAllPortsStateChangesStream,
27
+ // makeAllPortsStateChangesStreamInContext,
28
+ makeMessagesStreamByInputId as makeMessagesStreamById,
29
+ makeMessagesStreamByInputIdAndAccess as makeMessagesStreamByIdAndAccess,
30
+ // OutputsRecord,
31
+ // type PolymorphicAccessInstance,
32
+ // type PolymorphicAccessInstanceClean,
33
+ // type RequestMIDIAccessOptions,
34
+ // request,
35
+ // simplify,
36
+ // type SendFromAccessArgs,
37
+ // type SendMIDIMessageAccessFirst,
38
+ // type SendMIDIMessageAccessLast,
39
+ // type SentMessageEffectFromAccess,
40
+ // send,
41
+ // sendInContext,
42
+ // sendToPortById,
43
+ // type TargetPortSelector,
44
+ // type TypeId,
45
+ } from './internal/EMIDIAccess.ts'
46
+ export {
47
+ // make,
48
+ assert,
49
+ type EMIDIInput,
50
+ Id,
51
+ type InputIdToInstanceMap as IdToInstanceMap,
52
+ is,
53
+ makeMessagesStreamByPort as makeMessagesStream,
54
+ type PolymorphicInput as PolymorphicInstance,
55
+ type PolymorphicInputClean as PolymorphicCleanInstance,
56
+ } from './internal/EMIDIInput.ts'
57
+ // export {
58
+ // assert,
59
+ // clear,
60
+ // type DualSendMIDIMessageFromPort,
61
+ // type EMIDIOutput,
62
+ // is,
63
+ // make,
64
+ // type PolymorphicOutput,
65
+ // type PolymorphicOutputClean,
66
+ // type SendFromPortArgs,
67
+ // type SendMIDIMessagePortFirst,
68
+ // type SendMIDIMessagePortLast,
69
+ // type SentMessageEffectFromPort,
70
+ // send,
71
+ // } from './internal/EMIDIOutput.ts'
72
+ // export {
73
+ // assert,
74
+ // assumeImpl,
75
+ // type EMIDIPort,
76
+ // type EMIDIPortImpl,
77
+ // type ExtractTypeFromPort,
78
+ // is,
79
+ // isImplOfSpecificType,
80
+ // makeImpl,
81
+ // type PolymorphicPort,
82
+ // type PolymorphicPortClean,
83
+ // type TypeId,
84
+ // } from './internal/EMIDIPort.ts'
85
+ export {
86
+ // type GetPortById,
87
+ getInputByPortIdAndAccess as getByIdAndAccess,
88
+ // getOutputByPortIdAndAccess,
89
+ // getPortByPortIdAndAccess,
90
+ } from './internal/getPortByPortId/getPortByPortIdAndAccess.ts'
91
+ export {
92
+ getInputByPortIdInContext as getById,
93
+ // getOutputByPortIdInContext,
94
+ // getPortByPortIdInContext,
95
+ } from './internal/getPortByPortId/getPortByPortIdInContext.ts'
96
+ export {
97
+ acquireReleaseInputConnectionByPort as acquireReleaseConnection,
98
+ // acquireReleaseOutputConnectionByPort,
99
+ // acquireReleasePortConnectionByPort,
100
+ } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts'
101
+ export {
102
+ acquireReleaseInputConnectionByPortIdAndAccess as acquireReleaseConnectionByIdAndAccess,
103
+ // acquireReleaseOutputConnectionByPortIdAndAccess,
104
+ // acquireReleasePortConnectionByPortIdAndAccess,
105
+ } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts'
106
+ export {
107
+ acquireReleaseInputConnectionByPortIdInContext as acquireReleaseConnectionById,
108
+ // acquireReleaseOutputConnectionByPortIdInContext,
109
+ // acquireReleasePortConnectionByPortIdInContext,
110
+ } from './internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts'
111
+ // export { actOnPort } from './internal/MIDIPortMethodCalls/actOnPort.ts'
112
+ export {
113
+ closeInputConnectionByPort as closeConnection,
114
+ // closeOutputConnectionByPort,
115
+ // closePortConnectionByPort,
116
+ // makePortConnectionCloser,
117
+ } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts'
118
+ export {
119
+ closeInputConnectionByPortIdAndAccess as closeConnectionByIdAndAccess,
120
+ // closeOutputConnectionByPortIdAndAccess,
121
+ // closePortConnectionByPortIdAndAccess,
122
+ } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts'
123
+ export {
124
+ closeInputConnectionByPortIdInContext as closeConnectionById,
125
+ // closeOutputConnectionByPortIdInContext,
126
+ // closePortConnectionByPortIdInContext,
127
+ } from './internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts'
128
+ // export {
129
+ // makeMIDIPortMethodCallerFactory,
130
+ // type TouchPort,
131
+ // } from './internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts'
132
+ export {
133
+ // makePortConnectionOpener,
134
+ openInputConnectionByPort as openConnection,
135
+ // openOutputConnectionByPort,
136
+ // openPortConnectionByPort,
137
+ } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts'
138
+ export {
139
+ openInputConnectionByPortIdAndAccess as openConnectionByIdAndAccess,
140
+ // openOutputConnectionByPortIdAndAccess,
141
+ // openPortConnectionByPortIdAndAccess,
142
+ } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts'
143
+ export {
144
+ openInputConnectionByPortIdInContext as openConnectionById,
145
+ // openOutputConnectionByPortIdInContext,
146
+ // openPortConnectionByPortIdInContext,
147
+ } from './internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts'
148
+ export {
149
+ // type DualMakeStateChangesStream,
150
+ // type MakeStateChangesStreamPortFirst,
151
+ // type MakeStateChangesStreamPortLast,
152
+ makeInputStateChangesStreamByPort as makeStateChangesStream,
153
+ // makeOutputStateChangesStreamByPort,
154
+ // makePortStateChangesStreamByPort,
155
+ // type StateChangesStream,
156
+ } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts'
157
+ export {
158
+ makeInputStateChangesStreamByPortIdAndAccess as makeStateChangesStreamByIdAndAccess,
159
+ // makeOutputStateChangesStreamByPortIdAndAccess,
160
+ // makePortStateChangesStreamByPortIdAndAccess,
161
+ } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts'
162
+ export {
163
+ makeInputStateChangesStreamByPortIdInContext as makeStateChangesStreamById,
164
+ // makeOutputStateChangesStreamByPortIdInContext,
165
+ // makePortStateChangesStreamByPortIdInContext,
166
+ } from './internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts'
167
+ export {
168
+ isInputConnectionClosedByPort as isConnectionClosed,
169
+ isInputConnectionOpenByPort as isConnectionOpen,
170
+ isInputConnectionPendingByPort as isConnectionPending,
171
+ isInputDeviceConnectedByPort as isDeviceConnected,
172
+ isInputDeviceDisconnectedByPort as isDeviceDisconnected,
173
+ // isOutputConnectionClosedByPort,
174
+ // isOutputConnectionOpenByPort,
175
+ // isOutputConnectionPendingByPort,
176
+ // isOutputDeviceConnectedByPort,
177
+ // isOutputDeviceDisconnectedByPort,
178
+ // isPortConnectionClosedByPort,
179
+ // isPortConnectionOpenByPort,
180
+ // isPortConnectionPendingByPort,
181
+ // isPortDeviceConnectedByPort,
182
+ // isPortDeviceDisconnectedByPort,
183
+ } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts'
184
+ export {
185
+ isInputConnectionClosedByPortIdAndAccess as isConnectionClosedByIdAndAccess,
186
+ isInputConnectionOpenByPortIdAndAccess as isConnectionOpenByIdAndAccess,
187
+ isInputConnectionPendingByPortIdAndAccess as isConnectionPendingByIdAndAccess,
188
+ isInputDeviceConnectedByPortIdAndAccess as isDeviceConnectedByIdAndAccess,
189
+ isInputDeviceDisconnectedByPortIdAndAccess as isDeviceDisconnectedByIdAndAccess,
190
+ // isOutputConnectionClosedByPortIdAndAccess,
191
+ // isOutputConnectionOpenByPortIdAndAccess,
192
+ // isOutputConnectionPendingByPortIdAndAccess,
193
+ // isOutputDeviceConnectedByPortIdAndAccess,
194
+ // isOutputDeviceDisconnectedByPortIdAndAccess,
195
+ // isPortConnectionClosedByPortIdAndAccess,
196
+ // isPortConnectionOpenByPortIdAndAccess,
197
+ // isPortConnectionPendingByPortIdAndAccess,
198
+ // isPortDeviceConnectedByPortIdAndAccess,
199
+ // isPortDeviceDisconnectedByPortIdAndAccess,
200
+ } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts'
201
+ export {
202
+ isInputConnectionClosedByPortIdInContext as isConnectionClosedById,
203
+ isInputConnectionOpenByPortIdInContext as isConnectionOpenById,
204
+ isInputConnectionPendingByPortIdInContext as isConnectionPendingById,
205
+ isInputDeviceConnectedByPortIdInContext as isDeviceConnectedById,
206
+ isInputDeviceDisconnectedByPortIdInContext as isDeviceDisconnectedById,
207
+ // isOutputConnectionClosedByPortIdInContext,
208
+ // isOutputConnectionOpenByPortIdInContext,
209
+ // isOutputConnectionPendingByPortIdInContext,
210
+ // isOutputDeviceConnectedByPortIdInContext,
211
+ // isOutputDeviceDisconnectedByPortIdInContext,
212
+ // isPortConnectionClosedByPortIdInContext,
213
+ // isPortConnectionOpenByPortIdInContext,
214
+ // isPortConnectionPendingByPortIdInContext,
215
+ // isPortDeviceConnectedByPortIdInContext,
216
+ // isPortDeviceDisconnectedByPortIdInContext,
217
+ } from './internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts'
218
+ export {
219
+ getInputConnectionStateByPort as getConnectionState,
220
+ getInputDeviceStateByPort as getDeviceState,
221
+ // getOutputConnectionStateByPort,
222
+ // getOutputDeviceStateByPort,
223
+ // getPortConnectionStateByPort,
224
+ // getPortDeviceStateByPort,
225
+ } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts'
226
+ export {
227
+ getInputConnectionStateByPortIdAndAccess as getConnectionStateByIdAndAccess,
228
+ getInputDeviceStateByPortIdAndAccess as getDeviceStateByIdAndAccess,
229
+ // getOutputConnectionStateByPortIdAndAccess,
230
+ // getOutputDeviceStateByPortIdAndAccess,
231
+ // getPortConnectionStateByPortIdAndAccess,
232
+ // getPortDeviceStateByPortIdAndAccess,
233
+ } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts'
234
+ export {
235
+ getInputConnectionStateByPortId as getConnectionStateById,
236
+ getInputDeviceStateByPortId as getDeviceStateById,
237
+ // getOutputConnectionStateByPortId,
238
+ // getOutputDeviceStateByPortId,
239
+ // getPortConnectionStateByPortId,
240
+ // getPortDeviceStateByPortId,
241
+ } from './internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts'
242
+ export {
243
+ // type DualMatchPortState,
244
+ // type MatcherConfigPlain,
245
+ // type MatchResult,
246
+ // type MatchStatePortFirst,
247
+ // type MatchStatePortLast,
248
+ // type MIDIPortMutableProperty,
249
+ matchInputConnectionStateByPort as matchConnectionState,
250
+ matchInputDeviceStateByPort as matchDeviceState,
251
+ // matchOutputConnectionStateByPort,
252
+ // matchOutputDeviceStateByPort,
253
+ // matchPortConnectionStateByPort,
254
+ // matchPortDeviceStateByPort,
255
+ // type PortStateHandler,
256
+ // type StateCaseToHandlerMap,
257
+ } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts'
258
+ export {
259
+ matchInputConnectionStateByPortIdAndAccess as matchConnectionStateByIdAndAccess,
260
+ matchInputDeviceStateByPortIdAndAccess as matchDeviceStateByIdAndAccess,
261
+ // matchOutputConnectionStateByPortIdAndAccess,
262
+ // matchOutputDeviceStateByPortIdAndAccess,
263
+ // matchPortConnectionStateByPortIdAndAccess,
264
+ // matchPortDeviceStateByPortIdAndAccess,
265
+ } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts'
266
+ export {
267
+ matchInputConnectionStateByPortIdInContext as matchConnectionStateById,
268
+ matchInputDeviceStateByPortIdInContext as matchDeviceStateById,
269
+ // matchOutputConnectionStateByPortIdInContext,
270
+ // matchOutputDeviceStateByPortIdInContext,
271
+ // matchPortConnectionStateByPortIdInContext,
272
+ // matchPortDeviceStateByPortIdInContext,
273
+ } from './internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts'