diff --git a/README.md b/README.md index 8e0004db..26ba132c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/MANUAL.es.md b/docs/MANUAL.es.md index 541cd908..47fd090b 100644 --- a/docs/MANUAL.es.md +++ b/docs/MANUAL.es.md @@ -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): diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 7f64093b..c2f9b81a 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -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): diff --git a/docs/cheatsheet-controls.pdf b/docs/cheatsheet-controls.pdf index cb544fc0..6bdb6470 100644 Binary files a/docs/cheatsheet-controls.pdf and b/docs/cheatsheet-controls.pdf differ diff --git a/docs/cheatsheet-controls.png b/docs/cheatsheet-controls.png index 608eefe9..2cd03690 100644 Binary files a/docs/cheatsheet-controls.png and b/docs/cheatsheet-controls.png differ diff --git a/docs/cheatsheet-sound.pdf b/docs/cheatsheet-sound.pdf index fabbd6ec..e8eb9a37 100644 Binary files a/docs/cheatsheet-sound.pdf and b/docs/cheatsheet-sound.pdf differ diff --git a/docs/cheatsheet-sound.png b/docs/cheatsheet-sound.png index 6178a1bc..65842d74 100644 Binary files a/docs/cheatsheet-sound.png and b/docs/cheatsheet-sound.png differ diff --git a/docs/cheatsheet/controls.html b/docs/cheatsheet/controls.html index 623c7d3f..d696d5e0 100644 --- a/docs/cheatsheet/controls.html +++ b/docs/cheatsheet/controls.html @@ -51,9 +51,9 @@ ul { padding-left: 18px; } li { margin: 2px 0; }
JIANT FM signature

JIANT FM · CONTROLS

every button, knob, layer, combo and page

-
firmware v0.7.1 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.7.2 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
THE PANEL

KNOBS AND TRANSPORT

MASTERMaster volume.
SELECTScrolls the section's pages (HOME: GEN, the song generator). Held with a button, its dice (OK keeps, CANCEL back): HOME everything, EDIT the sound, SEQ the sequence, LFO the LFO, FX the effects. GLO + SELECT: the tempo.
PRESETSBrowses the sounds (factory and user). On step, list and song pages: the cursor / the row. Hold a page button + PRESETS: jump through its pages.
ALGORITHMSelects the track from any page: T1–T4, or T1–T6 with TRACKS 6.
KNOB 1–4The four columns on screen. Fast sweeps the whole range, slow fine-tunes. With a layer held: the layer's.
OCT− · OCT+The keyboard's octave (both together: back to 0). On action pages and dialogs: back / confirm.
PLAYStart / stop. GLO + PLAY: restart from the top.
RECArms live recording on the selected track (notes and knob moves, overdub).
HOMETap: the ecosystem. Hold: the MENU.
KEYS27 keys play the selected track in its scale; with a layer held they become that layer's.

PAGE BUTTONS

BUTTONTAP: ITS PAGES, ONE PER TAPHOLD
ENVENV · ENV DEST—
LFOLFO · LFO DEST · MOD · MSEQ · MSEQ 2MACROS M1–M4 (stay latched)
FXTRACK · SLICER · DELAY · REVERB · CHORUS · MASTER · PUNCH (two quick taps: next section)PUNCH-IN FX
SCLSCL · SCL 2 · CHORDROOT by key
EDITEDIT 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)INIT · RECALL · sound mutes
GLOMIXER · GLOBAL · SYSTEMMUTE · SOLO · LEVEL · TAP
SAVEPRESETS · USER · PROJECT · ARRANGE · TOOLSSONG layer
ARPARP · ARP 2—
SEQSTEP · PATTERN · NOTE · STRETCH · COMP · COMP 2 · TRACK · PLAYHEADS · AUTOMATION · AUTO LIST · MUTATESEQ TOOLS
REC(transport)CLEAR · CLICK

BUTTON + PRESETS jumps through its pages (no wrap). SELECT alone scrolls the section's pages.

LAYERS · HOLD A BUTTON

FX · PUNCH-IN EFFECTS

F3REP 1/8
G3REP 1/16
A3REP 1/32
B3LPF
C4HPF
D4OCT−
E4OCT+
F4½ TEMPO
G4DEC−
A4DEC+
B4STUT 1/8
C5STUT 1/16
D5ATK+
E5ARP
F5RAND
G5ERASE
F#M1
G#M2
A#M3
C#M4
D#M5
F#M6
G#
A#TGT
C#
D#
F#

A key plays its effect while held (MENU FX LATCH ON: toggles); hold FX and let go untouched: LOCKED open, FX again unlocks; OCT- all off. In on the next 1/16. Black 1–6 mute T1–T6, A#4 picks which tracks the MIDI ones touch (all · synths · drums). With REC armed and playing they record into the section's lane; G5 erases it.

KNOBS

FILTERCRUSHTHROWDEPTH

GLO · MIX

F3SOLO 1
G3SOLO 2
A3SOLO 3
B3SOLO 4
C4SOLO 5
D4SOLO 6
E4ALL
F4TAP
G4UNDO
A4
B4
C5
D5
E5
F5
G5
F#M1
G#M2
A#M3
C#M4
D#M5
F#M6
G#KICK
A#SNR
C#HAT
D#PERC
F#

Black 1–6 mute T1–T6 (latched), 7–10 the DRUM-X groups. White: solo while held, E4 unmutes all, F4 tap tempo, G4 UNDO the last big change (again: redo), A4 FREEZE MUTATE. SELECT: the tempo. PLAY: restart.

KNOBS

LEVEL T1LEVEL T2LEVEL T3LEVEL T4

T5 or T6 selected: the knobs are T3–T6.

SAVE · SONG

F3PLAY A
G3PLAY B
A3PLAY C
B3PLAY D
C4STORE A
D4STORE B
E4STORE C
F4STORE D
G4
A4
B4
C5
D5LOOP/ SONG
E5SONG REC
F5
G5SONG
F#
G#
A#
C#
D#
F#
G#
A#
C#
D#
F#

PLAY A–D on the next bar (several in one hold: a quick chain), STORE the section into A–D. OCT+ stores the playing section, OCT− recalls it. On the SONG page KNOB 4 stores a scene.

KNOBS

SONG 1–8---

EDIT · SOUND

F3INIT
G3RECALL
A3
B3
C4
D4
E4
F4
G4
A4
B4
C5
D5
E5
F5
G5
F#BD
G#SD
A#CP
C#CH
D#OH
F#TM
G#RS
A#CB
C#
D#
F#

INIT: the factory sound (DRUM: the kit too). RECALL: the sound stored in the section. On a DRUM track black 1–8 mute each DRUM-X sound.

KNOBS

EDIT 1EDIT 2EDIT 3EDIT 4

LFO · MACROS

Knobs M1–M4; they stay latched when let go (LFO again: off). F3 rolls new routes, G3 clears them (only tracks that sound). LFO + SELECT: the track's LFO diced.

KNOBS

M1M2M3M4

SCL · SCALE

Any key sets the ROOT. ROOT and SCALE are every melodic track's (and RESO's).

KNOBS

ROOTSCLOFSPIT

SEQ · TOOLS

On the SEQ pages: F3 CLEAR · G3 REVERSE · A3 B3 SHIFT · C4 RANDOM · D4 COOK · E4 BEAT · F4 CLR AUTO (the automation).

KNOBS

LENDIVSWINGGATE

REC · RECORD

F3 CLEAR the track (at once; GLO + G4 undoes it), G3 the metronome CLICK.

KNOBS

CLICK---
COMBOS

BUTTONS TOGETHER

HOME · EDIT · SEQ · LFO · FX + SELECTTheir dice: everything · sound · sequence · LFO · effects (KEEP? OK / CANCEL).
PAGE BUTTON + PRESETSJump through that button's pages.
REC + FXEDITENVLFOSCLARPGLOClear that part's automation on the selected track (FX: the punch-in lane too).
SEQ + RECCLEAR ALL SEQUENCES? (OCT+ confirms).
SAVE + OCT+ / OCT−Store / recall the playing section.
GLO + PLAYRestart from the top.
GLO + SELECTTempo (from any page).
STEP HELD + KNOBA parameter lock on that step (roll, grid).
HOME heldMENU: knob accel, FX latch, hold time, USB level, palettes, animation…
EVERY PAGE · KNOB 1 – 4

ENV

ENV
ATKDECSUSREL
ENV DEST
FILTERPITCHSHAPELOOP

LFO

LFO
RATEWAVEPHASEFADE
LFO DEST
PITCHFILTERSHAPEAMP
MOD
SLOTSRCDESTAMT
MSEQ
STEPLEVELLENSLEW
MSEQ 2
DIV---

SCL · ARP

SCL
ROOTSCALEQUANTTRANS
SCL 2ALL TR - - -
CHORD
CHORDVOICINGSTRUM-
ARP
MODERATEOCTGATE
ARP 2
SWINGPROBHOLDORDER

FX

FX
DISTCHORUSDLYREV
DIST
DISTTYPETONE-
AUTO PAN
DEPTHRATESYNCWAVE
SLICER
MODEPATRATEDEPTH
SL BUS
T1T2T3T4
SL BUS 2
T5T6FX-
SL PITCH
STEPPITCHLENQUANT
DLY
TIMEFEEDBKTONEMIX
DLY 2
WIDEPITCHSPRAYMOD
DLY 3
TYPEPING--
REVERB
TYPESIZEDAMPPRE/AIR
REVERB 2
MODRATEFILTWIDE
CHORUS
RATEDEPTHSTEREO-
MASTER
CLIPPUNCHDUCKREL
PUNCH
LENRESRECCLEAR

EDIT

EDIT 1
E1E2E3E4
EDIT 2
E5E6E7E8
RETRIG
RTRG---
OPERATOR
OPRATIOFINELEVEL
OP ENV
OPSTAGERATELEVEL
OPERATOR 2
OPMODEDETUNEVEL
FILTER
TYPECUTRESDRIVE
VOICE
VOICEGLIDEMODEPRIO
KIT 3
BPFEEDBK--
X-MOD
RATEDEPTHSHAPERAND
LEVELS
KICKSNARECLAPHATCL
LEVELS 2
HATOPTOMRIMBELL
SOUND
SOUNDSIDEPITCHPMOD
SOUND 2
SOUNDDECAYNOISECOLOR
SOUND 3
SOUNDMODEPM.TYPEDRIVE
SOUND 4
SOUNDLAYERFEEDBKSEND
STEREO
IMAGE---

SEQ

STEP
STEPNOTETIMEFLAG
STEP · DRUM
STEPLANEHITACC
PATTERN
LENDIVSWINGGATE
NOTE
FOCUSPITCHMOVEMICRO
STRETCH
x/÷REPEATNUDGEROTATE
COMP
STEPTYPEVALEVERY
COMP 2
STEPTYPEVALEVERY
TRACKPITCH CHANCE HUMAN REC Q
PLAYHEADS
HEADRATEDIRINTVL
AUTOMATION
PLAYEVENTLOCKCLEAR
AUTO LIST
ROWSTEPPARAMVALUE
MUTATE
SOUNDPATTERNAMOUNTMODE

GLO · SAVE

MIXER
LEVELPANREVMUTE
GLOBAL
BPMSWINGCLOCKTUNE
SYSTEM
TRACKSLOADROUTECPU
PRESETS
No.ENGFAVLIST
USER
SLOTLOADERASESAVE
PROJECT
PROJSECTLOADSAVE
ARRANGE
ROWSECTBARSSCENE
TOOLSCLEAR SEQ · INIT SOUND · DEL ROW · CLEAR SONG · NEW PROJECT · CPU TEST: K1 picks, OCT+
+JIANT FM v0.7.2 \ No newline at end of file diff --git a/docs/cheatsheet/sound.html b/docs/cheatsheet/sound.html index 92c1a53f..f255b677 100644 --- a/docs/cheatsheet/sound.html +++ b/docs/cheatsheet/sound.html @@ -51,9 +51,9 @@ ul { padding-left: 18px; } li { margin: 2px 0; }
JIANT FM signature

JIANT FM · SOUND · FX · MOD

engines, effects, modulation, sequencer and songs

-
firmware v0.7.1 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.7.2 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
ENGINES · EDIT 1 / EDIT 2

EIGHT ENGINES, ALL SYNTHESIS

ENGINEEDIT 1EDIT 2WHAT TO KNOW
ANALOG
WAVEDETUNEMIXNOISE
CUTRESDRIVEINT
SAW SQR TRI SIN PWM SYNC RING SAW3; INT: osc 2 ±24 st. Its filter is per voice.
FM6
ALGFBMODRATIO
MEGVMODDETUNESLOT
Dexed's 6 operators, 32 algorithms drawn, .syx patches (SLOT), MOD / RATIO move the modulators. OPERATOR · OP ENV · OPERATOR 2: each operator on the device (ratio / fixed, fine, level, its envelope, mode, detune, velocity). SLOT B1–B32: a 32-voice .syx sent from the web editor.
PHASE
WAVEWAVE2DCWENV
DETUNELINESUBFB
Phase distortion (CZ); FB feeds the output back into the phase: hard edge to growl.
LOFI
CHIPWAVEDUTYCRUSH
-VIBBENDMASK
Chip: PLS TRI SAW NOIS WRAM. BYTE: ALGO VAR · MOTN GRIT BEND LOOP. FLOAT (floatbeat): ALGO VAR · MOTN FBK BEND LOOP; CHIP sets FULL / 4BIT / 1BIT.
VOICE
VOWELVOWEL2TALKSHIFT
BUZZBREATHQRAND
Formant voice (after klattsch): vowels, talk, breath.
WHEEL
REGSUBBODYTOP
PERCCLICKDRIVEROTOR
Drawbar organ: registrations, percussion, rotary.
NOISE
MODECOLORFREQPEAK
TRKDENSEDRIFTCRUSH
Coloured and metallic noise, tracked or free.
DRUM-X
MORPHTUNETONEDECAY
NOISEFMENVFOLDDRIVE
8 sounds BD SD CP CH OH TM RS CB, sides A / B: MORPH morphs the kit. The kit first: KIT 3 BP FEEDBK, X-MOD RATE DEPTH SHAPE RAND. Then a sound (KNOB 1 the sound): SIDE PITCH PMOD · DECAY NOISE COLOR · MODE PM.TYPE DRIVE · LAYER (no note) FEEDBK SEND (CHO / DLY / REV). Last LEVELS and STEREO IMAGE (a knob through the kit's stereo placings).

FILTER · EVERY ENGINE

TYPECUTRESDRV

LP · HP · BP · COMB. 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).

VOICE · PLAYING

VCEGLDGLMODPRIO

POLY · MONO · LEG · UNI; glide and its mode; LAST / LOW / HIGH priority. 8 voices shared by the six tracks (MONO and LEGATO keep their note).

DICE

EDIT + SELECT: a random factory preset of the engine, every parameter moved up to a quarter of its range. DRUM-X: both sides of every sound around the factory kit. Heard at once: OCT+ OK keeps it, OCT- CANCEL brings the sound back. SEQ / LFO / FX + SELECT: the sequence, the LFO, the effects, the same way. HOME + SELECT: GEN, the song generator: GENRE (43 or RANDOM) · SEED · ENERGY · FORM; DRUMS · BASS · CHORDS · ARP · LEAD amounts; COMPLEX · SWING · HUMAN. OCT+ makes the piece (again: a new seed), HOME done. GLO + G4 undoes.

MODULATION

ENV · LFO

ENV

ATKDECSUSREL

ENV DEST

FLTPITSHPLOOP

LOOP: held, the envelope cycles from the sustain: an ADSR-shaped LFO.

LFO

RATEWAVEPHSFADE

SIN TRI SAW SQR S&H

LFO DEST

PITFLTSHPAMP

MOD MATRIX · 4 SLOTS A TRACK

SLOTSRCDSTAMT

SOURCES

LFOENVVELKEYRANDMODWATEXPRM1M2M3M4STEP

DESTINATIONS

PITCHCUTSHPAMPPANDISTCHODLYREVRATEVIBE1…E8CLIPPNCHD.TIMD.FBD.TOND.MIXR.SIZR.DMPC.RATC.DEP

E1…E8: the engine's own EDIT knobs. CLIP / PNCH: the master. D. R. C.: the DELAY, REVERB and CHORUS buses (a STEP source on D.TIM sequences the delay time).

MSEQ · MACROS

MSEQ · A CV SEQUENCER PER TRACK

STEPLVLLENSLEW

16 levels, DIV on MSEQ 2, in time with the transport. Use it from MOD, SRC STEP.

MACROS M1–M4

Hold LFO: the knobs are M1–M4, latched until LFO again. Each session starts with 2 random routes a track; F3 rolls new ones, G3 clears. By hand: MOD, SRC M1…M4. Saved with the project.

SEQUENCER

64 steps a track, up to 4 notes a step, piano roll and drum grid. Hold a step + turn a knob: a parameter lock. Step recording: hold a chord + KNOB 1 its length; + ARP: arpeggiated (K1 rate, K2 order, K3 oct). COMP / COMP 2: two components a step (CHANCE, RATCH, ARP NOTES / SEQ / SCALE, TRIG, RAND, OCT, TONAL, BEND, ECHO, PULSE, JUMP, REV, FILL, KILL, WALK, CLIMB); a TRIG or FILL wins; WALK / CLIMB: a degree / an octave further every N loops (K4), UP DOWN UP-DN RND over a range (K3), stackable; ARP: ORDER × range, RATE in note values (x1 1/32 1/32T 1/64 1/64T 1/128); RATCH / ECHO: DIV; EVERY (KNOB 4): the loops the step's components play on (ALWAYS 1:2 2:2 1:3 .. 4:4 1:8 FIRST !FIRST SKIP). TRACK: PITCH, CHANCE thins the whole track, HUMAN one amount (velocity, timing, gate, decay / release), REC Q. STRETCH / REPEAT act as the knob turns; ROTATE reads the sequence from another step; NOTE's MICRO moves a step off the grid. REC + knobs while playing: automation (64 records a section, MOTION page plays / clears them, AUTO LIST edits them).

PATTERN · TRACK

LENDIVSWGGATE
PITCHNHUMRECQ

SCALE · ARP

ROOT and SCALE are every melodic track's: CHR MAJ MIN DOR MIX PEN MPEN HARM PHRY LYD LOC MEL BLUES WHOLE DIMHW DIMWH. QNT snaps keys or the sequence, TRN transposes, ALL TR (SCL 2) moves every sequence along the scale. CHORD: a key plays a chord (TRIAD 7TH ADD9 SUS2 SUS4 in key, MAJ MIN 7 MAJ7 MIN7 POWER), VOICING LEAD leads each to the next, STRUM as a harp.

ARP MODES

OFF UP DN UPDN RND ORD REPEAT DNUP UP+8 CONV DIVG PINKY THUMB WALK CHORD TRNS (the keys transpose the sequence)

SONGS

8 projects × 4 sections (A–D), a song of up to 16 rows by bars (SAVE › ARRANGE; END: STOP, x2–x8, LOOP), SLOOP style. Each row can hold a scene: mutes, DRUM-X group mutes, macros and MIDI punch-ins. SAVE held plays sections live on the next bar, stores them, records the song (SONG REC). Each section keeps its sounds, steps, motion, kit and its SLICER.

EFFECTS

PER TRACK

FX · SENDS

DSTCHODLYREV

DIST

DSTTYPETONE-

SOFT · HARD · FOLD · CRUSH · RECT.

AUTO PAN

DEPTHRATESYNCWAVE

The track's pan swung L–R around its PAN. SYNC BEAT: RATE 4 BARS … 1/32, in time with the bar; FREE: in Hz. SIN · TRI · SAW · SQR · S&H, never a click.

SLICER · ONE ON A BUS

SLCRPATRATEDEPTH

OFF · GATE · STUT, 16 patterns, 1/8 … 32T. SL BUS: T1–T6 and FX (the delay / reverb / chorus returns) ON / OFF: everything on = the whole mix chopped after the effects. SL PITCH: the repeats' 16-step pitch (±24 st, tape style, QNT SCL to the scale).

DELAY · CHORUS

DLY

TIMEFDBKTONEMIX

DLY 2

WIDEPITCHSPRYMOD

DLY 3

TYPEPING--

Synced or free (5 ms – 1.48 s); PITCH / SPRY: a grain delay.

CHORUS

RATEDEPTHSTER-

STER: 0 as always, down to mono, up to twice as wide.

REVERB · FIVE MODELS

TYPESIZEDAMPPRE
MODRATEFILTWIDE
TYPEWHAT IT ISSIZEDAMPMODRATEWIDE
ROOMClassic roomdecaydarkenschorus on the tailits speedstereo
SPRINGAmp spring tanklength · decaydarkenswobblewobble speedstereo
SHIMRUp an octave on every pass; PRE → AIR (±24 st: down darker and lower, up airier and higher)decaydarkenshow much shimmer——
RESO4 strings tuned to the scale; PRE → PITCH (0–14 steps up), DAMP → FOLW (OFF / T1–T6: the chord follows that track's notes)how long they ringFOLWpast half: the chord opens——
CLOUDGranular wash; SIZE max freezes it; PRE → AIR (±24 st: the cloud down / up, darker / airier)decay · freezedarkensgrains pitched + chorusgrain densitygrain spread

MASTER

CLIPPNCHDUCKREL

CLIP saturates without getting louder. PNCH drives the drums: denser body. DUCK: the kick pulls the rest down (REL its release). An always-on leveler (slow 2:1, −9…+6 dB) before the limiter keeps patches at a steady volume.

PUNCH-IN FX (FX HELD)

REPEAT 1/8 · 1/16 · 1/32, LPF, HPF; on the notes: OCT−/+, ½ TEMPO, DEC−/+, STUTTER, ATK+, ARP, RANDOM. Knobs: FILTER CRUSH THROW DEPTH. Recordable per section.

+JIANT FM v0.7.2 \ No newline at end of file diff --git a/firmware/src/drumx_voice.c b/firmware/src/drumx_voice.c index 34a966c0..713296e6 100644 --- a/firmware/src/drumx_voice.c +++ b/firmware/src/drumx_voice.c @@ -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) { diff --git a/firmware/src/eng_drum.c b/firmware/src/eng_drum.c index e863985e..7e53bbe5 100644 --- a/firmware/src/eng_drum.c +++ b/firmware/src/eng_drum.c @@ -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", diff --git a/firmware/src/felucca.c b/firmware/src/felucca.c index f44284e7..258e9309 100644 --- a/firmware/src/felucca.c +++ b/firmware/src/felucca.c @@ -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" diff --git a/firmware/src/ui.c b/firmware/src/ui.c index 98bcba1c..e387e47d 100644 --- a/firmware/src/ui.c +++ b/firmware/src/ui.c @@ -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), diff --git a/tests/ui_test.c b/tests/ui_test.c index 6a810a95..38d32722 100644 --- a/tests/ui_test.c +++ b/tests/ui_test.c @@ -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(); diff --git a/tools/gen_cheatsheets.py b/tools/gen_cheatsheets.py index 7b432600..b4ab3faf 100644 --- a/tools/gen_cheatsheets.py +++ b/tools/gen_cheatsheets.py @@ -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'] diff --git a/tools/video/capture.c b/tools/video/capture.c index 73bac406..e5491f13 100644 --- a/tools/video/capture.c +++ b/tools/video/capture.c @@ -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 diff --git a/tools/video/capture_chord.c b/tools/video/capture_chord.c index 213373e2..ab0c0662 100644 --- a/tools/video/capture_chord.c +++ b/tools/video/capture_chord.c @@ -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" diff --git a/tools/video/capture_dark.c b/tools/video/capture_dark.c index 31ae51cd..e4dc014b 100644 --- a/tools/video/capture_dark.c +++ b/tools/video/capture_dark.c @@ -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" diff --git a/tools/video/capture_dice.c b/tools/video/capture_dice.c index 8e1d92c4..cca8a4b2 100644 --- a/tools/video/capture_dice.c +++ b/tools/video/capture_dice.c @@ -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 diff --git a/tools/video/capture_promo.c b/tools/video/capture_promo.c index baf19feb..986224ce 100644 --- a/tools/video/capture_promo.c +++ b/tools/video/capture_promo.c @@ -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" diff --git a/tools/video/capture_story.c b/tools/video/capture_story.c index 6112d190..b9f39256 100644 --- a/tools/video/capture_story.c +++ b/tools/video/capture_story.c @@ -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" diff --git a/web/editor.html b/web/editor.html index ece29264..aab5f00c 100644 --- a/web/editor.html +++ b/web/editor.html @@ -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)], diff --git a/web/test_web.mjs b/web/test_web.mjs index 309f11f9..9c1f9d07 100644 --- a/web/test_web.mjs +++ b/web/test_web.mjs @@ -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; }