effect-web-midi 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +146 -0
- package/dist/src/MIDIErrors.js +1 -1
- package/dist/src/MIDIErrors.js.map +1 -1
- package/dist/src/Parsing.js +1 -1
- package/dist/src/Parsing.js.map +1 -1
- package/dist/src/Util.js +1 -1
- package/dist/src/internal/EMIDIAccess.js +2 -2
- package/dist/src/internal/EMIDIAccess.js.map +1 -1
- package/dist/src/internal/{errors.js → EMIDIErrors.js} +1 -1
- package/dist/src/internal/EMIDIErrors.js.map +1 -0
- package/dist/src/internal/EMIDIInput.js +1 -1
- package/dist/src/internal/EMIDIOutput.js +2 -2
- package/dist/src/internal/EMIDIOutput.js.map +1 -1
- package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js +1 -1
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js +1 -1
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js.map +1 -1
- package/dist/src/internal/{parsing.js → Parsing.js} +15 -16
- package/dist/src/internal/Parsing.js.map +1 -0
- package/dist/src/internal/StreamMaker.js +1 -1
- package/dist/src/internal/{util.js → Util.js} +1 -1
- package/dist/src/internal/{util.js.map → Util.js.map} +1 -1
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js +3 -3
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js.map +1 -1
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js +1 -1
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js +1 -1
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js +1 -1
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js.map +1 -1
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js +1 -1
- package/dist-types/src/MIDIErrors.d.ts +1 -1
- package/dist-types/src/MIDIErrors.d.ts.map +1 -1
- package/dist-types/src/Parsing.d.ts +1 -1
- package/dist-types/src/Parsing.d.ts.map +1 -1
- package/dist-types/src/Util.d.ts +1 -1
- package/dist-types/src/internal/EMIDIAccess.d.ts +2 -2
- package/dist-types/src/internal/EMIDIAccess.d.ts.map +1 -1
- package/dist-types/src/internal/{errors.d.ts → EMIDIErrors.d.ts} +1 -1
- package/dist-types/src/internal/EMIDIErrors.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIOutput.d.ts +2 -2
- package/dist-types/src/internal/EMIDIOutput.d.ts.map +1 -1
- package/dist-types/src/internal/EMIDIPort.d.ts +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts.map +1 -1
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts +3 -3
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/{parsing.d.ts → Parsing.d.ts} +7 -1
- package/dist-types/src/internal/Parsing.d.ts.map +1 -0
- package/dist-types/src/internal/StreamMaker.d.ts +1 -1
- package/dist-types/src/internal/{util.d.ts → Util.d.ts} +2 -2
- package/dist-types/src/internal/Util.d.ts.map +1 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts +1 -1
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts.map +1 -1
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts +3 -3
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts +3 -3
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts +1 -1
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts +2 -2
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -1
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts +1 -1
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts.map +1 -1
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts +1 -1
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/MIDIErrors.ts +1 -1
- package/src/Parsing.ts +3 -1
- package/src/Util.ts +1 -1
- package/src/internal/EMIDIAccess.ts +2 -2
- package/src/internal/EMIDIInput.ts +1 -1
- package/src/internal/EMIDIOutput.ts +2 -2
- package/src/internal/EMIDIPort.ts +1 -1
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts +1 -1
- package/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts +1 -1
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts +1 -1
- package/src/internal/{parsing.ts → Parsing.ts} +18 -22
- package/src/internal/StreamMaker.ts +1 -1
- package/src/internal/{util.ts → Util.ts} +1 -1
- package/src/internal/getPortByPortId/getPortByPortIdAndAccess.ts +3 -3
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts +1 -1
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts +1 -1
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts +2 -2
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts +1 -1
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts +1 -1
- package/dist/src/internal/errors.js.map +0 -1
- package/dist/src/internal/parsing.js.map +0 -1
- package/dist-types/src/internal/errors.d.ts.map +0 -1
- package/dist-types/src/internal/parsing.d.ts.map +0 -1
- package/dist-types/src/internal/util.d.ts.map +0 -1
- /package/src/internal/{errors.ts → EMIDIErrors.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EMIDIOutput.d.ts","sourceRoot":"","sources":["../../../src/internal/EMIDIOutput.ts"],"names":[],"mappings":"AAAA;gEACgE;AAEhE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"EMIDIOutput.d.ts","sourceRoot":"","sources":["../../../src/internal/EMIDIOutput.ts"],"names":[],"mappings":"AAAA;gEACgE;AAEhE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC;CAAG;AA+BrE;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,WAAwB,CAAA;AAQlE;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,WAAsB,CAAA;AAQpE;;GAEG;AACH,eAAO,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,IAAI,WAAoB,CAAA;AAWpE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI,EAAE,2BAmClB,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,UACD,CAAC,4JA0BD,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,IAAI,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAA;AAE/E;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,mBAAmB;CAChC,CAAA;AAED,MAAM,WAAW,2BACf,SAAQ,uBAAuB,EAC7B,wBAAwB;CAAG;AAE/B,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,CACE,GAAG,IAAI,EAAE,gBAAgB,GACxB;QACD;;WAEG;QACH,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,EACnB,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GACzC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;KACnC,CAAA;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,EACnB,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,GAAG,IAAI,EAAE,gBAAgB,GACxB,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,CAC7D,SAAQ,IAAI,CAAC,qBAAqB,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAE1D,MAAM,MAAM,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAA;AACvC,eAAO,MAAM,EAAE,qFAAsB,CAAA"}
|
|
@@ -4,7 +4,7 @@ import * as Brand from 'effect/Brand';
|
|
|
4
4
|
import * as Equal from 'effect/Equal';
|
|
5
5
|
import * as Inspectable from 'effect/Inspectable';
|
|
6
6
|
import * as Pipeable from 'effect/Pipeable';
|
|
7
|
-
import type * as Util from './
|
|
7
|
+
import type * as Util from './Util.ts';
|
|
8
8
|
/**
|
|
9
9
|
* Unique symbol used for distinguishing {@linkcode EMIDIPort} instances
|
|
10
10
|
* from other objects at both runtime and type-level
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquireReleasePortConnectionByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAI1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"acquireReleasePortConnectionByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAI1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAmBtE;;GAEG;AACH,eAAO,MAAM,kCAAkC,4DACD,CAAA;AAE9C;;GAEG;AACH,eAAO,MAAM,mCAAmC,uDACD,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,oCAAoC,wDACD,CAAA"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export declare const acquireReleasePortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../
|
|
6
|
+
export declare const acquireReleasePortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("effect/Scope").Scope>;
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
export declare const acquireReleaseInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../
|
|
10
|
+
export declare const acquireReleaseInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("effect/Scope").Scope>;
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare const acquireReleaseOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../
|
|
14
|
+
export declare const acquireReleaseOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("effect/Scope").Scope>;
|
|
15
15
|
//# sourceMappingURL=acquireReleasePortConnectionByPortIdAndAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquireReleasePortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AACA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,6CAA6C,
|
|
1
|
+
{"version":3,"file":"acquireReleasePortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AACA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,6CAA6C,6QAGzD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,8CAA8C,kQAG1D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,+CAA+C,mQAG3D,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
|
-
export declare const acquireReleasePortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../
|
|
4
|
+
export declare const acquireReleasePortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess | import("effect/Scope").Scope>;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export declare const acquireReleaseInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../
|
|
8
|
+
export declare const acquireReleaseInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess | import("effect/Scope").Scope>;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
export declare const acquireReleaseOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../
|
|
12
|
+
export declare const acquireReleaseOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess | import("effect/Scope").Scope>;
|
|
13
13
|
//# sourceMappingURL=acquireReleasePortConnectionByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquireReleasePortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,6CAA6C,
|
|
1
|
+
{"version":3,"file":"acquireReleasePortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,6CAA6C,4TAGzD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,8CAA8C,yWAG1D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,+CAA+C,2WAG3D,CAAA"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export declare const closePortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../
|
|
6
|
+
export declare const closePortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
export declare const closeInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../
|
|
10
|
+
export declare const closeInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare const closeOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../
|
|
14
|
+
export declare const closeOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
15
15
|
//# sourceMappingURL=closePortConnectionByPortIdAndAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closePortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"closePortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,oCAAoC,gMAGhD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qCAAqC,qLAGjD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,sCAAsC,sLAGlD,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
|
-
export declare const closePortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../
|
|
4
|
+
export declare const closePortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export declare const closeInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../
|
|
8
|
+
export declare const closeInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
export declare const closeOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../
|
|
12
|
+
export declare const closeOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
13
13
|
//# sourceMappingURL=closePortConnectionByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closePortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"closePortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,oCAAoC,uOAGhD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qCAAqC,oRAGjD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,sCAAsC,sRAGlD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openPortConnectionByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAoB,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"openPortConnectionByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAoB,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG7E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,iOAepC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,sGAAyC,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,yBAAyB,iGAA0C,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,0BAA0B,kGAEtC,CAAA"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export declare const openPortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../
|
|
6
|
+
export declare const openPortConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input" | "output", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
export declare const openInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../
|
|
10
|
+
export declare const openInputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "input", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare const openOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../
|
|
14
|
+
export declare const openOutputConnectionByPortIdAndAccess: import("../../EMIDIAccess.ts").GetThingByPortId<import("../../EMIDIAccess.ts").EMIDIAccessInstance, "output", never, never, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
15
15
|
//# sourceMappingURL=openPortConnectionByPortIdAndAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openPortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,mCAAmC,
|
|
1
|
+
{"version":3,"file":"openPortConnectionByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAchE;;GAEG;AACH,eAAO,MAAM,mCAAmC,sPAG/C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oCAAoC,2OAGhD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qCAAqC,4OAGjD,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
|
-
export declare const openPortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../
|
|
4
|
+
export declare const openPortConnectionByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input" | "output">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export declare const openInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../
|
|
8
|
+
export declare const openInputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"input">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
export declare const openOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../
|
|
12
|
+
export declare const openOutputConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../EMIDIPort.ts").EMIDIPort<"output">, import("../../EMIDIErrors.ts").UnavailablePortError | import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
13
13
|
//# sourceMappingURL=openPortConnectionByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openPortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,mCAAmC,
|
|
1
|
+
{"version":3,"file":"openPortConnectionByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,mCAAmC,6RAG/C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oCAAoC,0UAGhD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qCAAqC,4UAGjD,CAAA"}
|
|
@@ -26,6 +26,12 @@ export declare const withTouchpadPositionUpdates: <A extends {
|
|
|
26
26
|
readonly midiMessage: TouchpadPositionUpdate;
|
|
27
27
|
}), E, R>;
|
|
28
28
|
export type ParsedMIDIMessages = NoteRelease | NotePress | UnknownReply | ControlChange | TouchpadRelease | PitchBendChange;
|
|
29
|
+
export declare const isControlChange: (e: {
|
|
30
|
+
_tag: string;
|
|
31
|
+
}) => e is ControlChange;
|
|
32
|
+
export declare const isPitchBendChange: (e: {
|
|
33
|
+
_tag: string;
|
|
34
|
+
}) => e is PitchBendChange;
|
|
29
35
|
export interface NoteRelease extends Readonly<{
|
|
30
36
|
_tag: 'Note Release';
|
|
31
37
|
channel: number;
|
|
@@ -69,4 +75,4 @@ export interface TouchpadPositionUpdate extends Readonly<{
|
|
|
69
75
|
y: number;
|
|
70
76
|
}> {
|
|
71
77
|
}
|
|
72
|
-
//# sourceMappingURL=
|
|
78
|
+
//# sourceMappingURL=Parsing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parsing.d.ts","sourceRoot":"","sources":["../../../src/internal/Parsing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAKvC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,CAAC,SAAS;IAAE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;CAAE,EAC3D,CAAC,EACD,CAAC,EAED,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAKrB,MAAM,CAAC,MAAM,CAClB,IAAI,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAA;CAAE,EACrE,CAAC,EACD,CAAC,CACF,CAAA;AAEH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,CAAC,SAAS;IACR,WAAW,EACP,aAAa,GACb,eAAe,GACf,eAAe,GACf;QAAE,IAAI,EAAE,MAAM,GAAG,EAAE,CAAA;KAAE,CAAA;CAC1B,EACD,CAAC,EACD,CAAC,EAED,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC3B,MAAM,CAAC,MAAM,CACZ,CAAC,GACD,CAAC,IAAI,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,sBAAsB,CAAA;CAAE,CAAC,EAC7E,CAAC,EACD,CAAC,CA6BuB,CAAA;AAE1B,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,SAAS,GACT,YAAY,GACZ,aAAa,GACb,eAAe,GACf,eAAe,CAAA;AA8EnB,eAAO,MAAM,eAAe,GAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,CAAC,IAAI,aAC9B,CAAA;AAE7B,eAAO,MAAM,iBAAiB,GAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,CAAC,IAAI,eAC7B,CAAA;AAEhC,MAAM,WAAW,WACf,SAAQ,QAAQ,CAAC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;CAAG;AAE9E,MAAM,WAAW,SACf,SAAQ,QAAQ,CAAC;IACf,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAC;CAAG;AAEP,MAAM,WAAW,YACf,SAAQ,QAAQ,CAAC;IACf,IAAI,EAAE,eAAe,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;CAAG;AAEP,MAAM,WAAW,aACf,SAAQ,QAAQ,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;CAAG;AAEP,MAAM,WAAW,eACf,SAAQ,QAAQ,CAAC;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;CAAG;AAEpE,MAAM,WAAW,eACf,SAAQ,QAAQ,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;CAAG;AAEP,MAAM,WAAW,sBACf,SAAQ,QAAQ,CAAC;IACf,IAAI,EAAE,0BAA0B,CAAA;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV,CAAC;CAAG"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* preserve JSDoc comments attached to the function signature */
|
|
3
3
|
import * as Cause from 'effect/Cause';
|
|
4
4
|
import * as Stream from 'effect/Stream';
|
|
5
|
-
import * as Util from './
|
|
5
|
+
import * as Util from './Util.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Set of possible ways to react when the MIDI-related event will have relevant
|
|
8
8
|
* field be null. Although there should be no sane scenario where it would be
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Brand from 'effect/Brand';
|
|
2
2
|
import * as Effect from 'effect/Effect';
|
|
3
3
|
import * as Stream from 'effect/Stream';
|
|
4
|
-
import type * as Errors from './
|
|
4
|
+
import type * as Errors from './EMIDIErrors.ts';
|
|
5
5
|
export declare const midiPortStaticFields: readonly ["id", "name", "manufacturer", "version", "type"];
|
|
6
6
|
export type MIDIPortStaticFields = (typeof midiPortStaticFields)[number];
|
|
7
7
|
export declare const getStaticMIDIPortInfo: (port: Pick<MIDIPort, MIDIPortStaticFields>) => {
|
|
@@ -30,4 +30,4 @@ export declare const isConnectionOpen: <E, R>(self: Effect.Effect<MIDIPortConnec
|
|
|
30
30
|
export declare const isConnectionPending: <E, R>(self: Effect.Effect<MIDIPortConnectionState, E, R>) => Effect.Effect<IsEqualFlag<"isCertainConnectionState", "pending">, E, R>;
|
|
31
31
|
export declare const isConnectionClosed: <E, R>(self: Effect.Effect<MIDIPortConnectionState, E, R>) => Effect.Effect<IsEqualFlag<"isCertainConnectionState", "closed">, E, R>;
|
|
32
32
|
export declare const mapToGlidingStringLogOfLimitedEntriesCount: <A>(windowSize: number, show: "latestFirst" | "oldestFirst", objectify: (current: NoInfer<A>) => object) => <E, R>(self: Stream.Stream<A, E, R>) => Stream.Stream<string, E, R>;
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=Util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../src/internal/Util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAE/C,eAAO,MAAM,oBAAoB,4DAMvB,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAA;AAExE,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,QAAQ,EAAE,oBAAoB,CAAC;;;;;;CACG,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,qBAAqB,CAAC,IAAI,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,CAC/D,SAAQ,MAAM,CAAC,MAAM,CACnB,IAAI,EACF,CAAC,GACD,MAAM,CAAC,0BAA0B,GACjC,MAAM,CAAC,yBAAyB,GAChC,MAAM,CAAC,qBAAqB,EAC9B,CAAC,CACF;CAAG;AAEN,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AAEnE,MAAM,MAAM,sBAAsB,CAAC,UAAU,EAAE,QAAQ,IACrD,OAAO,SAAS,UAAU,GACtB,UAAU,SAAS,OAAO,GACxB,QAAQ,GACR,UAAU,GACZ,UAAU,CAAA;AAEhB,eAAO,MAAM,sBAAsB,GAChC,IAAI,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,MAAM,KAAK,UAAU,YACZ,CAAA;AAEzC,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,EACrD,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC5C,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,0BAUxC;AAeD,MAAM,MAAM,WAAW,CACrB,aAAa,SAAS,MAAM,EAC5B,cAAc,SAAS,MAAM,IAC3B,OAAO,GACT,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,GAC1B,KAAK,CAAC,KAAK,CAAC,kBAAkB,cAAc,EAAE,CAAC,CAAA;AAEjD,eAAO,MAAM,oBAAoB,SAfxB,cAAc,4DACpB,CAAC,EAAE,CAAC,EAAE,8CAAqC,6EAiB3C,CAAA;AAEH,eAAO,MAAM,wBAAwB,SApB5B,cAAc,gEACpB,CAAC,EAAE,CAAC,EAAE,kDAAqC,iFAsB3C,CAAA;AAEH,eAAO,MAAM,iBAAiB,GAxB3B,CAAC,EAAE,CAAC,0HAwB2D,CAAA;AAClE,eAAO,MAAM,oBAAoB,GAzB9B,CAAC,EAAE,CAAC,6HAyBiE,CAAA;AAExE,eAAO,MAAM,gBAAgB,GA3B1B,CAAC,EAAE,CAAC,6HA2ByD,CAAA;AAChE,eAAO,MAAM,mBAAmB,GA5B7B,CAAC,EAAE,CAAC,gIA4B+D,CAAA;AACtE,eAAO,MAAM,kBAAkB,GA7B5B,CAAC,EAAE,CAAC,+HA6B6D,CAAA;AAEpE,eAAO,MAAM,0CAA0C,GACpD,CAAC,EACA,YAAY,MAAM,EAClB,MAAM,aAAa,GAAG,aAAa,EACnC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,MAE3C,CAAC,EAAE,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gCA4ClC,CAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* preserve JSDoc comments attached to the function signature */
|
|
3
3
|
import * as EMIDIAccess from '../EMIDIAccess.ts';
|
|
4
4
|
import type * as EMIDIPort from '../EMIDIPort.ts';
|
|
5
|
-
import * as Errors from '../
|
|
5
|
+
import * as Errors from '../EMIDIErrors.ts';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* If you want to ensure the type of returned port match the type of ID, use
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPortByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAIhE,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"getPortByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAIhE,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAuD3C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,oGAGnC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8EAMpC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,gFAMrC,CAAA;AAEF,MAAM,WAAW,WAAW,CAC1B,iBAAiB,SAAS,aAAa,EACvC,aAAa,SAAS,YAAY,EAClC,2BAA2B,EAC3B,iCAAiC,EACjC,gBAAgB,EAChB,sBAAsB,CACtB,SAAQ,WAAW,CAAC,gBAAgB,CAClC,SAAS,CAAC,SAAS,CAAC,iBAAiB,CAAC,EACtC,aAAa,EACb,2BAA2B,EAC3B,iCAAiC,EACjC,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,EAC3C,sBAAsB,CACvB;CAAG"}
|
|
@@ -6,15 +6,15 @@ import type * as EMIDIPort from '../EMIDIPort.ts';
|
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export declare const getPortByPortIdInContext: (id: EMIDIPort.BothId) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input" | "output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../
|
|
9
|
+
export declare const getPortByPortIdInContext: (id: EMIDIPort.BothId) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input" | "output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare const getInputByPortIdInContext: (id: EMIDIInput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input">, never, EMIDIAccess.EMIDIAccess, never, never, import("../
|
|
14
|
+
export declare const getInputByPortIdInContext: (id: EMIDIInput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input">, never, EMIDIAccess.EMIDIAccess, never, never, import("../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export declare const getOutputByPortIdInContext: (id: EMIDIOutput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../
|
|
19
|
+
export declare const getOutputByPortIdInContext: (id: EMIDIOutput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../EMIDIErrors.ts").PortNotFoundError, never>;
|
|
20
20
|
//# sourceMappingURL=getPortByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPortByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAGjD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,IAAI,SAAS,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"getPortByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAGjD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,IAAI,SAAS,CAAC,MAAM,2KACF,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GAAI,IAAI,UAAU,CAAC,EAAE,gKACC,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,WAAW,CAAC,EAAE,iKACA,CAAA"}
|
|
@@ -6,15 +6,15 @@ import type * as StreamMaker from '../StreamMaker.ts';
|
|
|
6
6
|
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
7
7
|
* `options.capture` property
|
|
8
8
|
*/
|
|
9
|
-
export declare const makePortStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIPort.BothId, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input" | "output", import("../
|
|
9
|
+
export declare const makePortStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIPort.BothId, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input" | "output", import("../EMIDIErrors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
10
10
|
/**
|
|
11
11
|
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
12
12
|
* `options.capture` property
|
|
13
13
|
*/
|
|
14
|
-
export declare const makeInputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIInput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input", import("../
|
|
14
|
+
export declare const makeInputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIInput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input", import("../EMIDIErrors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
15
15
|
/**
|
|
16
16
|
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
17
17
|
* `options.capture` property
|
|
18
18
|
*/
|
|
19
|
-
export declare const makeOutputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIOutput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "output", import("../
|
|
19
|
+
export declare const makeOutputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIOutput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "output", import("../EMIDIErrors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
20
20
|
//# sourceMappingURL=makePortStateChangesStreamByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makePortStateChangesStreamByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGrD;;;GAGG;AACH,eAAO,MAAM,2CAA2C,GACtD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,SAAS,CAAC,MAAM,EACpB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"makePortStateChangesStreamByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGrD;;;GAGG;AACH,eAAO,MAAM,2CAA2C,GACtD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,SAAS,CAAC,MAAM,EACpB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,8JAKxD,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,4CAA4C,GACvD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,UAAU,CAAC,EAAE,EACjB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,mJAKxD,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,6CAA6C,GACxD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,WAAW,CAAC,EAAE,EAClB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,oJAKxD,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import * as EMIDIAccess from '../../EMIDIAccess.ts';
|
|
3
3
|
import type * as EMIDIPort from '../../EMIDIPort.ts';
|
|
4
|
-
import * as Errors from '../../
|
|
5
|
-
import type * as Util from '../../
|
|
4
|
+
import * as Errors from '../../EMIDIErrors.ts';
|
|
5
|
+
import type * as Util from '../../Util.ts';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMutablePortPropertyByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAIvC,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAIvC,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAC9C,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AA0C1C;;;GAGG;AACH,eAAO,MAAM,mCAAmC,GAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK,EACxE,mBAAmB,IAAI,CAAC,iBAAiB,CACvC,WAAW,CAAC,mBAAmB,EAC/B,EAAE,EACF,EAAE,CACH,EACD,IAAI,SAAS,CAAC,MAAM;;OAWnB,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,uCAAuC,GAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK,EAC5E,mBAAmB,IAAI,CAAC,iBAAiB,CACvC,WAAW,CAAC,mBAAmB,EAC/B,EAAE,EACF,EAAE,CACH,EACD,IAAI,SAAS,CAAC,MAAM,8EAMnB,CAAA;AAGH,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,oCAAoC,aAEhD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,qCAAqC,aAEjD,CAAA"}
|
|
@@ -9,7 +9,7 @@ export declare const getPortDeviceStateByPortId: (id: EMIDIPort.BothId) => impor
|
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
export declare const getPortConnectionStateByPortId: (id: EMIDIPort.BothId) => import("effect/Effect").Effect<MIDIPortConnectionState, import("../../
|
|
12
|
+
export declare const getPortConnectionStateByPortId: (id: EMIDIPort.BothId) => import("effect/Effect").Effect<MIDIPortConnectionState, import("../../EMIDIErrors.ts").PortNotFoundError, EMIDIAccess.EMIDIAccess>;
|
|
13
13
|
export declare const getInputConnectionStateByPortId: () => never;
|
|
14
14
|
export declare const getInputDeviceStateByPortId: () => never;
|
|
15
15
|
export declare const getOutputConnectionStateByPortId: () => never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMutablePortPropertyByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAGpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,SAAS,CAAC,MAAM,wFACO,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GAAI,IAAI,SAAS,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAGpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,SAAS,CAAC,MAAM,wFACO,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GAAI,IAAI,SAAS,CAAC,MAAM,uIACO,CAAA;AAG1E,eAAO,MAAM,+BAA+B,aAE3C,CAAA;AAGD,eAAO,MAAM,2BAA2B,aAEvC,CAAA;AAGD,eAAO,MAAM,gCAAgC,aAE5C,CAAA;AAGD,eAAO,MAAM,4BAA4B,aAExC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchMutablePortPropertyByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"matchMutablePortPropertyByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAEnD,OAAO,KAAK,KAAK,MAAM,qCAAqC,CAAA;AA+B5D;;GAEG;AACH,eAAO,MAAM,yCAAyC,GAdlD,sBAAsB,4aAkBvB,CAAA;AAEH;;GAEG;AACH,eAAO,MAAM,0CAA0C,GAvBnD,sBAAsB,oUA2BvB,CAAA;AAEH;;GAEG;AACH,eAAO,MAAM,2CAA2C,GAhCpD,sBAAsB,sUAoCvB,CAAA;AAEH;;GAEG;AACH,eAAO,MAAM,qCAAqC,GAzC9C,sBAAsB,uaA4CzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,sCAAsC,GAjD/C,sBAAsB,+TAoDzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,uCAAuC,GAzDhD,sBAAsB,iUA4DzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "effect-web-midi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Effect WEB MIDI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/nikelborm/effect-garden/tree/main/packages/effect-web-midi",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@effect/language-service": "^0.
|
|
27
|
+
"@effect/language-service": "^0.63.0",
|
|
28
28
|
"@nikelborm/tsconfig": "1.0.0",
|
|
29
29
|
"ts-namespace-import": "nounder/ts-namespace-import",
|
|
30
30
|
"ts-patch": "^3.3.0",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"types": "./dist-types/src/*.d.ts",
|
|
60
60
|
"default": "./dist/src/*.js"
|
|
61
61
|
},
|
|
62
|
+
"./internal/*": null,
|
|
62
63
|
"./package.json": "./package.json"
|
|
63
64
|
},
|
|
64
65
|
"author": {
|
package/src/MIDIErrors.ts
CHANGED
package/src/Parsing.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export {
|
|
2
2
|
type ControlChange,
|
|
3
|
+
isControlChange,
|
|
4
|
+
isPitchBendChange,
|
|
3
5
|
type NotePress,
|
|
4
6
|
type NoteRelease,
|
|
5
7
|
type ParsedMIDIMessages,
|
|
@@ -9,4 +11,4 @@ export {
|
|
|
9
11
|
type UnknownReply,
|
|
10
12
|
withParsedDataField,
|
|
11
13
|
withTouchpadPositionUpdates,
|
|
12
|
-
} from './internal/
|
|
14
|
+
} from './internal/Parsing.ts'
|
package/src/Util.ts
CHANGED
|
@@ -21,12 +21,12 @@ import * as Unify from 'effect/Unify'
|
|
|
21
21
|
import * as EMIDIInput from './EMIDIInput.ts'
|
|
22
22
|
import * as EMIDIOutput from './EMIDIOutput.ts'
|
|
23
23
|
import type * as EMIDIPort from './EMIDIPort.ts'
|
|
24
|
-
import * as Errors from './
|
|
24
|
+
import * as Errors from './EMIDIErrors.ts'
|
|
25
25
|
import * as GetPort from './getPortByPortId/getPortByPortIdInContext.ts'
|
|
26
26
|
import { isOutputConnectionOpenByPort } from './mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts'
|
|
27
27
|
import { getOutputDeviceStateByPort } from './mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts'
|
|
28
28
|
import * as StreamMaker from './StreamMaker.ts'
|
|
29
|
-
import * as Util from './
|
|
29
|
+
import * as Util from './Util.ts'
|
|
30
30
|
|
|
31
31
|
// TODO: add stream of messages sent from this device to target midi device
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Brand from 'effect/Brand'
|
|
2
2
|
import * as EMIDIPort from './EMIDIPort.ts'
|
|
3
3
|
import * as StreamMaker from './StreamMaker.ts'
|
|
4
|
-
import * as Util from './
|
|
4
|
+
import * as Util from './Util.ts'
|
|
5
5
|
|
|
6
6
|
// TODO: implement scoping of midi access that will clean up all message queues
|
|
7
7
|
// and streams, and remove listeners
|
|
@@ -5,8 +5,8 @@ import * as Brand from 'effect/Brand'
|
|
|
5
5
|
import * as Effect from 'effect/Effect'
|
|
6
6
|
import * as EFunction from 'effect/Function'
|
|
7
7
|
import * as EMIDIPort from './EMIDIPort.ts'
|
|
8
|
-
import * as Errors from './
|
|
9
|
-
import * as Util from './
|
|
8
|
+
import * as Errors from './EMIDIErrors.ts'
|
|
9
|
+
import * as Util from './Util.ts'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Thin wrapper around {@linkcode MIDIOutput} instance. Will be seen in all
|
|
@@ -6,7 +6,7 @@ import * as Equal from 'effect/Equal'
|
|
|
6
6
|
import * as Hash from 'effect/Hash'
|
|
7
7
|
import * as Inspectable from 'effect/Inspectable'
|
|
8
8
|
import * as Pipeable from 'effect/Pipeable'
|
|
9
|
-
import type * as Util from './
|
|
9
|
+
import type * as Util from './Util.ts'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Unique symbol used for distinguishing {@linkcode EMIDIPort} instances
|
|
@@ -3,7 +3,7 @@ import type * as Scope from 'effect/Scope'
|
|
|
3
3
|
import * as EMIDIInput from '../../EMIDIInput.ts'
|
|
4
4
|
import * as EMIDIOutput from '../../EMIDIOutput.ts'
|
|
5
5
|
import * as EMIDIPort from '../../EMIDIPort.ts'
|
|
6
|
-
import type { UnavailablePortError } from '../../
|
|
6
|
+
import type { UnavailablePortError } from '../../EMIDIErrors.ts'
|
|
7
7
|
import * as C from '../closePortConnection/closePortConnectionByPort.ts'
|
|
8
8
|
import type { TouchPort } from '../makeMIDIPortMethodCallerFactory.ts'
|
|
9
9
|
import * as O from '../openPortConnection/openPortConnectionByPort.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as EMIDIInput from '../../EMIDIInput.ts'
|
|
2
2
|
import * as EMIDIOutput from '../../EMIDIOutput.ts'
|
|
3
3
|
import * as EMIDIPort from '../../EMIDIPort.ts'
|
|
4
|
-
import { remapErrorByName, UnavailablePortError } from '../../
|
|
4
|
+
import { remapErrorByName, UnavailablePortError } from '../../EMIDIErrors.ts'
|
|
5
5
|
import { makeMIDIPortMethodCallerFactory } from '../makeMIDIPortMethodCallerFactory.ts'
|
|
6
6
|
|
|
7
7
|
/**
|