# Licensing

DICE's own code is under the GNU General Public License v3.0 only ([LICENSE](LICENSE)). The code it includes from
others keeps its own licence, which the GPL allows:

| What | Where | Licence |
| --- | --- | --- |
| The FM-1 platform: hardware layer, WiFi, build, web installer | `base/` (a git submodule) | MPL-2.0, see `base/LICENSING.md` |
| The HTTPS connection, adapted from fm1-radio's `net/radio_net.c` by way of COSMOS | `probe/net.c`, `dice/net.c` | MPL-2.0 |
| COSMOS PROBE's screens and WiFi pages (by the COSMOS contributors, GPL-3.0-or-later there) | `probe/app.c`, `probe/app.h`, the WiFi pages in `dice/app.c` | GPL-3.0-only here |
| The stand-in for emcc for the browser build, from COSMOS | `tools/wasm/emcc` | GPL-3.0-or-later |
| COSMOS's WiFi page (set the WiFi from the computer over USB; GPL-3.0-or-later there) | `web/site/wifi/index.html` | GPL-3.0-only here |
| BearSSL, with fm1-radio's yields to WiFi's tasks in `src/ec/ec_p256_m31.c` and `src/inner.h` | `third_party/bearssl/` | MIT (`LICENSE.txt`) |
| PUNCH-IN, after Felucca's `perform.c` (Leo Kuroshita, Hügelton Instruments): its effects, made mono, and its filter tables | `dice/fx.c` | GPL-3.0-only |
| The PATTERN generator, after Fantasma 2.0's `drum_gen.c` and SEQ TOOLS (itself after JIANT's EUCLID and MUTATE: no code of JIANT's) | `dice/app.c` | GPL-3.0-only |
| dr_flac 0.13.5 (David Reid), for making the sounds on a computer (tools/sound_conv.c; the firmware no longer has it); its 64-bit products out of line and a few indexes 32-bit (marked DICE), from when it ran on the FM-1 | `third_party/dr_flac/` | Public domain (Unlicense) or MIT-0 |
| Terminus font | `base/assets/fonts/` | SIL OFL 1.1 |

Read from the JieLi AC79 SDK at build time, not in this tree: JieLi's WiFi libraries and lwIP (Apache-2.0 and BSD),
from <https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK>.

## Sounds

DICE downloads its sounds from this repository's `sounds` branch: drum one-shots from free sample libraries, all CC0
1.0 (sample-pi, the Stargate sample pack, VCSL, Virtuosity Drums, cybernetic-samples, Frankensnare, the Meadowlark
factory library), converted by `tools/make_sounds.py`. That branch's CREDITS.md and manifest.json say where each one
came from. None are in the code branches.
