diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/LICENSE b/sdk/analog-rytm-mkii/modules/midi-feedback/LICENSE new file mode 100644 index 000000000..f288702d2 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/README.md b/sdk/analog-rytm-mkii/modules/midi-feedback/README.md new file mode 100644 index 000000000..3d5e49602 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/README.md @@ -0,0 +1,131 @@ +# MIDI Feedback + +Original Analog Rytm MKII module by @claptom-music, 0.1.0-experimental. + +**Development only. Basic emulator output passed; qualification is incomplete.** +This is not a released module or a firmware ready for hardware installation. + +## Overview + +Send the underlying settings of seven parameters on each of the twelve drum +tracks to a controller with pickup, such as the Faderfox PC12. All 84 assignments +are available; choose which to map to the PC12's 72 pots. A controller setup +does not have to use every assignment. + +Feedback follows parameter edits, kit recalls and channel changes after a value +has stayed unchanged for about half a second. This avoids sending intermediate +pickup targets back during a knob sweep. It also +refreshes all assignments automatically about every two seconds while ON, +so reconnecting the controller or changing its setup needs no menu visit. +SEND FEEDBACK is an optional refresh of settled values. It does not stream the moving results of parameter locks, +LFOs, scenes or performances. These continue to affect the sound as on stock. + +## Controls + +Press GLOBAL, scroll past SYSTEM to the module's rows, and press YES: + +| Row | Action | Default | +| --- | --- | --- | +| MIDI FEEDBACK | Toggle feedback | OFF, stored per project | +| SEND FEEDBACK | Optional refresh of settled values | Momentary | + +No keys or encoder turns are consumed. The module subscribes to `ev_settings`, +`ev_tick` and `ev_project`; it patches no stock instructions. Resource claims +are `settings:MIDI FEEDBACK` and `settings:SEND FEEDBACK`. The planned base's +USB link, loader and send bus remain base-owned. + +## MIDI message map + +| Parameter | CC | Value | +| --- | --- | --- | +| Track LEVEL knob, distinct from AMP Volume | 95 | 0–127 | +| Filter Frequency | 74 | 0–127 | +| Filter Resonance | 75 | 0–127 | +| Amp Attack | 78 | 0–127 | +| Amp Decay | 80 | 0–127 | +| Delay Send | 82 | 0–127 | +| Reverb Send | 83 | 0–127 | + +The proposed output is `Bn cc value`, with n the track's configured MIDI +channel minus one. A disabled track channel emits nothing. Use distinct track +channels to distinguish all twelve tracks. No private channel mapping is added. +Seven-bit feedback intentionally follows the controller's coarse resolution. + +This module consumes or remaps **no incoming messages**. All CCs, NRPN selectors +and data entry, notes (including velocity-zero note-off), pitch bend, pressure, +program changes, system-common messages, clock, start, continue, stop, active +sensing and SysEx retain stock handling. This does not mean they are echoed to +MIDI OUT: the module creates no THRU path. It emits no notes, transport, NRPN, +bank selection or SysEx. **No SysEx ID is used or claimed.** + +Feedback targets DIN MIDI OUT only. PARAM OUTPUT must be CC, ENCODER DEST must +allow parameter output, and OUTPUT TO must include MIDI. USB-only output +suppresses feedback; selecting MIDI+USB does not make this module send a USB +copy. Stock panel output remains stock and may send the same value separately. +None of these seven CCs is CC64–67; their stock Rytm parameter meanings remain. + +## Usage + +1. In MIDI CONFIG, set distinct track channels, PARAM OUTPUT to CC, ENCODER DEST to INT+EXT, and OUTPUT TO to MIDI or MIDI+USB. +2. Map PC12 pots to the listed CCs and track channels, enable snap mode, and route feedback into the PC12 without MIDI THRU back to Rytm. +3. Press GLOBAL, select MIDI FEEDBACK, and press YES for ON. Feedback then refreshes automatically; SEND FEEDBACK is optional. + +Choose six of the seven assignments per track or use more than one PC12 setup. Sending a PC12 snapshot changes the instrument; it is not a request for its values. + +## Output bounds and lifecycle + +The scheduler considers 84 assignments and sends at most four CC messages per +UI tick, about 80 messages per second at the documented 20 Hz. This is a work +limit, not a musical clock. A complete unchanged 84-message refresh takes at +least 21 ticks, about 1.05 seconds; busy output can extend it. Fresh edits can +be delayed behind other pending assignments, so this is controller pickup +feedback rather than an automation stream with a timing guarantee. A full +refresh is requested about every two seconds while enabled and allowed by stock +output settings. Repeated requests preserve the +round-robin cursor, so later tracks are not starved by a busy output. +Each changing assignment is withheld until the value and channel stay unchanged +for 750 stock audio blocks (0.5 seconds). A minimal render-out hook counts the +stock 32-frame blocks at 48 kHz; UI callback frequency cannot shorten the delay. +The two-second refresh also uses this counter. Refresh requests cannot bypass that settling period; +other stable assignments continue to send. The module observes value changes +and does not distinguish a controller edit from a local edit. + +One slot per assignment holds the latest value. Updates replace stale pending +values and increment the coalesced counter. When the sender cannot accept a +message, flushing stops, increments the deferred counter and retries the newest +value next tick. Nothing waits for queue space. Reset discards pending values; +turning feedback on again requests a fresh snapshot. No incoming message is +echoed directly, and an unchanged value received back does not create another +feedback event. External THRU loops still must be disabled. + +## Compatibility and limitations + +- OS 1.74 and core-ar2 0.7; OS 1.72 is unsupported. +- No dependency on another catalogue module. +- Basic emulator output passed for all 84 assignments and a Track Level edit. +- DIN capacity checks, Track Level access, recall/persistence behavior and + stock-flow comparisons require emulator probes before enabling output. +- Physical DIN timing, CPU load, PC12 pickup and Windows/WSL MIDI routing are + not qualified. Emulator results do not establish hardware behavior. + +## Tests and measurements + +See TESTING.md. Never commit firmware, snapshots, card images or built OS files. + +## Authorship and licences + +GPL-3.0-or-later; see LICENSE. Elekloader's GPL-2.0-or-later core by irpina and +Iced-Cream provides the shared hooks and storage. Its SDK examples document the +menu callback ABI; its newer core-ar2 MIDI source identifies stock output and +configuration routines. No firmware code or tables are included. + +Message assignments: [Elektron manual, Appendix C](https://www.elektron.se/wp-content/uploads/2025/01/Analog-Rytm-MKII-User-Manual_ENG_OS1.72_250130.pdf). +Pickup behavior: [Faderfox PC12 manual](https://www.faderfox.de/PDF/PC12%20Manual%20V04.pdf). + +## Screens and audio + +![Enable automatic feedback](media/feedback-on.png) + +![Optional refresh](media/send-feedback.png) + +These are firmware-rendered OS 1.74 emulator captures from the named private build in media/capture.json. They show the menus, not hardware or audio qualification. No audio demo is supplied for this MIDI feedback module. diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/TESTING.md b/sdk/analog-rytm-mkii/modules/midi-feedback/TESTING.md new file mode 100644 index 000000000..c6c779742 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/TESTING.md @@ -0,0 +1,363 @@ +# MIDI Feedback testing + +Development record, 2026-11-01. Not hardware-qualified. Do not infer release +readiness from compilation or from a read-only emulator probe. + +## Environment + +- Windows host; Ubuntu under WSL, commands executed by the developer because + this agent's shell receives Wsl/E_ACCESSDENIED. +- Developer-built analog-emu/rytm-emu, local source checkout. +- Analog Rytm MKII stock OS 1.74, SysEx SHA-256 + `cb0f99d620edde994fb860c0e79cc2464e427d06882828cfdfb00fc53700e123`. +- Modwerk's imported core-ar2 0.7, compiled locally with m68k-linux-gnu tools. + This is a development toolchain, not the pinned release compiler. +- Firmware, card, snapshots, build receipts and symbol maps stay in the private + workspace outside this repository. See the hardware report below for MF02. + +## Hardware report, 2026-11-06 + +The developer reports that MF02 boots on an Analog Rytm MKII previously running +stock 1.74, reaches the pattern screen, and responds to buttons and knobs. +SEND FEEDBACK displays, but the selectable row immediately above it is blank. +Feedback operation has not yet been tested on hardware. + +Inspection of the pinned compiler's emitted code shows mf_label_text returning +the text pointer in d0 while labels.s reads a0. The development compiler's ABI +differs. The fix uses an integer enabled result in d0 and selects static label +strings in assembly, avoiding pointer-return ABI differences. This correction +was rebuilt twice from commit d3c2aa967c56 with identical outputs. The private +MF03 image SHA-256 is e9a1ee45d0335177c78f98f962ab03a012ddabd359cf676842942db44471813e. +Exact-image emulator output passed (673 CCs, 84 assignments, six automatic +refreshes), and all nine lifecycle checks passed. Exact MF03 LCD captures were +visually inspected: both MIDI FEEDBACK: OFF and MIDI FEEDBACK: ON display. +MF03 hardware results reported by the developer: the toggle label displays; +feedback was enabled; on Track 1/channel 1, changing the Rytm's LEVEL to 96 +updated the USB-powered PC12's CC95 pickup target automatically without SEND. +The pot held the Rytm at 96 until crossing pickup, then followed smoothly. +The developer reports smooth movement for a further approximately 15 seconds +through repeated automatic refreshes, without jumps or renewed pickup blocking. +Routing was two-way DIN between PC12 port 1 and the Rytm, with temporary PC12 +USB/DIN forwarding disabled. The developer subsequently reports automatic +target refresh and smooth pickup passing on Track 1 for filter frequency CC74, +filter resonance CC75, amp attack CC78, amp decay CC80, delay send CC82 and +reverb send CC83. Together with Track LEVEL CC95, all seven parameters have +reported Track 1 hardware coverage. Further developer-reported MF03 results: + +- Track 12/channel 12 CC95 refresh and pickup passed independently; Track 1's + level stayed unchanged. +- Opening another project initially stopped pickup; enabling MIDI FEEDBACK in + that project restored it, consistent with the per-project OFF default. +- Saving a spare kit, editing Track 1 LEVEL and filter frequency, and reloading + with NO + PLAY MODE restored both PC12 targets automatically. +- After saving the test project with feedback ON and power cycling, ON remained + displayed and automatic pickup worked without SEND FEEDBACK. +- With feedback switched OFF, the developer reports target updates stopped. + +These are developer observations, not a captured hardware MIDI byte trace. +Subsequent busy-playback testing FAILED: the developer reports filter frequency +and resonance pickup stopping on tracks without known modulation; Track LEVEL +was unaffected. A freeze occurred while changing tracks (the developer corrected +an initial association with stopping playback). Power cycling with both DIN +cables disconnected restored normal startup. With feedback OFF and DIN still +disconnected, repeated track switching worked normally. The freeze's cause is +unresolved; MF03 must not be treated as hardware-qualified or release-ready. +Investigation found the previous enqueue admission checked block size and +pending bytes but not the sender's ring-span/remaining-count coherence. A +candidate guard now defers special or inconsistent states and requires room +for every possible active DMA progress/reload count. New host cases cover +idle stale descriptors, mismatched spans, special state, boundary capacity and +the sender occupancy model. This hardening is not yet built/tested and is not +claimed to explain or fix the reported freeze. MF04 was built twice from +a82ff483d0e3 with matching outputs. Exact private image SHA-256: +52f4d1774a09c5b56732a890973a00465fad14b3e41f9e56b868be7d4ce78e24. +The host queue tests passed as reported by the developer's helper completion. +Saved MF04 emulator results show 673 CCs/84 assignments, all nine lifecycle +checks passing, and 60 panel track-select chords during playback with concurrent +filter edits passing (final CC74=53, CC75=71). None establishes that the hardware +freeze is fixed. Pickup interruptions are a +separate unresolved failure; the refresh interval has not been changed. +MF04 hardware reports: normal boot; feedback ON with DIN disconnected stayed +responsive during playback and track switching; with two-way PC12 DIN restored, +filter movement and track switching passed while stopped. During playback the +developer reports no freeze, but the PC12 stopped controlling the filters; +stopping playback did not restore pickup. Fast knob movement appeared to reset +snap. This is a FAILED pickup test, not a passing performance qualification. + +A candidate scheduler change now withholds a parameter's feedback until its +sampled value is unchanged for ten UI ticks (approximately 0.5 seconds). Moving +values are coalesced, including previously blocked sends, and neither periodic +nor manual refresh can bypass the per-parameter gate. Other stable parameters +continue independently. It does not identify the physical input source and +cannot retract a message already sent to the wire. New host regressions exercise +rapid simultaneous filter sweeps, refresh during movement, final-value delivery +and blocked-output recovery. This change is not yet built or qualified. + +MF05 (source eab72d2231cd) passed its host tests, repeat builds and nine standard +emulator lifecycle checks, but FAILED the new rapid-sweep-with-track-switch +output assertion: intermediate CC74 values including 26, 31, 40, 44, 58, 71 and +76 escaped the settling gate. MF05 was not installed on hardware. Focused exact +MF05 traces show only initial/final values during a sweep alone; adding track +switching produces intermediate values. Over the same 2.5G-instruction duration, +the UI callback count increased from 250 to 297. UI invocations are therefore +unsuitable as a fixed-duration clock. + +The next candidate counts the instrument's existing 32-frame/48-kHz render-out +events, with only an aligned 32-bit increment in that hook. Settling requires +750 elapsed blocks; background refresh requires 3000. UI does the parameter +reads and MIDI work. Host regressions include 1000 callbacks at an unchanged +audio time and unsigned counter wrap. This candidate is not yet built/tested; +the clock change is a hypothesis to test, not a confirmed hardware pickup fix. +The audio-clock candidate MF06, built twice from 69934f88f664 with matching +outputs, passed the host regression tests. Exact private image SHA-256: +51af69bc85d195d77ef802f54a2c15f3a08ddd30c61f76df232a7abd6ac47eb5. +Saved exact-image emulator results passed the standard lifecycle checks and +the rapid-filter-sweep/track-switch output assertion that failed on MF05. +MF06 hardware results reported by the developer: normal startup and responsive +playback/track switching with DIN disconnected. An initial claim of stopped +PC12 pickup passing was corrected: the developer had not reconnected the PC12, +so that initial check is not controller evidence. After reconnecting two-way +DIN, filter frequency and resonance were controllable. Rytm encoder changes +updated the PC12 pickup target after approximately half a second, as expected +from settling. With playback running, the developer then reports approximately +one minute of slow/fast filter sweeps, pauses/resumption and track changes +without snap resetting or loss of Rytm responsiveness. Longer performance, +remaining MF06 parameters/channels and lifecycle regression checks initially +remained pending. The developer subsequently reports nothing unusual in the +requested approximately five-minute playback exercise covering all seven mapped +parameters, track changes, Track LEVEL and Track 12, checking for pickup resets, +freezes, sluggish controls, clicks and timing problems. This is a reported +practical listening/control check, not a measured timing or CPU qualification. +MF06 kit/project/restart regression checks remain pending. MF04's hardware +failure remains recorded against that earlier build. +Subsequently MF06 FAILED stability: the developer reports a freeze after +copying/pasting a pattern and switching. They initially identified paste, then +clarified that it could have been paste or the following switch and could not +distinguish them. Neither action is a confirmed isolated trigger. The kit reload +regression requested just before this report is not recorded as passed. Recovery +status is pending. The earlier five-minute pass does not establish stability. +The developer subsequently confirms recovery to the normal screen with DIN +disconnected and MIDI FEEDBACK OFF. Whether the switch was a track switch or +a pattern switch has not yet been established. Further hardware testing and +publication remain blocked by the unresolved freeze. +The developer clarifies that the switch was to another pattern. An exact MF06 +emulator sequence with feedback OFF stopped UI progress shortly after its first +paste: mf_probe ticks advanced only 176 over an 8G continuation, the final +pattern remained A02 rather than A04, and module_sent stayed 669 (zero new +module output). The firmware continued servicing other tasks/interrupts. The +test originally failed before boot because dtboot rejects PC counters in module +RAM; after replacing those counters with supported stock addresses, the UI +stall was observed. Stock/core-only cold-boot comparisons are pending; this +does not yet identify whether the fault is in the core, module or emulator. +The cold-boot comparison completed: stock 1.74, core-only 0.7, MF06 OFF and +MF06 ON all remained at A02 rather than A04. Stock and patched UI tasks showed +the same blocked stock wait path (PC 0x40001178, caller 0x400334da). MF06 ended +with 1183 UI callbacks in both modes and zero sent messages. The cold boots used +default port settings, so ON does not mean output was allowed. This comparison +demonstrates a stock-emulator/test-path limitation, not a module-specific +reproduction or proof that the hardware freeze is unrelated to the module. +Further developer-reported MF06 hardware isolation with DIN disconnected: +one spare-pattern copy/paste/switch stayed responsive with feedback OFF and +transport stopped; the same operation stayed responsive with feedback OFF +during playback, and then with feedback ON during playback. These limited +passes do not prove a particular cable/controller cause; PC12 clock routing +and reconnected transition behavior are not yet established. +The developer then set all four PC12 routing entries to n in BOTH non-realtime +(dots OFF) and realtime (dots ON) modes and reconnected two-way DIN. They report +one copy/paste/pattern switch during playback with feedback ON staying +responsive while the pots were still, then another staying responsive while +moving filter frequency/resonance, with the pots working afterward. Earlier +realtime routing values were not recorded. This is consistent with routing +being relevant but does not establish a loop or the prior freeze's cause. +On 2026-11-07 the developer reports a further approximately five-minute MF06 +session with this routing, including repeated pattern copies, pastes and +switches while moving PC12 knobs. They confirm responsive controls, smooth +pickup and normal audio throughout the session. The prior freeze remains +recorded and its cause is undetermined. +With playback stopped, the developer also confirms that reloading the spare +kit on MF06 restored both Track 1 LEVEL and filter-frequency pickup targets. +The developer confirms that after saving the spare project and restarting, +MIDI FEEDBACK remained ON and the PC12 resumed pickup automatically. + +For the follow-up requested in PR #1296, the developer reports a 45-minute +MF06 session with MIDI FEEDBACK ON and no issues. They began with about four +to five minutes with Rytm DIN OUT disconnected, then continued with the PC12 +connected for the rest of the session. The earlier MF06 freeze occurred after +the queue guard change (`a82ff483`) and remains unexplained. + +The exact MF06 image was timed in a private instrumented copy of analog-emu +using the existing 187,538-byte DIN stress input. The maximum observed elapsed +emulator clocks were 2 for `mf_audio_clock`, 87,284 for `mf_tick`, and 71,394 +for `send_cc`. Entry/return timing includes stock calls and preemption. The +sender runs inside the UI callback, so its maximum is reported separately +and is not additive. These are observed emulator timings, not physical CPU +cycles, masked-interrupt duration or an audio deadline bound. The structured +timing results are in `evidence/mf06.json`. +Busy playback/audio/timing, NRPN/USB-only suppression, kit changes, controller +setup changes and measured hardware CPU/IRQ/queue behavior remain unqualified. + +## Results observed + +The private host scheduler test compiled with `cc -std=c99 -Wall -Wextra +-Werror` and passed. It exercises all 84 channel/CC assignments, four-message +batches, no repeated unchanged values, blocked-output retry with the latest +value, channel reassignment and disabling, value clamping and reset. + +The first local linked build combined the module and core 0.7 without patch +overlap, verified unchanged non-main firmware sections and ran for 8 billion +emulated instructions. Its read-only diagnostic recorded 707 UI ticks, default +OFF, and zero module MIDI messages. Six sound parameter reads returned the +instrument's initial values. The developer reported that the stock OS 1.74 +emulator window had reached its ordinary main screen before this build. + +A subsequent named local probe, stored privately as `feedback-probe.syx` with +its build receipt, injected channel 1 messages at instruction counts 7303M to +7603M. The sound reads matched: CC74=61, CC75=23, CC78=11, CC80=73, CC82=29, +CC83=41. Its generic parameter getter did not read Track LEVEL correctly. The +local snapshot instead held LEVEL=37*256 in the kit's separate level array, +matching injected CC95=37. This caught the distinction before output enabled. +The adapter now reads that separate array. These are emulator observations, +not proof of analog audio, controller pickup or hardware timing. + +A further private probe compiled the output adapter and ran it with core 0.7. +After the initial stopped boot, emulator RAM was configured for feedback ON, +ENCODER DEST INT+EXT, CC output and the existing MIDI+USB destination. This +does not test the menu callbacks. Over a further 3 billion instructions it +emitted exactly 85 complete CC messages: one for each of 84 assignments on +channels 1–12, then one additional channel-1 CC95 when LEVEL changed from 37 +to 55. Diagnostic `sent` was 85 and the final seven values were +55, 61, 23, 11, 73, 29, 41. The test observed no unexpected MIDI message type. +Physical DIN transmission and saturated-queue behavior remain unqualified. + +Windows WinMM enumeration found the connected Faderfox PC12 and a separate +Analog Rytm MKII. Only the PC12 input was opened for the initial monitor: +541 received messages, all channel 1 CC95, zero monitor queue drops. The +developer identified the moved pot as Track Level. The real Rytm ports were +not opened. + +For the end-to-end test, the developer ran that private build's GUI in WSL +with its DIN TCP port on loopback 7322. A Windows bridge opened only the +PC12 WinMM input/output. A channel-1 CC95=96 test change sent to the emulator +returned as CC95=96 and was written successfully to the physical PC12 USB +output at 0.063 seconds. With the physical pot fully left and snap mode on, +the developer reported the pickup target/arrow at 96 and no change while +moving halfway; the input log contained no outgoing pot CC during that part. +The first subsequent received pot CC was exactly 96, at 88.828 seconds. +The emulator then returned changing values 97 through 100. When the pot was +turned back left, the log recorded decreasing CC95 feedback down to zero, +and the developer confirmed the emulator's bottom BD LEV bar shrank. The +agent also observed that bar empty in the modified emulator window. + +This passes the tested Track Level pickup path with the physical PC12 over +USB and an emulated instrument. It is not a test of firmware installed on a +physical Rytm, physical Rytm DIN latency, other PC12 assignments, recalls, +persistence or a busy MIDI link. The real Rytm's Windows MIDI ports were not +opened. No instrument firmware was transferred. + +The developer subsequently reported seeing both module rows below SYSTEM in +GLOBAL. Selecting MIDI FEEDBACK and pressing YES changed ON to OFF; pressing +YES again returned it to ON. This is developer-reported emulator UI evidence; +an automated capture is still pending. With the bridge connected and pots +still, the developer then selected SEND FEEDBACK once. The Windows log +recorded exactly 84 output CCs, 84 distinct channel/CC assignments: channels +1 through 12 and CC74, 75, 78, 80, 82, 83, 95. The first-to-last message span +was 1.000 seconds. Every WinMM output call returned success. This passes +the manual-refresh output check on this emulator/PC12 USB setup. + +The developer then reported setting MIDI FEEDBACK to OFF and selecting SEND +FEEDBACK once. The same live bridge log stayed at 84 output messages, with +no messages after the prior refresh ended. The bridge process was still +running when checked. This passes disabled manual-refresh silence for this +run; disabled behavior during incoming edits remains a separate check. + +## Automatic-refresh update + +The next implementation requests a full refresh every 40 UI ticks while +enabled, preserving the output cursor. Its host test also exercises repeated +refresh requests arriving faster than a full batch can drain, verifying later +tracks remain reachable. In the first private automatic-refresh build +(`b649b16bc9d99248c8035dfda467422737282422d9e4b6bcd07020d423d30818`, +the SHA-256 of the full local SysEx), the 15-second enabled output probe +recorded 673 messages covering all 84 assignments and six repeats of the +changed channel-1 Track Level value. No SEND FEEDBACK action was used. + +That build's nine lifecycle checks passed: module OFF, ENCODER DEST INT, +NRPN mode and USB-only output each emitted zero bytes while stock CC input +still changed Track Level; channel OFF suppressed that track's assignments; +reassigning Track 1 to channel 16 moved its output; stock quick-save/reload +restored all seven tested values; a virtual power-off followed by a cold +card boot retained feedback ON; and a 60-second DIN-rate flood completed. +The flood injected 187,538 bytes and recorded 5,269 new feedback messages, +7,878 coalesced pending updates and zero deferred sends. It establishes +progress without a hang, not audible output, absence of stuck notes or +hardware timing. The input contained paired note-on/velocity-zero note-off, +CC, clock, active sensing and stop; the stock tempo word was set to 240 BPM. + +A subsequent code review made DIN admission more conservative: reserve the +whole active DMA block plus pending bytes, rather than relying on the +hardware's changing remaining count. The final private build's full SysEx +SHA-256 is `7bb7fb434981d0d5f144cfdb7c8e6bf29c10c849fcdb6207a5d72e17796c2b05`. +Its host tests, automatic output probe and all nine lifecycle checks passed +again with the figures above. The development package has 1,974 bytes of +`.run`, 688 bytes of `.bss` and zero fast bytes; this excludes core 0.7 and is +not a pinned-release-toolchain measurement. + +For the updated PC12 test, a separate GUI restored this build's active +snapshot and exposed DIN TCP on loopback 7323. Without SEND FEEDBACK or a +test-target message, the Windows PC12 bridge recorded repeated channel-1 +CC95=55 at two-second intervals. The first received PC12 pot value was 55; +later emulator feedback covered values 21 through 109. The developer +reported smooth control for the requested ten-second back-and-forth test, +without repeated stopping or needing pickup again. Thus the measured +background refresh and developer-reported smooth pickup passed together +for Track Level on the physical USB PC12 plus the emulated Rytm. + +## Pinned candidate MF02 + +The source at commit `1bf73478ada7` was compiled twice in isolated containers +using GCC 16.2.0, Binutils 2.47.20260726 and Node 24.21.0. Both complete build +directories matched byte for byte. The source-only export checker reproduced +29 committed exports, including this module. Its package SHA-256 is +`95ef570f6d9ca0704dfa03a852fdfbf93ae67f4ff28464245c7a758a0c206b6f`. +It contains 1,914 bytes of `.run`, 688 bytes of `.bss` and no fast section; +2,602 bytes total, excluding core 0.7. + +The exact exported package was linked locally with the reviewed core-ar2 0.7 +package. The linker found no overlaps, verified each core patch against stock, +and verified unchanged firmware sections 1, 2, 5 and 8. The full private MF02 +image SHA-256 is +`362313ce6f35dc3ae54126f1d3dac108b3e4c787f9087d41130261a85d7cc84b`. +That image passed the host/output probe (673 messages, 84 assignments, six +automatic repeats of the changed Track Level value) and all nine lifecycle +checks, including virtual power-cycle retention and the 60-second MIDI flood. +Details and compiler identities are in `evidence/pinned-candidate.json`. + +MF02 has not run on a physical Rytm. The PC12 pickup and menu captures above +remain evidence from their explicitly named development images. No physical +Rytm qualification or owner approval is implied by reproducible compilation. + +## Outstanding release qualification + +- Physical Rytm DIN output and timing; the emulator output and disabled + silence checks passed. +- Screenshot provenance; toggle labels were reported working and manual + refresh output was measured on the emulator/PC12 bridge. +- Duplicate channel handling and all PC12 pot assignments; emulator channel + OFF and reassignment checks passed. +- Other kit/project transitions and real-device reboot/persistence; emulator + kit quick-save/reload and virtual power-cycle checks passed. +- Stock input/output comparison for notes, velocity-zero note-off, running + status, pressure, pitch bend, programs, system common, clock and SysEx. +- Locks, LFOs, scenes and performances compared against unchanged baseline + pickup values; incoming CC feedback visible on the panel. +- Queue-full execution in ColdFire and project/pattern changes under flood; + the stopped 60-second wire-rate flood and output progress check passed. +- Real-time headroom, worst-event duration and maximum IRQ-masked enqueue + time, compared with the same stock image. No performance figures invented. +- Other PC12 controls, controller reconnect/setup changes, and physical DIN; + USB PC12 Track Level pickup through the Windows/WSL bridge passed. +- Combination builds through the repository's browser package workflow, + pinned compiler, module doctor and release checks. + +No audible, physical instrument reboot/persistence or Rytm hardware result +is claimed. PC12 hardware results above are limited to the tested USB path. diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/build.json b/sdk/analog-rytm-mkii/modules/midi-feedback/build.json new file mode 100644 index 000000000..0505fc19a --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/build.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "sources": ["src/main.c", "src/feedback.c", "src/labels.s"], + "defsym": {}, + "cflags": [], + "weak": [], + "subscribe": [ + {"event": "ev_render_out", "fn": "mf_audio_clock", "order": 60}, + {"event": "ev_tick", "fn": "mf_tick", "order": 60}, + {"event": "ev_settings", "fn": "mf_settings", "order": 60}, + {"event": "ev_project", "fn": "mf_project", "order": 60} + ], + "contribute": [], + "collections": {}, + "copied": [], + "regions": [], + "claims": ["settings:MIDI FEEDBACK", "settings:SEND FEEDBACK"], + "storage": [{"sym": "midi_feedback_enabled", "scope": "project", "bits": 1}], + "requires": [], + "derive": null, + "releases": { "1.74": { + "defsym": {"MF_STRING_CTOR": "0x401bcff0"}, + "cflags": [ + "-DAPP_AT=0x4017fa0a", "-DCONFIG_AT=0x400ae49e", + "-DPARAM_ON_AT=0x400b56c0", "-DPARAM_KIND_AT=0x400b563c", + "-DOUTPUT_PORT_AT=0x400b55b6", "-DTRACK_CHANNEL_AT=0x400b5156", + "-DTRACK_SOUND_AT=0x400a67ca", "-DDIN_ENQUEUE_AT=0x40001dea", + "-DMIDI_READY_AT=0x419f28a8", "-DDIN_STATE_AT=0x413da65c", + "-DDMA_BLOCK_AT=0xfc0454bc", "-DWORKING_KIT_AT=0x40766317" + ], "sites": [] + } } +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/emulator.json b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/emulator.json new file mode 100644 index 000000000..73f4edb6a --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/emulator.json @@ -0,0 +1,104 @@ +{ + "date": "2026-11-01", + "machine": "analog-rytm-mkii", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "f0a29634b48a7e74232822b4d8bd13cae0a9513850fd2435a1f32f4e04f174c5", + "sourceHashMethod": "SHA-256 of UTF-8 JSON with sorted module-relative build.json/src paths mapped to file SHA-256, no whitespace.", + "inputs": { + "build.json": "b959c9df51f9d338e933a3b9b0d5cfa89a2f4a7f3142805aeae02dbbbf66422b", + "src/feedback.c": "d5cd8106ffbeeaa5311ddc621651820457488adae4f83feb9a112659b352398c", + "src/feedback.h": "457c3d1b9fbb0bed310253720a4807f9fddfb3556eedb2bc346c8db61b835e6c", + "src/labels.s": "fdee36dcc74e421f4bda9699f5d04f7c7c9a7c50f3c1b0b9226006b3c732dea6", + "src/main.c": "b6cc27ef5aebcfd8ec268b9edbab6530c96eb3c1e8e247ce6dc59b716ee1e6f6" + }, + "firmwareSha256": "7bb7fb434981d0d5f144cfdb7c8e6bf29c10c849fcdb6207a5d72e17796c2b05", + "emulatorRevision": "2ac0f1f09e0c126d314b87de494f8da2848cfa8b", + "sdkRevision": "dc6ac1fd6792eeb3ab217b6ab2d6b73aa7aa30f6", + "packageMemory": { + "runBytes": 1974, + "bssBytes": 688, + "fastBytes": 0, + "includesCore": false, + "toolchain": "Development m68k-linux-gnu; exact compiler version not captured." + }, + "outputProbe": { + "status": "PASS", + "messages": 673, + "assignments": 84, + "automatic_repeats": 6, + "track_level_before": 37, + "track_level_after": 55, + "sent_counter": 673, + "limits": "Emulator only; RAM-configured; UI, flood, persistence and hardware pending." + }, + "lifecycle": [ + { + "test": "disabled", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "encoder-int", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "nrpn-mode", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "usb-only", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "track-1-channel-off", + "status": "PASS", + "assignments": 77 + }, + { + "test": "track-1-reassigned-to-channel-16", + "status": "PASS", + "messages": 253 + }, + { + "test": "stock-kit-quick-save-and-reload", + "status": "PASS", + "values": [ + 55, + 61, + 23, + 11, + 73, + 29, + 41 + ] + }, + { + "test": "feedback-enabled-after-virtual-power-cycle", + "status": "PASS", + "enabled": 1 + }, + { + "test": "60-second-DIN-wire-rate-flood", + "status": "PASS", + "input_bytes": 187538, + "new_feedback_messages": 5269, + "coalesced": 7878, + "deferred": 0, + "limits": "No hang and output progress only; audible/stuck-note and hardware timing not qualified." + } + ], + "pc12": "Physical USB PC12 and emulated Rytm: automatic 2-second feedback observed, initial pickup 55 observed, smooth ten-second movement reported by developer.", + "limits": [ + "No Rytm hardware qualification.", + "No pinned release package or browser publication.", + "No measured worst-event CPU/IRQ timing.", + "Queue-full firmware execution not qualified." + ] +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/mf06.json b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/mf06.json new file mode 100644 index 000000000..636bf5fbc --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/mf06.json @@ -0,0 +1,150 @@ +{ + "candidate": "MF06", + "moduleVersion": "0.1.0-experimental", + "sourceCommit": "69934f88f664d64b08d50656ca3f792049d85952", + "sourceTreeSha256": "b397e5e6a98f000b8ca2aa4f7813abb7c0b476f53c165c44b520a00d3d9b54d3", + "compiler": { + "gcc": "m68k-elf-gcc (GCC) 16.2.0", + "assembler": "GNU assembler (GNU Binutils) 2.47.20260726", + "linker": "GNU ld (GNU Binutils) 2.47.20260726", + "node": "v24.21.0" + }, + "packagePath": "sdk/imports/packages/midi-feedback/midi-feedback-0.1.0-experimental-os1.74.elemod", + "packageSha256": "590803e11e7cef3bb981cae26fd50e4c20dd7ac9b11ca5c77bdf6222d4c3980d", + "imageSha256": "51af69bc85d195d77ef802f54a2c15f3a08ddd30c61f76df232a7abd6ac47eb5", + "packageMemory": { + "runBytes": 2445, + "bssBytes": 1112, + "fastBytes": 0, + "totalBytes": 3557, + "includesCore": false + }, + "outputProbe": { + "status": "PASS", + "messages": 669, + "assignments": 84, + "automatic_repeats": 6, + "track_level_before": 37, + "track_level_after": 55, + "sent_counter": 669, + "limits": "Emulator only; RAM-configured; UI, flood, persistence and hardware pending." + }, + "lifecycle": [ + { + "test": "disabled", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "encoder-int", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "nrpn-mode", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "usb-only", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "track-1-channel-off", + "status": "PASS", + "assignments": 77 + }, + { + "test": "track-1-reassigned-to-channel-16", + "status": "PASS", + "messages": 249 + }, + { + "test": "stock-kit-quick-save-and-reload", + "status": "PASS", + "values": [ + 55, + 61, + 23, + 11, + 73, + 29, + 41 + ] + }, + { + "test": "feedback-enabled-after-virtual-power-cycle", + "status": "PASS", + "enabled": 1 + }, + { + "test": "60-second-DIN-wire-rate-flood", + "status": "PASS", + "input_bytes": 187538, + "new_feedback_messages": 634, + "coalesced": 8, + "deferred": 0, + "limits": "No hang and output progress only; audible/stuck-note and hardware timing not qualified." + }, + { + "test": "play-track-switch-filter-edits", + "status": "PASS", + "panel_track_select_chords": 60, + "final_frequency": 53, + "final_resonance": 71, + "limits": "Emulator progress and final values only; no physical PC12 pickup evidence." + }, + { + "test": "moving-filter-targets-withheld", + "status": "PASS", + "frequency_values": [ + 53, + 61, + 79 + ], + "resonance_values": [ + 23, + 71, + 89 + ], + "limits": "Emulator output only; physical PC12 remains unqualified." + } + ], + "hardware": { + "model": "Elektron Analog Rytm MKII", + "release": "1.74", + "testedOn": "2026-11-07", + "tester": "claptom-music", + "durationMinutes": 45, + "summary": "MF06 with Faderfox PC12 over two-way DIN: responsive playback, smooth pickup and pattern transitions with both PC12 forwarding modes disabled. Kit reload and project restart restored pickup. A 45-minute follow-up began with about 4–5 minutes of DIN OUT disconnected. The author reported no issues throughout.", + "limitations": [ + "Author-reported functional checks.", + "Earlier MF06 pattern transition freeze remains unexplained.", + "Hardware CPU, IRQ and queue timing were not measured." + ] + }, + "load": { + "imageSha256": "51af69bc85d195d77ef802f54a2c15f3a08ddd30c61f76df232a7abd6ac47eb5", + "method": "emulator", + "timing": { + "mf_audio_clock": { + "completed_calls_at_least": 105000, + "max_elapsed_emulator_clocks": 2 + }, + "send_cc": { + "completed_calls_at_least": 334, + "max_elapsed_emulator_clocks": 71394 + }, + "mf_tick": { + "completed_calls_at_least": 1300, + "max_elapsed_emulator_clocks": 87284 + } + }, + "limits": "Observed emulator elapsed clocks under DIN input stress, including preemption. Physical processor cycles and audio deadline margins remain unmeasured." + } +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/pinned-candidate.json b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/pinned-candidate.json new file mode 100644 index 000000000..893dea23b --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/evidence/pinned-candidate.json @@ -0,0 +1,110 @@ +{ + "date": "2026-11-01", + "machine": "analog-rytm-mkii", + "os": "1.74", + "moduleVersion": "0.1.0-experimental", + "sourceCommit": "1bf73478ada76e0fcb152e03ab1105a5f2788d65", + "sourceTreeSha256": "bc3328bd4204dde0c4e980f93adf9e8f8399ea0795a5e6396ce5447003b444cf", + "compiler": { + "gcc": "m68k-elf-gcc (GCC) 16.2.0", + "assembler": "GNU assembler (GNU Binutils) 2.47.20260726", + "linker": "GNU ld (GNU Binutils) 2.47.20260726", + "node": "v24.21.0" + }, + "toolchainImageId": "sha256:1e14610dce258b288254f393d753a2b5f53616a8705f795d601f460b773ccca2", + "packagePath": "sdk/imports/packages/midi-feedback/midi-feedback-0.1.0-experimental-os1.74.elemod", + "packageSha256": "95ef570f6d9ca0704dfa03a852fdbfb93ae67f4ff28464245c7a758a0c206b6f", + "packageMemory": { + "runBytes": 1914, + "bssBytes": 688, + "fastBytes": 0, + "totalBytes": 2602, + "includesCore": false + }, + "determinism": "Two isolated source-only container builds matched byte for byte; verify-elemod-release-exports reproduced 29 exports.", + "candidate": "MF02; local-only full OS file, not committed or uploaded.", + "imageSha256": "362313ce6f35dc3ae54126f1d3dac108b3e4c787f9087d41130261a85d7cc84b", + "core": { + "version": "0.7", + "sha256": "f1e9cb2c39eb52af15e7cf8ad25596e46f550e4f748bc9dd60d63a44da2dd9c1" + }, + "outputProbe": { + "status": "PASS", + "messages": 673, + "assignments": 84, + "automatic_repeats": 6, + "track_level_before": 37, + "track_level_after": 55, + "sent_counter": 673, + "limits": "Emulator only; RAM-configured; UI, flood, persistence and hardware pending." + }, + "lifecycle": [ + { + "test": "disabled", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "encoder-int", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "nrpn-mode", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "usb-only", + "status": "PASS", + "new_output_bytes": 0, + "stock_level": 12 + }, + { + "test": "track-1-channel-off", + "status": "PASS", + "assignments": 77 + }, + { + "test": "track-1-reassigned-to-channel-16", + "status": "PASS", + "messages": 253 + }, + { + "test": "stock-kit-quick-save-and-reload", + "status": "PASS", + "values": [ + 55, + 61, + 23, + 11, + 73, + 29, + 41 + ] + }, + { + "test": "feedback-enabled-after-virtual-power-cycle", + "status": "PASS", + "enabled": 1 + }, + { + "test": "60-second-DIN-wire-rate-flood", + "status": "PASS", + "input_bytes": 187538, + "new_feedback_messages": 5269, + "coalesced": 7878, + "deferred": 0, + "limits": "No hang and output progress only; audible/stuck-note and hardware timing not qualified." + } + ], + "hardware": null, + "limitations": [ + "Physical Rytm, IRQ/CPU headroom and saturated MIDI output are not qualified.", + "Physical PC12 pickup was checked with the earlier development-compiler image; repeat on MF02 hardware.", + "No public catalogue listing or release approval." + ] +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/media/capture.json b/sdk/analog-rytm-mkii/modules/midi-feedback/media/capture.json new file mode 100644 index 000000000..ae517c8c5 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/media/capture.json @@ -0,0 +1,27 @@ +{ + "schemaVersion": 1, + "machine": "analog-rytm-mkii", + "moduleId": "midi-feedback", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "7bb7fb434981d0d5f144cfdb7c8e6bf29c10c849fcdb6207a5d72e17796c2b05", + "firmware": "1.74", + "stockSha256": "cb0f99d620edde994fb860c0e79cc2464e427d06882828cfdfb00fc53700e123", + "build": "MF01: imported core-ar2 0.7 plus this module, local m68k-linux-gnu development build; full image remains private.", + "emulator": "analog-emu 2ac0f1f09e0c126d314b87de494f8da2848cfa8b, dtboot, 3x PNG without interpolation", + "capturedAt": "2026-11-01", + "setup": "Same-build active snapshot from the emulator output probe, feedback ON, CC output and MIDI+USB selected. DTBOOT_STEPS=1; DTBOOT_PNG_DIR points outside Git. Screen documentation only.", + "captures": [ + { + "path": "media/feedback-on.png", + "sha256": "a22e6a50b7d69d3fb2a7375939017e88e5b784888cd50bb233540ec8a1493e1f", + "plan": "dtboot --load --instr 3G --press GLOBAL@11303M:60M --press DOWN@11503M:40M --press DOWN@11583M:40M --press DOWN@11663M:40M --press DOWN@11743M:40M --press DOWN@11823M:40M --press DOWN@11903M:40M --press DOWN@11983M:40M --press DOWN@12063M:40M --press DOWN@12143M:40M --press DOWN@12223M:40M --press DOWN@12303M:40M --press DOWN@12383M:40M --press DOWN@12463M:40M --press DOWN@12543M:40M --press DOWN@12623M:40M --press DOWN@12703M:40M --press DOWN@12783M:40M --press DOWN@12863M:40M --press DOWN@12943M:40M --press DOWN@13023M:40M --press DOWN@13103M:40M --press DOWN@13183M:40M --press DOWN@13263M:40M --press DOWN@13343M:40M", + "frame": "DTBOOT_STEPS after fourth DOWN release; visually reviewed before inclusion." + }, + { + "path": "media/send-feedback.png", + "sha256": "e323b408c87b738cb4689a7a9e4236089333e91752cd48fd8156f0cf81f0aee6", + "plan": "dtboot --load --instr 3G --press GLOBAL@11303M:60M --press DOWN@11503M:40M --press DOWN@11583M:40M --press DOWN@11663M:40M --press DOWN@11743M:40M --press DOWN@11823M:40M --press DOWN@11903M:40M --press DOWN@11983M:40M --press DOWN@12063M:40M --press DOWN@12143M:40M --press DOWN@12223M:40M --press DOWN@12303M:40M --press DOWN@12383M:40M --press DOWN@12463M:40M --press DOWN@12543M:40M --press DOWN@12623M:40M --press DOWN@12703M:40M --press DOWN@12783M:40M --press DOWN@12863M:40M --press DOWN@12943M:40M --press DOWN@13023M:40M --press DOWN@13103M:40M --press DOWN@13183M:40M --press DOWN@13263M:40M --press DOWN@13343M:40M", + "frame": "DTBOOT_STEPS after fifth DOWN release; visually reviewed before inclusion." + } + ] +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/media/feedback-on.png b/sdk/analog-rytm-mkii/modules/midi-feedback/media/feedback-on.png new file mode 100644 index 000000000..36e5ecd4d Binary files /dev/null and b/sdk/analog-rytm-mkii/modules/midi-feedback/media/feedback-on.png differ diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/media/send-feedback.png b/sdk/analog-rytm-mkii/modules/midi-feedback/media/send-feedback.png new file mode 100644 index 000000000..baca9ba25 Binary files /dev/null and b/sdk/analog-rytm-mkii/modules/midi-feedback/media/send-feedback.png differ diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/media/thumbnail.svg b/sdk/analog-rytm-mkii/modules/midi-feedback/media/thumbnail.svg new file mode 100644 index 000000000..57576e5ab --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/media/thumbnail.svg @@ -0,0 +1,7 @@ + + + +MIDI FEEDBACK12 TRACKS / 7 PARAMETERS + +RYTMSNAPCC 95 + 74…83PICKUP + diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/modwerk.module.json b/sdk/analog-rytm-mkii/modules/midi-feedback/modwerk.module.json new file mode 100644 index 000000000..9a812d342 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/modwerk.module.json @@ -0,0 +1,191 @@ +{ + "schemaVersion": 3, + "id": "midi-feedback", + "name": "MIDI Feedback", + "version": "0.1.0-experimental", + "machine": "analog-rytm-mkii", + "category": "midi-usb", + "exclusive": false, + "author": { + "github": "claptom-music", + "credits": [ + "claptom-music" + ] + }, + "maintainers": [ + "claptom-music" + ], + "presentation": { + "label": "MIDI FEEDBACK", + "family": "MIDI parameter feedback", + "summary": "Automatic feedback for seven parameters per drum track, for controller pickup.", + "overview": "Sends settled parameter values and refreshes them about every two seconds over DIN MIDI OUT. Enable once per project. While a value is moving, feedback waits for a short pause so it does not interrupt pickup.", + "highlights": [ + "Automatic background refresh; no performance-time menu diving.", + "Seven assignments per track; choose your own PC12 pot layout.", + "Latest-value feedback with bounded, fair output." + ], + "usage": [ + "In MIDI CONFIG, set distinct track channels, PARAM OUTPUT to CC, ENCODER DEST to INT+EXT, and OUTPUT TO to MIDI or MIDI+USB.", + "Map PC12 pots to the listed CCs and track channels, enable snap mode, and route feedback into the PC12 without MIDI THRU back to Rytm.", + "Press GLOBAL, select MIDI FEEDBACK, and press YES for ON. Feedback then refreshes automatically; SEND FEEDBACK is optional." + ] + }, + "access": { + "location": "GLOBAL menu, after SYSTEM", + "steps": [ + "Press GLOBAL.", + "Scroll to MIDI FEEDBACK and press YES to set ON.", + "Leave it ON for automatic feedback; SEND FEEDBACK is optional." + ], + "screenshots": [ + "media/feedback-on.png" + ] + }, + "controls": [ + { + "name": "MIDI FEEDBACK", + "default": 0, + "doc": "Toggle feedback, off by default; stored per project.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "SEND FEEDBACK", + "default": null, + "doc": "Optional refresh of settled values. Background refresh already runs about every two seconds while ON.", + "labels": null + } + ], + "compatibility": { + "releases": [ + "1.74" + ], + "requires": [], + "conflicts": [], + "limitations": [ + "Requires Analog Rytm MKII OS 1.74.", + "Feedback uses DIN MIDI OUT.", + "Disable both data and clock forwarding on the PC12 for the tested two-way DIN setup.", + "An earlier MF06 pattern transition freeze remains unexplained. See the hardware report." + ] + }, + "platform": { + "kind": "elemod", + "core": "0.7", + "build": "build.json", + "events": [ + "ev_render_out", + "ev_tick", + "ev_settings", + "ev_project" + ], + "claims": [ + "settings:MIDI FEEDBACK", + "settings:SEND FEEDBACK" + ] + }, + "resources": { + "memoryBytes": 3557, + "fastBytes": 0, + "load": { + "display": "Emulator maxima: 2 audio-hook clocks, 87,284 UI-hook clocks", + "method": "emulator", + "conditions": "Exact MF06 image with 187,538 bytes of DIN stress input. Observed elapsed emulator clocks include stock calls and preemption. Physical cycles, masked-interrupt duration and audio deadline margins are unmeasured." + } + }, + "evidence": { + "tier": "author-hardware", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "b397e5e6a98f000b8ca2aa4f7813abb7c0b476f53c165c44b520a00d3d9b54d3", + "reports": [ + "TESTING.md", + "evidence/emulator.json", + "evidence/pinned-candidate.json", + "evidence/mf06.json" + ], + "hardware": { + "model": "Elektron Analog Rytm MKII", + "release": "1.74", + "testedOn": "2026-11-07", + "tester": "claptom-music", + "durationMinutes": 45, + "summary": "MF06 with Faderfox PC12 over two-way DIN: responsive playback, smooth pickup and pattern transitions with both PC12 forwarding modes disabled. Kit reload and project restart restored pickup. A 45-minute follow-up began with about 4–5 minutes of DIN OUT disconnected. The author reported no issues throughout.", + "limitations": [ + "Author-reported functional checks.", + "Earlier MF06 pattern transition freeze remains unexplained.", + "Hardware CPU, IRQ and queue timing were not measured." + ] + }, + "verifiedBy": null + }, + "tests": { + "report": "TESTING.md", + "summary": "MF06 passed the exact-image emulator checks. The author reports PC12 pickup, pattern transitions, kit reload and restart passing on hardware after disabling PC12 forwarding. Emulator load is recorded. The earlier freeze remains unexplained.", + "documentation": { + "tutorial": { + "title": "Usage", + "steps": [ + "In MIDI CONFIG, set distinct track channels, PARAM OUTPUT to CC, ENCODER DEST to INT+EXT, and OUTPUT TO to MIDI or MIDI+USB.", + "Map PC12 pots to the listed CCs and track channels, enable snap mode, and route feedback into the PC12 without MIDI THRU back to Rytm.", + "Press GLOBAL, select MIDI FEEDBACK, and press YES for ON. Feedback then refreshes automatically; SEND FEEDBACK is optional." + ] + }, + "screenshots": [ + "media/feedback-on.png", + "media/send-feedback.png" + ], + "captureRecord": "media/capture.json" + } + }, + "license": { + "spdx": "GPL-3.0-or-later", + "file": "LICENSE", + "declaration": "Original module by claptom-music. SDK hooks and stock routine addresses researched from the GPL-compatible Elekloader SDK." + }, + "media": [ + { + "path": "media/thumbnail.svg", + "kind": "thumbnail", + "caption": "MIDI Feedback signal diagram", + "alt": "Parameter feedback travels from Rytm to controller pickup targets.", + "credit": "claptom-music", + "license": "GPL-3.0-or-later", + "source": "Original vector signal diagram by claptom-music." + }, + { + "path": "media/feedback-on.png", + "kind": "screenshot", + "caption": "MIDI FEEDBACK: ON selected in GLOBAL.", + "alt": "GLOBAL menu with the MIDI FEEDBACK ON row selected.", + "credit": "claptom-music documentation capture; Elektron interface", + "license": "LicenseRef-Rytm-UI-Documentation", + "source": "original", + "capture": { + "type": "emulator", + "release": "1.74", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "7bb7fb434981d0d5f144cfdb7c8e6bf29c10c849fcdb6207a5d72e17796c2b05", + "setup": "Same-build active snapshot from the emulator output probe, feedback ON, CC output and MIDI+USB selected. DTBOOT_STEPS=1; DTBOOT_PNG_DIR points outside Git. Screen documentation only." + } + }, + { + "path": "media/send-feedback.png", + "kind": "screenshot", + "caption": "SEND FEEDBACK is an optional immediate refresh.", + "alt": "GLOBAL menu with SEND FEEDBACK selected below MIDI FEEDBACK ON.", + "credit": "claptom-music documentation capture; Elektron interface", + "license": "LicenseRef-Rytm-UI-Documentation", + "source": "original", + "capture": { + "type": "emulator", + "release": "1.74", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "7bb7fb434981d0d5f144cfdb7c8e6bf29c10c849fcdb6207a5d72e17796c2b05", + "setup": "Same-build active snapshot from the emulator output probe, feedback ON, CC output and MIDI+USB selected. DTBOOT_STEPS=1; DTBOOT_PNG_DIR points outside Git. Screen documentation only." + } + } + ] +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.c b/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.c new file mode 100644 index 000000000..1d72e7b43 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.c @@ -0,0 +1,97 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "feedback.h" +const uint8_t mf_cc[MF_PARAMS] = {95, 74, 75, 78, 80, 82, 83}; +/* Admit only a coherent descriptor/ring state. While active, the whole + * outstanding ring span must equal the DMA block. Then every remaining-count + * value from zero through block (including reload) leaves at least this much + * room. Idle descriptors must have completed/reloaded, with no outstanding + * span. Unknown, special or transient states always defer. + */ +int mf_queue_admits(unsigned active, unsigned span, unsigned block, + unsigned remaining, unsigned pending) +{ + if (span >= 4096u || block >= 4096u || remaining > block || pending > 4096u) + return 0; + if (active == 0) { + if (span || remaining != block) return 0; + } else if (active == 1) { + if (!block || span != block) return 0; + } else return 0; + return span + pending <= 4096u - 64u - 3u; +} +static int pending(const struct mf_cell *c) +{ + return c->valid && (c->refresh || !c->sent || c->value != c->sent_value || c->channel != c->sent_channel); +} +void mf_reset(struct mf_state *s) +{ + unsigned i; + for (i = 0; i < MF_COUNT; ++i) { + s->cells[i].valid = s->cells[i].sent = s->cells[i].refresh = 0; + s->cells[i].observed = 0; + s->cells[i].changed_at = 0; + } + s->cursor = 0; +} +void mf_request_refresh(struct mf_state *s) +{ + unsigned i; + /* Preserve the cursor: retries and repeated refresh requests cannot + * starve later tracks when the output is congested. + */ + for (i = 0; i < MF_COUNT; ++i) if (s->cells[i].valid) s->cells[i].refresh = 1; +} +void mf_offer(struct mf_state *s, unsigned track, unsigned parameter, int channel, int value) +{ + struct mf_cell *c; + if (track >= MF_TRACKS || parameter >= MF_PARAMS) return; + c = &s->cells[track * MF_PARAMS + parameter]; + if ((unsigned)channel >= 16) { c->valid = c->sent = c->refresh = 0; return; } + value = value < 0 ? 0 : value > 127 ? 127 : value; + if (pending(c) && (c->channel != channel || c->value != value)) ++s->coalesced; + c->value = (uint8_t)value; + c->channel = (uint8_t)channel; + c->valid = 1; +} +/* Do not echo a moving parameter back into a controller's pickup target. + * Update/coalesce the sampled value immediately, but withhold its transmission + * until half a second of stock audio blocks has passed with no change. UI + * callbacks can run extra times during screen/key activity. Refresh requests + * cannot bypass this gate; other stable parameters continue independently. + * This detects observed movement, not which physical device originated it. + */ +void mf_observe(struct mf_state *s, unsigned track, unsigned parameter, int channel, int value, uint32_t now) +{ + struct mf_cell *c; + int changed; + if (track >= MF_TRACKS || parameter >= MF_PARAMS) return; + c = &s->cells[track * MF_PARAMS + parameter]; + if ((unsigned)channel >= 16) { + c->valid = c->sent = c->refresh = c->observed = 0; + return; + } + value = value < 0 ? 0 : value > 127 ? 127 : value; + changed = !c->observed || c->value != value || c->channel != channel; + mf_offer(s, track, parameter, channel, value); + c->observed = 1; + if (changed) c->changed_at = now; + c->valid = (uint32_t)(now - c->changed_at) >= MF_SETTLE_BLOCKS; +} +unsigned mf_flush(struct mf_state *s, mf_send send) +{ + unsigned scanned, emitted = 0; + for (scanned = 0; scanned < MF_COUNT && emitted < MF_BUDGET; ++scanned) { + unsigned i = s->cursor; + struct mf_cell *c = &s->cells[i]; + if (pending(c)) { + if (!send(c->channel, mf_cc[i % MF_PARAMS], c->value)) { ++s->deferred; break; } + c->sent_channel = c->channel; + c->sent_value = c->value; + c->sent = 1; + c->refresh = 0; + ++emitted; + } + s->cursor = (i + 1) % MF_COUNT; + } + return emitted; +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.h b/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.h new file mode 100644 index 000000000..7820dbab9 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/src/feedback.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#ifndef MIDI_FEEDBACK_H +#define MIDI_FEEDBACK_H +#include +#define MF_TRACKS 12 +#define MF_PARAMS 7 +#define MF_COUNT (MF_TRACKS * MF_PARAMS) +#define MF_BUDGET 4 +#define MF_SETTLE_BLOCKS 750u /* 32 frames at 48 kHz: half a second */ +struct mf_cell { + uint8_t value, channel, sent_value, sent_channel, valid, sent, refresh, observed; + uint32_t changed_at; +}; +struct mf_state { struct mf_cell cells[MF_COUNT]; unsigned cursor, coalesced, deferred; }; +typedef int (*mf_send)(unsigned channel, unsigned cc, unsigned value); +int mf_queue_admits(unsigned active, unsigned span, unsigned block, + unsigned remaining, unsigned pending); +void mf_reset(struct mf_state *s); +void mf_request_refresh(struct mf_state *s); +void mf_offer(struct mf_state *s, unsigned track, unsigned parameter, int channel, int value); +void mf_observe(struct mf_state *s, unsigned track, unsigned parameter, int channel, int value, uint32_t now); +unsigned mf_flush(struct mf_state *s, mf_send send); +extern const uint8_t mf_cc[MF_PARAMS]; +#endif diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/src/labels.s b/sdk/analog-rytm-mkii/modules/midi-feedback/src/labels.s new file mode 100644 index 000000000..43c8152c1 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/src/labels.s @@ -0,0 +1,37 @@ +| SPDX-License-Identifier: GPL-3.0-or-later +| Menu label callback: hidden std::string return pointer in a0. + .text + .align 2 + .globl mf_toggle_label, mf_refresh_label +mf_toggle_label: + link %a6,#-4 + move.l %d2,-(%sp) + move.l %a0,%d2 + | Integer results use d0 with both development and release compilers. + jsr mf_label_enabled + lea mf_disabled_text,%a1 + tst.l %d0 + beq.s mf_make_label + lea mf_enabled_text,%a1 + bra.s mf_make_label +mf_refresh_label: + link %a6,#-4 + move.l %d2,-(%sp) + move.l %a0,%d2 + lea mf_refresh_text,%a1 +mf_make_label: + pea -1(%a6) + move.l %a1,-(%sp) + move.l %d2,-(%sp) + jsr MF_STRING_CTOR + lea 12(%sp),%sp + move.l %d2,%d0 + move.l -8(%a6),%d2 + unlk %a6 + rts +mf_refresh_text: + .asciz "SEND FEEDBACK" +mf_disabled_text: + .asciz "MIDI FEEDBACK: OFF" +mf_enabled_text: + .asciz "MIDI FEEDBACK: ON" diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/src/main.c b/sdk/analog-rytm-mkii/modules/midi-feedback/src/main.c new file mode 100644 index 000000000..6275683a4 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/src/main.c @@ -0,0 +1,171 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* OS 1.74 adapter. Pointer results from stock use d0, not GCC's a0. + * Emulator output checked; hardware and lifecycle qualification pending. + */ +#include +#include "analog-rytm-mk2/store.h" +#include "feedback.h" +STORE_FIELD(midi_feedback_enabled); +extern void core_additem(void *, const void *); +extern void mf_toggle_label(void), mf_refresh_label(void); +#define APP ((unsigned (*)(void))APP_AT) +#define CONFIG ((unsigned (*)(unsigned))CONFIG_AT) +#define PARAM_ON ((int (*)(unsigned))PARAM_ON_AT) +#define PARAM_KIND ((int (*)(unsigned))PARAM_KIND_AT) +#define OUTPUT_PORT ((int (*)(unsigned))OUTPUT_PORT_AT) +#define TRACK_CHANNEL ((int (*)(unsigned, int))TRACK_CHANNEL_AT) +#define TRACK_SOUND ((unsigned (*)(void *, int))TRACK_SOUND_AT) +#define DIN_ENQUEUE ((void (*)(int, const uint8_t *))DIN_ENQUEUE_AT) +#define U32(a) (*(volatile uint32_t *)(a)) +#define U16(a) (*(volatile uint16_t *)(a)) +#define DIN_BUFFER_AT (DIN_STATE_AT + 8u) +#define DIN_PENDING_AT (DIN_STATE_AT + 28u) +static struct mf_state state; +static int was_enabled, was_allowed; +static unsigned last_kit = ~0u; +#define REFRESH_BLOCKS 3000u /* two seconds of stock 32-frame audio blocks */ +static volatile uint32_t audio_blocks; +static uint32_t refresh_at; +/* The existing stock render hook runs once per 32 frames at 48 kHz, including + * stopped transport. Count only; no audio processing or MIDI work here. + */ +void mf_audio_clock(void) { ++audio_blocks; } +/* Original diagnostic counters/values for local emulator probes. */ +volatile struct { + unsigned ticks, app, kit, sound, accessor_vtable, parameter_vtable; + unsigned parameter_get, configuration, enabled, allowed, sent; + int channel; + int values[7]; +} mf_probe; + +static int enabled(void) { return core_store_get(STORE(midi_feedback_enabled), 0, 0) != 0; } +int mf_label_enabled(void) +{ + return enabled(); +} +static void toggle(void) +{ + core_store_set(STORE(midi_feedback_enabled), 0, 0, !enabled()); + mf_reset(&state); + refresh_at = audio_blocks; +} +static void refresh(void) { mf_request_refresh(&state); refresh_at = audio_blocks; } +static int nothing(void) { return 0; } +static const void *const toggle_row[] = {mf_toggle_label, toggle, nothing, nothing}; +static const void *const refresh_row[] = {mf_refresh_label, refresh, nothing, nothing}; +void mf_settings(void *menu) +{ + core_additem(menu, toggle_row); + core_additem(menu, refresh_row); +} + +/* Stock DIN enqueue can wait for space. Validate its descriptor AND ring + * bookkeeping under masked interrupts, reserving the whole active span. + * Any inconsistent/special state defers; hardware can still advance or reload + * its remaining count while CPU interrupts are masked. See mf_queue_admits. + */ +static int send_cc(unsigned channel, unsigned cc, unsigned value) +{ + uint16_t sr; + uint32_t active, end, begin, block, remaining, pending; + uint8_t message[3] = {(uint8_t)(0xb0 | channel), (uint8_t)cc, (uint8_t)value}; + int sent = 0; + __asm__ volatile ("move.w %%sr,%0\n\tmove.w #0x2700,%%sr" : "=d"(sr) : : "memory", "cc"); + if (U32(MIDI_READY_AT) && U32(DIN_BUFFER_AT)) { + active = U32(DIN_STATE_AT); + end = U32(DIN_STATE_AT + 20u); + begin = U32(DIN_STATE_AT + 32u); + block = U16(DMA_BLOCK_AT); + remaining = U16(DMA_BLOCK_AT - 8u); + pending = U32(DIN_PENDING_AT); + if (end < 4096u && begin < 4096u && + mf_queue_admits(active, (end - begin) & 4095u, block, remaining, pending)) { + DIN_ENQUEUE(3, message); + sent = 1; + } + } + __asm__ volatile ("move.w %0,%%sr" : : "d"(sr) : "memory", "cc"); + return sent; +} + +static int sample_track(unsigned app, unsigned config, int track, uint32_t now) +{ + static const uint8_t slots[6] = {30, 31, 33, 35, 40, 41}; + unsigned kit = app + 352, accessor = TRACK_SOUND((void *)kit, track); + unsigned sound, vtable, p; + int channel = TRACK_CHANNEL(config, track); + if (!accessor) return 0; + vtable = *(unsigned *)accessor; + sound = ((unsigned (*)(unsigned))(*(unsigned *)(vtable + 0x28)))(accessor); + if (!sound) return 0; + /* Internal live kit: 16-byte name, thirteen 8.8 LEVEL words, then + * twelve 152-byte sound records. Verified against the private snapshot: + * CC95=37 produced LEVEL=37*256 while AMP Volume remained separate. + * Read bytes because these internal records can be unaligned. + */ + { + const volatile uint8_t *level = (const volatile uint8_t *)(sound - 26u - 150u * track); + if (track == 0) mf_probe.values[0] = *level; + mf_observe(&state, track, 0, channel, *level, now); + } + if (track == 0) { + mf_probe.sound = sound; + mf_probe.accessor_vtable = vtable; + mf_probe.parameter_vtable = 0; + mf_probe.parameter_get = 0; + mf_probe.channel = channel; + } + for (p = 0; p < 6; ++p) { + int value = *(volatile int16_t *)(sound + 0x14 + 2u * slots[p]); + if (track == 0) mf_probe.values[p + 1] = value >> 8; + mf_observe(&state, track, p + 1, channel, value >> 8, now); + } + return 1; +} + +void mf_tick(void *ctrl) +{ + unsigned app, config, kit, track; + uint32_t now = audio_blocks; + int on, allowed, port; + (void)ctrl; + ++mf_probe.ticks; + on = enabled(); + mf_probe.enabled = on; + app = APP(); + mf_probe.app = app; + if (!app) return; + config = CONFIG(app); + mf_probe.configuration = config; + mf_probe.kit = app + 352; + if (!on) { if (was_enabled) mf_reset(&state); was_enabled = was_allowed = 0; refresh_at = now; return; } + port = OUTPUT_PORT(config); + allowed = PARAM_ON(config) && PARAM_KIND(config) == 1 && (port == 1 || port == 3); + mf_probe.allowed = allowed; + if (!was_enabled || !was_allowed) { mf_reset(&state); refresh_at = now; } + was_enabled = 1; + was_allowed = allowed; + if (!allowed) return; + { + const volatile uint8_t *k = (const volatile uint8_t *)WORKING_KIT_AT; + kit = (unsigned)k[0] << 24 | (unsigned)k[1] << 16 | (unsigned)k[2] << 8 | k[3]; + } + if (kit >= 128) return; + if (kit != last_kit) { mf_reset(&state); last_kit = kit; } + for (track = 0; track < MF_TRACKS; ++track) { + if (!sample_track(app, config, track, now)) { mf_reset(&state); return; } + } + if ((uint32_t)(now - refresh_at) >= REFRESH_BLOCKS) { + mf_request_refresh(&state); + refresh_at = now; + } + mf_probe.sent += mf_flush(&state, send_cc); +} +void mf_project(int how, unsigned dropped) +{ + (void)how; (void)dropped; + mf_reset(&state); + was_enabled = was_allowed = 0; + last_kit = ~0u; + refresh_at = audio_blocks; +} diff --git a/sdk/analog-rytm-mkii/modules/midi-feedback/tests/feedback-test.c b/sdk/analog-rytm-mkii/modules/midi-feedback/tests/feedback-test.c new file mode 100644 index 000000000..7790e3de5 --- /dev/null +++ b/sdk/analog-rytm-mkii/modules/midi-feedback/tests/feedback-test.c @@ -0,0 +1,133 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#include +#include +#include "../src/feedback.h" +static unsigned count, blocked, last_cc, last_value, last_channel; +static unsigned seen[12][7]; +static int emit(unsigned ch, unsigned cc, unsigned value) +{ + unsigned p; + if (blocked) return 0; + assert(ch < 16 && cc < 128 && value < 128); + last_cc = cc; last_value = value; last_channel = ch; + for (p = 0; p < 7; ++p) if (cc == mf_cc[p] && ch < 12) ++seen[ch][p]; + ++count; + return 1; +} +int main(void) +{ + struct mf_state s = {0}; + unsigned t, p, i; + /* A block-only preflight admits these inconsistent states even though + * the sender's modular occupancy can leave less than one CC of room. + */ + assert(!mf_queue_admits(0,0,1,0,0)); + assert(!mf_queue_admits(1,1,2,0,0)); + assert(!mf_queue_admits(2,0,0,0,0)); + assert(!mf_queue_admits(1,0,0,0,0)); + assert(!mf_queue_admits(1,3,3,4,0)); + assert(mf_queue_admits(0,0,1,1,0)); + assert(mf_queue_admits(1,4029,4029,0,0)); + assert(!mf_queue_admits(1,4030,4030,0,0)); + /* Validate room against the sender's occupancy model for every DMA + * progress/reload value in a representative range of admitted states. + */ + for (t=1;t<4096;t+=31) for (p=0;p<4096;p+=29) { + if (!mf_queue_admits(1,t,t,t,p)) continue; + for (i=0;i<=t;++i) { + unsigned used=(t+i-t)&4095u; + assert(4096u-used >= p+64u+3u); + } + } + mf_reset(&s); + assert(!mf_flush(&s, emit)); + for (t = 0; t < 12; ++t) for (p = 0; p < 7; ++p) mf_offer(&s,t,p,t,64); + for (i = 0; i < 21; ++i) assert(mf_flush(&s,emit) == 4); + assert(count == 84 && !mf_flush(&s,emit)); + for (t = 0; t < 12; ++t) for (p = 0; p < 7; ++p) assert(seen[t][p] == 1); + /* Background refresh repeats every current assignment without moving + * the round-robin cursor or discarding the last transmitted values. + */ + mf_request_refresh(&s); + for (i = 0; i < 21; ++i) assert(mf_flush(&s,emit) == 4); + assert(count == 168 && !mf_flush(&s,emit)); + for (t = 0; t < 12; ++t) for (p = 0; p < 7; ++p) assert(seen[t][p] == 2); + /* Even requests arriving on every tick keep later tracks reachable. */ + for (i = 0; i < 21; ++i) { mf_request_refresh(&s); assert(mf_flush(&s,emit) == 4); } + for (t = 0; t < 12; ++t) for (p = 0; p < 7; ++p) assert(seen[t][p] == 3); + /* Clear that deliberate backlog before testing ordinary edits. */ + for (i = 0; i < 21; ++i) mf_flush(&s,emit); + /* A full wire queue retains the newest edit and sends it once later. */ + blocked = 1; + mf_offer(&s,0,0,0,1); + assert(!mf_flush(&s,emit)); + mf_offer(&s,0,0,0,127); + assert(s.coalesced == 1 && s.deferred == 1); + blocked = 0; + assert(mf_flush(&s,emit) == 1 && last_cc == 95 && last_value == 127); + assert(!mf_flush(&s,emit)); + /* Channel reassignment resends even when the parameter is unchanged. */ + mf_offer(&s,0,0,15,127); + assert(mf_flush(&s,emit) == 1 && last_channel == 15); + mf_offer(&s,0,0,16,0); + assert(!mf_flush(&s,emit)); + mf_offer(&s,0,0,0,-10); + assert(mf_flush(&s,emit) == 1 && last_value == 0); + mf_offer(&s,0,0,0,999); + assert(mf_flush(&s,emit) == 1 && last_value == 127); + /* Edits that return to the last transmitted value need no feedback. */ + mf_offer(&s,0,0,0,2); + mf_offer(&s,0,0,0,127); + assert(!mf_flush(&s,emit)); + mf_reset(&s); + assert(!mf_flush(&s,emit)); + /* Rapid filter sweeps must not send intermediate pickup targets, even + * when refresh is requested continuously. A different stable track keeps + * receiving feedback. After a pause, only the final filter values send. + */ + for (t=0;t<12;++t) for(p=0;p<7;++p) seen[t][p]=0; + for (i=0;i<64;++i) { + mf_observe(&s,0,1,0,(int)i,100*i); + mf_observe(&s,0,2,0,(int)i+10,100*i); + mf_observe(&s,1,0,1,55,100*i); + mf_request_refresh(&s); + mf_flush(&s,emit); + assert(!seen[0][1] && !seen[0][2]); + } + assert(seen[1][0]>0); + /* Extra UI callbacks without audio time passing must never settle it. */ + for(i=0;i<1000;++i) { + mf_observe(&s,0,1,0,63,6300); + mf_observe(&s,0,2,0,73,6300); + assert(!mf_flush(&s,emit)); + } + for (i=1;i<=MF_SETTLE_BLOCKS;++i) { + mf_observe(&s,0,1,0,63,6300+i); + mf_observe(&s,0,2,0,73,6300+i); + if(i { }) describe('Analog Rytm MKII library', () => { - it('lists Audio In FX, CHORUS, Pad Pressure Fix, Control In Actions, Ctrl All, Env Reset Amp, Euclid Accents, Filter Hz, FLANGER, Live Rec Retrig Fix, Loop Sync, Main RMS, PHASER, Pipo Loop, QPERF, Quick Trig Conditions, Quick Velocity+Aftertouch Assign, Sample RATE, Silent Pad+Trig, Slice Loop, Temp Save, Velocity Humanise and WAVEFOLDER and leaves the core build preview once a module is in the library', () => { + it('lists Audio In FX, CHORUS, Pad Pressure Fix, Control In Actions, Ctrl All, Env Reset Amp, Euclid Accents, Filter Hz, FLANGER, Live Rec Retrig Fix, Loop Sync, Main RMS, MIDI Feedback, PHASER, Pipo Loop, QPERF, Quick Trig Conditions, Quick Velocity+Aftertouch Assign, Sample RATE, Silent Pad+Trig, Slice Loop, Temp Save, Velocity Humanise and WAVEFOLDER and leaves the core build preview once a module is in the library', () => { expect(DEVICES_BY_ID['analog-rytm-mkii'].status).toBe('preview') expect(isCoreBuildPreview('analog-rytm-mkii')).toBe(false) - expect(DIGI_MODS.filter(mod => mod.device === 'analog-rytm-mkii').map(mod => [mod.id, mod.version, mod.releases])).toEqual([['audio-in-fx', '0.1.0', ['1.74']], ['chorus', '0.1.0', ['1.74']], ['chromatic-aftertouch-fix', '0.2.0', ['1.74']], ['control-in-actions', '0.1.2', ['1.74']], ['ctrl-all', '1.2.0', ['1.74']], ['env-reset-amp', '1.0.0', ['1.74']], ['euclid-accents', '1.2.0', ['1.74']], ['filter-hz', '1.2.0', ['1.74']], ['flanger', '0.1.0', ['1.74']], ['live-rec-retrig-fix', '0.2.1', ['1.74']], ['loop-sync', '0.3.2', ['1.74']], ['main-rms', '1.0.0', ['1.74']], ['phaser', '0.1.0', ['1.74']], ['pipo-loop', '0.1.2', ['1.74']], ['qperf', '0.2.0', ['1.74']], ['quick-fill-trig-condition', '0.2.0', ['1.74']], ['quick-velocity-aftertouch-assign', '0.1.0', ['1.74']], ['sample-rate', '0.1.1', ['1.74']], ['silent-pad-trig', '0.7.0', ['1.74']], ['slice-loop', '1.0.0', ['1.74']], ['temp-save', '0.1.0', ['1.74']], ['velocity-humanise', '1.2.0', ['1.74']], ['wavefolder', '0.1.0', ['1.74']]]) + expect(DIGI_MODS.filter(mod => mod.device === 'analog-rytm-mkii').map(mod => [mod.id, mod.version, mod.releases])).toEqual([['audio-in-fx', '0.1.0', ['1.74']], ['chorus', '0.1.0', ['1.74']], ['chromatic-aftertouch-fix', '0.2.0', ['1.74']], ['control-in-actions', '0.1.2', ['1.74']], ['ctrl-all', '1.2.0', ['1.74']], ['env-reset-amp', '1.0.0', ['1.74']], ['euclid-accents', '1.2.0', ['1.74']], ['filter-hz', '1.2.0', ['1.74']], ['flanger', '0.1.0', ['1.74']], ['live-rec-retrig-fix', '0.2.1', ['1.74']], ['loop-sync', '0.3.2', ['1.74']], ['main-rms', '1.0.0', ['1.74']], ['midi-feedback', '0.1.0', ['1.74']], ['phaser', '0.1.0', ['1.74']], ['pipo-loop', '0.1.2', ['1.74']], ['qperf', '0.2.0', ['1.74']], ['quick-fill-trig-condition', '0.2.0', ['1.74']], ['quick-velocity-aftertouch-assign', '0.1.0', ['1.74']], ['sample-rate', '0.1.1', ['1.74']], ['silent-pad-trig', '0.7.0', ['1.74']], ['slice-loop', '1.0.0', ['1.74']], ['temp-save', '0.1.0', ['1.74']], ['velocity-humanise', '1.2.0', ['1.74']], ['wavefolder', '0.1.0', ['1.74']]]) }) }) diff --git a/vendor/elekloader/catalog/midi-feedback-0.1.0-experimental-os1.74.elemod b/vendor/elekloader/catalog/midi-feedback-0.1.0-experimental-os1.74.elemod new file mode 100644 index 000000000..9663b0e94 --- /dev/null +++ b/vendor/elekloader/catalog/midi-feedback-0.1.0-experimental-os1.74.elemod @@ -0,0 +1,898 @@ +{ + "elemod": 2, + "id": "midi-feedback", + "version": "0.1.0-experimental", + "title": "MIDI Feedback", + "description": "Automatic feedback for seven parameters per drum track, for controller pickup.", + "category": "midi-usb", + "author": "claptom-music", + "license": "GPL-3.0-or-later", + "target": { + "device": "analog-rytm-mk2", + "product": "Analog Rytm MKII", + "os": "1.74", + "syx_sha256": "cb0f99d620edde994fb860c0e79cc2464e427d06882828cfdfb00fc53700e123", + "section3_sha256": "34cd0c4da8e4b810d1b25284475a99ea53821e2ab7d30a978bf15dc578251f3b", + "section3_len": 3005432 + }, + "sections": { + ".run": { + "align": 4, + "len": 2445, + "parts": [ + [ + "hex", + "42804e754879000000004eb900000000588f41f90000000023d0000000004e754e56ffec70b080ae00082f021d6e0013fffee188102e000f3d40fffc40c146fc27004ab9419f28a8674a4ab9413da66467422039413da65c2d40ffec2039413da6702079413da67c3439fc0454bc3279fc0454b43d42fff4240884803d49fff622422439413da6782d42fff8b3fc00000fff630c428046c1242effe84e5e4e752f023f2efff69088028000000fff42673f2efff442672f002f2effec2d41fff04eb9000000004fef0014222efff04a8067c4486efffc487800034eb940001dea508f222efff0700146c1242effe84e5e4e752f02243c0000000042a742a72f024eb9000000004a8057c0710044802f0042a742a72f024eb9000000004879000000004eb9000000004fef0020241f41f90000000023d0000000004e7552b9000000004e7542a742a74879000000004eb9000000004fef000c4a8056c0710044804e752f0a4879000000002f2f000c45f9000000004e924879000000002f2f00144e924fef0010245f4e754fefffd448d77cfc42a742a74879000000002c390000000047f90000000052934eb9000000004fef000c24004a8056c07100448023c0000000004eb94017fa0a280023c0000000004a80670001d82f004eb9400ae49e068400000160588f23c0000000002e0023c4000000004a82670001be2f004eb9400b55b62f0726004eb9400b56c0508f24004a80670001c62f074eb9400b563c588f7201b280670002004280428223c0000000004ab900000000670001b24ab900000000670001a8720123c10000000023c2000000004a826700015414394076631770181639407663181239407663197bb94076631ae1aa77837181727f48434243e188848384858480b28265000120b4b90000000067144879000000004eb90000000023c200000000588f3c7cffe6428349f9000000004bf9000000002f032f044eb9400a67ca2f032f0724404eb9400b51564fef00102a004a8a67000180241222422f0a206900284e90588f24404a806700016a41f608004a836600013c719023c00000000010102f0671802f002f0542a742a74879000000004e9423ca0000000023c20000000042b90000000042b90000000023c5000000004fef0018428245ea001471b52800528271720a00e0804a83660427802c302f062f002f052f022f034879000000004e944fef00187006b08266d052834deeff6a720cb2836600ff3c200690b9000000000c8000000bb7620000e2487afc884879000000004eb900000000508fd1b9000000004cd77cfc4fef002c4e754ab900000000664642b90000000042b90000000023c6000000004cd77cfc4fef002c4e75428023c0000000004ab9000000006600fe524879000000004eb90000000023c600000000588f6000fe444879000000004eb900000000588f42b90000000042b90000000023c60000000060aa70fdc680b28357c34483758320026000fdf610102f0645ea0014428271802f002f0542a72f034879000000004e944fef00186000feea4cd77cfc43f9000000002f4900304fef002c4ef9000000004879000000004eb900000000588f487afb9a48790000000023c6000000004eb900000000508fd1b9000000006000ff0a4879000000004eb90000000042b90000000042b900000000588f70ff41f90000000023c00000000023d0000000004e750000202f000880af000c0c8000000fff622c202f000cb0af00106522202f00140c800000100062164aaf000466144aaf0008660a202f000cb0af0010671c42804e757001b0af000466f44aaf000c67ee202f000cb0af000866e4202f0008d0af00140c8000000fbd53c0710044804e75226f000420090680000003f441e900044201421042a8000441e8000c1141fff61141fff51141fff7b08866e442a903f04e75202f000420400680000003f458884a10670672011141000241e8000cb08866ee4e75518f2f02700b222f0014b081650000a07406b4af0018650000962001e7889081d0af0018720fb2af001c650000b6222f0020747fb4816d7c4a816d00008e740c4c002800206f001022424a302804674ac0fc000cd1c01f5000074a28000666244a280005671e71af000775a80002b480661271a800012f40000871a80003b0af00086716206f001071b09801b0af001c676c206f001052a803f4e1897001206f0010122f001f1180980431819800241f508f4e75740c727f4c002800206f001022424a30280467d26086740c42814c002800206f001022424a30280467bc6000ff704201740c4c020800206f001011810806424131810804241f508f4e7571af0007b0816794206f001052a803f4608a4feffff4700b2f0a2f02222f001cb081650000827406b4af002065782001740fe7889081d0af0020b4af002465000116747fb4af00286d0000ce206f00284a886d0000e4740c4c002800226f00182f42000cd3c24a29000766442f082f2f00282f2f00282f012f2f00284ebafe847201206f002c4200d1ef0020216f00400008246f002011410007206f002c4fef00141180a804241f245f4fef000c4e75c0fc000c246f0018d5c071922f4a0010b1c066a8246f001071aa0001b0af0024669a2f082f2f00282f2f00282f012f2f00282f49001c4ebafe1a7201226f001c202f00404fef001490a90008206f0018246f000c134100070c80000002ed52c044801180a804608e740c4c002800226f0018307c007f2f42000cd3c24a2900076700ff3a6000ff7a740c91c84c002800226f00182f42000cd3c24a2900076700ff1c6000ff5c720c4c010800206f001842b00804241f245f4fef000c4e754fefffdc48d71cfc246f00287854286f002c428547f900000000242a03f0760c4c02380041f238004a280004677c101071804a280006660e4a280005670873a80002b280675822027e074c47100673a800012f0071b368002f002f014e944fef000c4a8067662002725452804c410002303c010041f23800528535903802538435803805254203f04a8467067204b285668c20054cd71cfc4fef00244e757da8000173a80003b286669c20027e5452804c4700025384254203f04a846600ff6020054cd71cfc4fef00244e75200552aa03f84cd71cfc4fef00244e7500004e56fffc2f0224084eb90000000043fa00424a80671243fa004d600c4e56fffc2f02240843fa001e486effff2f092f024eb9401bcff04fef000c2002242efff84e5e4e7553454e4420464545444241434b004d49444920464545444241434b3a204f4646004d49444920464545444241434b3a204f4e0000ffffffff1e1f2123282900000000000000000000000000000000000000000000000000000000000000005f4a4b4e505253" + ] + ] + }, + ".bss": { + "align": 4, + "size": 1112 + } + }, + "symbols": { + "nothing": [ + ".run", + 0 + ], + "refresh": [ + ".run", + 4 + ], + "state": [ + ".bss", + 92 + ], + "audio_blocks": [ + ".bss", + 80 + ], + "refresh_at": [ + ".bss", + 76 + ], + "send_cc": [ + ".run", + 32 + ], + "toggle": [ + ".run", + 242 + ], + "toggle_row": [ + ".run", + 2422 + ], + "refresh_row": [ + ".run", + 2406 + ], + "was_enabled": [ + ".bss", + 88 + ], + "was_allowed": [ + ".bss", + 84 + ], + "last_kit": [ + ".run", + 2396 + ], + "slots.0": [ + ".run", + 2400 + ], + "MF_STRING_CTOR": [ + "abs", + 1075564528 + ], + "mf_disabled_text": [ + ".run", + 2358 + ], + "mf_make_label": [ + ".run", + 2316 + ], + "mf_enabled_text": [ + ".run", + 2377 + ], + "mf_refresh_text": [ + ".run", + 2344 + ], + "mf_observe": [ + ".run", + 1706 + ], + "mf_request_refresh": [ + ".run", + 1400 + ], + "mf_project": [ + ".run", + 1190 + ], + "mf_probe": [ + ".bss", + 0 + ], + "mf_tick": [ + ".run", + 394 + ], + "mf_toggle_label": [ + ".run", + 2276 + ], + "mf_queue_admits": [ + ".run", + 1240 + ], + "mf_flush": [ + ".run", + 2054 + ], + "mf_refresh_label": [ + ".run", + 2304 + ], + "mf_settings": [ + ".run", + 354 + ], + "mf_cc": [ + ".run", + 2438 + ], + "mf_offer": [ + ".run", + 1434 + ], + "mf_audio_clock": [ + ".run", + 316 + ], + "mf_reset": [ + ".run", + 1350 + ], + "mf_label_enabled": [ + ".run", + 324 + ] + }, + "exports": [ + "mf_audio_clock", + "mf_cc", + "mf_flush", + "mf_label_enabled", + "mf_observe", + "mf_offer", + "mf_probe", + "mf_project", + "mf_queue_admits", + "mf_refresh_label", + "mf_request_refresh", + "mf_reset", + "mf_settings", + "mf_tick", + "mf_toggle_label" + ], + "imports": [ + "core_additem", + "core_store_get", + "core_store_set", + "midi_feedback_enabled" + ], + "weak": [], + "relocs": [ + [ + ".run", + 6, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 12, + "abs32", + "sec:.run", + 1400 + ], + [ + ".run", + 20, + "abs32", + "sec:.bss", + 80 + ], + [ + ".run", + 26, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 194, + "abs32", + "sec:.run", + 1240 + ], + [ + ".run", + 246, + "abs32", + "sym:midi_feedback_enabled", + 0 + ], + [ + ".run", + 258, + "abs32", + "sym:core_store_get", + 0 + ], + [ + ".run", + 280, + "abs32", + "sym:core_store_set", + 0 + ], + [ + ".run", + 286, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 292, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 304, + "abs32", + "sec:.bss", + 80 + ], + [ + ".run", + 310, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 318, + "abs32", + "sec:.bss", + 80 + ], + [ + ".run", + 330, + "abs32", + "sym:midi_feedback_enabled", + 0 + ], + [ + ".run", + 336, + "abs32", + "sym:core_store_get", + 0 + ], + [ + ".run", + 358, + "abs32", + "sec:.run", + 2422 + ], + [ + ".run", + 368, + "abs32", + "sym:core_additem", + 0 + ], + [ + ".run", + 376, + "abs32", + "sec:.run", + 2406 + ], + [ + ".run", + 408, + "abs32", + "sym:midi_feedback_enabled", + 0 + ], + [ + ".run", + 414, + "abs32", + "sec:.bss", + 80 + ], + [ + ".run", + 420, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 428, + "abs32", + "sym:core_store_get", + 0 + ], + [ + ".run", + 448, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 462, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 490, + "abs32", + "sec:.bss", + 28 + ], + [ + ".run", + 498, + "abs32", + "sec:.bss", + 8 + ], + [ + ".run", + 560, + "abs32", + "sec:.bss", + 36 + ], + [ + ".run", + 566, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 576, + "abs32", + "sec:.bss", + 84 + ], + [ + ".run", + 588, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 594, + "abs32", + "sec:.bss", + 84 + ], + [ + ".run", + 658, + "abs32", + "sec:.run", + 2396 + ], + [ + ".run", + 666, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 672, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 678, + "abs32", + "sec:.run", + 2396 + ], + [ + ".run", + 692, + "abs32", + "sec:.run", + 1706 + ], + [ + ".run", + 698, + "abs32", + "sec:.run", + 2400 + ], + [ + ".run", + 772, + "abs32", + "sec:.bss", + 48 + ], + [ + ".run", + 792, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 800, + "abs32", + "sec:.bss", + 12 + ], + [ + ".run", + 806, + "abs32", + "sec:.bss", + 16 + ], + [ + ".run", + 812, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 818, + "abs32", + "sec:.bss", + 24 + ], + [ + ".run", + 824, + "abs32", + "sec:.bss", + 44 + ], + [ + ".run", + 870, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 904, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 924, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 930, + "abs32", + "sec:.run", + 2054 + ], + [ + ".run", + 938, + "abs32", + "sec:.bss", + 40 + ], + [ + ".run", + 954, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 962, + "abs32", + "sec:.bss", + 84 + ], + [ + ".run", + 968, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 974, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 992, + "abs32", + "sec:.bss", + 36 + ], + [ + ".run", + 998, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 1008, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1014, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 1020, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 1032, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1038, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 1046, + "abs32", + "sec:.bss", + 84 + ], + [ + ".run", + 1052, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 1058, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 1104, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1124, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1138, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 1144, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1150, + "abs32", + "sec:.run", + 1400 + ], + [ + ".run", + 1162, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1168, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 1174, + "abs32", + "sec:.run", + 2054 + ], + [ + ".run", + 1182, + "abs32", + "sec:.bss", + 40 + ], + [ + ".run", + 1192, + "abs32", + "sec:.bss", + 92 + ], + [ + ".run", + 1198, + "abs32", + "sec:.run", + 1350 + ], + [ + ".run", + 1204, + "abs32", + "sec:.bss", + 84 + ], + [ + ".run", + 1210, + "abs32", + "sec:.bss", + 88 + ], + [ + ".run", + 1220, + "abs32", + "sec:.bss", + 80 + ], + [ + ".run", + 1226, + "abs32", + "sec:.run", + 2396 + ], + [ + ".run", + 1232, + "abs32", + "sec:.bss", + 76 + ], + [ + ".run", + 2076, + "abs32", + "sec:.run", + 2438 + ], + [ + ".run", + 2286, + "abs32", + "sec:.run", + 324 + ], + [ + ".run", + 2406, + "abs32", + "sec:.run", + 2304 + ], + [ + ".run", + 2410, + "abs32", + "sec:.run", + 4 + ], + [ + ".run", + 2414, + "abs32", + "sec:.run", + 0 + ], + [ + ".run", + 2418, + "abs32", + "sec:.run", + 0 + ], + [ + ".run", + 2422, + "abs32", + "sec:.run", + 2276 + ], + [ + ".run", + 2426, + "abs32", + "sec:.run", + 242 + ], + [ + ".run", + 2430, + "abs32", + "sec:.run", + 0 + ], + [ + ".run", + 2434, + "abs32", + "sec:.run", + 0 + ] + ], + "sites": [], + "collections": {}, + "contribute": [ + { + "to": "ev_render_out", + "order": 60, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:mf_audio_clock", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_tick", + "order": 60, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:mf_tick", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_settings", + "order": 60, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:mf_settings", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_project", + "order": 60, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:mf_project", + 0 + ] + ], + "claims": [] + } + ], + "copied": [], + "storage": [ + { + "sym": "midi_feedback_enabled", + "scope": "project", + "bits": 1 + } + ], + "resources": { + "regions": [], + "names": [ + "settings:MIDI FEEDBACK", + "settings:SEND FEEDBACK" + ], + "core": "0.7" + }, + "requires": [ + "core" + ], + "conflicts": [], + "signature": null +}