diff --git a/docs/MACHINE_RECIPE.md b/docs/MACHINE_RECIPE.md index 52f221fdf9..87ec33b9ac 100644 --- a/docs/MACHINE_RECIPE.md +++ b/docs/MACHINE_RECIPE.md @@ -42,7 +42,7 @@ Read this before you plan a core, a base or the first modules for any machine ot | Analog Four MKII | research | elekloader core-a4 0.2 | not started | none known | as the Rytm: same platform | | Digitakt II | preview | Modwerk base from core-dt2 1.1's source (elekloader#221 at `0df8409`), with sequencer and project hooks | started: the site builds the [pinned base](../sdk/machines/digitakt-ii/elekloader/README.md) `8650bb8a` (`e88273ed`, which passed on one unit on 17 November 2026, with kit data ended before the project archive); downloads off. The USB link is not started (SysEx over USB MIDI, from the Rytm's) | digikit (emulator only) | the exact build on a second unit, then the USB link ([goal](../sdk/machines/digitakt-ii/GOAL.md)) | | Syntakt | research | Modwerk boot probe | not started | digiemu's port (open upstream pull request; emulator only) | the core stage, planned as the base | -| Digitone II | research | core-dn2 0.3, with the Digitakt II 1.1 additions, in toonst's elekloader fork: boots and its six UI events run on units (18 November 2026) | started: Modwerk's builder carries the device (`machine:base` and the site's kit), and `machine:base` builds a base from the Digitakt II's source at core-dn2 0.3's addresses (19 November 2026), which ran on a unit and is bound (`base-binding.json`, the site's catalog); the page builds it for beta users, and Modwerk's packer keeps images under the unit's 2 MiB update limit | digikit (the author's; emulator only) | the Modwerk base, reusing the Digitakt II's with its own recipe as the Rytm MKI does, then flashing from the site and the link ([goal](../sdk/machines/digitone-ii/GOAL.md)) | +| Digitone II | preview | core-dn2 0.3, with the Digitakt II 1.1 additions, in toonst's elekloader fork: boots and its six UI events run on units (18 November 2026) | started: Modwerk's builder carries the device (`machine:base` and the site's kit), and `machine:base` builds a base from the Digitakt II's source at core-dn2 0.3's addresses (19 November 2026), which ran on a unit and is bound (`base-binding.json`, the site's catalog); the page builds it for beta users, and Modwerk's packer keeps images under the unit's 2 MiB update limit | digikit (the author's; emulator only) | the Modwerk base, reusing the Digitakt II's with its own recipe as the Rytm MKI does, then flashing from the site and the link ([goal](../sdk/machines/digitone-ii/GOAL.md)) | | Model:Cycles | research | Modwerk base from core-mc 0.3's source (Elekloader v0.11.0) plus a key-LED hook ([events.json](../sdk/machines/model-cycles/events.json)) | started: built by `npm run machine:base`; runs on a unit with a test module on the LED hook; the USB link started over USB MIDI SysEx: in every base the identity, the audio load, a diagnostics log in the Octatrack's layout and the Octatrack's runtime loader (modules on trial, kept, undone, refused while playing), on a unit flashed with the release base (24 November 2026); development bases add memory reads, keys, encoder turns and a RAM boot ([LINK.md](../sdk/machines/model-cycles/LINK.md)); the site builds the pinned base from the owner's OS file as a local preview, downloads off; the MCP's `device_status` reads its identity, `device_load` the audio load, `device_log` the log, and its trial tools load modules (24 November 2026) | digiemu (emulator only) | the first module, Control All Config ([guide](../sdk/machines/model-cycles/README.md)) | | Analog Keys | research | none | not started | none known | the machine steps first ([add a machine](ADD_A_MACHINE.md)) | | Zoom MultiStomp | preview (MS-70CDR); research (MS-50G, MS-60B, G1on) | MIDISTOMP on the MS-70CDR; the MS-50G and MS-60B need builds from their own OS | browser base build and flash over Web MIDI. Shared MCP status and load tools use the same link. Load needs the MIDISTOMP SysEx load reply. | Ziddle (emulator only) | Prove a RAM-only effect trial and rollback on the MS-70CDR before wiring review, trial, Keep and Undo. See the [plan](ZOOM_MULTISTOMP.md#plan). | diff --git a/sdk/digitone-ii/modules/README.md b/sdk/digitone-ii/modules/README.md index ec5479bdd4..46e6e5ae82 100644 --- a/sdk/digitone-ii/modules/README.md +++ b/sdk/digitone-ii/modules/README.md @@ -1,5 +1,5 @@ # Digitone II modules -Each folder here will be a library module for Digitone II OS 1.12. There are none yet: the page builds Modwerk's base alone (beta), and how mods reach the musician is agreed with the owner with the first module (board, 19 November 2026). Downloads stay off until the owner turns them on. +Each folder here is a library module for Digitone II OS 1.12 on Modwerk's Digitone II base (core 1.1). The first is [Voice Spread](voice-spread/): its two value rows in SETTINGS > PERSONALIZE set the pattern for module settings, and it acts on the voices through the base's `ev_frame_params`, which on the Digitone II hands over the 16 voices, not the tracks. Downloads stay off until the owner turns them on. Create one with `npm run module:new -- my-mod --machine digitone-ii --author your-github-login`; see [the Digitone II goal](../../machines/digitone-ii/GOAL.md) and [base](../../machines/digitone-ii/elekloader/README.md). diff --git a/sdk/digitone-ii/modules/voice-spread/LICENSE b/sdk/digitone-ii/modules/voice-spread/LICENSE new file mode 100644 index 0000000000..f288702d2f --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/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/digitone-ii/modules/voice-spread/README.md b/sdk/digitone-ii/modules/voice-spread/README.md new file mode 100644 index 0000000000..fce6e3579c --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/README.md @@ -0,0 +1,68 @@ +# Voice Spread — Digitone II + +A Digitone II mod by @prodbysmolec. Version 0.1.0-experimental, for OS 1.12 on Modwerk's Digitone II base (core 1.1). It ran on a Digitone II from RAM; see [TESTING.md](TESTING.md) for what was run and what was not. The screenshot is from the unit's screen, read over the base's USB link. + +## Overview + +The Digitone II plays each note on a voice of its own, and a chord takes several. Voice Spread gives every voice a fixed place in the stereo field: neighbouring voices go to opposite sides, and the first voices a chord takes land far apart, so two or three notes already sound wide. FILTER SPREAD also moves each voice's filter frequency a few steps up or down, so the notes of a chord differ slightly in brightness. + +- Acts on the live voices only: kits, sounds and saved patterns stay exactly as they are. +- OFF gives the stock sound back at once. +- One setting for the whole project, saved with it. +- Uses two base hooks (`ev_personalize`, `ev_frame_params`) and patches no stock site. + +## Controls + +Two rows at the end of SETTINGS > PERSONALIZE. LEFT and RIGHT change the value, as on the stock rows there. + +| Row | Values | What it does | +| --- | --- | --- | +| VOICE SPREAD | OFF, 25, 50, 75, 100 | How far the voices are spread, in percent of the full width. At 100 the outermost voices sit hard left and right. | +| FILTER SPREAD | OFF, LOW, MID, HIGH | How far each voice's filter frequency moves: at most 4, 10 or 20 of the 127 steps, by a different amount and direction for each voice. | + +## Usage + +- Pads and chords on a polyphonic track: VOICE SPREAD 50 or more. +- Chords that sound too static: FILTER SPREAD LOW. +- A mono check of the mix: both OFF, and the stock sound is back. + +### Quick tutorial + +1. Install a build of the Digitone II base that contains Voice Spread. +2. Press SETTINGS, open PERSONALIZE and move down to VOICE SPREAD. +3. Press RIGHT until it shows 75, then play a chord on a polyphonic track: its notes spread from left to right. +4. Move down to FILTER SPREAD and choose LOW: the notes differ slightly in brightness. +5. Save the project to keep the setting. + +## Compatibility and limitations + +- Digitone II, OS 1.12, on Modwerk's Digitone II base 1.1. It patches no stock site and claims only its project data (`projdata:VSPR`). +- The spread follows the voices, not the tracks: every track's notes are spread, and a mono track's notes can land on different voices and so on different sides from note to note. +- The offset is added to the track's own pan and held in the pan's range. A track panned hard to one side therefore spreads to one side only. +- The default filter frequency is the top of the range, so there FILTER SPREAD can only close voices, never open them. +- The setting is per project, not per track or per kit. A project saved without the module loads with both rows OFF. +- Parameter locks and the stock LFOs still move pan and filter; Voice Spread adds its offset before the stock modulators add theirs. + +### Stock flows this module touches + +None. It adds two rows to the end of SETTINGS > PERSONALIZE, which the base shares between modules, and changes no stock row, page or gesture. + +## How it works + +The base calls `ev_frame_params` once a frame (1,500 times a second) in the frame interrupt, with the parameter values of the 16 voices, 101 to a voice, after the stock smoother and before the stock modulators. On the Digitone II these values belong to the voices, not the tracks. Voice Spread adds a fixed offset of its own to each voice's pan (Sound parameter 89) and filter frequency (Sound parameter 67) and holds the result between 0 and 127. The places, in eighths of the full width, are −8, +8, −4, +4, −6, +6, −2, +2 and then the odd eighths, so neighbouring voices are on opposite sides and the offsets of all 16 voices add up to zero. The filter uses the same places in another order, so a voice's side and its brightness do not follow each other. + +The two rows are value rows from the base (`core_addvalue`). The setting is four bytes in the project file's header (`core_projdata`, tag `VSPR`): a version and the two levels. + +## Tests and measurements + +The evidence tier is `author-hardware`. [TESTING.md](TESTING.md) lists what was run on the unit and what was not. Memory: 852 bytes of the base's shared area, measured from the linked image. Load: read from the code; at most 16 voices × two additions and two range checks per frame. + +## Authorship and licences + +Original work by @prodbysmolec, GPL-3.0-or-later ([LICENSE](LICENSE)). The Sound parameter indices and the voice layout were read from the unit's memory over Modwerk's Digitone II link; no firmware bytes are in this folder. + +## Screens and audio + +![SETTINGS > PERSONALIZE with VOICE SPREAD at 75](media/personalize.png) + +The two rows at the end of SETTINGS > PERSONALIZE, read from a Digitone II's screen over Modwerk's USB link. No audio recording is published: the module only moves each voice's pan and filter frequency, which the screen and the parameter readings in [TESTING.md](TESTING.md) show. diff --git a/sdk/digitone-ii/modules/voice-spread/TESTING.md b/sdk/digitone-ii/modules/voice-spread/TESTING.md new file mode 100644 index 0000000000..1bd5cff1e7 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/TESTING.md @@ -0,0 +1,32 @@ +# Voice Spread testing + +## On a unit (prodbysmolec, 23 November 2026) + +Digitone II, stock OS 1.12 (`Digitone_II_OS1.12.syx`, sha256 `7e5b8a733d4ab1fd…`). This folder's source compiled with GCC 16.2.0 `m68k-elf` (`scripts/build-elemod-packages.mjs`, the local toolchain, not yet the pinned Docker image), linked by Elekloader 0.11.0's patcher with Modwerk's Digitone II development base (`modwerk-base-digitone-ii-dev-70f7a8dc`: the plain base 1.1 plus the USB link) for OS 1.12. Recipe `1.12.json` sha256 `582ac4a6d13297aab2b60470520513635475711e3178f88f03f2a09f7d88ec60`, source tree `80b9bcc61e938fec…` (the build inventory's `sourceTreeSha256`, at the module's C sources of this commit). Image sha256 `5193559275f5656e9dafd88790bd27ee0d1dd7b9322a08f122b1a13e2fcc4270`. Booted from RAM over the link (`dn2_link.py ramboot`); nothing was written to the flash. + +| Check | How | Result | +| --- | --- | --- | +| The rows appear | SETTINGS > PERSONALIZE, screen read over the link | VOICE SPREAD and FILTER SPREAD are the last two rows, label left and value right as on the stock rows ([screenshot](media/personalize.png)). | +| LEFT and RIGHT step the values | link key presses | OFF → 25 → 50 → 75 → 100 and OFF → LOW → MID → HIGH; the row redraws at once. | +| Rows in plain SETTINGS (first build) | the same, from `ev_settings` | The value was drawn over the label; the rows moved to PERSONALIZE, where `core_addvalue` lays them out as designed. | +| The offsets reach the voices | VOICE SPREAD 100, FILTER SPREAD HIGH; the smoothed voice values (0x800068e4 + 0x22 + 202 × voice) and the frame records sent to the DSP (0x80005e60 + 0xda + 146 × voice) read over the link | Pan of voices 0–15: 0x0100, 0x7f00, 0x2080, 0x5f80, 0x10c0, 0x6f40, 0x3040, 0x4fc0, 0x08e0, 0x7720, 0x2860, 0x57a0, 0x18a0, 0x6760, 0x3820, 0x47e0 (centre 0x4000 plus the expected offsets, held in range). Filter frequency from 0x7f00 down to 0x6b00 on the voices with a downward offset, 0x7f00 on the others. The records sent to the DSP match the smoothed values. Read on the build before the label change (image `e705f01e…`), whose `spread.c` is the same. | +| The kit is untouched | the voice arrays the stock writer fills (0x80003b12 + 202 × voice) | Pan stays 0x4000 and the filter 0x7f00 there: the offset is only in the live copy. | +| Heard | chords on track 1 over USB MIDI: 100, then OFF, then 100 | Not yet reported. | + +The `%` sign is not in the menu font (a first build showed a wrong glyph), so the values are plain numbers. + +## The released package + +`sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod`, sha256 `9ce8ff19564deedd1531f60a3b4d2be3f898aab0a8e243db1d6aa20a3a17f0f5`, exported from the pinned Docker toolchain (`scripts/build-elemod-isolated.sh`, GCC 16.2.0, image `85394501…`) at commit `a78057606` (recipe sha256 `78d301ad…`, source tree `b163786f…`). Linked with the development base by Elekloader 0.11.0's patcher, it gives the same main OS, byte for byte (sha256 `493992eb8a335d40…`), as the locally compiled module the unit ran, so the unit results above hold for this package. + +## Host test + +`cc -std=c11 -Wall -Wextra -Werror src/spread.c tests/spread_test.c && ./a.out` prints `voice-spread: ok`. It checks that OFF adds nothing, that each level's offsets sum to zero, that neighbouring voices go to opposite sides, the 100 % and HIGH limits, that values are held in range at both ends, and that no other parameter changes. + +## Not tested + +- Saving the project with the module and loading it again after a power cycle (the setting's `core_projdata` block), and loading a project saved without it. +- A build with the plain base (no link) and the pinned toolchain image; flashing. +- Parameter locks and LFOs on pan and filter frequency together with the spread. +- CPU load on the unit: the work per frame is bounded (16 voices) and was read from the code, not measured. +- Running beside another Digitone II module: none exists yet. diff --git a/sdk/digitone-ii/modules/voice-spread/build.json b/sdk/digitone-ii/modules/voice-spread/build.json new file mode 100644 index 0000000000..6bae1f4705 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/build.json @@ -0,0 +1,55 @@ +{ + "schemaVersion": 1, + "sources": [ + "src/main.c", + "src/spread.c" + ], + "defsym": {}, + "cflags": [ + "-Wextra", + "-Werror" + ], + "weak": [], + "subscribe": [ + { + "event": "ev_personalize", + "fn": "voice_spread_personalize", + "order": 50 + }, + { + "event": "ev_frame_params", + "fn": "voice_spread_frame", + "order": 50 + } + ], + "contribute": [ + { + "to": "core_projdata", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_projdata", + 0 + ] + ] + } + ], + "collections": {}, + "copied": [], + "regions": [], + "claims": [ + "projdata:VSPR" + ], + "requires": [], + "derive": null, + "releases": { + "1.12": { + "defsym": {}, + "cflags": [], + "sites": [] + } + } +} diff --git a/sdk/digitone-ii/modules/voice-spread/media/capture.json b/sdk/digitone-ii/modules/voice-spread/media/capture.json new file mode 100644 index 0000000000..835c89f647 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/media/capture.json @@ -0,0 +1,20 @@ +{ + "schemaVersion": 1, + "machine": "digitone-ii", + "moduleId": "voice-spread", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "5193559275f5656e9dafd88790bd27ee0d1dd7b9322a08f122b1a13e2fcc4270", + "firmware": "1.12", + "build": "Modwerk Digitone II development base 1.1 (modwerk-base-digitone-ii-dev-70f7a8dc) + voice-spread from this folder, GCC 16.2.0 m68k-elf, linked by Elekloader 0.11.0's patcher", + "emulator": "none: a Digitone II's screen read over the base's USB link (dn2_link.py screen --png), 128x64 frame shown 3x", + "capturedAt": "2026-11-23", + "setup": "Booted from RAM over the link; SETTINGS > PERSONALIZE, scrolled to the end, VOICE SPREAD stepped to 75 with RIGHT.", + "captures": [ + { + "path": "media/personalize.png", + "sha256": "4544b8853096d1c93235da5120c72168957c10f3c045013d8c849f2127d1d38d", + "plan": "press SAVEPROJ; UP x10; DOWN x6; YES; DOWN x11; RIGHT x3; screen --png", + "frame": "PERSONALIZE with VOICE SPREAD 75" + } + ] +} diff --git a/sdk/digitone-ii/modules/voice-spread/media/personalize.png b/sdk/digitone-ii/modules/voice-spread/media/personalize.png new file mode 100644 index 0000000000..e0d005d311 Binary files /dev/null and b/sdk/digitone-ii/modules/voice-spread/media/personalize.png differ diff --git a/sdk/digitone-ii/modules/voice-spread/media/thumbnail.svg b/sdk/digitone-ii/modules/voice-spread/media/thumbnail.svg new file mode 100644 index 0000000000..0d61c5fb7a --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/media/thumbnail.svg @@ -0,0 +1,9 @@ + + + + + +VOICE SPREAD +L +R + diff --git a/sdk/digitone-ii/modules/voice-spread/modwerk.module.json b/sdk/digitone-ii/modules/voice-spread/modwerk.module.json new file mode 100644 index 0000000000..2be3c9e832 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/modwerk.module.json @@ -0,0 +1,178 @@ +{ + "schemaVersion": 3, + "id": "voice-spread", + "name": "Voice Spread", + "version": "0.1.0-experimental", + "machine": "digitone-ii", + "category": "playback", + "exclusive": false, + "author": { + "github": "prodbysmolec", + "credits": [ + "prodbysmolec" + ] + }, + "maintainers": [ + "prodbysmolec" + ], + "presentation": { + "label": "VOICE SPREAD", + "family": "Voice spread", + "summary": "Spreads the voices of a chord across the stereo field, and their filters a little apart.", + "overview": "The Digitone II plays each note of a chord on its own voice. Voice Spread gives every voice a fixed place of its own: neighbouring voices go to opposite sides, so two or three notes already sound wide. FILTER SPREAD also opens or closes each voice's filter frequency a few steps, so the notes of a chord differ slightly in brightness. It acts on the live voices only: kits, sounds and what is saved stay as they are, and OFF gives the stock sound back at once.", + "highlights": [ + "Wide chords without per-track pan tricks", + "Optional filter spread for a looser, more analog chord", + "Saved with the project; OFF restores the stock sound exactly" + ], + "usage": [ + "Install a build of the Digitone II base that contains Voice Spread.", + "Press SETTINGS, open PERSONALIZE and move down to VOICE SPREAD.", + "Press RIGHT until it shows 75, then play a chord on a polyphonic track: its notes spread from left to right.", + "Move down to FILTER SPREAD and choose LOW: the notes differ slightly in brightness.", + "Save the project to keep the setting." + ] + }, + "access": { + "location": "SETTINGS > PERSONALIZE: the rows VOICE SPREAD and FILTER SPREAD.", + "steps": [ + "Press SETTINGS and open PERSONALIZE.", + "Move to VOICE SPREAD and press LEFT or RIGHT to choose OFF, 25, 50, 75 or 100 (percent of the full width).", + "Move to FILTER SPREAD and choose OFF, LOW, MID or HIGH.", + "Save the project to keep the setting." + ], + "screenshots": [ + "media/personalize.png" + ] + }, + "controls": [ + { + "name": "VOICE SPREAD", + "default": 0, + "doc": "SETTINGS > PERSONALIZE row. How far the 16 voices are spread across the stereo field, in percent of the full width; at 100 % the outermost voices sit hard left and right. Added to each voice's pan every frame, held in the pan's range; kits and sounds stay unchanged. Saved with the project (OFF for a project saved without it).", + "labels": [ + "OFF", + "25", + "50", + "75", + "100" + ] + }, + { + "name": "FILTER SPREAD", + "default": 0, + "doc": "SETTINGS > PERSONALIZE row. How far each voice's filter frequency moves up or down: LOW 4, MID 10, HIGH 20 of the 127 steps, a different amount and direction per voice. Saved with the project.", + "labels": [ + "OFF", + "LOW", + "MID", + "HIGH" + ] + } + ], + "compatibility": { + "releases": [ + "1.12" + ], + "requires": [], + "conflicts": [], + "limitations": [ + "Acts on all 16 voices, whichever track plays them: a mono track's notes can land on different voices and so on different sides.", + "The pan offset adds to the track's own pan and is held in its range; with a track already panned hard, the spread reaches only one side." + ] + }, + "platform": { + "kind": "elemod", + "core": "1.1", + "build": "build.json", + "events": [ + "ev_personalize", + "ev_frame_params" + ], + "claims": [ + "projdata:VSPR" + ] + }, + "resources": { + "memoryBytes": 852, + "fastBytes": null, + "load": { + "display": "16 voices \u00d7 two bounded additions a frame", + "method": "static", + "conditions": "Read from the code, not measured on a unit: once a frame (1,500 a second) in the frame interrupt, at most 16 voices, each with two additions and two range checks; nothing while both rows are OFF. Memory measured from the linked image (base 1.1 alone 6,776 bytes, with this module 7,628)." + } + }, + "evidence": { + "tier": "author-hardware", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "b163786f8922a5eee7616979f823b6c2de76a3ebe3510969b5d1c91e4977bb2f", + "reports": [ + "TESTING.md" + ], + "hardware": { + "model": "Digitone II", + "release": "1.12", + "testedOn": "2026-11-23", + "tester": "prodbysmolec", + "durationMinutes": null, + "summary": "Image 51935592... (this source, GCC 16.2.0, with the Digitone II development base 1.1) booted from RAM over the link: both rows appear at the end of SETTINGS > PERSONALIZE and step with LEFT and RIGHT; at VOICE SPREAD 100 and FILTER SPREAD HIGH the 16 voices' pan and filter values, and the frame records sent to the DSP, carry the expected offsets, held in range, while the kit's own values stay unchanged.", + "limitations": [ + "Booted from RAM with the development base, not flashed. The unit ran the locally compiled module; the pinned package links to the same main OS byte for byte.", + "Not tested: project save and reload of the setting, parameter locks and LFOs on pan and filter, CPU load on the unit." + ] + }, + "verifiedBy": null + }, + "tests": { + "report": "TESTING.md", + "summary": "Ran on a Digitone II from RAM on 2026-11-23: the rows work and the offsets reach the voices and the DSP records. Host test of the arithmetic passes. See TESTING.md.", + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Install a build of the Digitone II base that contains Voice Spread.", + "Press SETTINGS, open PERSONALIZE and move down to VOICE SPREAD.", + "Press RIGHT until it shows 75, then play a chord on a polyphonic track: its notes spread from left to right.", + "Move down to FILTER SPREAD and choose LOW: the notes differ slightly in brightness.", + "Save the project to keep the setting." + ] + }, + "screenshots": [ + "media/personalize.png" + ], + "captureRecord": "media/capture.json" + } + }, + "license": { + "spdx": "GPL-3.0-or-later", + "file": "LICENSE", + "declaration": "Original work by prodbysmolec." + }, + "media": [ + { + "path": "media/thumbnail.svg", + "kind": "thumbnail", + "caption": "Voice Spread thumbnail", + "alt": "Eight voices of a chord fanned out from the centre to left and right", + "credit": "prodbysmolec", + "license": "GPL-3.0-or-later", + "source": "Original artwork for this module." + }, + { + "path": "media/personalize.png", + "kind": "screenshot", + "caption": "SETTINGS > PERSONALIZE with VOICE SPREAD at 75 (unit screen)", + "alt": "Digitone II PERSONALIZE menu with the VOICE SPREAD row selected, value 75", + "credit": "prodbysmolec", + "license": "GPL-3.0-or-later", + "source": "Read from a Digitone II's screen over Modwerk's USB link with this module; no firmware content other than the screen.", + "capture": { + "type": "hardware", + "release": "1.12", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "5193559275f5656e9dafd88790bd27ee0d1dd7b9322a08f122b1a13e2fcc4270", + "setup": "Development base 1.1 with this module, booted from RAM; SETTINGS > PERSONALIZE, VOICE SPREAD set to 75; dn2_link.py screen --png." + } + } + ] +} diff --git a/sdk/digitone-ii/modules/voice-spread/src/main.c b/sdk/digitone-ii/modules/voice-spread/src/main.c new file mode 100644 index 0000000000..b9a1881254 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/src/main.c @@ -0,0 +1,78 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +// Voice Spread for the Digitone II: spreads the voices of a chord across the stereo field and, +// if wanted, their filter frequencies a little apart. Two rows in SETTINGS > PERSONALIZE set it for the project. +// +// The Digitone II base's ev_frame_params hands over the values of the 16 voice slots (not the +// tracks: OS 1.12 keeps one 101-value parameter array per voice), once a frame and before the stock +// modulators add theirs. Each slot gets a fixed offset of its own, so the notes of a chord, which +// take different slots, sit at different places. A track's kit, its pages and what is saved stay +// untouched: the offset is added to the live copy every frame and taken away by turning it off. + +#include +#include "../../../../machines/digitakt-ii/include/digitakt-mk2/core.h" + +#include "spread.h" + +// The project's setting, saved in the project file's header through core_projdata. +static struct vs_setting saved; +static volatile uint8_t pan_level, filter_level; + +static void loaded(int found) +{ + struct vs_setting s = saved; + if (!found || s.version != VS_VERSION) { + s.pan = 0; + s.filter = 0; + } + pan_level = s.pan < VS_PAN_LEVELS ? s.pan : 0; + filter_level = s.filter < VS_FILTER_LEVELS ? s.filter : 0; + saved.version = VS_VERSION; + saved.pan = pan_level; + saved.filter = filter_level; +} + +const core_projdata_t voice_spread_projdata = { + .tag = {'V', 'S', 'P', 'R'}, + .size = sizeof saved, + .data = &saved, + .loaded = loaded, +}; + +static const char *const pan_values[VS_PAN_LEVELS] = {"OFF", "25", "50", "75", "100"}; +static const char *const filter_values[VS_FILTER_LEVELS] = {"OFF", "LOW", "MID", "HIGH"}; + +static uint32_t get_pan(void) { return pan_level; } +static uint32_t get_filter(void) { return filter_level; } + +static void set_pan(uint32_t value) +{ + pan_level = (uint8_t)value; + saved.version = VS_VERSION; + saved.pan = (uint8_t)value; +} + +static void set_filter(uint32_t value) +{ + filter_level = (uint8_t)value; + saved.version = VS_VERSION; + saved.filter = (uint8_t)value; +} + +static const core_value_t pan_row = {"VOICE SPREAD", pan_values, VS_PAN_LEVELS, get_pan, set_pan}; +static const core_value_t filter_row = {"FILTER SPREAD", filter_values, VS_FILTER_LEVELS, get_filter, set_filter}; + +// ev_personalize: while the stock OS builds SETTINGS > PERSONALIZE. +void voice_spread_personalize(void *menu) +{ + core_addvalue(menu, &pan_row); + core_addvalue(menu, &filter_row); +} + +// ev_frame_params: interrupt level, once a frame. Slot k's value j at values[stride * k + j]. +void voice_spread_frame(int16_t *values, int stride) +{ + const unsigned int pan = pan_level, filter = filter_level; + if (pan == 0 && filter == 0) + return; + vs_apply(values, stride, pan, filter); +} diff --git a/sdk/digitone-ii/modules/voice-spread/src/spread.c b/sdk/digitone-ii/modules/voice-spread/src/spread.c new file mode 100644 index 0000000000..fb40678fe3 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/src/spread.c @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "spread.h" + +// Where each slot sits, in eighths of the full width: neighbouring slots go to opposite sides and +// the first slots a chord takes land far apart, so two or three notes already spread wide. +static const int8_t place[VS_SLOTS] = {-8, 8, -4, 4, -6, 6, -2, 2, -7, 7, -3, 3, -5, 5, -1, 1}; + +// Pan: 100 % takes the outermost slots to hard left and right (63 of the 64 steps from the centre). +static const int16_t pan_step[VS_PAN_LEVELS] = {0, 504, 1008, 1512, 2016}; +// Filter frequency: at most 4, 10 or 20 of the 127 steps up or down. +static const int16_t filter_step[VS_FILTER_LEVELS] = {0, 128, 320, 640}; + +int vs_pan_offset(unsigned int slot, unsigned int level) +{ + return level < VS_PAN_LEVELS ? place[slot & (VS_SLOTS - 1)] * pan_step[level] : 0; +} + +// The filter takes the places in another order, so a slot's side and its brightness do not follow each other. +int vs_filter_offset(unsigned int slot, unsigned int level) +{ + return level < VS_FILTER_LEVELS ? place[(slot + 5) & (VS_SLOTS - 1)] * filter_step[level] : 0; +} + +static int16_t held(int value) +{ + return (int16_t)(value < 0 ? 0 : value > VS_MAX ? VS_MAX : value); +} + +void vs_apply(int16_t *values, int stride, unsigned int pan, unsigned int filter) +{ + for (unsigned int slot = 0; slot < VS_SLOTS; ++slot) { + int16_t *v = values + stride * (int)slot; + if (pan) + v[VS_PAN] = held(v[VS_PAN] + vs_pan_offset(slot, pan)); + if (filter) + v[VS_FILTER_FREQ] = held(v[VS_FILTER_FREQ] + vs_filter_offset(slot, filter)); + } +} diff --git a/sdk/digitone-ii/modules/voice-spread/src/spread.h b/sdk/digitone-ii/modules/voice-spread/src/spread.h new file mode 100644 index 0000000000..b50c4343a8 --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/src/spread.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +// Voice Spread's arithmetic, apart from the hooks so the host test builds it. +#ifndef VOICE_SPREAD_H +#define VOICE_SPREAD_H +#include + +#define VS_VERSION 1 +#define VS_PAN_LEVELS 5 +#define VS_FILTER_LEVELS 4 +#define VS_SLOTS 16 + +// OS 1.12's Sound parameter indices (the stock descriptor table's array index), values in 8.8. +#define VS_FILTER_FREQ 67 +#define VS_PAN 89 +#define VS_MAX 0x7f00 // 127.0, the top of both parameters + +struct vs_setting { + uint8_t version, pan, filter, spare; +}; + +// The offset a slot takes at each level, in 8.8 parameter units. +int vs_pan_offset(unsigned int slot, unsigned int level); +int vs_filter_offset(unsigned int slot, unsigned int level); +void vs_apply(int16_t *values, int stride, unsigned int pan, unsigned int filter); + +#endif diff --git a/sdk/digitone-ii/modules/voice-spread/tests/spread_test.c b/sdk/digitone-ii/modules/voice-spread/tests/spread_test.c new file mode 100644 index 0000000000..5c67c3d18a --- /dev/null +++ b/sdk/digitone-ii/modules/voice-spread/tests/spread_test.c @@ -0,0 +1,67 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +// Host test of Voice Spread's arithmetic: cc -std=c11 -Wall -Wextra -Werror src/spread.c tests/spread_test.c +#include +#include +#include "../src/spread.h" + +#define STRIDE 101 + +static int16_t voices[VS_SLOTS * STRIDE]; + +static void fill(int16_t pan, int16_t freq) +{ + for (int k = 0; k < VS_SLOTS; ++k) { + for (int j = 0; j < STRIDE; ++j) + voices[k * STRIDE + j] = (int16_t)(j * 3); + voices[k * STRIDE + VS_PAN] = pan; + voices[k * STRIDE + VS_FILTER_FREQ] = freq; + } +} + +int main(void) +{ + // OFF adds nothing, at every slot. + for (unsigned int k = 0; k < VS_SLOTS; ++k) + assert(vs_pan_offset(k, 0) == 0 && vs_filter_offset(k, 0) == 0); + + // The offsets are symmetric: every level's slots sum to zero, so the chord's centre stays where the track is. + for (unsigned int level = 0; level < VS_PAN_LEVELS; ++level) { + int sum = 0; + for (unsigned int k = 0; k < VS_SLOTS; ++k) sum += vs_pan_offset(k, level); + assert(sum == 0); + } + // Neighbouring slots go to opposite sides; at 100 % the first two reach 63 steps from the centre. + assert(vs_pan_offset(0, 4) == -63 * 256 && vs_pan_offset(1, 4) == 63 * 256); + for (unsigned int k = 0; k < VS_SLOTS; k += 2) + assert(vs_pan_offset(k, 2) == -vs_pan_offset(k + 1, 2)); + // Filter: at most 20 steps. + for (unsigned int k = 0; k < VS_SLOTS; ++k) { + const int f = vs_filter_offset(k, 3); + assert(f >= -20 * 256 && f <= 20 * 256); + } + // Out-of-range levels add nothing. + assert(vs_pan_offset(3, VS_PAN_LEVELS) == 0 && vs_filter_offset(3, VS_FILTER_LEVELS) == 0); + + // Centred pan at 100 %: hard left and right are held in range (0 and 127.0), the rest untouched. + fill(0x4000, 0x7f00); + vs_apply(voices, STRIDE, 4, 3); + assert(voices[0 * STRIDE + VS_PAN] == 0x0100); + assert(voices[1 * STRIDE + VS_PAN] == 0x7f00); + for (int k = 0; k < VS_SLOTS; ++k) { + const int16_t p = voices[k * STRIDE + VS_PAN], f = voices[k * STRIDE + VS_FILTER_FREQ]; + assert(p >= 0 && p <= VS_MAX && f >= 0 && f <= VS_MAX); + for (int j = 0; j < STRIDE; ++j) + if (j != VS_PAN && j != VS_FILTER_FREQ) assert(voices[k * STRIDE + j] == j * 3); + } + // A track panned hard left: the spread stops at 0, never wraps. + fill(0x0000, 0x0000); + vs_apply(voices, STRIDE, 4, 3); + for (int k = 0; k < VS_SLOTS; ++k) + assert(voices[k * STRIDE + VS_PAN] >= 0 && voices[k * STRIDE + VS_FILTER_FREQ] >= 0); + // Pan only: the filter stays. + fill(0x4000, 0x3000); + vs_apply(voices, STRIDE, 2, 0); + for (int k = 0; k < VS_SLOTS; ++k) assert(voices[k * STRIDE + VS_FILTER_FREQ] == 0x3000); + puts("voice-spread: ok"); + return 0; +} diff --git a/sdk/imports/elekloader-voice-spread-2026-11-23.json b/sdk/imports/elekloader-voice-spread-2026-11-23.json new file mode 100644 index 0000000000..dbc6f91c78 --- /dev/null +++ b/sdk/imports/elekloader-voice-spread-2026-11-23.json @@ -0,0 +1,34 @@ +{ + "schema": 1, + "kind": "elekloader-catalog", + "revision": "voice-spread-2026-11-23", + "about": "Modwerk source-only Voice Spread package for Digitone II OS 1.12, compiled from sdk/digitone-ii/modules/voice-spread with the pinned toolchain.", + "cores": [], + "mods": [ + { + "file": "voice-spread-0.1.0-experimental-os1.12.elemod", + "sha256": "9ce8ff19564deedd1531f60a3b4d2be3f898aab0a8e243db1d6aa20a3a17f0f5", + "id": "voice-spread", + "version": "0.1.0-experimental", + "device": "digitone-mk2", + "os": "1.12", + "license": "GPL-3.0-or-later", + "source": { + "repo": "repeat98/modwerk", + "commit": "d072aae591ab530566ef47bb5914f22943cdd6f2", + "path": "sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod" + }, + "title": "Voice Spread", + "requires": [ + "core" + ], + "conflicts": [], + "summary": "Spreads the voices of a chord across the stereo field, and their filters a little apart.", + "description": "Spreads the voices of a chord across the stereo field, and their filters a little apart.", + "category": "Playback", + "author": "prodbysmolec", + "needs_core": "1.1", + "on_unit": "The author ran this source (locally compiled; the pinned package links to the same main OS byte for byte) on a Digitone II on OS 1.12 on 2026-11-23, booted from RAM with the development base; see TESTING.md." + } + ] +} diff --git a/sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod b/sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod new file mode 100644 index 0000000000..46027950ea --- /dev/null +++ b/sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod @@ -0,0 +1,571 @@ +{ + "elemod": 2, + "id": "voice-spread", + "version": "0.1.0-experimental", + "title": "Voice Spread", + "description": "Spreads the voices of a chord across the stereo field, and their filters a little apart.", + "category": "playback", + "author": "prodbysmolec", + "license": "GPL-3.0-or-later", + "target": { + "device": "digitone-mk2", + "product": "Digitone II", + "os": "1.12", + "syx_sha256": "7e5b8a733d4ab1fdf7e5d22757f7d8eddaa3cbf71d0858874a791844c02ceb35", + "section3_sha256": "a098f620019b2ad38fd7e0397df39501fb1cf6bc26d0283915f34c49446fdf1a", + "section3_len": 3196288 + }, + "sections": { + ".run": { + "align": 4, + "len": 787, + "parts": [ + [ + "hex", + "2f024aaf00086634420013c000000000420013c000000000700141f900000000241f13d00000000041f90000000013c00000000013d0000000004e7571b90000000053804a80670c4202420013c20000000060be1039000000003040103900000000340873827404b481640291c83408738013c2000000007403b48164944200609071b9000000004e7571b9000000004e757201202f000413c00000000013c00000000013c1000000004e757201202f000413c00000000013c00000000013c1000000004e752f0a4879000000002f2f000c45f9000000004e924879000000002f2f00144e924fef0010245f4e751039000000001239000000002f02240084814a02671a738171802f012f002f2f00142f2f00144eb9000000004fef0010241f4e750000222f00087004b081651e700fc0af000441f9000000001030080041f9000000004880c1f01a004e7542804e752f027003222f000cb0816524202f0008740f5a80c08241f900000000241f1030080041f9000000004880c1f01a004e75241f42804e754fefffe0226f002448d71c7c222f00282a3c00000000262f002c47f90000000045e90086d281282f0030204b43e900b24a8366704a8466345288b1c566fa4cd71c7c4fef00204e7542404a826d0a0c8200007f006e78300234805288d3c1d5c1b1fc0000000067d64a83663870057c0f908bd088c08675527c03bc8465ca1033080049f9000000004880c1f44a00d48060b6424032804a8466d2d5c15288d3c1b1c5679a71517404b4836510141049f9000000004882c5f43a00d0824a806dd20c8000007f006fcc303c7f0060c6303c7f006084000000000000000000000000000400000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000565350520000000400000000000000000000008001400280000001f803f005e807e0f808fc04fa06fe02f907fd03fb05ff0146494c5445522053505245414400564f49434520535052454144004f4646004c4f57004d494400484947480032350035300037350031303000" + ] + ] + }, + ".bss": { + "align": 4, + "size": 8 + } + }, + "symbols": { + "loaded": [ + ".run", + 0 + ], + "pan_level": [ + ".bss", + 1 + ], + "filter_level": [ + ".bss", + 0 + ], + "saved": [ + ".bss", + 2 + ], + "get_pan": [ + ".run", + 130 + ], + "get_filter": [ + ".run", + 138 + ], + "set_pan": [ + ".run", + 146 + ], + "set_filter": [ + ".run", + 172 + ], + "pan_row": [ + ".run", + 624 + ], + "filter_row": [ + ".run", + 604 + ], + "filter_values": [ + ".run", + 644 + ], + "pan_values": [ + ".run", + 660 + ], + "place": [ + ".run", + 714 + ], + "pan_step": [ + ".run", + 704 + ], + "filter_step": [ + ".run", + 696 + ], + "vs_pan_offset": [ + ".run", + 292 + ], + "vs_filter_offset": [ + ".run", + 336 + ], + "vs_apply": [ + ".run", + 390 + ], + "voice_spread_projdata": [ + ".run", + 680 + ], + "voice_spread_frame": [ + ".run", + 238 + ], + "voice_spread_personalize": [ + ".run", + 198 + ] + }, + "exports": [ + "voice_spread_frame", + "voice_spread_personalize", + "voice_spread_projdata", + "vs_apply", + "vs_filter_offset", + "vs_pan_offset" + ], + "imports": [ + "core_addvalue" + ], + "weak": [], + "relocs": [ + [ + ".run", + 12, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 20, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 28, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 36, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 42, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 48, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 54, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 62, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 78, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 86, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 94, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 116, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 132, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 140, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 154, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 160, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 166, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 180, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 186, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 192, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 202, + "abs32", + "sec:.run", + 624 + ], + [ + ".run", + 212, + "abs32", + "sym:core_addvalue", + 0 + ], + [ + ".run", + 220, + "abs32", + "sec:.run", + 604 + ], + [ + ".run", + 240, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 246, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 278, + "abs32", + "sec:.run", + 390 + ], + [ + ".run", + 310, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 320, + "abs32", + "sec:.run", + 704 + ], + [ + ".run", + 360, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 372, + "abs32", + "sec:.run", + 696 + ], + [ + ".run", + 408, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 418, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 488, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 522, + "abs32", + "sec:.run", + 696 + ], + [ + ".run", + 566, + "abs32", + "sec:.run", + 704 + ], + [ + ".run", + 604, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 608, + "abs32", + "sec:.run", + 644 + ], + [ + ".run", + 616, + "abs32", + "sec:.run", + 138 + ], + [ + ".run", + 620, + "abs32", + "sec:.run", + 172 + ], + [ + ".run", + 624, + "abs32", + "sec:.run", + 744 + ], + [ + ".run", + 628, + "abs32", + "sec:.run", + 660 + ], + [ + ".run", + 636, + "abs32", + "sec:.run", + 130 + ], + [ + ".run", + 640, + "abs32", + "sec:.run", + 146 + ], + [ + ".run", + 644, + "abs32", + "sec:.run", + 757 + ], + [ + ".run", + 648, + "abs32", + "sec:.run", + 761 + ], + [ + ".run", + 652, + "abs32", + "sec:.run", + 765 + ], + [ + ".run", + 656, + "abs32", + "sec:.run", + 769 + ], + [ + ".run", + 660, + "abs32", + "sec:.run", + 757 + ], + [ + ".run", + 664, + "abs32", + "sec:.run", + 774 + ], + [ + ".run", + 668, + "abs32", + "sec:.run", + 777 + ], + [ + ".run", + 672, + "abs32", + "sec:.run", + 780 + ], + [ + ".run", + 676, + "abs32", + "sec:.run", + 783 + ], + [ + ".run", + 688, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 692, + "abs32", + "sec:.run", + 0 + ] + ], + "sites": [], + "collections": {}, + "contribute": [ + { + "to": "ev_personalize", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_personalize", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_frame_params", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_frame", + 0 + ] + ], + "claims": [] + }, + { + "to": "core_projdata", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_projdata", + 0 + ] + ], + "claims": [] + } + ], + "copied": [], + "resources": { + "regions": [], + "names": [ + "projdata:VSPR" + ], + "core": "1.1" + }, + "requires": [ + "core" + ], + "conflicts": [], + "signature": null +} diff --git a/sdk/imports/voice-spread-2026-11-23.json b/sdk/imports/voice-spread-2026-11-23.json new file mode 100644 index 0000000000..1c3102fc47 --- /dev/null +++ b/sdk/imports/voice-spread-2026-11-23.json @@ -0,0 +1,20 @@ +{ + "schemaVersion": 1, + "module": "digitone-ii/voice-spread", + "version": "0.1.0-experimental", + "date": "2026-11-23", + "changes": [ + "First release for Digitone II OS 1.12: two rows at the end of SETTINGS > PERSONALIZE spread the voices of a chord across the stereo field (VOICE SPREAD) and their filter frequencies a little apart (FILTER SPREAD)." + ], + "runtimeSourceSha256": "b163786f8922a5eee7616979f823b6c2de76a3ebe3510969b5d1c91e4977bb2f", + "packages": [ + { + "os": "1.12", + "path": "sdk/imports/packages/voice-spread/voice-spread-0.1.0-experimental-os1.12.elemod", + "sha256": "9ce8ff19564deedd1531f60a3b4d2be3f898aab0a8e243db1d6aa20a3a17f0f5" + } + ], + "stockPolicy": "No firmware or stock-derived code/tables are present. Addresses, lengths and SHA-256 guards are metadata; exported instructions and sections are authored module code. Local materialized recipes and firmware are never committed.", + "evidence": "sdk/digitone-ii/modules/voice-spread/TESTING.md", + "requires": [] +} diff --git a/sdk/machines/digitone-ii/GOAL.md b/sdk/machines/digitone-ii/GOAL.md index a011099e15..5657d1b91d 100644 --- a/sdk/machines/digitone-ii/GOAL.md +++ b/sdk/machines/digitone-ii/GOAL.md @@ -8,11 +8,11 @@ A Digitone II owner opens the machine page, builds the Modwerk base in the brows This is the Octatrack's stack ([machine recipe](../../../docs/MACHINE_RECIPE.md)). The Digitone II shares the Digitakt II's platform, so it extends the Digitakt II's pieces ([its goal](../digitakt-ii/GOAL.md)) and never builds a second set. Core work for the Digitone II happens here, in its Modwerk base. -## Where it stands (18 November 2026) +## Where it stands (23 November 2026) | Piece | State | Where to look | | --- | --- | --- | -| Machine steps | Format, rebuild and boot done: modified OS 1.12 builds (toonst's core-dn2 0.3) booted on two units, and stock 1.12 restored them | [OS research](../../../docs/DIGITONE_II_OS_RESEARCH.md#step-3-on-a-unit) | +| Machine steps | All five done: modified OS 1.12 builds booted on two units and stock 1.12 restored them; Modwerk's base (core 1.1) runs on a unit; the first module, [Voice Spread](../../digitone-ii/modules/voice-spread/), ran on a unit from RAM (23 November 2026). The machine is a `preview` | [OS research](../../../docs/DIGITONE_II_OS_RESEARCH.md#step-3-on-a-unit), [Voice Spread's tests](../../digitone-ii/modules/voice-spread/TESTING.md) | | Build path | Started: Modwerk's linker (`LINK_DEVICES`, `ELE3_DEVICES`) knows OS 1.12 and links core-dn2 0.3 and 0.4, alone and with elekloader's examples, to the same main OS as elekloader, byte for byte. It takes the core's DSP bridge and refuses mods with DSP code. The pinned Elekloader kit stays as it is (owner, 19 November 2026): Modwerk's builder carries the device ([`device.json`](elekloader/device.json)), which `npm run machine:base` registers with the kit's Python SDK and the site with the browser kit; both read stock 1.12 and rewrite it, sealed, byte for byte. What is left is the base itself | [`elemod.ts`](../../../src/engine/elektron/elemod.ts), [`machine-base.py`](../../../scripts/machine-base.py), [`carried-devices.ts`](../../../src/engine/elekloader/carried-devices.ts) | | Base | Started: the Digitakt II base's core-dt2 1.1 source at core-dn2 0.3's Digitone II addresses, with copies of three files; `npm run machine:base` builds it. It ran on a unit with its hooks, and a project kept a change across a power cycle ([19 November 2026](../../../docs/verification/2026-11-19-digitone-ii-base-on-a-unit.md)), and about five hours of playing. `base-binding.json` records that identity (`7a60d82e`), its package is in the site's catalog, and the machine's SDK profile ([`core-profile`](../../digitone-ii/core-profile/interface.json), budgets) describes it. Modwerk's packer keeps its images under the unit's 2 MiB update limit | [`elekloader/`](elekloader/README.md) | | Flashing from the site | Started: the unit refuses an upgrade over about 2 MiB decoded (`update_max` in [`device.json`](elekloader/device.json)), so `fitUpdate` packs a larger build's main OS again with Modwerk's optimal packer, under the limit, and refuses one that still does not fit. The machine page builds the base alone for beta users (a core build preview, no module yet; downloads off until the owner turns them on); the OS upgrade over USB MIDI (`os-upgrade.ts`) ran on a unit and is not on the page yet. Today the owner sends a `.syx` with Elektron Transfer | [`fit-update.ts`](../../../src/engine/elekloader/fit-update.ts); the MS-70CDR's [`ZoomBaseDialog.tsx`](../../../src/components/ZoomBaseDialog.tsx) in [`BaseDialogFrame.tsx`](../../../src/components/BaseDialogFrame.tsx) | diff --git a/sdk/machines/digitone-ii/machine.json b/sdk/machines/digitone-ii/machine.json index adb9a2932f..54715766e1 100644 --- a/sdk/machines/digitone-ii/machine.json +++ b/sdk/machines/digitone-ii/machine.json @@ -3,8 +3,8 @@ "id": "digitone-ii", "order": 50, "name": "Digitone II", - "status": "research", - "summary": "Shares the Digitakt II platform and its sealed OS file. OS 1.12 rebuilds byte for byte, and modified builds boot on units: core-dn2 0.3's six UI events ran on a unit, and stock 1.12 restores it.", + "status": "preview", + "summary": "Experimental OS 1.12 support on the Modwerk Digitone II base (core 1.1). Voice Spread is the first module. Downloads stay disabled.", "firmware": { "releases": [ { @@ -24,8 +24,8 @@ "format": "done", "rebuild": "done", "boot": "done", - "core": "started", - "mods": "open" + "core": "done", + "mods": "done" }, "stack": { "base": "started" diff --git a/src/community/module-changelogs.test.ts b/src/community/module-changelogs.test.ts index 45ee586f8a..1d9ae4a1cb 100644 --- a/src/community/module-changelogs.test.ts +++ b/src/community/module-changelogs.test.ts @@ -22,7 +22,7 @@ describe('module release notes', () => { it('covers every current catalog release across every instrument', () => { const notes = parseModuleChangelogs(data, COMMUNITY_MODULES) expect(Object.keys(notes).length).toBe(COMMUNITY_MODULES.length) - expect(new Set(COMMUNITY_MODULES.map(module => module.machine))).toEqual(new Set(['octatrack', 'digitakt', 'digitakt-ii', 'digitone', 'analog-rytm-mkii', 'zoom-ms-70cdr'])) + expect(new Set(COMMUNITY_MODULES.map(module => module.machine))).toEqual(new Set(['octatrack', 'digitakt', 'digitakt-ii', 'digitone', 'analog-rytm-mkii', 'digitone-ii', 'zoom-ms-70cdr'])) }) it('rejects an updated catalog version without matching written notes', () => { diff --git a/src/community/module-changelogs/digitone-ii-voice-spread.json b/src/community/module-changelogs/digitone-ii-voice-spread.json new file mode 100644 index 0000000000..d77b6459a6 --- /dev/null +++ b/src/community/module-changelogs/digitone-ii-voice-spread.json @@ -0,0 +1,12 @@ +[ + { + "version": "0.1.0-experimental", + "date": "2026-11-23", + "changes": [ + "First release for Digitone II OS 1.12.", + "VOICE SPREAD (SETTINGS > PERSONALIZE) spreads the voices of a chord across the stereo field.", + "FILTER SPREAD moves each voice's filter frequency a little apart.", + "Saved with the project; OFF restores the stock sound at once." + ] + } +] diff --git a/src/devices/library-parity.test.ts b/src/devices/library-parity.test.ts index c3ed5111d2..2d000e8a2f 100644 --- a/src/devices/library-parity.test.ts +++ b/src/devices/library-parity.test.ts @@ -109,11 +109,12 @@ describe('All machines library parity', () => { expect(html).toContain(count('—', 'downloads')) expect(html).not.toContain(count('0', 'downloads')) expect(html).toContain('Popularity counts are currently unavailable.') - expect(html.match(/aria-label="Build firmware for/g)).toHaveLength(5) + expect(html.match(/aria-label="Build firmware for/g)).toHaveLength(6) expect(html).toContain('href="#digitakt/configuration"') expect(html).toContain('href="#digitakt-ii/configuration"') expect(html).toContain('href="#digitone/configuration"') expect(html).toContain('href="#analog-rytm-mkii/configuration"') + expect(html).toContain('href="#digitone-ii/configuration"') }) it('applies type and alphabetical sorting to the Digi groups', () => { diff --git a/src/devices/machines.generated.json b/src/devices/machines.generated.json index 8a3f96bce6..ca9e2015d0 100644 --- a/src/devices/machines.generated.json +++ b/src/devices/machines.generated.json @@ -369,14 +369,14 @@ "order": 50, "name": "Digitone II", "family": "elektron", - "status": "research", - "summary": "Shares the Digitakt II platform and its sealed OS file. OS 1.12 rebuilds byte for byte, and modified builds boot on units: core-dn2 0.3's six UI events ran on a unit, and stock 1.12 restores it.", + "status": "preview", + "summary": "Experimental OS 1.12 support on the Modwerk Digitone II base (core 1.1). Voice Spread is the first module. Downloads stay disabled.", "steps": { "format": "done", "rebuild": "done", "boot": "done", - "core": "started", - "mods": "open" + "core": "done", + "mods": "done" }, "stack": { "base": "started", diff --git a/vendor/elekloader/catalog/voice-spread-0.1.0-experimental-os1.12.elemod b/vendor/elekloader/catalog/voice-spread-0.1.0-experimental-os1.12.elemod new file mode 100644 index 0000000000..46027950ea --- /dev/null +++ b/vendor/elekloader/catalog/voice-spread-0.1.0-experimental-os1.12.elemod @@ -0,0 +1,571 @@ +{ + "elemod": 2, + "id": "voice-spread", + "version": "0.1.0-experimental", + "title": "Voice Spread", + "description": "Spreads the voices of a chord across the stereo field, and their filters a little apart.", + "category": "playback", + "author": "prodbysmolec", + "license": "GPL-3.0-or-later", + "target": { + "device": "digitone-mk2", + "product": "Digitone II", + "os": "1.12", + "syx_sha256": "7e5b8a733d4ab1fdf7e5d22757f7d8eddaa3cbf71d0858874a791844c02ceb35", + "section3_sha256": "a098f620019b2ad38fd7e0397df39501fb1cf6bc26d0283915f34c49446fdf1a", + "section3_len": 3196288 + }, + "sections": { + ".run": { + "align": 4, + "len": 787, + "parts": [ + [ + "hex", + "2f024aaf00086634420013c000000000420013c000000000700141f900000000241f13d00000000041f90000000013c00000000013d0000000004e7571b90000000053804a80670c4202420013c20000000060be1039000000003040103900000000340873827404b481640291c83408738013c2000000007403b48164944200609071b9000000004e7571b9000000004e757201202f000413c00000000013c00000000013c1000000004e757201202f000413c00000000013c00000000013c1000000004e752f0a4879000000002f2f000c45f9000000004e924879000000002f2f00144e924fef0010245f4e751039000000001239000000002f02240084814a02671a738171802f012f002f2f00142f2f00144eb9000000004fef0010241f4e750000222f00087004b081651e700fc0af000441f9000000001030080041f9000000004880c1f01a004e7542804e752f027003222f000cb0816524202f0008740f5a80c08241f900000000241f1030080041f9000000004880c1f01a004e75241f42804e754fefffe0226f002448d71c7c222f00282a3c00000000262f002c47f90000000045e90086d281282f0030204b43e900b24a8366704a8466345288b1c566fa4cd71c7c4fef00204e7542404a826d0a0c8200007f006e78300234805288d3c1d5c1b1fc0000000067d64a83663870057c0f908bd088c08675527c03bc8465ca1033080049f9000000004880c1f44a00d48060b6424032804a8466d2d5c15288d3c1b1c5679a71517404b4836510141049f9000000004882c5f43a00d0824a806dd20c8000007f006fcc303c7f0060c6303c7f006084000000000000000000000000000400000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000565350520000000400000000000000000000008001400280000001f803f005e807e0f808fc04fa06fe02f907fd03fb05ff0146494c5445522053505245414400564f49434520535052454144004f4646004c4f57004d494400484947480032350035300037350031303000" + ] + ] + }, + ".bss": { + "align": 4, + "size": 8 + } + }, + "symbols": { + "loaded": [ + ".run", + 0 + ], + "pan_level": [ + ".bss", + 1 + ], + "filter_level": [ + ".bss", + 0 + ], + "saved": [ + ".bss", + 2 + ], + "get_pan": [ + ".run", + 130 + ], + "get_filter": [ + ".run", + 138 + ], + "set_pan": [ + ".run", + 146 + ], + "set_filter": [ + ".run", + 172 + ], + "pan_row": [ + ".run", + 624 + ], + "filter_row": [ + ".run", + 604 + ], + "filter_values": [ + ".run", + 644 + ], + "pan_values": [ + ".run", + 660 + ], + "place": [ + ".run", + 714 + ], + "pan_step": [ + ".run", + 704 + ], + "filter_step": [ + ".run", + 696 + ], + "vs_pan_offset": [ + ".run", + 292 + ], + "vs_filter_offset": [ + ".run", + 336 + ], + "vs_apply": [ + ".run", + 390 + ], + "voice_spread_projdata": [ + ".run", + 680 + ], + "voice_spread_frame": [ + ".run", + 238 + ], + "voice_spread_personalize": [ + ".run", + 198 + ] + }, + "exports": [ + "voice_spread_frame", + "voice_spread_personalize", + "voice_spread_projdata", + "vs_apply", + "vs_filter_offset", + "vs_pan_offset" + ], + "imports": [ + "core_addvalue" + ], + "weak": [], + "relocs": [ + [ + ".run", + 12, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 20, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 28, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 36, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 42, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 48, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 54, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 62, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 78, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 86, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 94, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 116, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 132, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 140, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 154, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 160, + "abs32", + "sec:.bss", + 3 + ], + [ + ".run", + 166, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 180, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 186, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 192, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 202, + "abs32", + "sec:.run", + 624 + ], + [ + ".run", + 212, + "abs32", + "sym:core_addvalue", + 0 + ], + [ + ".run", + 220, + "abs32", + "sec:.run", + 604 + ], + [ + ".run", + 240, + "abs32", + "sec:.bss", + 1 + ], + [ + ".run", + 246, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 278, + "abs32", + "sec:.run", + 390 + ], + [ + ".run", + 310, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 320, + "abs32", + "sec:.run", + 704 + ], + [ + ".run", + 360, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 372, + "abs32", + "sec:.run", + 696 + ], + [ + ".run", + 408, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 418, + "abs32", + "sec:.run", + 714 + ], + [ + ".run", + 488, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 522, + "abs32", + "sec:.run", + 696 + ], + [ + ".run", + 566, + "abs32", + "sec:.run", + 704 + ], + [ + ".run", + 604, + "abs32", + "sec:.run", + 730 + ], + [ + ".run", + 608, + "abs32", + "sec:.run", + 644 + ], + [ + ".run", + 616, + "abs32", + "sec:.run", + 138 + ], + [ + ".run", + 620, + "abs32", + "sec:.run", + 172 + ], + [ + ".run", + 624, + "abs32", + "sec:.run", + 744 + ], + [ + ".run", + 628, + "abs32", + "sec:.run", + 660 + ], + [ + ".run", + 636, + "abs32", + "sec:.run", + 130 + ], + [ + ".run", + 640, + "abs32", + "sec:.run", + 146 + ], + [ + ".run", + 644, + "abs32", + "sec:.run", + 757 + ], + [ + ".run", + 648, + "abs32", + "sec:.run", + 761 + ], + [ + ".run", + 652, + "abs32", + "sec:.run", + 765 + ], + [ + ".run", + 656, + "abs32", + "sec:.run", + 769 + ], + [ + ".run", + 660, + "abs32", + "sec:.run", + 757 + ], + [ + ".run", + 664, + "abs32", + "sec:.run", + 774 + ], + [ + ".run", + 668, + "abs32", + "sec:.run", + 777 + ], + [ + ".run", + 672, + "abs32", + "sec:.run", + 780 + ], + [ + ".run", + 676, + "abs32", + "sec:.run", + 783 + ], + [ + ".run", + 688, + "abs32", + "sec:.bss", + 2 + ], + [ + ".run", + 692, + "abs32", + "sec:.run", + 0 + ] + ], + "sites": [], + "collections": {}, + "contribute": [ + { + "to": "ev_personalize", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_personalize", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_frame_params", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_frame", + 0 + ] + ], + "claims": [] + }, + { + "to": "core_projdata", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:voice_spread_projdata", + 0 + ] + ], + "claims": [] + } + ], + "copied": [], + "resources": { + "regions": [], + "names": [ + "projdata:VSPR" + ], + "core": "1.1" + }, + "requires": [ + "core" + ], + "conflicts": [], + "signature": null +}