Merge pull request #166 from juanjiant-bit/ccr-18c0aefe-zpqwro

0.7.2: nine DRUM-X kits as DRUM presets
This commit is contained in:
juanjiant-bit authored and GitHub committed 2026-10-15 15:14:11 -03:00
commit e317df376a
23 files changed
+230 -18

No files matched your search

+12 -1
View File
@@ -15,7 +15,7 @@ and takes its song system from [SLOOP](https://github.com/isod89/sloop-fm1).
the FM-1, with sound, and is played with your computer keyboard or the mouse. The emulator, the installer and the
editor update themselves with every change merged into `main`.
> **Status: in development (v0.7.1).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it.
> **Status: in development (v0.7.2).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it.
> ⚡ **New in 0.6.85 – 0.6.92: a song generator you steer, a compact sequencer that breathes, a delay that feeds back.**
> - **GEN (HOME + SELECT)**: a screen of three pages — GENRE (43 genres or RANDOM), SEED, ENERGY, FORM (loop, parts,
@@ -525,6 +525,17 @@ JIANT's modifications are distributed under the same license.
Every update is listed here, newest first. (Since 0.6.80 at the end of the page: what the synth does comes first.)
### v0.7.2
- **Nine DRUM-X kits as DRUM presets**: DRUM-X (the factory kit), 909 CLUB (driven kick, bright snare and hats, the
snare and clap into the reverb), 808 BOOM (the long-decay kick and tom, the sine snare, soft hats, a metal cowbell),
LOFI DUST (dark, short, noisy, with layers and feedback on the snare and rim), INDUSTRIAL (FM kick driven, metal
snare, glitch rim and bell, delay on the tom and rim), ACOUSTIC (bell-toned snare and tom, soft hats, a little reverb
on everything), DUB ROOTS (deep kick, the snare and clap wet, the rim and bell into the delay), TECHNO RAW (FM kick,
hard snare, loud hats), BREAKS (snappy snare, band-passed hats). Browsing them on a DRUM track (PRESETS, the editor,
PROGRAM CHANGE) loads the whole kit into the section: the eight sounds' A and B, their LAYERs and SENDs, plus the
track's MORPH, TUNE, TONE, DECAY, NOISE, FM ENV and DRIVE. An engine switch, INIT SOUND, a project load and the
generator leave the section's kit as it is; browsing back to DRUM-X brings the factory kit.
### v0.7.1
- **Stems over USB: MENU > SYSTEM > USB > STEMS.** The device re-enumerates as an 8-channel USB audio input (44.1 kHz,
16 bit): channels 1–6 the six tracks, each mono with its LEVEL, DIST, SLICER routing and mutes in (its PAN not: what it
+6
View File
@@ -438,6 +438,12 @@ pista.
DRUM-X es un kit sintetizado de ocho sonidos, **BD SD CP CH OH TM RS CB**, generados en tiempo real.
- (0.7.2) **Nueve kits como presets del motor DRUM**: DRUM-X (el kit de fábrica), 909 CLUB, 808 BOOM, LOFI DUST,
INDUSTRIAL, ACOUSTIC, DUB ROOTS, TECHNO RAW, BREAKS. Recorrer uno (PRESETS en HOME, el editor, un PROGRAM CHANGE)
carga el kit completo en la sección: los lados A y B de los ocho sonidos, sus LAYER y SEND, y las perillas KIT de la
pista. Cambiar de motor, INIT SOUND, cargar un proyecto y GEN dejan el kit de la sección como está; DRUM-X devuelve el
de fábrica. Editá cualquiera en EDIT > SOUND; la sección guarda el resultado.
- Cada sonido tiene dos lados, **A** y **B**. **MORPH** (KIT, KNOB 1, también en HOME) mueve todo el kit entre ellos:
la perilla para tocar en vivo.
- Las páginas van **primero todo el kit, después un sonido, al final los volúmenes y el estéreo** (0.6.58):
+6
View File
@@ -422,6 +422,12 @@ measured); **PRIO** LAST, LOW, HIGH. The six tracks share a budget of 8 voices;
DRUM-X is a synthesized kit of eight sounds, **BD SD CP CH OH TM RS CB**, generated in real time.
- (0.7.2) **Nine kits as the DRUM engine's presets**: DRUM-X (the factory kit), 909 CLUB, 808 BOOM, LOFI DUST,
INDUSTRIAL, ACOUSTIC, DUB ROOTS, TECHNO RAW, BREAKS. Browsing one (PRESETS on HOME, the editor, a PROGRAM CHANGE)
loads the whole kit into the section: the eight sounds' A and B sides, their LAYERs and SENDs, and the track's KIT
knobs. Switching engines, INIT SOUND, a project load and GEN leave the section's kit as it is; DRUM-X brings the
factory kit back. Edit any of them in EDIT > SOUND; the section saves the result.
- Every sound has two sides, **A** and **B**. **MORPH** (KIT, KNOB 1, also on HOME) moves the whole kit between them:
the knob to play live.
- The pages go **the whole kit first, then one sound, then the volumes and the stereo** (0.6.58):
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

+2 -2
View File
@@ -51,9 +51,9 @@ ul { padding-left: 18px; } li { margin: 2px 0; }
</style></head><body>
<header><img src="signature.png" alt="JIANT FM signature"><div>
<h1>JIANT FM · CONTROLS</h1><h2>every button, knob, layer, combo and page</h2>
<div class="ver">firmware v0.7.1 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT</div></div></header>
<div class="ver">firmware v0.7.2 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT</div></div></header>
<div class="rule"></div>
<div class="sec">THE PANEL<span></span></div><div class="grid g2"><div class="card" style="--c:#22d3ee" ><h3>KNOBS AND TRANSPORT</h3><table><tr><td class="n">MASTER</td><td>Master volume.</td></tr><tr><td class="n">SELECT</td><td><b>Scrolls the section's pages</b> (HOME: GEN, the song generator). Held with a button, its <b>dice</b> (OK keeps, CANCEL back): HOME everything, EDIT the sound, SEQ the sequence, LFO the LFO, FX the effects. GLO + SELECT: the tempo.</td></tr><tr><td class="n">PRESETS</td><td>Browses the sounds (factory and user). On step, list and song pages: the cursor / the row. <b>Hold a page button + PRESETS: jump through its pages.</b></td></tr><tr><td class="n">ALGORITHM</td><td>Selects the track from any page: T1–T4, or T1–T6 with TRACKS 6.</td></tr><tr><td class="n">KNOB 1–4</td><td>The four columns on screen. Fast sweeps the whole range, slow fine-tunes. With a layer held: the layer's.</td></tr><tr><td class="n">OCT− · OCT+</td><td>The keyboard's octave (both together: back to 0). On action pages and dialogs: back / confirm.</td></tr><tr><td class="n">PLAY</td><td>Start / stop. GLO + PLAY: restart from the top.</td></tr><tr><td class="n">REC</td><td>Arms live recording on the selected track (notes and knob moves, overdub).</td></tr><tr><td class="n">HOME</td><td>Tap: the ecosystem. <b>Hold: the MENU.</b></td></tr><tr><td class="n">KEYS</td><td>27 keys play the selected track in its scale; with a layer held they become that layer's.</td></tr></table></div><div class="card" style="--c:#8b5cf6" ><h3>PAGE BUTTONS</h3><table class="pages"><tr><th>BUTTON</th><th>TAP: ITS PAGES, ONE PER TAP</th><th>HOLD</th></tr><tr><td class="n">ENV</td><td>ENV · ENV DEST</td><td class="dim">—</td></tr><tr><td class="n">LFO</td><td>LFO · LFO DEST · MOD · MSEQ · MSEQ 2</td><td class="dim">MACROS M1–M4 (stay latched)</td></tr><tr><td class="n">FX</td><td>TRACK · SLICER · DELAY · REVERB · CHORUS · MASTER · PUNCH (two quick taps: next section)</td><td class="dim">PUNCH-IN FX</td></tr><tr><td class="n">SCL</td><td>SCL · SCL 2 · CHORD</td><td class="dim">ROOT by key</td></tr><tr><td class="n">EDIT</td><td>EDIT 1 · EDIT 2 · FILTER · VOICE (FM6: OPERATOR · OP ENV · OPERATOR 2; DRUM: KIT · KIT 2 · KIT 3 · X-MOD · FILTER · SOUND 1–4 · LEVELS 1–2 · STEREO)</td><td class="dim">INIT · RECALL · sound mutes</td></tr><tr><td class="n">GLO</td><td>MIXER · GLOBAL · SYSTEM</td><td class="dim">MUTE · SOLO · LEVEL · TAP</td></tr><tr><td class="n">SAVE</td><td>PRESETS · USER · PROJECT · ARRANGE · TOOLS</td><td class="dim">SONG layer</td></tr><tr><td class="n">ARP</td><td>ARP · ARP 2</td><td class="dim">—</td></tr><tr><td class="n">SEQ</td><td>STEP · PATTERN · NOTE · STRETCH · COMP · COMP 2 · TRACK · PLAYHEADS · AUTOMATION · AUTO LIST · MUTATE</td><td class="dim">SEQ TOOLS</td></tr><tr><td class="n">REC</td><td>(transport)</td><td class="dim">CLEAR · CLICK</td></tr></table><p style="margin-top:10px"><span class="k v">BUTTON</span> + <span class="k v">PRESETS</span> jumps through its pages (no wrap). <span class="k v">SELECT</span> alone scrolls the section's pages.</p></div></div><div class="sec">LAYERS · HOLD A BUTTON<span></span></div><div class="grid g2"><div class="card" style="--c:#ff7a00" ><h3>FX · PUNCH-IN EFFECTS</h3><div class="kb"><div class="w on" style="left:0.0px;width:40.2px"><b>F3</b>REP 1/8</div><div class="w on" style="left:43.2px;width:40.2px"><b>G3</b>REP 1/16</div><div class="w on" style="left:86.5px;width:40.2px"><b>A3</b>REP 1/32</div><div class="w on" style="left:129.8px;width:40.2px"><b>B3</b>LPF</div><div class="w on" style="left:173.0px;width:40.2px"><b>C4</b>HPF</div><div class="w on" style="left:216.2px;width:40.2px"><b>D4</b>OCT−</div><div class="w on" style="left:259.5px;width:40.2px"><b>E4</b>OCT+</div><div class="w on" style="left:302.8px;width:40.2px"><b>F4</b>½ TEMPO</div><div class="w on" style="left:346.0px;width:40.2px"><b>G4</b>DEC−</div><div class="w on" style="left:389.2px;width:40.2px"><b>A4</b>DEC+</div><div class="w on" style="left:432.5px;width:40.2px"><b>B4</b>STUT 1/8</div><div class="w on" style="left:475.8px;width:40.2px"><b>C5</b>STUT 1/16</div><div class="w on" style="left:519.0px;width:40.2px"><b>D5</b>ATK+</div><div class="w on" style="left:562.2px;width:40.2px"><b>E5</b>ARP</div><div class="w on" style="left:605.5px;width:40.2px"><b>F5</b>RAND</div><div class="w on" style="left:648.8px;width:40.2px"><b>G5</b>ERASE</div><div class="b on" style="left:27.7px;width:31.1px"><b>F#</b>M1</div><div class="b on" style="left:70.9px;width:31.1px"><b>G#</b>M2</div><div class="b on" style="left:114.2px;width:31.1px"><b>A#</b>M3</div><div class="b on" style="left:200.7px;width:31.1px"><b>C#</b>M4</div><div class="b on" style="left:243.9px;width:31.1px"><b>D#</b>M5</div><div class="b on" style="left:330.4px;width:31.1px"><b>F#</b>M6</div><div class="b" style="left:373.7px;width:31.1px"><b>G#</b></div><div class="b on" styLine truncated
<footer><span>GPL-3.0 · fork of Felucca (Hügelton Instruments) · song mode from SLOOP</span>
<span>JIANT FM v0.7.1</span></footer>
<span>JIANT FM v0.7.2</span></footer>
</body></html>
+2 -2
View File
@@ -51,9 +51,9 @@ ul { padding-left: 18px; } li { margin: 2px 0; }
</style></head><body>
<header><img src="signature.png" alt="JIANT FM signature"><div>
<h1>JIANT FM · SOUND · FX · MOD</h1><h2>engines, effects, modulation, sequencer and songs</h2>
<div class="ver">firmware v0.7.1 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT</div></div></header>
<div class="ver">firmware v0.7.2 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT</div></div></header>
<div class="rule"></div>
<div class="sec">ENGINES · EDIT 1 / EDIT 2<span></span></div><div class="card" style="--c:#f4f1ea" ><h3>EIGHT ENGINES, ALL SYNTHESIS</h3><table><tr><th>ENGINE</th><th>EDIT 1</th><th>EDIT 2</th><th>WHAT TO KNOW</th></tr><tr><td class="n" style="--c:#3b82f6">ANALOG</td><td style="width:22%"><div class="knobs"><span class="">WAVE</span><span class="">DETUNE</span><span class="">MIX</span><span class="">NOISE</span></div></td><td style="width:22%"><div class="knobs"><span class="">CUT</span><span class="">RES</span><span class="">DRIVE</span><span class="">INT</span></div></td><td>SAW SQR TRI SIN PWM <b>SYNC RING SAW3</b>; INT: osc 2 ±24 st. Its filter is per voice.</td></tr><tr><td class="n" style="--c:#d946ef">FM6</td><td style="width:22%"><div class="knobs"><span class="">ALG</span><span class="">FB</span><span class="">MOD</span><span class="">RATIO</span></div></td><td style="width:22%"><div class="knobs"><span class="">MEG</span><span class="">VMOD</span><span class="">DETUNE</span><span class="">SLOT</span></div></td><td>Dexed's 6 operators, 32 algorithms drawn, .syx patches (SLOT), MOD / RATIO move the modulators. <b>OPERATOR · OP ENV · OPERATOR 2</b>: each operator on the device (ratio / fixed, fine, level, its envelope, mode, detune, velocity). <b>SLOT B1–B32</b>: a 32-voice .syx sent from the web editor.</td></tr><tr><td class="n" style="--c:#8b5cf6">PHASE</td><td style="width:22%"><div class="knobs"><span class="">WAVE</span><span class="">WAVE2</span><span class="">DCW</span><span class="">ENV</span></div></td><td style="width:22%"><div class="knobs"><span class="">DETUNE</span><span class="">LINE</span><span class="">SUB</span><span class="">FB</span></div></td><td>Phase distortion (CZ); <b>FB</b> feeds the output back into the phase: hard edge to growl.</td></tr><tr><td class="n" style="--c:#22d3ee">LOFI</td><td style="width:22%"><div class="knobs"><span class="">CHIP</span><span class="">WAVE</span><span class="">DUTY</span><span class="">CRUSH</span></div></td><td style="width:22%"><div class="knobs"><span class="e">-</span><span class="">VIB</span><span class="">BEND</span><span class="">MASK</span></div></td><td>Chip: PLS TRI SAW NOIS WRAM. <b>BYTE</b>: ALGO VAR · MOTN GRIT BEND LOOP. <b>FLOAT</b> (floatbeat): ALGO VAR · MOTN FBK BEND LOOP; CHIP sets FULL / 4BIT / 1BIT.</td></tr><tr><td class="n" style="--c:#facc15">VOICE</td><td style="width:22%"><div class="knobs"><span class="">VOWEL</span><span class="">VOWEL2</span><span class="">TALK</span><span class="">SHIFT</span></div></td><td style="width:22%"><div class="knobs"><span class="">BUZZ</span><span class="">BREATH</span><span class="">Q</span><span class="">RAND</span></div></td><td>Formant voice (after klattsch): vowels, talk, breath.</td></tr><tr><td class="n" style="--c:#ff7a00">WHEEL</td><td style="width:22%"><div class="knobs"><span class="">REG</span><span class="">SUB</span><span class="">BODY</span><span class="">TOP</span></div></td><td style="width:22%"><div class="knobs"><span class="">PERC</span><span class="">CLICK</span><span class="">DRIVE</span><span class="">ROTOR</span></div></td><td>Drawbar organ: registrations, percussion, rotary.</td></tr><tr><td class="n" style="--c:#ef4444">NOISE</td><td style="width:22%"><div class="knobs"><span class="">MODE</span><span class="">COLOR</span><span class="">FREQ</span><span class="">PEAK</span></div></td><td style="width:22%"><div class="knobs"><span class="">TRK</span><span class="">DENSE</span><span class="">DRIFT</span><span class="">CRUSH</span></div></td><td>Coloured and metallic noise, tracked or free.</td></tr><tr><td class="n" style="--c:#ff7a00">DRUM-X</td><td style="width:22%"><div class="knobs"><span class="">MORPH</span><span class="">TUNE</span><span class="">TONE</span><span class="">DECAY</span></div></td><td style="width:22%"><div class="knobs"><span class="">NOISE</span><span class="">FM</span><span class="">ENV</span><span class="">FOLD</span><span class="">DRIVE</span></div></td><td>8 sounds BD SD CP CH OH TM RS CB, sides A / B: <b>MORPH</b> morphs the kit. The kit first: <b>KIT 3</b> BP FEEDBK, <b>X-MOD</b> RATE DEPTH SHAPE RAND. Then a sound (KNOB 1 the sound): SIDE PITCH PMOD · DECAY NOISE COLOR · MODE PM.TYPE DRIVE · <b>LAYER</b> (no note) FEEDBK <b>SEND</b> (CHO / DLY / REV). Last LEVELS and <b>STEREO</b> IMAGE (a knob through the kit's stereo placings).</td></tr></table></div><div class="grid g3" style="margin-top:22px"><div class="card" style="--c:#d946ef" ><h3>FILTER · EVERY ENGINE</h3><div class="knobs"><span class="">TYPE</span><span class="">CUT</span><span class="">RES</span><span class="">DRV</span></div><p style="margin-top:8px"><b>LP · HP · BP · COMB</b>. COMB rings tuned to the note: CUT moves it ±32 st, RES how much it rings. ANALOG and LOFI: per voice; the others: on the track, following LFO / ENV DEST FLT (DRV = the track's DIST).</p></div><div class="card" style="--c:#8b5cf6" ><h3>VOICE · PLAYING</h3><div class="knobs"><spanLine truncated
<footer><span>GPL-3.0 · fork of Felucca (Hügelton Instruments) · song mode from SLOOP</span>
<span>JIANT FM v0.7.1</span></footer>
<span>JIANT FM v0.7.2</span></footer>
</body></html>
+124
View File
@@ -351,6 +351,130 @@ static const dx_lane_t DX_KIT_DEF[8] = DX_KIT_INIT;
/* (0.6.49) the factory kit's LAYERs (FEEDBK 0): the snare, the hats and the bell (no note to them); the rest clean (CPU) */
static const uint8_t DX_LAY_DEF[8] = DX_LAY_INIT;
static dx_lane_t dx_kit[8] = DX_KIT_INIT;
/* (0.7.2) the factory kits: DRUM's presets (eng_drum.c DRUM_PRESETS, one a kit, in this order), each the eight sounds,
* their LAYERs and their SENDs (bus << 6 | amount). The first is the kit above. Loaded whole by a preset (ui.c
* apply_preset_to: dx_kit_load) into the section's kit; INIT SOUND and a new project take the first */
typedef struct { dx_lane_t lane[8]; uint8_t lay[8]; uint8_t snd[8]; } dx_kit_t;
static const dx_kit_t DX_KITS[] = {
{ /* DRUM-X */
{
{DX_MODE(DXW_SINE, DXF_LP, 1), {9, 70, 72, 4, 20}, {14, 100, 88, 10, 60}}, /* KICK */
{DX_MODE(DXW_FM, DXF_BP, 0), {40, 30, 52, 80, 90}, {46, 18, 64, 104, 70}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {60, 0, 46, 127, 84}, {54, 0, 58, 127, 76}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {100, 0, 22, 96, 116}, {108, 0, 14, 112, 122}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {100, 0, 62, 96, 112}, {108, 0, 74, 112, 118}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1), {30, 40, 66, 10, 30}, {36, 60, 76, 20, 50}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {63, 10, 14, 16, 46}, {70, 24, 20, 30, 60}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {64, 0, 44, 34, 50}, {68, 0, 54, 46, 62}}, /* BELL */
},
{0, 6, 0, 9, 9, 0, 0, 11}, {0, 0, 0, 0, 0, 0, 0, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* 909 CLUB */
{
{DX_MODE(DXW_SINE, DXF_LP, 1) | DX_DRIVE, {7, 90, 68, 4, 50}, {12, 120, 84, 10, 90}}, /* KICK */
{DX_MODE(DXW_FM, DXF_BP, 0), {40, 34, 60, 92, 104}, {46, 22, 72, 116, 84}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {60, 0, 52, 127, 88}, {54, 0, 64, 127, 80}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {106, 0, 16, 96, 126}, {114, 0, 8, 112, 127}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {106, 0, 66, 96, 122}, {114, 0, 78, 112, 127}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1), {32, 54, 66, 10, 44}, {38, 74, 76, 20, 64}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {65, 10, 12, 16, 50}, {72, 24, 18, 30, 64}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {64, 0, 44, 34, 50}, {68, 0, 54, 46, 62}}, /* BELL */
},
{0, 6, 0, 9, 9, 0, 0, 11}, {0, 210, 214, 0, 0, 0, 0, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* 808 BOOM */
{
{DX_MODE(DXW_SINE, DXF_LP, 1) | DXM_LONG << 5, {3, 40, 102, 0, 6}, {8, 70, 118, 6, 46}}, /* KICK */
{DX_MODE(DXW_SINE, DXF_BP, 0), {36, 18, 46, 90, 66}, {42, 6, 58, 114, 46}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {56, 0, 50, 127, 70}, {50, 0, 62, 127, 62}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {92, 0, 14, 96, 92}, {100, 0, 6, 112, 98}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {92, 0, 60, 96, 88}, {100, 0, 72, 112, 94}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1) | DXM_LONG << 5, {24, 26, 82, 10, 18}, {30, 46, 92, 20, 38}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {65, 10, 14, 16, 38}, {72, 24, 20, 30, 52}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {62, 0, 56, 34, 44}, {66, 0, 66, 46, 56}}, /* BELL */
},
{0, 4, 0, 6, 6, 0, 0, 8}, {0, 204, 208, 0, 0, 0, 0, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* LOFI DUST */
{
{DX_MODE(DXW_SINE, DXF_LP, 1), {11, 78, 58, 14, 0}, {16, 108, 74, 20, 40}}, /* KICK */
{DX_MODE(DXW_FM, DXF_BP, 1), {44, 30, 36, 104, 68}, {50, 18, 48, 127, 48}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {62, 0, 36, 127, 60}, {56, 0, 48, 127, 52}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_BP, 0), {104, 0, 12, 96, 88}, {112, 0, 4, 112, 94}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_BP, 0), {104, 0, 48, 96, 84}, {112, 0, 60, 112, 90}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1), {32, 40, 52, 20, 10}, {38, 60, 62, 30, 30}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {69, 10, 8, 16, 30}, {76, 24, 14, 30, 44}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {66, 0, 32, 34, 30}, {70, 0, 42, 46, 42}}, /* BELL */
},
{0, 9, 0, 9, 9, 0, 5, 11}, {0, 202, 202, 0, 0, 0, 0, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* INDUSTRIAL */
{
{DX_MODE(DXW_FM, DXF_LP, 1) | DX_DRIVE, {7, 104, 80, 18, 64}, {12, 127, 96, 24, 104}}, /* KICK */
{DX_MODE(DXW_METAL, DXF_HP, 0), {42, 54, 64, 102, 124}, {48, 42, 76, 126, 104}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {60, 0, 54, 127, 108}, {54, 0, 66, 127, 100}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {100, 0, 32, 106, 127}, {108, 0, 24, 122, 127}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {100, 0, 76, 106, 127}, {108, 0, 88, 122, 127}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1) | DX_DRIVE, {30, 64, 76, 20, 64}, {36, 84, 86, 30, 84}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1) | DXM_NOISE << 5, {63, 22, 20, 28, 70}, {70, 36, 26, 42, 84}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1) | DXM_NOISE << 5, {64, 0, 48, 46, 74}, {68, 0, 58, 58, 86}}, /* BELL */
},
{0, 12, 0, 9, 9, 0, 6, 13}, {0, 218, 212, 0, 0, 144, 152, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* ACOUSTIC */
{
{DX_MODE(DXW_SINE, DXF_LP, 1), {9, 60, 64, 12, 0}, {14, 90, 80, 18, 34}}, /* KICK */
{DX_MODE(DXW_BELL, DXF_BP, 0), {38, 30, 56, 98, 74}, {44, 18, 68, 122, 54}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {58, 0, 48, 127, 66}, {52, 0, 60, 127, 58}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {96, 0, 18, 96, 86}, {104, 0, 10, 112, 92}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {96, 0, 66, 96, 82}, {104, 0, 78, 112, 88}}, /* HAT OP */
{DX_MODE(DXW_BELL, DXF_LP, 1), {28, 28, 70, 20, 8}, {34, 48, 80, 30, 28}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {61, 10, 16, 16, 26}, {68, 24, 22, 30, 40}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {62, 0, 46, 34, 30}, {66, 0, 56, 46, 42}}, /* BELL */
},
{0, 5, 0, 7, 7, 0, 0, 9}, {0, 214, 210, 198, 200, 206, 202, 200}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* DUB ROOTS */
{
{DX_MODE(DXW_SINE, DXF_LP, 1) | DXM_LONG << 5, {3, 58, 92, 4, 0}, {8, 88, 108, 10, 38}}, /* KICK */
{DX_MODE(DXW_FM, DXF_BP, 0), {34, 30, 64, 88, 80}, {40, 18, 76, 112, 60}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {58, 0, 52, 127, 72}, {52, 0, 64, 127, 64}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {98, 0, 20, 96, 94}, {106, 0, 12, 112, 100}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {98, 0, 68, 96, 90}, {106, 0, 80, 112, 96}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1), {26, 40, 76, 10, 20}, {32, 60, 86, 20, 40}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {59, 10, 24, 16, 46}, {66, 24, 30, 30, 60}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {64, 0, 52, 34, 40}, {68, 0, 62, 46, 52}}, /* BELL */
},
{0, 6, 0, 9, 9, 0, 0, 11}, {0, 226, 222, 0, 138, 148, 168, 146}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* TECHNO RAW */
{
{DX_MODE(DXW_FM, DXF_LP, 1) | DX_DRIVE, {7, 96, 74, 10, 56}, {12, 126, 90, 16, 96}}, /* KICK */
{DX_MODE(DXW_FM, DXF_HP, 0), {40, 40, 46, 102, 110}, {46, 28, 58, 126, 90}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {60, 0, 48, 127, 94}, {54, 0, 60, 127, 86}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_HP, 0), {104, 0, 14, 100, 127}, {112, 0, 6, 116, 127}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_HP, 0), {104, 0, 62, 100, 127}, {112, 0, 74, 116, 127}}, /* HAT OP */
{DX_MODE(DXW_METAL, DXF_LP, 1), {30, 52, 68, 16, 46}, {36, 72, 78, 26, 66}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {65, 10, 10, 22, 58}, {72, 24, 16, 36, 72}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {64, 0, 44, 40, 60}, {68, 0, 54, 52, 72}}, /* BELL */
},
{0, 7, 0, 9, 9, 0, 0, 11}, {0, 204, 202, 0, 0, 140, 146, 0}, /* the layers; the sends (bus << 6 | amount) */
},
{ /* BREAKS */
{
{DX_MODE(DXW_SINE, DXF_LP, 1), {11, 78, 68, 12, 32}, {16, 108, 84, 18, 72}}, /* KICK */
{DX_MODE(DXW_FM, DXF_BP, 1), {42, 38, 54, 96, 112}, {48, 26, 66, 120, 92}}, /* SNARE */
{DX_MODE(DXW_SINE, DXF_BP, 0), {60, 0, 48, 127, 94}, {54, 0, 60, 127, 86}}, /* CLAP */
{DX_MODE(DXW_METAL, DXF_BP, 0), {100, 0, 26, 102, 116}, {108, 0, 18, 118, 122}}, /* HAT CL */
{DX_MODE(DXW_METAL, DXF_BP, 0), {100, 0, 70, 102, 112}, {108, 0, 82, 118, 118}}, /* HAT OP */
{DX_MODE(DXW_SINE, DXF_LP, 1), {32, 48, 66, 18, 42}, {38, 68, 76, 28, 62}}, /* TOM */
{DX_MODE(DXW_BELL, DXF_HP, 1), {63, 10, 14, 20, 56}, {70, 24, 20, 34, 70}}, /* RIM */
{DX_MODE(DXW_METAL, DXF_BP, 1), {64, 0, 44, 34, 50}, {68, 0, 54, 46, 62}}, /* BELL */
},
{0, 6, 0, 9, 9, 0, 0, 11}, {0, 206, 204, 0, 0, 0, 0, 0}, /* the layers; the sends (bus << 6 | amount) */
},
};
#define DX_NKIT ((uint32_t)(sizeof DX_KITS / sizeof DX_KITS[0]))
/* a stored kit as the voice takes it: values 0..127, the mode's fields in range (wave 0..3, filter 0..2, snap) */
static int dx_kit_ok(const dx_lane_t *k)
{
+18 -1
View File
@@ -473,9 +473,26 @@ static int32_t drum_keys(const track_t *t, uint32_t k)
}
/* {MRPH, TUNE, TONE, DECY, NOIS, FM, FOLD, DRV}; the kit suggests the BEAT pattern (GM notes) */
static const preset_t DRUM_PRESETS[] = {
static const preset_t DRUM_PRESETS[] = { /* (0.7.2) one a factory kit: drumx_voice.c DX_KITS, this order */
{"DRUM-X", DRUM_KIT_E, {0, 100, 127, 100}, 0, 0, FX(0, 0, 0, 20), PAT(12)}, /* (core.h: SAMPLE PERC's too) */
{"909 CLUB", {60, 64, 76, 64, 64, 0, 0, 10}, {0, 100, 127, 100}, 0, 0, FX(0, 0, 0, 16), PAT(12)},
{"808 BOOM", {58, 60, 56, 76, 60, 0, 0, 0}, {0, 100, 127, 100}, 0, 0, FX(0, 0, 0, 24), PAT(12)},
{"LOFI DUST", {70, 64, 50, 54, 76, 0, 0, 20}, {0, 100, 127, 100}, 0, 0, FX(8, 0, 0, 18), PAT(12)},
{"INDUSTRIAL", {72, 66, 88, 70, 74, 20, 0, 40}, {0, 100, 127, 100}, 0, 0, FX(16, 0, 10, 30), PAT(12)},
{"ACOUSTIC", {56, 64, 58, 62, 64, 0, 0, 0}, {0, 100, 127, 100}, 0, 0, FX(0, 0, 0, 34), PAT(12)},
{"DUB ROOTS", {60, 60, 52, 70, 60, 0, 0, 0}, {0, 100, 127, 100}, 0, 0, FX(0, 0, 18, 36), PAT(12)},
{"TECHNO RAW", {66, 64, 80, 62, 66, 10, 0, 30}, {0, 100, 127, 100}, 0, 0, FX(10, 0, 0, 14), PAT(12)},
{"BREAKS", {62, 66, 72, 62, 70, 0, 0, 10}, {0, 100, 127, 100}, 0, 0, FX(4, 0, 0, 22), PAT(12)},
};
_Static_assert(sizeof DRUM_PRESETS / sizeof DRUM_PRESETS[0] == sizeof DX_KITS / sizeof DX_KITS[0], "a DRUM preset a kit");
/* (0.7.2) a factory kit into the section's: the sounds, their LAYERs, their SENDs (the project saves them) */
static void dx_kit_load(uint32_t k)
{
const dx_kit_t *K = &DX_KITS[k % DX_NKIT];
memcpy(dx_kit, K->lane, sizeof dx_kit);
memcpy(dx_lay, K->lay, sizeof dx_lay);
memcpy(dx_snd, K->snd, sizeof dx_snd);
}
static const engine_t ENG_DRUM = {
.name = "DRUM",
+1 -1
View File
@@ -38,7 +38,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "v0.7.1" /* JIANT's (based on Felucca 1.1.5.1): the splash, the menu, the console, the editor */
#define FELUCCA_VERSION "v0.7.2" /* JIANT's (based on Felucca 1.1.5.1): the splash, the menu, the console, the editor */
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+8 -1
View File
@@ -1137,7 +1137,14 @@ static void set_engine_of(track_t *t, uint32_t ei)
load_end(t);
}
static void apply_preset(uint32_t pi) { apply_preset_to(TSEL, pi); }
static void apply_preset(uint32_t pi) /* the selected track's sound (browsing, the editor, PROGRAM CHANGE) */
{
apply_preset_to(TSEL, pi);
if (TSEL->eng_req % NENGINES == ENGI_DRUM) /* (0.7.2) DRUM: the preset is a factory kit, into the section's kit
* (drumx_voice.c DX_KITS; a project load or an engine switch keeps the
* section's kit: apply_preset_to alone) */
dx_kit_load(pi % ENG_DRUM.npresets);
}
static void set_engine(uint32_t ei) { set_engine_of(TSEL, ei); }
/* (0.6.46) INIT SOUND, NEW PROJECT, (0.6.49) the power-on: the engine's own defaults (its EDIT values as the engine
* declares them, not its first preset's colour; the envelope, VOICE and the filter envelope as a new track has them),
+37
View File
@@ -7594,6 +7594,42 @@ static int test_browse_no_pattern(void)
}
/* MENU > USB LEVEL: MASTER (the default, every older setting) / FIXED; the audio follows at once (audio_test: the levels) */
/* (0.7.2) DRUM's presets are factory kits: browsing to 909 CLUB on a DRUM track loads its sounds, LAYERs and SENDs into
* the section's kit; an engine switch and INIT SOUND keep the section's kit (apply_preset_to alone); the DRUM-X preset
* browsed brings the factory kit back; the generator and a project load leave it to their own */
static int test_drum_kits(void)
{
int bad = 0, ok;
uint32_t i, k909 = 0;
ui_power_on();
go_home();
frame();
for (i = 0; i < ENG_DRUM.npresets; i++)
if (str_eq(ENG_DRUM.presets[i].name, "909 CLUB")) k909 = i;
set_engine(ENGI_DRUM);
ok = k909 == 1u && ENG_DRUM.npresets == 9u && DX_NKIT == 9u && TSEL->preset == 0 &&
dx_kit[DV_KICK].a[DXP_PMOD] == DX_KIT_DEF[DV_KICK].a[DXP_PMOD];
TSEL->preset = (uint8_t)(k909 - 1u);
turn(EN_PRESET, 1); /* browsing (HOME): 909 CLUB */
ok &= TSEL->preset == k909 && !memcmp(dx_kit, DX_KITS[k909].lane, sizeof dx_kit) && !memcmp(dx_lay, DX_KITS[k909].lay, sizeof dx_lay) &&
!memcmp(dx_snd, DX_KITS[k909].snd, sizeof dx_snd) && dx_snd[DV_SNARE] == DX_KITS[k909].snd[DV_SNARE] &&
dx_kit[DV_KICK].a[DXP_PMOD] == DX_KIT_DEF[DV_KICK].a[DXP_PMOD] + 20 && (dx_kit[DV_KICK].mode & DX_DRIVE);
bad += check("DRUM presets: 909 CLUB browsed on a DRUM track loads its kit (sounds, LAYERs, SENDs: the kick driven, +20 PMOD)", ok);
set_engine(ENGI_ANALOG);
set_engine(ENGI_DRUM); /* an engine switch (preset 0 applied): the section's kit stays */
ok = TSEL->preset == 0 && !memcmp(dx_kit, DX_KITS[k909].lane, sizeof dx_kit);
init_sound_of(TSEL, ENGI_DRUM); /* INIT SOUND: the knobs, the kit as the section has it */
ok &= !memcmp(dx_kit, DX_KITS[k909].lane, sizeof dx_kit);
for (i = 1; i < ENG_DRUM.npresets; i++) { /* every kit loads whole and differs from the factory one */
apply_preset(i);
ok &= TSEL->preset == i && !memcmp(dx_kit, DX_KITS[i].lane, sizeof dx_kit) && memcmp(dx_kit, DX_KIT_DEF, sizeof dx_kit) != 0 &&
dx_kit_ok(DX_KITS[i].lane); /* (every value in range: the project would take it) */
}
apply_preset(0);
ok &= !memcmp(dx_kit, DX_KIT_DEF, sizeof dx_kit);
bad += check(" an engine switch and INIT SOUND keep the section's kit; the eight other kits each their own, DRUM-X browsed: the factory", ok);
return bad;
}
static int test_usb_level(void)
{
int bad = 0, ok;
@@ -9136,6 +9172,7 @@ int main(void)
bad += test_scale_link();
bad += test_organic();
bad += test_usb_level();
bad += test_drum_kits();
bad += test_click_menu();
bad += test_usb_serial();
bad += test_bpm_lock();
+1 -1
View File
@@ -7,7 +7,7 @@ import html, os
R = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
OUT = os.path.join(R, 'docs', 'cheatsheet')
VERSION = 'v0.7.1'
VERSION = 'v0.7.2'
HEAT = ['#22d3ee', '#3b82f6', '#8b5cf6', '#d946ef', '#ef4444', '#ff7a00', '#facc15', '#f4f1ea']
+1 -1
View File
@@ -9,7 +9,7 @@
* build/video/capture build/video -> audio.wav (44.1 kHz stereo), screen.rgb (240 x 240 RGB24 a frame)
* tools/video/compose.py makes the 1080p video from them. */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#include "ui_test.c"
#define FPS 30u
+1 -1
View File
@@ -7,7 +7,7 @@
* cc -O2 -w -Ibuild/gen -Ifirmware/src -Itests -o build/video6/capture_chord tools/video/capture_chord.c -lm
* build/video6/capture_chord build/video6/chord [en] */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#define PF_MS 900u
#define UI_NO_DRIFT 0
#include "ui_test.c"
+1 -1
View File
@@ -12,7 +12,7 @@
* build/video5/capture_dark build/video5/feat feat; build/video5/capture_dark build/video5/seq seq
* tools/video/film.mjs makes the 1080p films from them. */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#define PF_MS 900u /* (the page's name shown, as on the device) */
#define UI_NO_DRIFT 0 /* (the granules, as on the device) */
#include "ui_test.c"
+1 -1
View File
@@ -9,7 +9,7 @@
* build/video_dice/capture build/video_dice -> audio.wav, screen.rgb, scenes.txt, beats.txt, seps.txt, intro.txt
* python3 tools/video/compose.py build/video_dice -> build/video_dice/jiant-fm.mp4 */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#include "ui_test.c"
#define FPS 30u
+1 -1
View File
@@ -9,7 +9,7 @@
* cc -O2 -w -Ibuild/gen -Ifirmware/src -Itests -o build/video5/capture_promo tools/video/capture_promo.c -lm
* build/video5/capture_promo build/video5/promo */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#define PF_MS 900u
#define UI_NO_DRIFT 0
#include "ui_test.c"
+1 -1
View File
@@ -9,7 +9,7 @@
* cc -O2 -w -Ibuild/gen -Ifirmware/src -Itests -o build/video5/capture_story tools/video/capture_story.c -lm
* build/video5/capture_story build/video5/story_weird weird; ... build/video5/story_project project */
#define UI_TEST_NO_MAIN 1
#define FELUCCA_VERSION "v0.7.1"
#define FELUCCA_VERSION "v0.7.2"
#define PF_MS 900u
#define UI_NO_DRIFT 0
#include "ui_test.c"
+5 -1
View File
@@ -1608,7 +1608,11 @@ function makeMockDevice(opt = {}) {
{ name: "DRUM", titles: ["KIT", "KIT 2"], edit: [D("MORPH", F.PCT, 0, 127, 64), D("TUNE", F.PCT, 0, 127, 64),
D("TONE", F.PCT, 0, 127, 64), D("DECAY", F.PCT, 0, 127, 64), D("NOISE", F.PCT, 0, 127, 64), D("FM ENV", F.PCT, 0, 127, 0),
D("FOLD", F.PCT, 0, 127, 0), D("DRIVE", F.PCT, 0, 127, 0)],
presets: [P("DRUM-X", [64, 64, 70, 64, 64, 0, 0, 0], [0, 100, 127, 100], 0, 12)] },
presets: [P("DRUM-X", [64, 64, 70, 64, 64, 0, 0, 0], [0, 100, 127, 100], 0, 12), P("909 CLUB", [60, 64, 76, 64, 64, 0, 0, 10], [0, 100, 127, 100], 0, 12),
P("808 BOOM", [58, 60, 56, 76, 60, 0, 0, 0], [0, 100, 127, 100], 0, 12), P("LOFI DUST", [70, 64, 50, 54, 76, 0, 0, 20], [0, 100, 127, 100], 0, 12),
P("INDUSTRIAL", [72, 66, 88, 70, 74, 20, 0, 40], [0, 100, 127, 100], 0, 12), P("ACOUSTIC", [56, 64, 58, 62, 64, 0, 0, 0], [0, 100, 127, 100], 0, 12),
P("DUB ROOTS", [60, 60, 52, 70, 60, 0, 0, 0], [0, 100, 127, 100], 0, 12), P("TECHNO RAW", [66, 64, 80, 62, 66, 10, 0, 30], [0, 100, 127, 100], 0, 12),
P("BREAKS", [62, 66, 72, 62, 70, 0, 0, 10], [0, 100, 127, 100], 0, 12)] },
{ name: "NOISE", titles: ["SRC", "MOVE"], edit: [E("MODE", ["ANLG", "DUST", "LFSR", "META"], 0), D("COLOR", F.PCT, 0, 127, 64),
D("FREQ", F.CUTOFF, 0, 127, 80), D("PEAK", F.PCT, 0, 127, 30), D("TRK", F.PCT, 0, 127, 64), D("DENSE", F.PCT, 0, 127, 0),
D("DRIFT", F.PCT, 0, 127, 0), D("CRUSH", F.PCT, 0, 127, 0)],
+2 -2
View File
@@ -379,8 +379,8 @@ function mockTables() {
ok(ph.name === "-" && ph.presets.length === 0,
"editor: engine 9 reserved (PHYS retired in TONIC), no presets");
ok(dr.name === "DRUM" && dr.edit.map((d) => d.label).join() === "MORPH,TUNE,TONE,DECAY,NOISE,FM ENV,FOLD,DRIVE" &&
dr.presets.length === 1 && dr.presets.every((p) => p.pat === 12),
"editor: DRUM engine 10 (DRUM-X: MORPH TUNE TONE DECAY NOISE FM ENV FOLD DRIVE), one kit suggesting BEAT");
dr.presets.length === 9 && dr.presets.every((p) => p.pat === 12) && dr.presets[1].name === "909 CLUB",
"editor: DRUM engine 10 (DRUM-X: MORPH TUNE TONE DECAY NOISE FM ENV FOLD DRIVE), nine kits suggesting BEAT (0.7.2)");
}
const dj = DESC;
if (!existsSync(dj)) { console.log("editor: mock tables == firmware (no build/host/desc.json) skip"); return; }