├── .gitignore ├── .zed └── settings.json ├── CNAME ├── LICENSE ├── README.md ├── changelog.md ├── code_of_conduct.md ├── eula.md ├── keyboard-shortcuts.md ├── package-lock.json ├── package.json ├── privacy-policy.md ├── rollup.config.mjs ├── serve.go └── src ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon-120x120.png ├── apple-touch-icon-152x152.png ├── apple-touch-icon-180x180.png ├── apple-touch-icon-60x60.png ├── apple-touch-icon-76x76.png ├── apple-touch-icon.png ├── browserconfig.xml ├── digichain.gif ├── editor.js ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── index.html ├── jszip.js ├── main.css ├── main.js ├── msgpack.min.js ├── mstile-150x150.png ├── resources.js ├── safari-pinned-tab.svg ├── screenshots ├── Screenshot 2023-05-22 213801.png ├── Screenshot 2023-05-22 213838.png ├── Screenshot 2023-05-22 213932.png ├── Screenshot 2023-05-22 214010.png ├── Screenshot 2023-05-22 214039.png ├── Screenshot 2023-05-22 214102.png └── Screenshot 2023-05-22 214119.png ├── settings.js ├── site.webmanifest └── sw.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | .idea/ 4 | node_modules/ 5 | digichain-go/ 6 | digichain-executable/ 7 | latest/ 8 | .editorconfig 9 | -------------------------------------------------------------------------------- /.zed/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "features": { 3 | "edit_prediction_provider": "zed", 4 | "copilot": false 5 | }, 6 | "telemetry": { 7 | "metrics": false 8 | }, 9 | "soft_wrap": "editor_width", 10 | "format_on_save": "off", 11 | 12 | "languages": { 13 | "JavaScript": { 14 | "tab_size": 4 15 | }, 16 | "HTML": { 17 | "tab_size": 4 18 | }, 19 | "CSS": { 20 | "tab_size": 4 21 | }, 22 | "Go": { 23 | "format_on_save": "on" 24 | }, 25 | "Rust": { 26 | "format_on_save": "on" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | digichain.brianbar.net -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **DigiChain** 2 | 3 | DigiChain is a web app made to make the creation of sample chains as easy as possible for use on the Digitakt (and any other sampler that can slice up samples). 4 | 5 | Split the slices out of Octatrack, OP-1/OP-1 Field/OP-Z, or DigiChains own exported files. 6 | 7 | Export samples chains for the Octatrack, OP-1/OP-1 Field/OP-Z, Dirtywave M8 with slice information auto-created. 8 | 9 | Supports batch converting of files to a chosen bit depth and sample rate (mono/stereo). 10 | Choose the way stereo files get processed to mono, with Left, Right, Sum, and Difference (Side) with live preview of the choice from the sample list. 11 | Join the selected files together into a sample chain, with the option to pad all samples to be the same length for evenly sized slices (perfect for the Digitakt's fixed slice grids). 12 | 13 | Use the simple editing tools to trim-right, normalize, reverse, or pitch up/down the samples. 14 | Batch operations for trim-right, normalize and reverse. 15 | 16 | Merge the selected files (layered on top of each other) into one stereo file with the merge tool, put different samples on each channel, or center them. 17 | 18 | Import Octatrack .ot files to slice to individual samples for export or further processing/joining. 19 | 20 | Import OP-1, OP-Z, OP-1 Field aif drum kits and slice them to individual samples. Slice up the OP-1 Field stereo tape files from their tape.json file. 21 | 22 | Import syx samples from the Elektron MachineDrum. 23 | 24 | Chains created in DigiChain retain their contained samples slice markers for later splitting back out if needed. 25 | 26 | Pitch up all exported files by 1, 2 or 3 octaves to reduce the file-sizes. 27 | 28 | When playing back samples from within the list directly out to the Digitakt, or another sampler - make use of the pop-markers that add a short audio burst at the beginning and end of the sample. Makes sure threshold record starts at the right time without losing that first transient, with a visible marker at the end to trim to for a perfect loop. Choose from 0db marker, which will prevent the Digitakt from being able to further normalize the audio, or peak, to set the volume of the marker to the loudest peak in the sample being played back. 29 | 30 | While originally created as a tool to help make evenly spaced sample chains to use on the Elektron Digitakt’s slice grid machine introduced in the 1.5 firmware update, DigiChain has grown to incorporate other features, many of which were suggested by the good folks over on the Elektronauts forum. 31 | 32 | Once the files are in the list, they are ready to be ordered into chains, choose the chain length on the slice grid in the top left buttons group (shift+click to keep the selections already in the list) – the list will show a green line to indicate when a chain ends and a new one begins below. 33 | 34 | Each sample can also be sliced into new samples, or edited with a selection of basic destructive sample edits – if you want to keep the original around, duplicate a sample before making edits. 35 | 36 | Shift+clicking on either of the join buttons will resample back into the list rather than out to a file. 37 | 38 | By default, the app will open in the 48k/16bit mono context – great for the Digitakt! – but if you want to create chains for other samplers, switch up the context, the 44.1k/24bit stereo is perfect for the Octatrack, if you have a bunch of samples and want to just convert them to what the OT expects, set the context, drop them in the list, hit the download button – you will get out a zip file containing all the processed files with their folder structure intact ready to drop on the OT’s CF card. 39 | 40 | If you want to move a sample around before exporting, change its folder path value in the sample edit panel. 41 | 42 | While it is a web app, once loaded, there is no connection required, and can be installed as an app on most OSs. 43 | 44 | There is a full complement of keyboard shortcuts to help navigate through things quickly. 45 | 46 | see the keyboard-shortcuts.md for details. 47 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | 2025.05.30 1.5.0 2 | - Show loading overlay until async sample processing has completed to prevent multiple calls to renderList before the list is ready. 3 | - Style tweaks to support rendering within itch.io windows. 4 | - Enhanced waveform rendering accuracy and performance (thanks to github.com/boourns for the pull request). 5 | - Dither exports option when outputting 8/16/24 bit wav or 16 bit aif files. 6 | - Added user feedback on sample load processing. 7 | - Improved responsiveness of list with large numbers of samples loaded. 8 | - Reduced file processing load times. 9 | - Added a welcome screen with some usage guidance, tips, and link out to documentation page. 10 | - Show the length in seconds of the sample being edited on the editor. 11 | - Support importing samples and slices from Renoise Instrument files (.xrni) in addition to sample data from Renoise Project files (.xrnx). 12 | - Mini-waveform renderer no longer builds waveform cache when skip render is enabled. 13 | - Prevent default event bubbling on keydown events for handled keyboard shortcuts, stops 'funk' noise on macOS for valid shortcuts. 14 | - Improved creation of OP-1 Field / OP-Z chains, nudging end to zero crossing per slice if one is present in the last 256 samples. 15 | - OP-1 Field / OP-Z exports now default to one-shot play mode. 16 | - Shift + click on Pad With Zero selected action allows entering a custom value to pad the sample(s) with in seconds. 17 | - Config option, treat slice data in files as distinct files on join - defaults to YES, when set to YES, if a file contains slice data or has had slice data configured those slices will be represented as distinct files when creating new chains that include those selected slices; when set to NO, the per-file slices will be discarded when joined to new chains. 18 | - Moved about pop-up into unified audio config, settings, about panel. 19 | - Supporting the import and export of digichain session files. 20 | - Using a custom dialog instead of the browser built-ins to handle user prompts/confirmations. 21 | - Moved browser based alert messaging into a toast style notification that displays at the top center of the active window or dialog. 22 | - OP Export UI for creating drum kits for OP-1 Field and OP-XY via a drag and drop key layout. 23 | - OP Export supports combining samples on Left / Right / Center to more easily create A/B kits for use on the Field. 24 | - Chains / Spaced Chains buttons now do not both display, they are toggled via the new Chain Type toggle icon. 25 | - Rendering created chains to the top of the list instead of out to a downloaded zip file (the Shift + Click button action), is now toggled from an icon. 26 | - XY preset rendering toggle icon, when enabled, chains are created as XY Preset folders in the output zip, max 24 slices and samples longer than 20 seconds will be automatically truncated. 27 | - Invert phase selected action. 28 | - Flip L/R selected action, switched the left and right channels around. 29 | - Editor waveform height adjustment control (height retained as setting). 30 | - Crop keyboard shortcuts in the editor, Shift+Click to crop to a new sample, staying in the current sample; Shift+Ctrl+Click to crop to a new sample and open that new sample in the editor. 31 | - Bug fixes: 32 | - Delayed list rendering bug when removing all selected samples. 33 | - When a waveform is too short to render a valid mini-waveform, the renderer replaced the parent dom node, causing a dom tree layout issue, this is now fixed. 34 | - Sanitize name selected action. 35 | - When restore last used audio config is set to off, the text label of the audio config indicator was blank. 36 | - Where canvas element replacement threw an error when slicing to samples from the slice panel with skip render waveforms enabled. 37 | - Toggling the max-seconds per chain option de-selected all samples. 38 | - XY common configuration no longer sets the seconds time limit per chain to on. 39 | - OP Export renders at the target sample rate for XY presets and 44.1kHz regardless of the target sample rate for OP-1 Field kits. 40 | - Play-head was not displayed when playing the highlighted sample in the list using the P key keyboard shortcut. 41 | - Only positive buffer values were being removed in the condense action. 42 | - Edit panel not consistently closing when using the Escape key. 43 | - Smoothing on fuzz selected action caused peak spikes on some sample material. 44 | - Setting DT / DT II / XY / M8 / OT did not toggle the spaced / xy settings and icons when using the common configurations options. 45 | - Slice panel waveform did not show when no slices were set (regression fix from edit panel renderer changes). 46 | 47 | 2025.01.16 1.4.16 48 | - Nudge Crossings selected action, nudges all zero crossings off from zero. 49 | - Pad with Zero selected action, adds a zero sample to the beginning and end of each file. 50 | - Shift selected action, moves the sample start position over 50%. 51 | - Fixed bug where resampling the list when changing the working sample-rate caused the loop point to bet set on .ot slice metadata. 52 | - Support for reading slice data from the Sonicware LoFi-12 XT custom header data. 53 | - Added common configurations for Sonicware LoFi-12 XT (12/24 kHz target sample rate). 54 | - Added common configurations for Teenage Engineering EP-133 / EP-1320 mono/stereo. 55 | - Fixed some browser specific UI element positioning quirks. 56 | - Added de-serialize from mono L/R back to a stereo sample selected action (halves a mono sample and puts the first half on the left channel, second half on the right). 57 | - Prevent slicing by transient assigning an ot meta loop point flag. 58 | - Added button to set a custom slice count on the slices panel. 59 | - Change default chain names to not contain _ or [ ] chars. 60 | - Turn off embed slice data config option by default. 61 | - Use Cue markers as preferred slice data storage within the wav file data. 62 | - Turn on/off .ot file export options when choosing the ot common configuration on the audio config panel. 63 | - Add OP-XY to common configurations, as this uses wav files as the primary file type. 64 | - Sanitize Names selected action to format file names to align with the guidelines for successful MTP transfer to Teenage Engineering OP-XY filesystem. 65 | - Minor wav encode bug, the cue chunk size property should be 8 bytes less than the total chunk byte length, not 4. 66 | 67 | 2024.05.28 1.4.15 68 | - Amplitude threshold condense selected action, enter an upper and lower amplitude value (between 0 and 1), the sample will be modified to only include amplitudes within the given range, gaps between the audio is removed condensing the sample size. 69 | - Ctrl + Click on Filename column header to sort the list by numeric filename content only. 70 | - Improved drop file order consistency. 71 | - Allow dropping mp3 files. 72 | - If sample has slice information, the slices will be shown on the waveform when the slice panel opens. 73 | - Support multi-touch for selecting/deselecting samples. 74 | 75 | 2024.05.14 1.4.14 76 | - Added basic error catch in the joinAll method to help surface chain build errors. 77 | - User alert for userAgent version checks to inform users if their browser is of a minimum supported version for the browser API's used. 78 | - Fixes bug when in the sample editor, and snap to zero was enabled, if no zero crossing could be found on the end point, then browser tab would hang on short samples. 79 | - Fixes bug where an end point selected before the current non-zero start point with snap to zero crossing enabled, would result in a negative preview playback value causing looped playback preview in the editor to not play any audio. 80 | - Defaulting to 48kHz as the working sample rate for broader compatibility with built-in audio devices (continues to be user configurable in Audio Settings Panel, does not change if DigiChain has been used before as this is a restored setting). 81 | - If the sample list is empty, choosing an option from the 'Common Configurations' list will set both the Working Sample Rate and the Target Sample Rate to the same value. 82 | - When no samples are selected, clicking the chain buttons showed the processing overlay but did not remove it. 83 | - Selections won't clear when changing the slice-grid values via the audio config panel (grid choice will still be set to OFF). 84 | - The download buttons will now visually indicate their clickable state. 85 | 86 | 2024.04.30 1.4.13 87 | - Option to skip rendering of the mini waveform display in the sample list. 88 | - Fix regression bug on trim-right selected action. 89 | 90 | 2024.04.24 1.4.12 91 | - Added Double selected action to add a copy of a sample to the end of itself for the selected samples. 92 | - Prev / Next buttons on the edit panel to navigate between samples without needing to close the edit panel and re-select from the list. 93 | - Cleaned up selected actions list, added overflow so list can scroll on mobile and flex to the width of the panel. 94 | - Shift + Ctrl/Cmd click stretch longest/shortest selected action to set the stretch length in samples instead of seconds. 95 | - Shift + Click on Trim Right button in editor, or selected actions, to also trim silence from the start (left) of the sample. 96 | - Changed the behavior of the grid size buttons, clicking will now set the grid size and keep the selection, to also change the selection is now the shift+click action; This is inverted from other versions, but has been a requested change by several users. 97 | - Shift + L will toggle the lists visibility, useful for simple chaining/conversion if loading a large number of files that can cause the browser dom rendering to slow. 98 | - Hide 'Create .OT' button on sample panel if target SR is not 44100. 99 | - Added common configuration for Digitakt II. 100 | 101 | 2024.02.20 1.4.11 102 | - Fixes bug where saving slice data from imported slice file did not apply slice markers consistently. 103 | - Bug fix where parsing wav file headers contains multiple fmt chunks, where the first fmt chunk does not contain the samples format data. 104 | 105 | 2023.12.13 1.4.10 106 | - .xrns file contents parsing (useful for getting the samples out of a Renoise project file). 107 | - Parse the Renoise song data from within project files and extract slice markers. 108 | - When slicing from OP-1 Field tape.json, prevent the ot slice loop point CSS class being applied. 109 | - Drag-out single file from list (Chrome). 110 | - Option in settings to reverse all even samples in an exported chain (back-to-back mode). 111 | - Snap to zero-crossing toggle option on selections on edit panel. 112 | - Visual zero-crossing indicator on edit panel selection start and end points. 113 | - Surface tempo detection method to the edit panel to detect from the currently selected section of the waveform. 114 | - Fixed regression on .ot file generation not correctly setting the quantize value default to 'direct' instead of 'pattern length'. 115 | - Fixed bug when setting slice-grid options from the audio settings panel. 116 | - Added keyboard shortcuts info pop-up (Shift + ? / Shift + K). 117 | 118 | 2023.11.04 1.4.9 119 | - Store list in indexedDb for optional restoring of the last session on next load. 120 | - Map the Ctrl key to the Cmd key for macOS keyboard shortcuts. 121 | - Automatically ignore empty or nonsense cue markers (e.g. zero length or start/end greater than file length, end greater than start). 122 | - Improve handling of joining chains with other chains/files and slice types. 123 | - Normalize the slice-type to the common format when processing internally. 124 | - Show the number of slices if the file has any on the slice-grid icon instead of OT/DC/OP text. 125 | - Improved the speed of conversion between spaced/none-spaced chains from the slice panel. 126 | - Allow users to change audio context when files are loaded without emptying list; An advisory message to confirm the action is shown, as the sample rates of all files in the list are internally resampled to the new context. 127 | - Decoupled the working audio sample rate from the export audio sample rate. This allows users to work at 44.1kHz, but export to 48kHz for example without destructively resampling the list source buffers. 128 | - Audio context options are now an audio config panel, allowing arbitrary sample rates, and choice of bit depth and channel combinations. 129 | - A list of common configurations by hardware name are available in the audio config panel. 130 | - Audio config panel has slice grid options inputs so last used values are remembered. These values are also updated as part of the common configs list options. 131 | - 'Retain session data between browser refreshes?' setting on settings panel. 132 | - Gain adjustment on the edit panel (Thanks to eljeff). 133 | - Option in settings panel to download single files when Shift+Clicked to prevent accidental downloads being triggered. 134 | - Added rough stretch to selected actions list, this attempts to retain pitch while doubling the duration of the sample. 135 | - Importing of Polyend Tracker (OG) .pti instrument files (mono only). 136 | - Toggle slice looping from the slice panel (useful for .ot exports). 137 | - Toggle file looping point from the slice panel (useful for .ot exports). 138 | - Correctly calculate the tempo and bar values on .ot exports. 139 | - Create .ot button on slice panel to create a .ot metadata file independently of downloading of the audio file. 140 | 141 | 2023.10.15 1.4.8 142 | - New serialize selected action, any selected samples that are stereo files, will have their stereo channels serialized to mono, by Left/Right, Side/Mid, or Left/Right/Side/Mid. 143 | - Dual mono exports setting error. 144 | - Prevent find crossing point on edit panel. 145 | - Issue with auto-naming of duplicate files/same file imported multiple times. 146 | - Trim-right on sample that had slices removed threw unhandled error. 147 | - Merge/Blend panel mono/pan controls not consistently updating UI when clicked. 148 | - Fixed rendering bugs with Firefox 118.x when page zoom higher than 100%. 149 | - Removed arcs in svg for better representation of the waveform graphics. 150 | - Ctrl + Click on the 'add samples' icon will add a blank sample (8 samples in length) to the list to use for padding chains. 151 | 152 | 2023-08-31 1.4.7 153 | - Load samples from within zip files and Digitakt project files. (if max file limit setting is off, all files in the zip will be decompressed to memory, so be careful with zip sizes if setting that to off! If the zipped supported file count + file count already loaded is larger than the limit, the whole zip gets skipped). 154 | - Allow * and / on the stretch action shifted user input. 155 | - Hold shift on pitch buttons to use stretch instead of the resample method to affect the pitch. 156 | - Break-word on blend filenames to help prevent column width issues. 157 | - Fixed bug where keyboard shortcuts activated in name editing on edit panel. 158 | - Ctrl + Shift + Click On the edit panel, when clicking the waveform, this will set the end point selection to the clicked position and move the start point to the previous end point value. 159 | - Edit Panel, N : Create new slice. 160 | - Edit Panel, U : Update current slice. 161 | - Edit Panel, X : Remove current slice. 162 | - Option to export dual mono stereo files as a mono file (toggle in settings, on by default). 163 | - Shorten file path and names selected actions (and restore names). 164 | - Tweaks to note detection from filename. 165 | - Visual indicator on row name left-border if file path and name will be longer than 127 chars from root of the exported zip file. 166 | - Fixed bug (issue#2) where looped playback on edit panel spawned multiple audio playbacks when clicked repeatedly. 167 | - Changed behavior when removing all slices to default to whole waveform selected. (issue#3) 168 | - Fixed issue where duplicate samples inherited the filename instead of the name property. (issue#4) 169 | - Fixed padding issue on panel info text, and blend dropdown control. 170 | - Ignore multiple data chunk headers in the wav files to prevent instability when importing wav files. Fixes bug where tab might hang on import of some oddly structured wav file chunks. 171 | 172 | 2023-08-09 1.4.6 173 | - Convert chains between evenly spaced and unspaced chains from the slice panel. Works with DC, Octatrack, and OP-x slice data. When converted to a spaced chain, if the grid-size is set to a value, the new chain will be padded to this number. 174 | - Ctrl+Click to preview slices before slicing a sample. 175 | - Slice editing on sample edit panel, create/update/remove slice markers. 176 | - Playback/looped playback on the sample edit panel follows the selected region on the waveform. 177 | - Show stereo waveform if available on sample edit panel. 178 | - Update the row waveform when changing the mono rendering method. 179 | - Moved around the edit panel UI. 180 | - Added LRSD controls to the edit panel. 181 | - Remembering slice position/selection when changing options on edit panel. 182 | - Edit panel LRSD / play/stop keyboard shortcuts on edit panel. 183 | - Allow generating .ot metadata file on 16/24 44.1 mono exports. 184 | - Option in settings to match the end sample with the start sample (if possible), to help reduce clicks for samples that will be played looped. (can result in shorter than specified samples). 185 | - Read/write wav file cue point markers into DigiChain slice data (adds compatibility for DirtyWave M8 to read chains, and to import the slices from M8 to DigiChain). 186 | - Added basic sample stretching (which does affect pitch), stretch selected samples to shortest or longest sample in the list, or hold shift to set a custom length in seconds. (this will remove any slice data for the modified samples). 187 | 188 | 2023-07-27 1.4.5 189 | - Improved the note from filename detection and sorting. 190 | - 44.1/48K 8bit mono/stereo file exports. 191 | - Crush selected actions action to add some crush/distortion to the sample. 192 | - Pitch up/down in cents in sample editor panel. (click the 'Pitch (semi-tones)' link to toggle between semi-tones and cents.) 193 | 194 | 2023-07-16 1.4.4 195 | - Minimizes reported click/pops on exported chains when importing wav files of differing sample rate to the target sample rate, or when using audio interfaces configured with small sample buffers. On by default at a 40% threshold, user configurable thresholds and can be disabled via settings panel. 196 | - Resolves issue where running in the Brave browser caused an unexpected error modifying an existing audio array buffer. 197 | - Added fuzz selected actions action to add fuzz/noise into the selected samples. 198 | - Added fade-in fade-out selected actions to fade in/out the first/last 256 samples of each selected sample. 199 | - Blend panel to blend/interpolate between the selected samples (works best when the samples are similar in duration). 200 | 201 | 2023-07-02 1.4.3 202 | - Added a ping-pong selected actions action to add a reversed copy of the sample to the end of the sample. 203 | - Fixed issue where generated AIF files did not load slice data accurately into the new TE drum utility tool. 204 | 205 | 2023-06-01 1.4.2 206 | - Hold shift key while dragging in samples to import randomly up to the currently chosen grid-size. 207 | - Default to limit the number of imported samples to 750, to reduce risk of timeouts - can be disabled in the settings panel. 208 | - Limiting the max chain length to 64 slices when using the timed chain length in non-aif audio context, Aif context stays at max 24 slices. 209 | - Setting the default Shift import random drop value to 256 if no slice grid value is selected (this prevents accidental import of large numbers of files, Ctrl+click a slice-grid number and set a custom value to import more than 256 samples randomly). 210 | - Ctrl + Click on the Selected header text will toggle all the samples selection to all selected / all de-selected. 211 | - Changed load files to an icon. 212 | - Expanded width of the audio config selection. 213 | - Updated the drop-zone style when list is empty. 214 | - Added content-visibility to list body. 215 | 216 | 2023-05-22 1.4.1 217 | - Added truncate selected action (shift+click to set a custom length), and crop to selection in the editor panel. 218 | - Fixed bug playing back sample after editing in the edit panel if the sample was currently playing from the list. 219 | - Changed start/end point editor selection. 220 | - Changed zoom levels to +/- buttons to zoom in further than 4x. 221 | - Fixed bug where grid keyboard shortcuts were still active on edit panel. 222 | 223 | 2023-05-15 1.4.0 224 | - Workflow to support reading slices from and creating chains for the Teenage Engineering OP-1 Field / OP-Z 225 | - OP-1 / OP-1 Field / OP-Z aif file imports, mono and stereo. 226 | - Slice from OP-1 / OP-1 Field / OP-Z drum-kit aif files. 227 | - OP-1 Field and OP-Z drum kit and single file exports with the aif 44.1/16 mono/stereo options. 228 | - OP-1 Field L/R A/B toggle and value setting from the list when in 44.1/16 Stereo Aif context. (double-click to toggle). 229 | - Slice from tape.json (OP-1 Field tape file slice markers) in the slice panel. 230 | - Merge All Selected action - mixes down all the selected items into one sample (enables creating files with different samples on the L/R for use with OP-1 Field's A/B drum kit option. 231 | 232 | - Automatic creation of Octatrack .ot meta files in 44.1 16/24 stereo non-aif audio contexts. (toggle in settings). 233 | 234 | - Audio editor panel overhaul. 235 | - Added 1x, 2x, 4x zoom levels for the waveform. 236 | - Added loop playback button to editor panel. 237 | - Fade in/out/silence tools. 238 | 239 | - UI Improvements 240 | - Added playback indicator icon and play-head marker to waveforms in the list view. 241 | - Shift+Click on the row sample select box will select all the samples in-between (inclusive of the highlighted and the clicked sample). Ctrl+Shift+Click will de-select. 242 | - Shift+Click Column Header : Sorts the list, but will keep the selected items grouped to the top of the list. 243 | - Shift+Click Reset Button : Randomizes the order of the list. 244 | - Numeric keys 1 - 0 play the first 10 selected samples from the list. 245 | - Alt + numeric key / P key stops the playback and looping of that single sample. 246 | - Showing the sample name from DC slice data in title of slices on slice panel. 247 | - Double-click to remove a slice before processing slices on the slice panel. 248 | - Ctrl+Click the slice sample row icon to clear any related sample slice data. 249 | - E key opens the edit panel for the currently highlighted sample. Shift+E opens the editor panel for the currently highlighted sample, with the file name and path inputs editable, and the filename input keyboard focused. 250 | - Basic note detection from filename for sorting the list. 251 | - Reworked layout for better rendering on smaller screen devices. 252 | - Added a light theme for users who don't like dark themes, toggled in the settings panel (first launch will set from the devices system color preference). 253 | - Custom filenames panel, add a list of custom filenames to use - once all names have been used, DigiChain will fall back to the default naming convention. 254 | 255 | - Settings on the settings panel are saved to local-storage and will persist when the app re-opens. 256 | - Allow disabling slice embed in settings. 257 | - Option to play pop-markers at the start and end of the sample for direct sampling to the Digitakt audio inputs. Two options, 0db markers (which prevents the DT's auto normalization from changing the recorded sample volume), and peak, which sets the pop-marker volumes to match the loudest peak in the sample. 258 | - Show/hide touch modifier buttons in options panel. 259 | - Restore last used sample rate/bit depth/channel selection in options. 260 | - Option to normalize text/waveform color contrast in the settings panel. 261 | 262 | - DC slice format embedded in output chain wav file so user can restore the chains to slices retaining the input filename. 263 | - Support for importing webm and m4a audio files. 264 | - Added 'Difference (Side)' stereo -> mono processing option. 265 | - Trim All Selected action. 266 | - Reverse All Selected action. 267 | - Normalize All Selected action. 268 | - Pitch Up by an Octave All Selected action. 269 | - Enabled 32bit float wav exports. 270 | - Allow importing of 16bit aif files (parser written to accommodate importing from TE devices, but should be ok on other exported aif files, testing with Ableton Live exports and worked as expected, ymmv). 271 | - Split chained files at 12s (mono) or 20s (stereo) lengths mode. Sample order will loosely follow the list order, but it will try to fit smaller samples into the chain up to the max limit from further down the selected items in the list, so some samples may be out of order depending on their length and where they could be slotted into each chain to use up the time in the best way possible. 272 | - Removing arraybuffers before removal of files to help free memory usage sooner. 273 | - Ctrl+Click on the max length per chain in seconds to set a custom limit. 274 | 275 | - Bugfixes 276 | - Fixed bug where file path changes were not persisted. 277 | - Prevent pitch-up crashing when doubling a very small audio buffer. 278 | - Checking for suspended audio-context and resuming if suspended before playback. 279 | - Checking audio context state before importing files, resuming if possible. 280 | - Fixed bug where joining chains together with single additional sample between caused the slice offsets to be incorrect. 281 | - Removing multiple and sorts will stop sample playback (audioCtx caused pops when in these situations previously). 282 | - Fixed bug where a non-standard wav file PAD chunk caused a page crash. 283 | - Adding a _n char/number to the end of duplicated files name (as exporting to zip overwrites same filename files). 284 | Importing the same file will also increment the filename. 285 | - Fixed bug where resampling a new chain with a global pitch modifier and embed slices disabled would cause the new pitched audio buffer to fail rendering. 286 | - Fixed bug in the reading of AIFC aif files. 287 | - Don't mute samples when toggling selection. 288 | 289 | 2023-04-07 1.3.1 290 | - Fixed bug where a duplicate sample shared the sources audio-buffer in specific situations (e.g. when reversing the sample.) 291 | - Simplified the transient detection method, enabled it for longer sample lengths as this approach is better suited to longer samples. 292 | - Trim right is more aggressive with what it trims (to 0.003 amplitude). 293 | 294 | 2023-04-05 1.3.0 295 | - Importing of folders - recursive search for wav/syx files (be careful with filesize/depth of folders with this!). 296 | - OT slices import from accompanying .ot file. 297 | - Show source folder path on list, filenames will now include this path in their name if present - joined files with have the path of the first item in the chain in its name. 298 | - Moved the UI around again, added ability to hide the top buttons panel. 299 | - Multi-file/joined downloads will now be downloaded as a single zip file (can be put back to multi-single file prompts in the settings panel). 300 | - Grid-view mode for those who dislike tables. (Shift+G) 301 | - Swapped Shift/Ctrl coloring, added css transition on toggle. 302 | - Added slice-count to end of chain filenames. 303 | - Changed 'sort by selected icon' to a text value. 304 | - Added sort by slice# to make building mega-break chains easier. 305 | - Indicator on row/grid of end of joined chain based on slice-grid selection. 306 | - Waveform and slice marker visual preview before slicing a file from the list into new samples. 307 | - Basic transient detection on the slice grid panel (for samples less than ~128 seconds). 308 | - Edit panel with file name/path editing, waveform view, play/stop controls. 309 | - Normalize, trim right, reverse, half-speed, and double-speed (destructive) sample edit operations. 310 | - Allow dropping of wav url links to be fetched (works with domains that allow CORS). 311 | - Export settings panel with pitch up export setting (1, 2, or 3 octaves), and the zip file on/off toggle. 312 | - Added offline support and install as app from the browser. 313 | 314 | 2023-03-27 1.2.0 315 | - Added support for slicing files in the list into new items. 316 | - Added ability to resample joined files back into the list instead of downloading. 317 | - Sample import times are about a third faster than previously. 318 | - Support for drag drop reordering of the list. 319 | - Show selected/total length times in the length header. 320 | - Added a bunch more keyboard shortcuts. 321 | - Allow changes to stereo/mono and bit-depth, as it's only the sample-rate that makes things wonky. [Only sample rate changes will trigger the list to clear.] 322 | - Show selected/total length times in the length header. 323 | - Fixed waveform double first render bug. 324 | - Tweaked height of waveform views. 325 | - Fixed bug in sorting selected by items. 326 | - Keyboard commands for managing the list (see keyboard-shortcuts.md). 327 | - Shift / Ctrl lock buttons so mobile/tablet users can access the secondary (keyboard shortcut) functions. 328 | 329 | 2023-03-25 1.1.0 330 | - Support for outputting stereo files. 331 | - Support for 24 bit file exports. 332 | - Now supports drag-drop sample importing. 333 | - Add Shift+click function to set the stereo->mono method for all selected stereo samples in the list. 334 | - Fixed an issue where setting a custom slice grid value did not persist. 335 | - Allows custom slice values to be set with the Ctrl+Click keyboard shortcut. 336 | - Export options beyond 48k/16bit - this setting is per session, changing will remove all entries from the list. 337 | 338 | 2023-03-24 1.0.2 339 | - When a slice grid length is selected, samples will now be auto-generated, (e.g. if you have 13 samples selected and a grid of 4, you will get 4 files downloaded instead of one chain of 13 samples [which isn't ideal for the Digitakt!]). 340 | - Shift+click the slice-grid numbers to change the grid size, but retain the selected samples. 341 | - Added loading message while loading in files. 342 | - Added sort-by selected. 343 | - Changed button text, added joined file counts that will be produced, and a number of files that will be downloaded if downloading all. 344 | - More tweaks for mobile device use. 345 | - Fixed an issue where a looping sample would keep playing after removal. 346 | 347 | 2023-03-23 1.0.1 348 | - Sorting error on length sort. 349 | - Re-order button glitching. 350 | - Shift+Up/Down, Shift+Duplicate error. 351 | - Waveform display on Android. 352 | - Show version number on bottom of screen. 353 | - Shift+click on waveform will loop the files playback (de-select will stop loop, click will go back to one-shot, Off in slice grid will stop all sample playback). 354 | - Added support for 128 slices (e.g. for wavetables or Model:Samples use on start point). 355 | - Cleaned up UI for mobile, moved around buttons to make use of the space better. 356 | 357 | 2023-03-22 1.0.0 358 | - Load .wav files (stereo or mono). 359 | - Load .syx sds dumps (e.g. from the MD, or MD Elektron sample packs), support only for 44.1khz/16bit dumps. 360 | - Samples can be previewed by clicking the mini-waveform. 361 | - Processed file to 48khz/16bit download via clicking the sample name. 362 | - Stereo input files are processed to mono, choice of the Left, Right, or sum of both channels via 'L S R' options. 363 | - Individual files can be downloaded, or all the selected with the Download button, this will prompt to save each file individually. 364 | - Download Joined will process all the selected files into one wav file. 365 | - Download Joined (Spaced) will process all the selected files, and pad all shorter duration samples with silence to match the duration of the longest file in the selection. 366 | - When the slice grid has an option other than Off selected, the last selected sample will repeat to fill to the chosen grid size (known bug, choosing more than the slice-grid number will result in a join with too many samples, this will be resolved shortly). 367 | - Samples can be moved up or down in the list. 368 | - Preview the sample by clicking on the mini-waveform. 369 | - Duplicate the sample in the list to repeat it (or have versions from the LSR channel selection). 370 | - Remove the sample from the list by double-clicking the trash icon. 371 | - Use the Remove Selected button to remove all selected from the list. 372 | - Sort by filename or duration. 373 | - Reset Sort Order button resets the list to the order in which the files were loaded. 374 | -------------------------------------------------------------------------------- /code_of_conduct.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, caste, color, religion, or sexual 10 | identity and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the overall 26 | community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or advances of 31 | any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email address, 35 | without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | [INSERT CONTACT METHOD]. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series of 86 | actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or permanent 93 | ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within the 113 | community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.1, available at 119 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. 120 | 121 | Community Impact Guidelines were inspired by 122 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. 123 | 124 | For answers to common questions about this code of conduct, see the FAQ at 125 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at 126 | [https://www.contributor-covenant.org/translations][translations]. 127 | 128 | [homepage]: https://www.contributor-covenant.org 129 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html 130 | [Mozilla CoC]: https://github.com/mozilla/diversity 131 | [FAQ]: https://www.contributor-covenant.org/faq 132 | [translations]: https://www.contributor-covenant.org/translations 133 | -------------------------------------------------------------------------------- /eula.md: -------------------------------------------------------------------------------- 1 | # END-USER LICENSE AGREEMENT 2 | 3 | This End-User License Agreement (EULA) is a legal agreement between you (either as an individual or on behalf of an entity) and [Brian Barnett] regarding your use of [DigiChain]'s desktop applications, and associated documentation (the "Software"). IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS EULA, DO NOT INSTALL, USE OR COPY THE SOFTWARE. 4 | 5 | ### Summary 6 | 7 | - You must agree to all of the terms of this EULA to use this Software. 8 | - If so, you may use the Software for free and for any lawful purpose. 9 | - This Software automatically communicates with its server for three reasons: (1) to receive and install updates; (2) to send error reports; and (3) to send anonymized analytics information via the CloudFlare Web Analytics platform. 10 | - This Software is provided "as-is" with no warranties, and you agree that [Brian Barnett] is not liable for anything you do with it. 11 | - You really ought to just go ahead and read the whole EULA. It's not all that long. You should not only rely on this summary. 12 | 13 | ### The Agreement 14 | 15 | By downloading, installing, using, or copying the Software, you accept and agree to be bound by the terms of this EULA. If you do not agree to all of the terms of this EULA, you may not download, install, use or copy the Software. 16 | 17 | ### The License 18 | 19 | This EULA entitles you to install as many copies of the Software as you want, and use the Software for any lawful purpose consistent with this EULA. Your license to use the Software is expressly conditioned upon your agreement to all of the terms of this EULA. This software is licensed, not sold. [Brian Barnett] reserves all other rights not granted by this EULA. 20 | 21 | ### The Restrictions 22 | 23 | 1. When using the Software you must use it in a manner that complies with the applicable laws in the jurisdiction(s) in which you use the Software. 24 | 2. You may not sell, resell, rent, lease or exchange the Software outside the scope of the GPL v3 license terms. 25 | 3. You may redistribute the software, but it must include this EULA and any other associated license, and you may not repackage or bundle the Software with any other software. 26 | 4. You may not remove or alter any proprietary notices or marks on the Software. 27 | 28 | ### Privacy Notices 29 | 30 | The Software automatically communicates with its server for three purposes: (1) updating the Software; (2) sending error reports; and (3) sending CloudFlare web analytics information. If you do not want the Software to update automatically, send error reports, or communicate with CloudFlare, you must uninstall the Software. 31 | 32 | 1. **Automatic Software Updates.** The Software communicates with its server to determine whether there are any patches, bug fixes, updates, upgrades or other modifications to improve the Software. You agree that the Software may automatically install any such improvements to the Software on your computer without providing any further notice or receiving any additional consent. This feature may not be disabled. If you do not want to receive automatic updates, you must uninstall the Software. 33 | 2. **Error Reports.** In order to help us improve the Software, when the Software encounters certain errors, it may automatically send some information to its server about the error. If you do not want to send error reports to its server, you must uninstall the Software. 34 | 3. **Web Analytics Data.** Access to [DigiChain]'s resources are logged in the CloudFlare web analytics platform (the hosting service for the application), this data is limited to the resources accessed, the country accessing, the referrer to the application, the time/date of access, the browser name, version, operating system used to access. 35 | 36 | ### Open-Source Notices 37 | 38 | Certain components of the Software may be subject to open-source software licenses ("Open-Source Components"), which means any software license approved as open-source licenses by the Open Source Initiative or any substantially similar licenses, including without limitation any license that, as a condition of distribution of the software licensed under such license, requires that the distributor make the software available in source code format. The Software documentation includes copies of the licenses applicable to the Open-Source Components. 39 | 40 | To the extent there is conflict between the license terms covering the Open-Source Components and this EULA, the terms of such licenses will apply in lieu of the terms of this EULA. To the extent the terms of the licenses applicable to Open-Source Components prohibit any of the restrictions in this Agreement with respect to such Open-Source Component, such restrictions will not apply to such Open-Source Component. To the extent the terms of the licenses applicable to Open-Source Components require Licensor to make an offer to provide source code in connection with the Product, such offer is hereby made, and you may exercise it by contacting [me@brianbar.net]. 41 | 42 | ### Intellectual Property Notices 43 | 44 | The Software and all worldwide copyrights, trade secrets, and other intellectual property rights therein are the exclusive property of [Brian Barnett]. [Brian Barnett] reserves all rights in and to the Software not expressly granted to you in this EULA. 45 | 46 | ### Disclaimers and Limitations on Liability 47 | 48 | THE SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND NO WARRANTY, EITHER EXPRESS OR IMPLIED, IS GIVEN. YOUR USE OF THE SOFTWARE IS AT YOUR SOLE RISK. [Brian Barnett] does not warrant that (i) the Software will meet your specific requirements; (ii) the Software is fully compatible with any particular platform; (iii) your use of the Software will be uninterrupted, timely, secure, or error-free; (iv) the results that may be obtained from the use of the Software will be accurate or reliable; (v) the quality of any products, services, information, or other material purchased or obtained by you through the Software will meet your expectations; or (vi) any errors in the Software will be corrected. 49 | 50 | YOU EXPRESSLY UNDERSTAND AND AGREE THAT [Brian Barnett] SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF [Brian Barnett] HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES) RELATED TO THE SOFTWARE, including, for example: (i) the use or the inability to use the Software; (ii) the cost of procurement of substitute goods and services resulting from any goods, data, information or services purchased or obtained or messages received or transactions entered into through or from the Software; (iii) unauthorized access to or alteration of your transmissions or data; (iv) statements or conduct of any third-party on the Software; (v) or any other matter relating to the Software. 51 | 52 | [Brian Barnett] reserves the right at any time and from time to time to modify or discontinue, temporarily or permanently, the Software (or any part thereof) with or without notice. [Brian Barnett] shall not be liable to you or to any third-party for any modification, price change, suspension or discontinuance of the Software. 53 | -------------------------------------------------------------------------------- /keyboard-shortcuts.md: -------------------------------------------------------------------------------- 1 | **Keyboard Shortcuts** 2 | 3 | - Up / Down Arrow Keys: when a sample row is highlighted, this changes the highlighted sample. 4 | - P : plays the currently highlighted sample in the list. (also in edit panel). 5 | - I : inverts the selected items in the list. 6 | - Escape : closes any open dialog windows and stops all sample playback. 7 | - Enter / Return : toggles the selection of the currently highlighted sample in the list. 8 | - L / S / R / D : changes the channel for stereo files being processed to mono (also on edit panel in mono contexts.) 9 | - Number keys 1 through 0 : play the selected sample in the position of the key with 0 == 10. 10 | - E: Opens the edit panel for the currently highlighted sample. 11 | - Holding Shift Key while dropping files: will randomly select files upto the currently set grid-size value. 12 | - Edit Panel, N : Create new slice. 13 | - Edit Panel, U : Update current slice. 14 | - Edit Panel, X : Remove current slice. 15 | 16 | **Shift + Click / Shift + Key** 17 | - Up / Down Keys : moves the highlighted sample up or down in the list. 18 | - P : plays the currently highlighted sample looped. 19 | - Waveform View : plays the sample looped, click again to go back to one-shot. 20 | - Slice Grid Number & Off Buttons : changes the slice grid size, and set the number of selected samples to that number. 21 | - Duplicate Icon : puts the duplicated file at the end of the sample list. 22 | - Move Up Icon : moves directly to the top of the sample list. 23 | - Move Down Icon : moved directly to the end of the sample list. 24 | - L S R D Options : sets all stereo samples method for mono conversion (take left, right, or sum to mono). 25 | - Download All : processed files will have the imported folder structure flattened into their file names (all files will be at the root level of the zip file). 26 | - Joined / Joined Spaced : audio will be resampled internally back to the list instead of prompting to save as a file (clicking the filename in the list will still allow the wav download). 27 | - H : Toggles showing/hiding the top buttons panel, to give more space for the grid. 28 | - Slice Sample Options: Will put the slices in the list directly below the source sample. 29 | - G : Toggles grid-view/list-view (grid-view is now the default for narrow screen width devices like phones). 30 | - Column Header : Sorts the list, but will keep the selected items grouped to the top of the list. 31 | - Reset Button : Randomizes the order of the list. 32 | - Check Sample Row Button : Will select all samples between the highlighted sample and the clicked sample (inclusive). Ctrl+Shift+Click will de-select. 33 | - E : Opens the editor panel for the currently highlighted sample, with the file name and path inputs editable, and the filename input keyboard focused. 34 | - Truncate / Crush : Shows popup to enter a custom value. 35 | - Sample Slice : In slicing panel, toggles looping the clicked slice (for .ot exports). 36 | - Trim Right : will trim both left and right of the sample. 37 | - Pad With Zero : allow entering a custom value to pad the sample with in seconds. 38 | - L : Toggles hiding/showing of the rendered list of samples. 39 | - Editor Crop : Crop selection to a new sample (but stay in the current sample). 40 | 41 | **Ctrl + Click** 42 | - Slice Grid Number Buttons : prompts to enter a custom value for the slice grid. 43 | - Slice Grid Off Button : restores the default slice grid options. 44 | - Time Limit : prompts to enter a custom value for the timed chain lengths when that mode is enabled. 45 | - Row Slice Icon : Clear any related slice data. 46 | - Row Selected Header : Toggles select / de-select all samples in list. 47 | - Sample Slice : In slicing panel, previews (plays) the slice clicked on. 48 | - Add Samples Icon: Adds a blank sample to list. 49 | 50 | **Alt + Key** 51 | - Number 1 - 0, P : Stops the playback and looping of the sample. 52 | 53 | **Ctrl + Shift + Click** 54 | - On the edit panel, when clicking the waveform, this will set the end point selection to the clicked position and move the start point to the previous end point value. 55 | - Sample Slice : In slicing panel, toggles the file loop start point to be from the start of the clicked slice, blue dotted line is loop on, yellow dashed line is loop ping-pong (for .ot exports). 56 | - Stretch Longest / Shortest : Value entered will be treated as samples instead of seconds when setting the stretch length. 57 | - Editor Crop : Crop selection to a new sample and immediately edit that new sample in the editor. 58 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "digichain", 3 | "version": "1.5.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "digichain", 9 | "version": "1.5.0", 10 | "devDependencies": { 11 | "@rollup/plugin-terser": "^0.4.3", 12 | "csso": "^5.0.5", 13 | "csso-cli": "^4.0.2", 14 | "rollup": "4.22.4", 15 | "terser": "^5.26.0" 16 | } 17 | }, 18 | "node_modules/@jridgewell/gen-mapping": { 19 | "version": "0.3.3", 20 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", 21 | "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", 22 | "dev": true, 23 | "dependencies": { 24 | "@jridgewell/set-array": "^1.0.1", 25 | "@jridgewell/sourcemap-codec": "^1.4.10", 26 | "@jridgewell/trace-mapping": "^0.3.9" 27 | }, 28 | "engines": { 29 | "node": ">=6.0.0" 30 | } 31 | }, 32 | "node_modules/@jridgewell/resolve-uri": { 33 | "version": "3.1.1", 34 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 35 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 36 | "dev": true, 37 | "engines": { 38 | "node": ">=6.0.0" 39 | } 40 | }, 41 | "node_modules/@jridgewell/set-array": { 42 | "version": "1.1.2", 43 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", 44 | "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", 45 | "dev": true, 46 | "engines": { 47 | "node": ">=6.0.0" 48 | } 49 | }, 50 | "node_modules/@jridgewell/source-map": { 51 | "version": "0.3.5", 52 | "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", 53 | "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", 54 | "dev": true, 55 | "dependencies": { 56 | "@jridgewell/gen-mapping": "^0.3.0", 57 | "@jridgewell/trace-mapping": "^0.3.9" 58 | } 59 | }, 60 | "node_modules/@jridgewell/sourcemap-codec": { 61 | "version": "1.4.15", 62 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 63 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 64 | "dev": true 65 | }, 66 | "node_modules/@jridgewell/trace-mapping": { 67 | "version": "0.3.20", 68 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", 69 | "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", 70 | "dev": true, 71 | "dependencies": { 72 | "@jridgewell/resolve-uri": "^3.1.0", 73 | "@jridgewell/sourcemap-codec": "^1.4.14" 74 | } 75 | }, 76 | "node_modules/@rollup/plugin-terser": { 77 | "version": "0.4.4", 78 | "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz", 79 | "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==", 80 | "dev": true, 81 | "dependencies": { 82 | "serialize-javascript": "^6.0.1", 83 | "smob": "^1.0.0", 84 | "terser": "^5.17.4" 85 | }, 86 | "engines": { 87 | "node": ">=14.0.0" 88 | }, 89 | "peerDependencies": { 90 | "rollup": "^2.0.0||^3.0.0||^4.0.0" 91 | }, 92 | "peerDependenciesMeta": { 93 | "rollup": { 94 | "optional": true 95 | } 96 | } 97 | }, 98 | "node_modules/@rollup/rollup-android-arm-eabi": { 99 | "version": "4.22.4", 100 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz", 101 | "integrity": "sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==", 102 | "cpu": [ 103 | "arm" 104 | ], 105 | "dev": true, 106 | "license": "MIT", 107 | "optional": true, 108 | "os": [ 109 | "android" 110 | ] 111 | }, 112 | "node_modules/@rollup/rollup-android-arm64": { 113 | "version": "4.22.4", 114 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz", 115 | "integrity": "sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==", 116 | "cpu": [ 117 | "arm64" 118 | ], 119 | "dev": true, 120 | "license": "MIT", 121 | "optional": true, 122 | "os": [ 123 | "android" 124 | ] 125 | }, 126 | "node_modules/@rollup/rollup-darwin-arm64": { 127 | "version": "4.22.4", 128 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz", 129 | "integrity": "sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==", 130 | "cpu": [ 131 | "arm64" 132 | ], 133 | "dev": true, 134 | "license": "MIT", 135 | "optional": true, 136 | "os": [ 137 | "darwin" 138 | ] 139 | }, 140 | "node_modules/@rollup/rollup-darwin-x64": { 141 | "version": "4.22.4", 142 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz", 143 | "integrity": "sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==", 144 | "cpu": [ 145 | "x64" 146 | ], 147 | "dev": true, 148 | "license": "MIT", 149 | "optional": true, 150 | "os": [ 151 | "darwin" 152 | ] 153 | }, 154 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 155 | "version": "4.22.4", 156 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz", 157 | "integrity": "sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==", 158 | "cpu": [ 159 | "arm" 160 | ], 161 | "dev": true, 162 | "license": "MIT", 163 | "optional": true, 164 | "os": [ 165 | "linux" 166 | ] 167 | }, 168 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 169 | "version": "4.22.4", 170 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz", 171 | "integrity": "sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==", 172 | "cpu": [ 173 | "arm" 174 | ], 175 | "dev": true, 176 | "license": "MIT", 177 | "optional": true, 178 | "os": [ 179 | "linux" 180 | ] 181 | }, 182 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 183 | "version": "4.22.4", 184 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz", 185 | "integrity": "sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==", 186 | "cpu": [ 187 | "arm64" 188 | ], 189 | "dev": true, 190 | "license": "MIT", 191 | "optional": true, 192 | "os": [ 193 | "linux" 194 | ] 195 | }, 196 | "node_modules/@rollup/rollup-linux-arm64-musl": { 197 | "version": "4.22.4", 198 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz", 199 | "integrity": "sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==", 200 | "cpu": [ 201 | "arm64" 202 | ], 203 | "dev": true, 204 | "license": "MIT", 205 | "optional": true, 206 | "os": [ 207 | "linux" 208 | ] 209 | }, 210 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 211 | "version": "4.22.4", 212 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz", 213 | "integrity": "sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==", 214 | "cpu": [ 215 | "ppc64" 216 | ], 217 | "dev": true, 218 | "license": "MIT", 219 | "optional": true, 220 | "os": [ 221 | "linux" 222 | ] 223 | }, 224 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 225 | "version": "4.22.4", 226 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz", 227 | "integrity": "sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==", 228 | "cpu": [ 229 | "riscv64" 230 | ], 231 | "dev": true, 232 | "license": "MIT", 233 | "optional": true, 234 | "os": [ 235 | "linux" 236 | ] 237 | }, 238 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 239 | "version": "4.22.4", 240 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz", 241 | "integrity": "sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==", 242 | "cpu": [ 243 | "s390x" 244 | ], 245 | "dev": true, 246 | "license": "MIT", 247 | "optional": true, 248 | "os": [ 249 | "linux" 250 | ] 251 | }, 252 | "node_modules/@rollup/rollup-linux-x64-gnu": { 253 | "version": "4.22.4", 254 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz", 255 | "integrity": "sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==", 256 | "cpu": [ 257 | "x64" 258 | ], 259 | "dev": true, 260 | "license": "MIT", 261 | "optional": true, 262 | "os": [ 263 | "linux" 264 | ] 265 | }, 266 | "node_modules/@rollup/rollup-linux-x64-musl": { 267 | "version": "4.22.4", 268 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz", 269 | "integrity": "sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==", 270 | "cpu": [ 271 | "x64" 272 | ], 273 | "dev": true, 274 | "license": "MIT", 275 | "optional": true, 276 | "os": [ 277 | "linux" 278 | ] 279 | }, 280 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 281 | "version": "4.22.4", 282 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz", 283 | "integrity": "sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==", 284 | "cpu": [ 285 | "arm64" 286 | ], 287 | "dev": true, 288 | "license": "MIT", 289 | "optional": true, 290 | "os": [ 291 | "win32" 292 | ] 293 | }, 294 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 295 | "version": "4.22.4", 296 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz", 297 | "integrity": "sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==", 298 | "cpu": [ 299 | "ia32" 300 | ], 301 | "dev": true, 302 | "license": "MIT", 303 | "optional": true, 304 | "os": [ 305 | "win32" 306 | ] 307 | }, 308 | "node_modules/@rollup/rollup-win32-x64-msvc": { 309 | "version": "4.22.4", 310 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz", 311 | "integrity": "sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==", 312 | "cpu": [ 313 | "x64" 314 | ], 315 | "dev": true, 316 | "license": "MIT", 317 | "optional": true, 318 | "os": [ 319 | "win32" 320 | ] 321 | }, 322 | "node_modules/@types/estree": { 323 | "version": "1.0.5", 324 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", 325 | "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", 326 | "dev": true, 327 | "license": "MIT" 328 | }, 329 | "node_modules/acorn": { 330 | "version": "8.11.2", 331 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", 332 | "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", 333 | "dev": true, 334 | "bin": { 335 | "acorn": "bin/acorn" 336 | }, 337 | "engines": { 338 | "node": ">=0.4.0" 339 | } 340 | }, 341 | "node_modules/ansi-colors": { 342 | "version": "4.1.3", 343 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", 344 | "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", 345 | "dev": true, 346 | "engines": { 347 | "node": ">=6" 348 | } 349 | }, 350 | "node_modules/anymatch": { 351 | "version": "3.1.3", 352 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 353 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 354 | "dev": true, 355 | "dependencies": { 356 | "normalize-path": "^3.0.0", 357 | "picomatch": "^2.0.4" 358 | }, 359 | "engines": { 360 | "node": ">= 8" 361 | } 362 | }, 363 | "node_modules/binary-extensions": { 364 | "version": "2.2.0", 365 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 366 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 367 | "dev": true, 368 | "engines": { 369 | "node": ">=8" 370 | } 371 | }, 372 | "node_modules/braces": { 373 | "version": "3.0.3", 374 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 375 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 376 | "dev": true, 377 | "license": "MIT", 378 | "dependencies": { 379 | "fill-range": "^7.1.1" 380 | }, 381 | "engines": { 382 | "node": ">=8" 383 | } 384 | }, 385 | "node_modules/buffer-from": { 386 | "version": "1.1.2", 387 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 388 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 389 | "dev": true 390 | }, 391 | "node_modules/chokidar": { 392 | "version": "3.5.3", 393 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 394 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 395 | "dev": true, 396 | "funding": [ 397 | { 398 | "type": "individual", 399 | "url": "https://paulmillr.com/funding/" 400 | } 401 | ], 402 | "dependencies": { 403 | "anymatch": "~3.1.2", 404 | "braces": "~3.0.2", 405 | "glob-parent": "~5.1.2", 406 | "is-binary-path": "~2.1.0", 407 | "is-glob": "~4.0.1", 408 | "normalize-path": "~3.0.0", 409 | "readdirp": "~3.6.0" 410 | }, 411 | "engines": { 412 | "node": ">= 8.10.0" 413 | }, 414 | "optionalDependencies": { 415 | "fsevents": "~2.3.2" 416 | } 417 | }, 418 | "node_modules/clap": { 419 | "version": "3.1.1", 420 | "resolved": "https://registry.npmjs.org/clap/-/clap-3.1.1.tgz", 421 | "integrity": "sha512-vp42956Ax06WwaaheYEqEOgXZ3VKJxgccZ0gJL0HpyiupkIS9RVJFo5eDU1BPeQAOqz+cclndZg4DCqG1sJReQ==", 422 | "dev": true, 423 | "dependencies": { 424 | "ansi-colors": "^4.1.1" 425 | }, 426 | "engines": { 427 | "node": "^12.20.0 || ^14.13.0 || >=15.0.0", 428 | "npm": ">=7.0.0" 429 | } 430 | }, 431 | "node_modules/commander": { 432 | "version": "2.20.3", 433 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 434 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 435 | "dev": true 436 | }, 437 | "node_modules/css-tree": { 438 | "version": "2.2.1", 439 | "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", 440 | "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", 441 | "dev": true, 442 | "dependencies": { 443 | "mdn-data": "2.0.28", 444 | "source-map-js": "^1.0.1" 445 | }, 446 | "engines": { 447 | "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", 448 | "npm": ">=7.0.0" 449 | } 450 | }, 451 | "node_modules/csso": { 452 | "version": "5.0.5", 453 | "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", 454 | "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", 455 | "dev": true, 456 | "dependencies": { 457 | "css-tree": "~2.2.0" 458 | }, 459 | "engines": { 460 | "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", 461 | "npm": ">=7.0.0" 462 | } 463 | }, 464 | "node_modules/csso-cli": { 465 | "version": "4.0.2", 466 | "resolved": "https://registry.npmjs.org/csso-cli/-/csso-cli-4.0.2.tgz", 467 | "integrity": "sha512-p/VipA45w8EmS8Lv6wGtE+UdsbFlqUBGhL9FCTGKxd5dC07mtg3BbZaMzMh0X+oIl2JUGR/mPx5YzuNnTM2a3w==", 468 | "dev": true, 469 | "dependencies": { 470 | "chokidar": "^3.5.3", 471 | "clap": "^3.1.1", 472 | "csso": "^5.0.4", 473 | "source-map-js": "^1.0.2" 474 | }, 475 | "bin": { 476 | "csso": "bin/csso" 477 | }, 478 | "engines": { 479 | "node": ">=12.20.0" 480 | } 481 | }, 482 | "node_modules/fill-range": { 483 | "version": "7.1.1", 484 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 485 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 486 | "dev": true, 487 | "license": "MIT", 488 | "dependencies": { 489 | "to-regex-range": "^5.0.1" 490 | }, 491 | "engines": { 492 | "node": ">=8" 493 | } 494 | }, 495 | "node_modules/fsevents": { 496 | "version": "2.3.3", 497 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 498 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 499 | "dev": true, 500 | "hasInstallScript": true, 501 | "optional": true, 502 | "os": [ 503 | "darwin" 504 | ], 505 | "engines": { 506 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 507 | } 508 | }, 509 | "node_modules/glob-parent": { 510 | "version": "5.1.2", 511 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 512 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 513 | "dev": true, 514 | "dependencies": { 515 | "is-glob": "^4.0.1" 516 | }, 517 | "engines": { 518 | "node": ">= 6" 519 | } 520 | }, 521 | "node_modules/is-binary-path": { 522 | "version": "2.1.0", 523 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 524 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 525 | "dev": true, 526 | "dependencies": { 527 | "binary-extensions": "^2.0.0" 528 | }, 529 | "engines": { 530 | "node": ">=8" 531 | } 532 | }, 533 | "node_modules/is-extglob": { 534 | "version": "2.1.1", 535 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 536 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 537 | "dev": true, 538 | "engines": { 539 | "node": ">=0.10.0" 540 | } 541 | }, 542 | "node_modules/is-glob": { 543 | "version": "4.0.3", 544 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 545 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 546 | "dev": true, 547 | "dependencies": { 548 | "is-extglob": "^2.1.1" 549 | }, 550 | "engines": { 551 | "node": ">=0.10.0" 552 | } 553 | }, 554 | "node_modules/is-number": { 555 | "version": "7.0.0", 556 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 557 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 558 | "dev": true, 559 | "license": "MIT", 560 | "engines": { 561 | "node": ">=0.12.0" 562 | } 563 | }, 564 | "node_modules/mdn-data": { 565 | "version": "2.0.28", 566 | "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", 567 | "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", 568 | "dev": true 569 | }, 570 | "node_modules/normalize-path": { 571 | "version": "3.0.0", 572 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 573 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 574 | "dev": true, 575 | "engines": { 576 | "node": ">=0.10.0" 577 | } 578 | }, 579 | "node_modules/picomatch": { 580 | "version": "2.3.1", 581 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 582 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 583 | "dev": true, 584 | "engines": { 585 | "node": ">=8.6" 586 | }, 587 | "funding": { 588 | "url": "https://github.com/sponsors/jonschlinkert" 589 | } 590 | }, 591 | "node_modules/randombytes": { 592 | "version": "2.1.0", 593 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 594 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 595 | "dev": true, 596 | "dependencies": { 597 | "safe-buffer": "^5.1.0" 598 | } 599 | }, 600 | "node_modules/readdirp": { 601 | "version": "3.6.0", 602 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 603 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 604 | "dev": true, 605 | "dependencies": { 606 | "picomatch": "^2.2.1" 607 | }, 608 | "engines": { 609 | "node": ">=8.10.0" 610 | } 611 | }, 612 | "node_modules/rollup": { 613 | "version": "4.22.4", 614 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.22.4.tgz", 615 | "integrity": "sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==", 616 | "dev": true, 617 | "license": "MIT", 618 | "dependencies": { 619 | "@types/estree": "1.0.5" 620 | }, 621 | "bin": { 622 | "rollup": "dist/bin/rollup" 623 | }, 624 | "engines": { 625 | "node": ">=18.0.0", 626 | "npm": ">=8.0.0" 627 | }, 628 | "optionalDependencies": { 629 | "@rollup/rollup-android-arm-eabi": "4.22.4", 630 | "@rollup/rollup-android-arm64": "4.22.4", 631 | "@rollup/rollup-darwin-arm64": "4.22.4", 632 | "@rollup/rollup-darwin-x64": "4.22.4", 633 | "@rollup/rollup-linux-arm-gnueabihf": "4.22.4", 634 | "@rollup/rollup-linux-arm-musleabihf": "4.22.4", 635 | "@rollup/rollup-linux-arm64-gnu": "4.22.4", 636 | "@rollup/rollup-linux-arm64-musl": "4.22.4", 637 | "@rollup/rollup-linux-powerpc64le-gnu": "4.22.4", 638 | "@rollup/rollup-linux-riscv64-gnu": "4.22.4", 639 | "@rollup/rollup-linux-s390x-gnu": "4.22.4", 640 | "@rollup/rollup-linux-x64-gnu": "4.22.4", 641 | "@rollup/rollup-linux-x64-musl": "4.22.4", 642 | "@rollup/rollup-win32-arm64-msvc": "4.22.4", 643 | "@rollup/rollup-win32-ia32-msvc": "4.22.4", 644 | "@rollup/rollup-win32-x64-msvc": "4.22.4", 645 | "fsevents": "~2.3.2" 646 | } 647 | }, 648 | "node_modules/safe-buffer": { 649 | "version": "5.2.1", 650 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 651 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 652 | "dev": true, 653 | "funding": [ 654 | { 655 | "type": "github", 656 | "url": "https://github.com/sponsors/feross" 657 | }, 658 | { 659 | "type": "patreon", 660 | "url": "https://www.patreon.com/feross" 661 | }, 662 | { 663 | "type": "consulting", 664 | "url": "https://feross.org/support" 665 | } 666 | ] 667 | }, 668 | "node_modules/serialize-javascript": { 669 | "version": "6.0.2", 670 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 671 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 672 | "dev": true, 673 | "license": "BSD-3-Clause", 674 | "dependencies": { 675 | "randombytes": "^2.1.0" 676 | } 677 | }, 678 | "node_modules/smob": { 679 | "version": "1.4.1", 680 | "resolved": "https://registry.npmjs.org/smob/-/smob-1.4.1.tgz", 681 | "integrity": "sha512-9LK+E7Hv5R9u4g4C3p+jjLstaLe11MDsL21UpYaCNmapvMkYhqCV4A/f/3gyH8QjMyh6l68q9xC85vihY9ahMQ==", 682 | "dev": true 683 | }, 684 | "node_modules/source-map": { 685 | "version": "0.6.1", 686 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 687 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 688 | "dev": true, 689 | "engines": { 690 | "node": ">=0.10.0" 691 | } 692 | }, 693 | "node_modules/source-map-js": { 694 | "version": "1.0.2", 695 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 696 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 697 | "dev": true, 698 | "engines": { 699 | "node": ">=0.10.0" 700 | } 701 | }, 702 | "node_modules/source-map-support": { 703 | "version": "0.5.21", 704 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 705 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 706 | "dev": true, 707 | "dependencies": { 708 | "buffer-from": "^1.0.0", 709 | "source-map": "^0.6.0" 710 | } 711 | }, 712 | "node_modules/terser": { 713 | "version": "5.26.0", 714 | "resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz", 715 | "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", 716 | "dev": true, 717 | "dependencies": { 718 | "@jridgewell/source-map": "^0.3.3", 719 | "acorn": "^8.8.2", 720 | "commander": "^2.20.0", 721 | "source-map-support": "~0.5.20" 722 | }, 723 | "bin": { 724 | "terser": "bin/terser" 725 | }, 726 | "engines": { 727 | "node": ">=10" 728 | } 729 | }, 730 | "node_modules/to-regex-range": { 731 | "version": "5.0.1", 732 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 733 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 734 | "dev": true, 735 | "license": "MIT", 736 | "dependencies": { 737 | "is-number": "^7.0.0" 738 | }, 739 | "engines": { 740 | "node": ">=8.0" 741 | } 742 | } 743 | } 744 | } 745 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "digichain", 3 | "description": "", 4 | "version": "1.5.0", 5 | "author": { 6 | "name": "Brian Barnett", 7 | "url": "https://brianbar.net/" 8 | }, 9 | "scripts": { 10 | "packjs": "rollup -c rollup.config.mjs", 11 | "mincss": "csso src/main.css --output latest/main.css", 12 | "serve": "go run serve.go" 13 | }, 14 | "devDependencies": { 15 | "csso": "^5.0.5", 16 | "csso-cli": "^4.0.2", 17 | "rollup": "4.22.4", 18 | "terser": "^5.26.0", 19 | "@rollup/plugin-terser": "^0.4.3" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /privacy-policy.md: -------------------------------------------------------------------------------- 1 | ## Privacy Policy for DigiChain 2 | 3 | **Effective Date: 2023-05-22** 4 | 5 | This Privacy Policy governs the manner in which DigiChain handles and protects user information. DigiChain is a web application that does not collect any personal identification information from its users ("Users"). 6 | 7 | ### Information Collection and Usage 8 | DigiChain does not collect any personal identification information from its Users. We do not request or store names, email addresses, mailing addresses, phone numbers, payment information, or any other personally identifiable information. 9 | 10 | ### Non-personal Identification Information 11 | DigiChain may collect non-personal identification information about Users whenever they interact with the application via the GitHub Insights feature, or via the CloudFlare Web Analytics platform. This may include technical information about Users' devices, browsers, such as the browser name, device type and operating system. 12 | 13 | ### Web Browser Cookies 14 | DigiChain does not use cookies or similar tracking technologies. No information is stored on Users' devices through the use of cookies beyond the settings configuration options, which are not user identifiable. 15 | 16 | ### Data Security 17 | No user data is ever collected, and the app runs entirely on the users computer, transmitting no data over the internet beyond its own application code. The source code is freely available on GitHub for verification of this. 18 | 19 | ### Third-Party Services 20 | DigiChain does not share any user information with third-party services, partners, advertisers, or affiliates, as we do not collect any user information beyond basic web analytics. 21 | 22 | ### External Links 23 | DigiChain may provide links to external websites or resources for informational purposes. We are not responsible for the content or practices employed by these third-party websites. Users should review the privacy policies of those websites as they may differ from ours. 24 | 25 | ### Children's Privacy 26 | DigiChain is not intended for use by individuals under the age of 13. We do not knowingly collect any information from children under 13 years of age. If you believe that your child has provided personal information to us, please contact us promptly, and we will take steps to remove that information from our systems. 27 | 28 | ### Changes to this Privacy Policy 29 | DigiChain reserves the right to update or modify this Privacy Policy at any time. Users will be notified of any changes by updating the effective date at the top of this page. It is the responsibility of Users to review this Privacy Policy periodically for any updates. 30 | 31 | ### Contact Us 32 | If you have any questions or concerns about this Privacy Policy or the practices of DigiChain, please contact us at https://brianbar.net/about. 33 | -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- 1 | import terser from '@rollup/plugin-terser'; 2 | 3 | export default { 4 | input: 'src/main.js', 5 | output: { 6 | dir: 'latest', 7 | format: 'cjs' 8 | }, 9 | plugins: [terser()] 10 | }; 11 | -------------------------------------------------------------------------------- /serve.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "log" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | // Get the current working directory 11 | wd, err := os.Getwd() 12 | if err != nil { 13 | log.Fatal(err) 14 | } 15 | 16 | // Serve files from the src folder 17 | http.Handle("/", http.FileServer(http.Dir(wd+string(os.PathSeparator)+"src"))) 18 | 19 | // Start the server 20 | log.Println("DigiChain is being served at http://localhost:8080/") 21 | log.Fatal(http.ListenAndServe(":8080", nil)) 22 | } 23 | -------------------------------------------------------------------------------- /src/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/android-chrome-192x192.png -------------------------------------------------------------------------------- /src/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/android-chrome-512x512.png -------------------------------------------------------------------------------- /src/apple-touch-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon-120x120.png -------------------------------------------------------------------------------- /src/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /src/apple-touch-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon-180x180.png -------------------------------------------------------------------------------- /src/apple-touch-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon-60x60.png -------------------------------------------------------------------------------- /src/apple-touch-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon-76x76.png -------------------------------------------------------------------------------- /src/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/apple-touch-icon.png -------------------------------------------------------------------------------- /src/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #202124 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/digichain.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/digichain.gif -------------------------------------------------------------------------------- /src/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/favicon-16x16.png -------------------------------------------------------------------------------- /src/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/favicon-32x32.png -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/favicon.ico -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | DigiChain 29 | 30 | 31 | 32 | 33 | 34 |
35 |
36 |

DigiChain needs to be served from a web-server to function.

37 |
38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 |

Welcome to DigiChain

47 |

Before importing samples, open the Audio Config Panel and configure the export and chain settings, try using the 'Common Configurations' drop-down options in the bottom right!

48 | Tip 49 |
50 |

Drag and drop supports dropping single files, multiple files, folders, nested folders, zip files (with folders), and DigiChain session files.

51 |

Hold down the Shift key while dropping files/folders to take a random selection up to the currently set chain length.

52 |

For samples that already have slice data, use the New Spaced Chain and New Chain buttons on the Slice Panel to create a new version of the sample in the list. 53 | Double-click a slice to toggle it on or off to be included/excluded in the new chain.

54 |

Holding Shift / Ctrl / Cmd will show which buttons / icons have alternate actions with the modifier key held down, hover over to see tooltip descriptions.

55 |

By default, files that contain slice information will have their slices treated as distinct files when building new chains; this behavior can be changed to ignore the slices when including in new chains in the Settings Panel.

56 |
57 |

For documentation, see https://brianbar.net/docs/digichain/

58 |
59 | 60 | 61 |
62 |
63 | 64 | 65 | 67 |
68 |

Keyboard Shortcuts

69 |
70 |
71 | Up / Down Arrow Keys when a sample row is highlighted, this changes the highlighted sample
72 | P plays the currently highlighted sample in the list. (also in edit panel)
73 | I inverts the selected items in the list
74 | Escape closes any open dialog windows and stops all sample playback
75 | Enter / Return toggles the selection of the currently highlighted sample in the list
76 | L / S / R / D changes the channel for stereo files being processed to mono (also on edit panel 77 | in mono contexts.) 78 |
79 |
80 | Number keys 1 through 0 play the selected sample in the position of the key with 0 == 10
81 | E Opens the edit panel for the currently highlighted sample
82 | Hold Shift Key while dropping files will randomly select files upto the currently set 83 | grid-size value
84 | Edit Panel, N Create new slice
85 | Edit Panel, U Update current slice
86 | Edit Panel, X Remove current slice 87 |
88 |
89 | 90 |
Shift + Click / Shift + Key
91 |
92 |
93 | Up / Down Keys moves the highlighted sample up or down in the list
94 | Waveform View plays the sample looped, click again to go back to one-shot
95 | Slice Grid Number & Off Buttons changes the slice grid size, AND sets the number of selected samples in 96 | the list
97 | Duplicate Icon puts the duplicated file at the end of the sample list
98 | Move Up Icon moves directly to the top of the sample list
99 | Move Down Icon moved directly to the end of the sample list
100 | L S R D Options sets all stereo samples method for mono conversion (take left, right, or sum to 101 | mono)
102 | Download All processed files will have the imported folder structure flattened into their file 103 | names (all files will be at the root level of the zip file)
104 | Joined / Joined Spaced audio will be resampled internally back to the list instead of prompting 105 | to save as a file (clicking the filename in the list will still allow the wav download)
106 | E Opens the editor panel for the currently highlighted sample, with the file name and path 107 | inputs editable, and the filename input keyboard focused
108 | Editor Crop cropa the selection to a new sample (but stays in the current sample). 109 |
110 |
111 | P plays the currently highlighted sample looped
112 | H Toggles showing/hiding the top buttons panel, to give more space for the grid
113 | L Toggles showing/hiding the samples list/grid.
114 | Slice Sample Options Will put the slices in the list directly below the source sample
115 | G Toggles grid-view/list-view (grid-view is now the default for narrow screen width devices 116 | like phones)
117 | Column Header Sorts the list, but will keep the selected items grouped to the top of the 118 | list
119 | Reset Button Randomizes the order of the list
120 | Check Sample Row Button Will select all samples between the highlighted sample and the 121 | clicked sample (inclusive). Ctrl+Shift+Click will de-select
122 | Truncate / Crush Shows popup to enter a custom value
123 | Sample Slice In slicing panel, toggles looping the clicked slice (for .ot exports) 124 |
125 |
126 | 127 |
Ctrl/CMD + Click
128 |
129 |
130 | Slice Grid Number Buttons prompts to enter a custom value for the slice grid
131 | Slice Grid Off Button restores the default slice grid options
132 | Row Selected Header Toggles select / de-select all samples in list
133 | Row Slice Icon Clear any related slice data 134 |
135 |
136 | Time Limit prompts to enter a custom value for the timed chain lengths when that mode is 137 | enabled
138 | Sample Slice In slicing panel, previews (plays) the slice clicked on
139 | Add Samples Icon Adds a blank sample to list
140 | Filename Column Header Sorts the list, but will sort by numeric filename content only.
141 |
142 |
143 | 144 |
Ctrl/CMD + Shift + Click
145 |
146 |
147 | On the edit panel, when clicking the waveform, this will set the end point selection to the 148 | clicked position and move the start point to the previous end point value
149 | Sample Slice In slicing panel, toggles the file loop start point to be from the 150 | start of the clicked slice, blue dotted line is loop on, yellow dashed line is loop ping-pong 151 | (for .ot exports)
152 | Stretch Shortest / Longest Selected action, value entered will be treated as samples instead of seconds when setting the stretch length.
153 | Editor Crop crops selection to a new sample and immediately edit that new sample in the editor. 154 |
155 |
156 |
Alt + Key
157 |
158 |
159 | Number 1 - 0, P Stops the playback and looping of the sample 160 |
161 |
162 |
163 |
164 | 165 | 166 | 167 | 169 |
170 |
171 | 172 | 173 | 174 |
175 |
176 | 177 | 178 | 179 |

180 | Choose how many slices to make from
'' 181 |

182 |
183 |
184 | 185 |
186 |
187 |
188 |
189 | 192 | 195 | 198 | 201 | 204 | 207 | 210 | 214 | 217 | 221 | 224 |
225 |
226 |
227 | 229 | 230 |
231 | 242 |
243 |
244 | 248 | 252 | 264 |
265 |
266 | 267 | 268 | 271 |
272 |
273 |
274 | 275 |
276 | 279 |
280 | 281 |
282 | 283 | 284 | 286 |
287 |
288 | 289 |
290 | 291 |
292 |
293 |
Loaded/Selected
294 | 0/0 295 |
296 | 299 |
300 |
301 | 302 |
303 |
Loading samples
304 |
305 |
306 | 530 |
531 |
532 | 533 | 534 | 535 | 536 | 540 | 541 | 542 | 543 | 551 | 553 | 554 | 555 | 556 | 557 | 563 | 564 | 565 | 566 |
Selected 544 | Filename 546 | - slice # 548 | - 549 | note - 550 | Length (s) 558 | 562 |
567 |
568 |
569 |
570 | 574 |
575 |
576 | 577 | 585 | 586 | 587 | 588 | 616 | 617 | 618 | 619 | -------------------------------------------------------------------------------- /src/msgpack.min.js: -------------------------------------------------------------------------------- 1 | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.msgpack=t()}}(function(){return function t(r,e,n){function i(f,u){if(!e[f]){if(!r[f]){var a="function"==typeof require&&require;if(!u&&a)return a(f,!0);if(o)return o(f,!0);var s=new Error("Cannot find module '"+f+"'");throw s.code="MODULE_NOT_FOUND",s}var c=e[f]={exports:{}};r[f][0].call(c.exports,function(t){var e=r[f][1][t];return i(e?e:t)},c,c.exports,t,r,e,n)}return e[f].exports}for(var o="function"==typeof require&&require,f=0;f>>6,e[n++]=128|63&o):o<55296||o>57343?(e[n++]=224|o>>>12,e[n++]=128|o>>>6&63,e[n++]=128|63&o):(o=(o-55296<<10|t.charCodeAt(f++)-56320)+65536,e[n++]=240|o>>>18,e[n++]=128|o>>>12&63,e[n++]=128|o>>>6&63,e[n++]=128|63&o);return n-r}function i(t,r,e){var n=this,i=0|r;e||(e=n.length);for(var o="",f=0;i=65536?(f-=65536,o+=String.fromCharCode((f>>>10)+55296,(1023&f)+56320)):o+=String.fromCharCode(f));return o}function o(t,r,e,n){var i;e||(e=0),n||0===n||(n=this.length),r||(r=0);var o=n-e;if(t===this&&e=0;i--)t[i+r]=this[i+e];else for(i=0;ithis.buffer.length)throw new Error(v);return this.offset=e,r}return{bufferish:p,write:t,fetch:a,flush:r,push:c,pull:h,read:s,reserve:e,offset:0}}function f(){function t(){var t=this.start;if(t1?this.bufferish.concat(t):t[0];return t.length=0,r}function n(t){var r=0|t;if(this.buffer){var e=this.buffer.length,n=0|this.offset,i=n+r;if(ithis.minBufferSize)this.flush(),this.push(t);else{var e=this.reserve(r);p.prototype.copy.call(t,this.buffer,e)}}return{bufferish:p,write:u,fetch:t,flush:r,push:c,pull:e,read:s,reserve:n,send:i,maxBufferSize:y,minBufferSize:d,offset:0,start:0}}function u(){throw new Error("method not implemented: write()")}function a(){throw new Error("method not implemented: fetch()")}function s(){var t=this.buffers&&this.buffers.length;return t?(this.flush(),this.pull()):this.fetch()}function c(t){var r=this.buffers||(this.buffers=[]);r.push(t)}function h(){var t=this.buffers||(this.buffers=[]);return t.shift()}function l(t){function r(r){for(var e in t)r[e]=t[e];return r}return r}e.FlexDecoder=n,e.FlexEncoder=i;var p=t("./bufferish"),d=2048,y=65536,v="BUFFER_SHORTAGE";n.mixin=l(o()),n.mixin(n.prototype),i.mixin=l(f()),i.mixin(i.prototype)},{"./bufferish":8}],22:[function(t,r,e){function n(t){function r(t){var r=s(t),n=e[r];if(!n)throw new Error("Invalid type: "+(r?"0x"+r.toString(16):r));return n(t)}var e=c.getReadToken(t);return r}function i(){var t=this.options;return this.decode=n(t),t&&t.preset&&a.setExtUnpackers(this),this}function o(t,r){var e=this.extUnpackers||(this.extUnpackers=[]);e[t]=h.filter(r)}function f(t){function r(r){return new u(r,t)}var e=this.extUnpackers||(this.extUnpackers=[]);return e[t]||r}var u=t("./ext-buffer").ExtBuffer,a=t("./ext-unpacker"),s=t("./read-format").readUint8,c=t("./read-token"),h=t("./codec-base");h.install({addExtUnpacker:o,getExtUnpacker:f,init:i}),e.preset=i.call(h.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-unpacker":19,"./read-format":23,"./read-token":24}],23:[function(t,r,e){function n(t){var r=k.hasArrayBuffer&&t&&t.binarraybuffer,e=t&&t.int64,n=T&&t&&t.usemap,B={map:n?o:i,array:f,str:u,bin:r?s:a,ext:c,uint8:h,uint16:p,uint32:y,uint64:g(8,e?E:b),int8:l,int16:d,int32:v,int64:g(8,e?A:w),float32:g(4,m),float64:g(8,x)};return B}function i(t,r){var e,n={},i=new Array(r),o=new Array(r),f=t.codec.decode;for(e=0;e>>8,i[n]=e}}function s(t){return function(r,e){var n=r.reserve(5),i=r.buffer;i[n++]=t,i[n++]=e>>>24,i[n++]=e>>>16,i[n++]=e>>>8,i[n]=e}}function c(t,r,e,n){return function(i,o){var f=i.reserve(r+1);i.buffer[f++]=t,e.call(i.buffer,o,f,n)}}function h(t,r){new g(this,r,t)}function l(t,r){new b(this,r,t)}function p(t,r){y.write(this,t,r,!1,23,4)}function d(t,r){y.write(this,t,r,!1,52,8)}var y=t("ieee754"),v=t("int64-buffer"),g=v.Uint64BE,b=v.Int64BE,w=t("./write-uint8").uint8,E=t("./bufferish"),Buffer=E.global,A=E.hasBuffer&&"TYPED_ARRAY_SUPPORT"in Buffer,m=A&&!Buffer.TYPED_ARRAY_SUPPORT,x=E.hasBuffer&&Buffer.prototype||{};e.getWriteToken=n},{"./bufferish":8,"./write-uint8":28,ieee754:32,"int64-buffer":33}],27:[function(t,r,e){function n(t){function r(t,r){var e=r?195:194;_[e](t,r)}function e(t,r){var e,n=0|r;return r!==n?(e=203,void _[e](t,r)):(e=-32<=n&&n<=127?255&n:0<=n?n<=255?204:n<=65535?205:206:-128<=n?208:-32768<=n?209:210,void _[e](t,n))}function n(t,r){var e=207;_[e](t,r.toArray())}function o(t,r){var e=211;_[e](t,r.toArray())}function v(t){return t<32?1:t<=255?2:t<=65535?3:5}function g(t){return t<32?1:t<=65535?3:5}function b(t){function r(r,e){var n=e.length,i=5+3*n;r.offset=r.reserve(i);var o=r.buffer,f=t(n),u=r.offset+f;n=s.write.call(o,e,u);var a=t(n);if(f!==a){var c=u+a-f,h=u+n;s.copy.call(o,o,c,u,h)}var l=1===a?160+n:a<=3?215+a:219;_[l](r,n),r.offset+=n}return r}function w(t,r){if(null===r)return A(t,r);if(I(r))return Y(t,r);if(i(r))return m(t,r);if(f.isUint64BE(r))return n(t,r);if(u.isInt64BE(r))return o(t,r);var e=t.codec.getExtPacker(r);return e&&(r=e(r)),r instanceof l?U(t,r):void D(t,r)}function E(t,r){return I(r)?k(t,r):void w(t,r)}function A(t,r){var e=192;_[e](t,r)}function m(t,r){var e=r.length,n=e<16?144+e:e<=65535?220:221;_[n](t,e);for(var i=t.codec.encode,o=0;o=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),Buffer.alloc(+t)}function v(t,r){if(Buffer.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return X(t).length;default:if(n)return q(t).length;r=(""+r).toLowerCase(),n=!0}}function g(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,r,e);case"utf8":case"utf-8":return k(this,r,e);case"ascii":return T(this,r,e);case"latin1":case"binary":return S(this,r,e);case"base64":return R(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function w(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=Buffer.from(r,n)),Buffer.isBuffer(r))return 0===r.length?-1:E(t,r,e,n,i);if("number"==typeof r)return r=255&r,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):E(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function E(t,r,e,n,i){function o(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}var f=1,u=t.length,a=r.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f=2,u/=2,a/=2,e/=2}var s;if(i){var c=-1;for(s=e;su&&(e=u-a),s=e;s>=0;s--){for(var h=!0,l=0;li&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var f=0;f239?4:o>223?3:o>191?2:1;if(i+u<=e){var a,s,c,h;switch(u){case 1:o<128&&(f=o);break;case 2:a=t[i+1],128===(192&a)&&(h=(31&o)<<6|63&a,h>127&&(f=h));break;case 3:a=t[i+1],s=t[i+2],128===(192&a)&&128===(192&s)&&(h=(15&o)<<12|(63&a)<<6|63&s,h>2047&&(h<55296||h>57343)&&(f=h));break;case 4:a=t[i+1],s=t[i+2],c=t[i+3],128===(192&a)&&128===(192&s)&&128===(192&c)&&(h=(15&o)<<18|(63&a)<<12|(63&s)<<6|63&c,h>65535&&h<1114112&&(f=h))}}null===f?(f=65533,u=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=u}return _(n)}function _(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",n=0;nn)&&(e=n);for(var i="",o=r;oe)throw new RangeError("Trying to access beyond buffer length")}function D(t,r,e,n,i,o){if(!Buffer.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function O(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function L(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function M(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function N(t,r,e,n,i){return i||M(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,r,e,n,23,4),e+4}function F(t,r,e,n,i){return i||M(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,r,e,n,52,8),e+8}function j(t){ 2 | if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function V(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],f=0;f55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(f+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function W(t){for(var r=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function X(t){return Z.toByteArray(j(t))}function G(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function H(t){return t!==t}var Z=t("base64-js"),K=t("ieee754"),Q=t("isarray");e.Buffer=Buffer,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:n(),e.kMaxLength=i(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,r,e){return f(null,t,r,e)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(t,r,e){return a(null,t,r,e)},Buffer.allocUnsafe=function(t){return s(null,t)},Buffer.allocUnsafeSlow=function(t){return s(null,t)},Buffer.isBuffer=function(t){return!(null==t||!t._isBuffer)},Buffer.compare=function(t,r){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},Buffer.prototype.compare=function(t,r,e,n,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,f=e-r,u=Math.min(o,f),a=this.slice(n,i),s=t.slice(r,e),c=0;ci)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return x(this,t,r,e);case"latin1":case"binary":return B(this,t,r,e);case"base64":return U(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;Buffer.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),r0&&(i*=256);)n+=this[t+--r]*i;return n},Buffer.prototype.readUInt8=function(t,r){return r||C(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,r){return r||C(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,r){return r||C(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,r){return r||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,r){return r||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,r,e){t=0|t,r=0|r,e||C(t,r,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*r)),n},Buffer.prototype.readIntBE=function(t,r,e){t=0|t,r=0|r,e||C(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},Buffer.prototype.readInt8=function(t,r){return r||C(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},Buffer.prototype.readInt16LE=function(t,r){r||C(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},Buffer.prototype.readInt16BE=function(t,r){r||C(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},Buffer.prototype.readInt32LE=function(t,r){return r||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,r){return r||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,r){return r||C(t,4,this.length),K.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,r){return r||C(t,4,this.length),K.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,r){return r||C(t,8,this.length),K.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,r){return r||C(t,8,this.length),K.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r=0|r,e=0|e,!n){var i=Math.pow(2,8*e)-1;D(this,t,r,e,i,0)}var o=1,f=0;for(this[r]=255&t;++f=0&&(f*=256);)this[r+o]=t/f&255;return r+e},Buffer.prototype.writeUInt8=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},Buffer.prototype.writeUInt16LE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):O(this,t,r,!0),r+2},Buffer.prototype.writeUInt16BE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):O(this,t,r,!1),r+2},Buffer.prototype.writeUInt32LE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):L(this,t,r,!0),r+4},Buffer.prototype.writeUInt32BE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):L(this,t,r,!1),r+4},Buffer.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);D(this,t,r,e,i-1,-i)}var o=0,f=1,u=0;for(this[r]=255&t;++o>0)-u&255;return r+e},Buffer.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);D(this,t,r,e,i-1,-i)}var o=e-1,f=1,u=0;for(this[r+o]=255&t;--o>=0&&(f*=256);)t<0&&0===u&&0!==this[r+o+1]&&(u=1),this[r+o]=(t/f>>0)-u&255;return r+e},Buffer.prototype.writeInt8=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},Buffer.prototype.writeInt16LE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):O(this,t,r,!0),r+2},Buffer.prototype.writeInt16BE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):O(this,t,r,!1),r+2},Buffer.prototype.writeInt32LE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):L(this,t,r,!0),r+4},Buffer.prototype.writeInt32BE=function(t,r,e){return t=+t,r=0|r,e||D(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):L(this,t,r,!1),r+4},Buffer.prototype.writeFloatLE=function(t,r,e){return N(this,t,r,!0,e)},Buffer.prototype.writeFloatBE=function(t,r,e){return N(this,t,r,!1,e)},Buffer.prototype.writeDoubleLE=function(t,r,e){return F(this,t,r,!0,e)},Buffer.prototype.writeDoubleBE=function(t,r,e){return F(this,t,r,!1,e)},Buffer.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else if(o<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var o;if("number"==typeof t)for(o=r;o0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[r-2]?2:"="===t[r-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var r,e,i,o,f,u,a=t.length;f=n(t),u=new h(3*a/4-f),i=f>0?a-4:a;var s=0;for(r=0,e=0;r>16&255,u[s++]=o>>8&255,u[s++]=255&o;return 2===f?(o=c[t.charCodeAt(r)]<<2|c[t.charCodeAt(r+1)]>>4,u[s++]=255&o):1===f&&(o=c[t.charCodeAt(r)]<<10|c[t.charCodeAt(r+1)]<<4|c[t.charCodeAt(r+2)]>>2,u[s++]=o>>8&255,u[s++]=255&o),u}function f(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function u(t,r,e){for(var n,i=[],o=r;oc?c:a+f));return 1===n?(r=t[e-1],i+=s[r>>2],i+=s[r<<4&63],i+="=="):2===n&&(r=(t[e-2]<<8)+t[e-1],i+=s[r>>10],i+=s[r>>4&63],i+=s[r<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=a;for(var s=[],c=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=l.length;p>1,c=-7,h=e?i-1:0,l=e?-1:1,p=t[r+h];for(h+=l,o=p&(1<<-c)-1,p>>=-c,c+=u;c>0;o=256*o+t[r+h],h+=l,c-=8);for(f=o&(1<<-c)-1,o>>=-c,c+=n;c>0;f=256*f+t[r+h],h+=l,c-=8);if(0===o)o=1-s;else{if(o===a)return f?NaN:(p?-1:1)*(1/0);f+=Math.pow(2,n),o-=s}return(p?-1:1)*f*Math.pow(2,o-n)},e.write=function(t,r,e,n,i,o){var f,u,a,s=8*o-i-1,c=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,f=c):(f=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-f))<1&&(f--,a*=2),r+=f+h>=1?l/a:l*Math.pow(2,1-h),r*a>=2&&(f++,a/=2),f+h>=c?(u=0,f=c):f+h>=1?(u=(r*a-1)*Math.pow(2,i),f+=h):(u=r*Math.pow(2,h-1)*Math.pow(2,i),f=0));i>=8;t[e+p]=255&u,p+=d,u/=256,i-=8);for(f=f<0;t[e+p]=255&f,p+=d,f/=256,s-=8);t[e+p-d]|=128*y}},{}],33:[function(t,r,e){(function(Buffer){var t,r,n,i;!function(e){function o(t,r,n){function i(t,r,e,n){return this instanceof i?v(this,t,r,e,n):new i(t,r,e,n)}function o(t){return!(!t||!t[F])}function v(t,r,e,n,i){if(E&&A&&(r instanceof A&&(r=new E(r)),n instanceof A&&(n=new E(n))),!(r||e||n||g))return void(t.buffer=h(m,0));if(!s(r,e)){var o=g||Array;i=e,n=r,e=0,r=new o(8)}t.buffer=r,t.offset=e|=0,b!==typeof n&&("string"==typeof n?x(r,e,n,i||10):s(n,i)?c(r,e,n,i):"number"==typeof i?(k(r,e+T,n),k(r,e+S,i)):n>0?O(r,e,n):n<0?L(r,e,n):c(r,e,m,0))}function x(t,r,e,n){var i=0,o=e.length,f=0,u=0;"-"===e[0]&&i++;for(var a=i;i=0))break;u=u*n+s,f=f*n+Math.floor(u/B),u%=B}a&&(f=~f,u?u=B-u:f++),k(t,r+T,f),k(t,r+S,u)}function P(){var t=this.buffer,r=this.offset,e=_(t,r+T),i=_(t,r+S);return n||(e|=0),e?e*B+i:i}function R(t){var r=this.buffer,e=this.offset,i=_(r,e+T),o=_(r,e+S),f="",u=!n&&2147483648&i;for(u&&(i=~i,o=B-o),t=t||10;;){var a=i%t*B+o;if(i=Math.floor(i/t),o=Math.floor(a/t),f=(a%t).toString(t)+f,!i&&!o)break}return u&&(f="-"+f),f}function k(t,r,e){t[r+D]=255&e,e>>=8,t[r+C]=255&e,e>>=8,t[r+Y]=255&e,e>>=8,t[r+I]=255&e}function _(t,r){return t[r+I]*U+(t[r+Y]<<16)+(t[r+C]<<8)+t[r+D]}var T=r?0:4,S=r?4:0,I=r?0:3,Y=r?1:2,C=r?2:1,D=r?3:0,O=r?l:d,L=r?p:y,M=i.prototype,N="is"+t,F="_"+N;return M.buffer=void 0,M.offset=0,M[F]=!0,M.toNumber=P,M.toString=R,M.toJSON=P,M.toArray=f,w&&(M.toBuffer=u),E&&(M.toArrayBuffer=a),i[N]=o,e[t]=i,i}function f(t){var r=this.buffer,e=this.offset;return g=null,t!==!1&&0===e&&8===r.length&&x(r)?r:h(r,e)}function u(t){var r=this.buffer,e=this.offset;if(g=w,t!==!1&&0===e&&8===r.length&&Buffer.isBuffer(r))return r;var n=new w(8);return c(n,0,r,e),n}function a(t){var r=this.buffer,e=this.offset,n=r.buffer;if(g=E,t!==!1&&0===e&&n instanceof A&&8===n.byteLength)return n;var i=new E(8);return c(i,0,r,e),i.buffer}function s(t,r){var e=t&&t.length;return r|=0,e&&r+8<=e&&"string"!=typeof t[r]}function c(t,r,e,n){r|=0,n|=0;for(var i=0;i<8;i++)t[r++]=255&e[n++]}function h(t,r){return Array.prototype.slice.call(t,r,r+8)}function l(t,r,e){for(var n=r+8;n>r;)t[--n]=255&e,e/=256}function p(t,r,e){var n=r+8;for(e++;n>r;)t[--n]=255&-e^255,e/=256}function d(t,r,e){for(var n=r+8;r 2 | 4 | 7 | 8 | Created by potrace 1.14, written by Peter Selinger 2001-2017 9 | 10 | 12 | 43 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 213801.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 213801.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 213838.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 213838.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 213932.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 213932.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 214010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 214010.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 214039.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 214039.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 214102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 214102.png -------------------------------------------------------------------------------- /src/screenshots/Screenshot 2023-05-22 214119.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brian3kb/digichain/fcb8f04e93be3800838a8507ac0068cfcbee1075/src/screenshots/Screenshot 2023-05-22 214119.png -------------------------------------------------------------------------------- /src/settings.js: -------------------------------------------------------------------------------- 1 | const settingsStore = {}; 2 | 3 | const isStringValue = ['lastUsedAudioConfig', 'defaultAudioConfigText']; 4 | 5 | const defaultSettings = { 6 | lastUsedAudioConfig: '48000m16w', 7 | defaultAudioConfigText: '48kHz/16BIT MONO', 8 | restoreLastUsedAudioConfig: true, 9 | retainSessionState: true, 10 | 11 | spacedChainMode: true, 12 | updateResampleChainsToList: false, 13 | exportChainsAsXyPresets: false, 14 | 15 | wavePanelHeight: 128, 16 | 17 | attemptToFindCrossingPoint: false, 18 | darkModeTheme: null, 19 | deClick: 0.4, 20 | ditherExports: false, 21 | embedCuePoints: true, 22 | splitOutExistingSlicesOnJoin: true, 23 | embedOrslData: false, 24 | exportWithOtFile: false, 25 | importFileLimit: true, 26 | normalizeContrast: false, 27 | reverseEvenSamplesInChains: false, 28 | pitchModifier: 1, 29 | playWithPopMarker: 0, 30 | showTouchModifierKeys: false, 31 | showWelcomeModalOnLaunchIfListEmpty: true, 32 | shiftClickForFileDownload: false, 33 | skipMiniWaveformRender: false, 34 | treatDualMonoStereoAsMono: true, 35 | zipDownloads: true 36 | }; 37 | 38 | const getDefaultSetting = function(prop) { 39 | switch (prop) { 40 | case 'supportedSampleRates': 41 | return getSupportedSampleRates(); 42 | default: 43 | return defaultSettings[prop]; 44 | } 45 | }; 46 | 47 | const getSetting = function(prop) { 48 | const localStore = localStorage.getItem(prop); 49 | if (localStore !== null) { 50 | return isStringValue.includes(prop) ? 51 | localStore : 52 | JSON.parse(localStore); 53 | } else { 54 | return getDefaultSetting(prop); 55 | } 56 | }; 57 | 58 | const setSetting = function(prop, value) { 59 | if (value === undefined || value === null || value === '') { 60 | delete settingsStore[prop]; 61 | localStorage.removeItem(prop); 62 | return; 63 | } 64 | if (typeof value === 'object') { 65 | localStorage.setItem(prop, JSON.stringify(value)); 66 | return; 67 | } 68 | localStorage.setItem(prop, value); 69 | } 70 | 71 | export const settings = new Proxy(settingsStore, { 72 | get(settingsStore, prop) { 73 | if (settingsStore[prop] === undefined) { 74 | settingsStore[prop] = getSetting(prop); 75 | } 76 | return settingsStore[prop]; 77 | }, 78 | 79 | set(settingsStore, prop, value) { 80 | settingsStore[prop] = value; 81 | setSetting(prop, value); 82 | return true; 83 | } 84 | }); 85 | 86 | function getSupportedSampleRates() { 87 | let supportedSampleRates = [8000, 48000]; 88 | try { 89 | new AudioContext({sampleRate: 1}); 90 | supportedSampleRates = [1, 96000]; 91 | } catch(e) { 92 | const matches = e.toString().match( 93 | /\[(.*?)\]/g 94 | ); 95 | if (matches?.length) { 96 | supportedSampleRates = matches[0].split(',').map( 97 | sr => +sr.replace(/\D+/g, '') 98 | ); 99 | } 100 | } 101 | supportedSampleRates[1] = supportedSampleRates[1] > 96000 ? 96000 : supportedSampleRates[1]; 102 | return supportedSampleRates; 103 | } 104 | -------------------------------------------------------------------------------- /src/site.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DigiChain", 3 | "short_name": "DigiChain", 4 | "description": "DigiChain makes the creation of sample chains as easy as possible; Edit, trim, reverse, crush, join, slice, convert; Drag-and-drop uncompressed wav, aif (OP-1 Field/OP-Z), flac, or syx (MachineDrum) audio files and converts them to wav files for transfer via the Elektron Transfer app, or to aif files for use on Teenage Engineering OP-1 Field / OP-Z, or record from direct playback with pop markers. Include slice data as cue markers for use on DirtyWave M8, or export with a .ot file for direct use on Octatrack. Converted files can also be joined together without, or with padding to work better with the 1.5 firmware Digitakt slice grids. Files are generated at the chosen session sample rate and bit depth. All processing is done in the browser, on *your* computer, no data is sent to a server, and there is no, and never will be any user tracking. The app is provided for use as is, with no warranty and no accountability if *you* choose to overwrite source files with those generated.", 5 | "icons": [ 6 | { 7 | "src": "android-chrome-192x192.png", 8 | "sizes": "192x192", 9 | "type": "image/png" 10 | }, 11 | { 12 | "src": "android-chrome-512x512.png", 13 | "sizes": "512x512", 14 | "type": "image/png", 15 | "purpose": "any" 16 | } 17 | ], 18 | "theme_color": "#202124", 19 | "background_color": "#202124", 20 | "start_url": "https://digichain-latest.brianbar.net/", 21 | "display": "standalone", 22 | "cache": [ 23 | "/index.html", 24 | "/main.css", 25 | "/main.js", 26 | "/editor.js", 27 | "/resources.js", 28 | "/settings.js", 29 | "/jszip.js", 30 | "/msgpack.min.js" 31 | ], 32 | "dir": "auto", 33 | "lang": "en", 34 | "orientation": "landscape", 35 | "categories": [ 36 | "music", 37 | "utilities" 38 | ], 39 | "display_override": [ 40 | "window-controls-overlay" 41 | ], 42 | "file_handlers": [ 43 | { 44 | "action": "/", 45 | "accept": { 46 | "audio/wav": [ 47 | ".wav" 48 | ], 49 | "audio/x-wav": [ 50 | ".wav" 51 | ], 52 | "audio/mp4": [ 53 | ".m4a" 54 | ], 55 | "audio/ogg": [ 56 | ".ogg" 57 | ], 58 | "application/ogg": [ 59 | ".ogg" 60 | ], 61 | "audio/webm": [ 62 | ".webm" 63 | ], 64 | "audio/aif": [ 65 | ".aif" 66 | ], 67 | "audio/flac": [ 68 | ".flac" 69 | ] 70 | } 71 | } 72 | ], 73 | "screenshots": [ 74 | { 75 | "src": "Screenshot 2023-05-22 213801.png", 76 | "sizes": "1280x721", 77 | "type": "image/png", 78 | "platform": "wide" 79 | }, 80 | { 81 | "src": "Screenshot 2023-05-22 213838.png", 82 | "sizes": "1286x727", 83 | "type": "image/png", 84 | "platform": "wide" 85 | }, 86 | { 87 | "src": "Screenshot 2023-05-22 213932.png", 88 | "sizes": "1278x717", 89 | "type": "image/png", 90 | "platform": "wide" 91 | }, 92 | { 93 | "src": "Screenshot 2023-05-22 214010.png", 94 | "sizes": "1280x722", 95 | "type": "image/png", 96 | "platform": "wide" 97 | }, 98 | { 99 | "src": "Screenshot 2023-05-22 214039.png", 100 | "sizes": "1280x722", 101 | "type": "image/png", 102 | "platform": "wide" 103 | }, 104 | { 105 | "src": "Screenshot 2023-05-22 214102.png", 106 | "sizes": "1278x719", 107 | "type": "image/png", 108 | "platform": "wide" 109 | }, 110 | { 111 | "src": "Screenshot 2023-05-22 214119.png", 112 | "sizes": "1281x719", 113 | "type": "image/png", 114 | "platform": "wide" 115 | } 116 | ] 117 | } 118 | -------------------------------------------------------------------------------- /src/sw.js: -------------------------------------------------------------------------------- 1 | const cacheName = 'cache-v150-20250530-1'; 2 | const precacheResources = [ 3 | './', 4 | 'index.html', 5 | 'main.css', 6 | 'main.js', 7 | 'apple-touch-icon.png', 8 | 'favicon-32x32.png', 9 | 'favicon-16x16.png', 10 | 'site.webmanifest', 11 | 'safari-pinned-tab.svg', 12 | 'android-chrome-192x192.png', 13 | 'android-chrome-512x512.png' 14 | ]; 15 | self.addEventListener('install', (event) => { 16 | event.waitUntil( 17 | caches.open(cacheName).then((cache) => cache.addAll(precacheResources))); 18 | self.skipWaiting(); 19 | }); 20 | 21 | self.addEventListener('activate', (event) => { 22 | const cachesToKeep = [cacheName]; 23 | 24 | event.waitUntil( 25 | caches.keys().then((keyList) => 26 | Promise.all( 27 | keyList.map((key) => { 28 | if (!cachesToKeep.includes(key)) { 29 | return caches.delete(key); 30 | } 31 | }) 32 | ) 33 | ) 34 | ); 35 | }); 36 | 37 | self.addEventListener('fetch', (event) => { 38 | event.respondWith( 39 | caches.match(event.request).then((cachedResponse) => { 40 | if (cachedResponse) { 41 | return cachedResponse; 42 | } 43 | return fetch(event.request); 44 | }) 45 | ); 46 | }); 47 | --------------------------------------------------------------------------------