fractal-midi 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +200 -0
- package/NOTICE +28 -0
- package/README.md +147 -0
- package/dist/am4/applicability.d.ts +61 -0
- package/dist/am4/applicability.d.ts.map +1 -0
- package/dist/am4/applicability.js +285 -0
- package/dist/am4/blockTypes.d.ts +43 -0
- package/dist/am4/blockTypes.d.ts.map +1 -0
- package/dist/am4/blockTypes.js +48 -0
- package/dist/am4/cacheEnums.d.ts +46 -0
- package/dist/am4/cacheEnums.d.ts.map +1 -0
- package/dist/am4/cacheEnums.js +734 -0
- package/dist/am4/cacheParams.d.ts +3533 -0
- package/dist/am4/cacheParams.d.ts.map +1 -0
- package/dist/am4/cacheParams.js +1996 -0
- package/dist/am4/editorControlLabels.d.ts +45 -0
- package/dist/am4/editorControlLabels.d.ts.map +1 -0
- package/dist/am4/editorControlLabels.js +15894 -0
- package/dist/am4/index.d.ts +28 -0
- package/dist/am4/index.d.ts.map +1 -0
- package/dist/am4/index.js +31 -0
- package/dist/am4/ir/preset.d.ts +24 -0
- package/dist/am4/ir/preset.d.ts.map +1 -0
- package/dist/am4/ir/preset.js +12 -0
- package/dist/am4/ir/transpile.d.ts +9 -0
- package/dist/am4/ir/transpile.d.ts.map +1 -0
- package/dist/am4/ir/transpile.js +19 -0
- package/dist/am4/locations.d.ts +32 -0
- package/dist/am4/locations.d.ts.map +1 -0
- package/dist/am4/locations.js +58 -0
- package/dist/am4/paramNames.d.ts +55 -0
- package/dist/am4/paramNames.d.ts.map +1 -0
- package/dist/am4/paramNames.js +863 -0
- package/dist/am4/paramNamesGenerated.d.ts +41 -0
- package/dist/am4/paramNamesGenerated.d.ts.map +1 -0
- package/dist/am4/paramNamesGenerated.js +183 -0
- package/dist/am4/parameterBridge.d.ts +46 -0
- package/dist/am4/parameterBridge.d.ts.map +1 -0
- package/dist/am4/parameterBridge.js +300 -0
- package/dist/am4/params.d.ts +9577 -0
- package/dist/am4/params.d.ts.map +1 -0
- package/dist/am4/params.js +4537 -0
- package/dist/am4/setParam.d.ts +414 -0
- package/dist/am4/setParam.d.ts.map +1 -0
- package/dist/am4/setParam.js +819 -0
- package/dist/am4/shared/paramHelpers.d.ts +55 -0
- package/dist/am4/shared/paramHelpers.d.ts.map +1 -0
- package/dist/am4/shared/paramHelpers.js +146 -0
- package/dist/am4/symbolicIds.d.ts +11 -0
- package/dist/am4/symbolicIds.d.ts.map +1 -0
- package/dist/am4/symbolicIds.js +587 -0
- package/dist/am4/typeApplicability.d.ts +39 -0
- package/dist/am4/typeApplicability.d.ts.map +1 -0
- package/dist/am4/typeApplicability.js +466 -0
- package/dist/am4/variantResolverTables.d.ts +51 -0
- package/dist/am4/variantResolverTables.d.ts.map +1 -0
- package/dist/am4/variantResolverTables.js +3128 -0
- package/dist/axe-fx-ii/blockTypes.d.ts +45 -0
- package/dist/axe-fx-ii/blockTypes.d.ts.map +1 -0
- package/dist/axe-fx-ii/blockTypes.js +116 -0
- package/dist/axe-fx-ii/index.d.ts +5 -0
- package/dist/axe-fx-ii/index.d.ts.map +1 -0
- package/dist/axe-fx-ii/index.js +18 -0
- package/dist/axe-fx-ii/paramAliases.d.ts +54 -0
- package/dist/axe-fx-ii/paramAliases.d.ts.map +1 -0
- package/dist/axe-fx-ii/paramAliases.js +146 -0
- package/dist/axe-fx-ii/params.d.ts +11502 -0
- package/dist/axe-fx-ii/params.d.ts.map +1 -0
- package/dist/axe-fx-ii/params.js +2847 -0
- package/dist/axe-fx-ii/setParam.d.ts +560 -0
- package/dist/axe-fx-ii/setParam.d.ts.map +1 -0
- package/dist/axe-fx-ii/setParam.js +888 -0
- package/dist/axe-fx-iii/blockTypes.d.ts +87 -0
- package/dist/axe-fx-iii/blockTypes.d.ts.map +1 -0
- package/dist/axe-fx-iii/blockTypes.js +156 -0
- package/dist/axe-fx-iii/enumOverlay.d.ts +73 -0
- package/dist/axe-fx-iii/enumOverlay.d.ts.map +1 -0
- package/dist/axe-fx-iii/enumOverlay.js +236 -0
- package/dist/axe-fx-iii/index.d.ts +9 -0
- package/dist/axe-fx-iii/index.d.ts.map +1 -0
- package/dist/axe-fx-iii/index.js +20 -0
- package/dist/axe-fx-iii/params.d.ts +179 -0
- package/dist/axe-fx-iii/params.d.ts.map +1 -0
- package/dist/axe-fx-iii/params.js +6913 -0
- package/dist/axe-fx-iii/setParam.d.ts +460 -0
- package/dist/axe-fx-iii/setParam.d.ts.map +1 -0
- package/dist/axe-fx-iii/setParam.js +910 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/shared/checksum.d.ts +10 -0
- package/dist/shared/checksum.d.ts.map +1 -0
- package/dist/shared/checksum.js +14 -0
- package/dist/shared/device.d.ts +195 -0
- package/dist/shared/device.d.ts.map +1 -0
- package/dist/shared/device.js +27 -0
- package/dist/shared/index.d.ts +8 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +11 -0
- package/dist/shared/lineage/amp-lineage.json +8313 -0
- package/dist/shared/lineage/axefx2-amp-lineage.json +5871 -0
- package/dist/shared/lineage/axefx2-delay-lineage.json +226 -0
- package/dist/shared/lineage/axefx2-drive-lineage.json +575 -0
- package/dist/shared/lineage/axefx2-reverb-lineage.json +467 -0
- package/dist/shared/lineage/cab-lineage.json +10777 -0
- package/dist/shared/lineage/chorus-lineage.json +173 -0
- package/dist/shared/lineage/compressor-lineage.json +338 -0
- package/dist/shared/lineage/delay-lineage.json +313 -0
- package/dist/shared/lineage/drive-lineage.json +1844 -0
- package/dist/shared/lineage/flanger-lineage.json +313 -0
- package/dist/shared/lineage/phaser-lineage.json +208 -0
- package/dist/shared/lineage/reverb-lineage.json +793 -0
- package/dist/shared/lineage/wah-lineage.json +117 -0
- package/dist/shared/lineageLookup.d.ts +69 -0
- package/dist/shared/lineageLookup.d.ts.map +1 -0
- package/dist/shared/lineageLookup.js +196 -0
- package/dist/shared/packValue.d.ts +40 -0
- package/dist/shared/packValue.d.ts.map +1 -0
- package/dist/shared/packValue.js +105 -0
- package/dist/shared/types.d.ts +23 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +9 -0
- package/package.json +75 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept support,
|
|
167
|
+
warranty, indemnity, or other liability obligations and/or rights
|
|
168
|
+
consistent with this License. However, in accepting such obligations,
|
|
169
|
+
You may act only on Your own behalf and on Your sole responsibility,
|
|
170
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
171
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
172
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
173
|
+
by reason of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
178
|
+
|
|
179
|
+
To apply the Apache License to your work, attach the following
|
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
181
|
+
replaced with your own identifying information. (Don't include
|
|
182
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
183
|
+
comment syntax for the file format. We also recommend that a
|
|
184
|
+
file or class name and description of purpose be included on the
|
|
185
|
+
same "printed page" as the copyright notice for easier
|
|
186
|
+
identification within third-party archives.
|
|
187
|
+
|
|
188
|
+
Copyright 2026 Stephen Staker
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
fractal-midi
|
|
2
|
+
Copyright 2026 Stephen Staker
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0.
|
|
5
|
+
See the LICENSE file for the full license text.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
TRADEMARKS
|
|
10
|
+
|
|
11
|
+
This project is an unaffiliated community library. "Fractal Audio",
|
|
12
|
+
"AM4", "Axe-Fx", "Axe-Fx II", "Axe-Fx III", "FM3", "FM9", and
|
|
13
|
+
related product names are trademarks of Fractal Audio Systems, Inc.
|
|
14
|
+
|
|
15
|
+
This project neither claims endorsement from, nor affiliation with,
|
|
16
|
+
Fractal Audio Systems. It is a software library that builds and
|
|
17
|
+
parses MIDI / SysEx wire bytes for Fractal Audio hardware the
|
|
18
|
+
consuming application's user already owns. Decode work is based on
|
|
19
|
+
publicly-documented protocol information, including Fractal Audio's
|
|
20
|
+
own "MIDI for Third-Party Devices" specifications, plus community
|
|
21
|
+
reverse-engineering of editor binaries (JUCE BinaryData extraction,
|
|
22
|
+
Ghidra symbol mining).
|
|
23
|
+
|
|
24
|
+
The package name `fractal-midi` uses the "Fractal" trademark
|
|
25
|
+
descriptively (nominative fair use) to identify the hardware family
|
|
26
|
+
this library targets. The library does not embed Fractal Audio
|
|
27
|
+
firmware, factory presets, branding assets, or any other Fractal-
|
|
28
|
+
copyrighted material.
|
package/README.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# fractal-midi
|
|
2
|
+
|
|
3
|
+
Pure-TypeScript codec and parameter dictionaries for Fractal Audio
|
|
4
|
+
guitar processors. Build and parse the SysEx wire bytes a Fractal
|
|
5
|
+
device speaks, without pulling in a MIDI transport library.
|
|
6
|
+
|
|
7
|
+
> **Status — pre-release.** The first published version (`0.1.0`)
|
|
8
|
+
> covers AM4 and Axe-Fx II at hardware-verified parity, plus the
|
|
9
|
+
> Axe-Fx III at codec + calibration ✅ via public-capture
|
|
10
|
+
> verification and JUCE-BinaryData mining (hardware-verification
|
|
11
|
+
> stays community-driven — see the III notes in the coverage table).
|
|
12
|
+
> FM3 / FM9 ship next via mechanical ports of the III pipeline.
|
|
13
|
+
> Don't depend on this package from production code yet — APIs may
|
|
14
|
+
> shift before `0.1.0`.
|
|
15
|
+
|
|
16
|
+
> **Unaffiliated community library.** "Fractal Audio", "AM4",
|
|
17
|
+
> "Axe-Fx", "Axe-Fx II", "Axe-Fx III", "FM3", and "FM9" are
|
|
18
|
+
> trademarks of Fractal Audio Systems, Inc. This project neither
|
|
19
|
+
> claims endorsement from, nor affiliation with, Fractal Audio
|
|
20
|
+
> Systems. The package name uses the "Fractal" trademark
|
|
21
|
+
> descriptively (nominative fair use) to identify the hardware
|
|
22
|
+
> family this library targets. See [`NOTICE`](./NOTICE) for the
|
|
23
|
+
> full trademark statement.
|
|
24
|
+
|
|
25
|
+
## What this is
|
|
26
|
+
|
|
27
|
+
- **JSON-shaped parameter dictionaries** — every block-and-param the
|
|
28
|
+
device understands, with display unit, value range, and the
|
|
29
|
+
paramId that goes on the wire. Reverse-engineered against real
|
|
30
|
+
hardware and Fractal's own published 3rd-party MIDI specs.
|
|
31
|
+
- **Pure-TypeScript codec** — display value in (`gain: 7.5`,
|
|
32
|
+
`'Plexi 100W High'`), SysEx bytes out (`Uint8Array`). No MIDI
|
|
33
|
+
library required.
|
|
34
|
+
- **Parsers / validators** — given captured bytes, parse back to
|
|
35
|
+
display values for round-trip equality testing.
|
|
36
|
+
- **Reference data** — Fractal's amp / cab / drive lineage tables
|
|
37
|
+
(the "the JC-120 model is based on this real-world amp" data),
|
|
38
|
+
factory bank metadata, applicability tables.
|
|
39
|
+
|
|
40
|
+
## What this is not
|
|
41
|
+
|
|
42
|
+
- **Not a MIDI library.** Routing bytes to and from your hardware
|
|
43
|
+
is your responsibility. Use `node-midi`, `webmidi`,
|
|
44
|
+
`easymidi`, JUCE, RtMidi, CoreMIDI, ALSA — whatever fits.
|
|
45
|
+
- **Not a preset editor.** This package gives you the wire-level
|
|
46
|
+
primitives a preset editor would be built on top of.
|
|
47
|
+
- **Not affiliated with Fractal Audio Systems.** See the trademark
|
|
48
|
+
notice above and [`NOTICE`](./NOTICE).
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm install fractal-midi
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Node >= 18. ESM-only.
|
|
57
|
+
|
|
58
|
+
## Usage
|
|
59
|
+
|
|
60
|
+
> The shape below is the target API. Until `0.1.0` ships, the
|
|
61
|
+
> module surface may differ.
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { buildSetParam, parseSetParam } from 'fractal-midi/am4/codec';
|
|
65
|
+
import { params, blocks } from 'fractal-midi/am4';
|
|
66
|
+
|
|
67
|
+
// Build the SysEx bytes for "set amp gain to 7.5"
|
|
68
|
+
const bytes = buildSetParam({ block: 'amp', param: 'gain', value: 7.5 });
|
|
69
|
+
// → Uint8Array starting with 0xF0 ... 0xF7
|
|
70
|
+
|
|
71
|
+
// Round-trip: parse captured bytes back to display values
|
|
72
|
+
const display = parseSetParam(bytes);
|
|
73
|
+
// → { block: 'amp', param: 'gain', value: 7.5 }
|
|
74
|
+
|
|
75
|
+
// Inspect the dictionary directly
|
|
76
|
+
console.log(params.amp.gain);
|
|
77
|
+
// → { unit: 'knob-0-10', range: [0, 10], pidHigh: ..., pidLow: ..., ... }
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The Axe-Fx II and Axe-Fx III sub-paths follow the same shape:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import { buildSetParam } from 'fractal-midi/axe-fx-ii/codec';
|
|
84
|
+
import { params } from 'fractal-midi/axe-fx-iii';
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Per-device coverage
|
|
88
|
+
|
|
89
|
+
| Device | Catalog | Codec | Calibration | Hardware-verified |
|
|
90
|
+
|---|---|---|---|---|
|
|
91
|
+
| AM4 | ✅ | ✅ | ✅ | ✅ |
|
|
92
|
+
| Axe-Fx II | ✅ | ✅ | ✅ | ✅ |
|
|
93
|
+
| Axe-Fx III | ✅ (2216 params) | ✅ ([see note](#axe-fx-iii-codec-note)) | ✅ ([see note](#axe-fx-iii-calibration-note)) | 🟡 community beta ([see note](#axe-fx-iii-hardware-note)) |
|
|
94
|
+
| FM3 | ❌ | ❌ | ❌ | ❌ |
|
|
95
|
+
| FM9 | ❌ | ❌ | ❌ | ❌ |
|
|
96
|
+
|
|
97
|
+
### Coverage notes
|
|
98
|
+
|
|
99
|
+
#### Axe-Fx III codec note
|
|
100
|
+
|
|
101
|
+
The III's SET_PARAMETER wire envelope (fn=0x01, sub-action `09 00`,
|
|
102
|
+
23-byte frame) is byte-verified against 10 public community captures
|
|
103
|
+
spanning two effect blocks and two sub-action codes — see the
|
|
104
|
+
`axe-fx-iii/setparam` test goldens (302 cases: 36 envelope vectors +
|
|
105
|
+
264 round-trip `build → parse → equality` cases + 2
|
|
106
|
+
`parseStateBroadcast` assertions). The GET-response shape is
|
|
107
|
+
hypothesis-only (no public capture exists); the parser handles both
|
|
108
|
+
the `09 00` / `52 00` set-echo shape and the async `04 01`
|
|
109
|
+
STATE_BROADCAST shape via `parseSetGetParameterResponse` /
|
|
110
|
+
`parseStateBroadcast`.
|
|
111
|
+
|
|
112
|
+
#### Axe-Fx III calibration note
|
|
113
|
+
|
|
114
|
+
III calibration = 100% of catalog entries carry a non-`'unverified'`
|
|
115
|
+
unit tag (16 string-typed `_NAME` / `_LABEL` / `_MSG` entries are
|
|
116
|
+
exempted by the calibration gate — they have no `'string'` unit in
|
|
117
|
+
the `Param` type). Enum vocabularies are resolved at runtime via
|
|
118
|
+
`resolveEnumValues(name)` from `enumOverlay.ts`, which carries a
|
|
119
|
+
`provenance` field on every entry — `'am4-shared'` (AM4-verified,
|
|
120
|
+
shared with III), `'fractal-convention'` (universal Fractal-family
|
|
121
|
+
convention like OFF/ON / channel pickers), or `'iii-spec'` (hand-
|
|
122
|
+
curated for III-only params). Coverage of enum vocabularies and
|
|
123
|
+
numeric display ranges is partial — `resolveEnumValues` returns
|
|
124
|
+
`undefined` for params not yet mapped, and many XML-derived numeric
|
|
125
|
+
entries carry a unit tag but no `displayMin` / `displayMax`. Treat
|
|
126
|
+
the catalog as the wire-level truth; treat the calibration overlay
|
|
127
|
+
as display guidance the user can correct via GitHub issue.
|
|
128
|
+
|
|
129
|
+
#### Axe-Fx III hardware note
|
|
130
|
+
|
|
131
|
+
The 🟡 hardware-verified status means the maintainer does not own an
|
|
132
|
+
Axe-Fx III for round-trip confirmation. Community users running the
|
|
133
|
+
device are invited to file GitHub issues against any wire or label
|
|
134
|
+
that disagrees with their hardware.
|
|
135
|
+
|
|
136
|
+
#### FM3 / FM9
|
|
137
|
+
|
|
138
|
+
FM3 and FM9 share the III protocol family (model bytes `0x11` /
|
|
139
|
+
`0x12` vs III's `0x10`, identical envelope per Fractal's v1.4 MIDI
|
|
140
|
+
spec). Catalog + codec + calibration for those devices are planned as
|
|
141
|
+
mechanical ports of the III pipeline once the FM3-Edit / FM9-Edit
|
|
142
|
+
JUCE binaries are mined for parameterName + dispatcher tables.
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
[Apache License 2.0](./LICENSE). See [`NOTICE`](./NOTICE) for the
|
|
147
|
+
trademark statement.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Applicability, type ApplicabilityGate } from './typeApplicability.js';
|
|
2
|
+
export declare function getApplicability(blockDotName: string): Applicability | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* One-line summary of a parameter's applicability for the agent — appears
|
|
5
|
+
* in `list_params` row decoration. Returns `undefined` for the common
|
|
6
|
+
* "no applicability data" case (out-of-band registers, params not yet
|
|
7
|
+
* decoded by the type-applicability extractor) — caller should treat as
|
|
8
|
+
* always-on. Empty string for confirmed-always-on with no special-case
|
|
9
|
+
* gates (no decoration needed).
|
|
10
|
+
*/
|
|
11
|
+
export declare function describeApplicability(blockDotName: string): string | undefined;
|
|
12
|
+
/** State the agent passes when checking applicability — current active type per block. */
|
|
13
|
+
export interface ActiveTypeContext {
|
|
14
|
+
/** Block name (e.g. `amp`, `delay`) → wire enum index of its currently active type. */
|
|
15
|
+
readonly currentTypes?: Readonly<Record<string, number>>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Predicate: is this parameter applicable on the active type?
|
|
19
|
+
*
|
|
20
|
+
* Returns:
|
|
21
|
+
* - { applicable: true } when always-on, OR when at least one gate
|
|
22
|
+
* matches the current type.
|
|
23
|
+
* - { applicable: false, reason } when the parameter is strictly
|
|
24
|
+
* type-gated and none of its gates match.
|
|
25
|
+
* - { applicable: 'unknown' } when we don't have applicability data
|
|
26
|
+
* for this key (caller should treat as applicable).
|
|
27
|
+
*/
|
|
28
|
+
export type ApplicabilityCheck = {
|
|
29
|
+
applicable: true;
|
|
30
|
+
} | {
|
|
31
|
+
applicable: false;
|
|
32
|
+
gates: readonly ApplicabilityGate[];
|
|
33
|
+
} | {
|
|
34
|
+
applicable: 'unknown';
|
|
35
|
+
};
|
|
36
|
+
export declare function checkApplicability(blockDotName: string, ctx: ActiveTypeContext): ApplicabilityCheck;
|
|
37
|
+
/**
|
|
38
|
+
* find_compatible_types: which `block.type` enum values expose every
|
|
39
|
+
* param in `paramNames`? Used by the unified-surface MCP tool of the
|
|
40
|
+
* same name so the agent can pick a type compatible with the knobs
|
|
41
|
+
* it plans to write, BEFORE apply_preset → no "dropped X param"
|
|
42
|
+
* warning round-trip.
|
|
43
|
+
*
|
|
44
|
+
* Algorithm: start with the full type enum, intersect down per param.
|
|
45
|
+
* Params with no applicability data, or only sub-mode gates (e.g.
|
|
46
|
+
* CABINET_MODE), can't narrow on the primary-type axis — skipped.
|
|
47
|
+
* Params with primary-type gates narrow the accepted-types set to the
|
|
48
|
+
* gate value list.
|
|
49
|
+
*
|
|
50
|
+
* Returns `applicability_known: false` when NONE of the listed params
|
|
51
|
+
* have primary-type gates — caller knows the result is the unfiltered
|
|
52
|
+
* full list and should treat it as "try and see" rather than "these
|
|
53
|
+
* are the only valid choices."
|
|
54
|
+
*/
|
|
55
|
+
export declare function findCompatibleTypes(block: string, paramNames: readonly string[]): {
|
|
56
|
+
compatible_types: readonly string[];
|
|
57
|
+
total_types: number;
|
|
58
|
+
applicability_known: boolean;
|
|
59
|
+
note?: string;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=applicability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicability.d.ts","sourceRoot":"","sources":["../../src/am4/applicability.ts"],"names":[],"mappings":"AAwBA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,wBAAwB,CAAC;AA6BhC,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEhF;AAWD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAe9E;AAED,0FAA0F;AAC1F,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC1D;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE,GACpB;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAAE,GAC1D;IAAE,UAAU,EAAE,SAAS,CAAA;CAAE,CAAC;AAE9B,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,iBAAiB,GACrB,kBAAkB,CA2CpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B;IACD,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAkEA"}
|