diff --git a/README.md b/README.md index 0270582f..4ac90176 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.6.35).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it. +> **Status: in development (v0.6.36).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it. > 🫶 If you resonate with my work, consider supporting me on **[Ko-fi](https://ko-fi.com/juanjiant)** (in Argentina: > **[Cafecito](https://cafecito.app/juanjiant)**). Thanks for all the good energy, hope you enjoy this little beast ✨🎹 @@ -38,6 +38,17 @@ Two printable sheets with everything on the device. Click an image to open it fu Every update is listed here, newest first. +### v0.6.36 +- **DRUM-X: FM becomes FM ENV.** The old FM knob put a fixed FM over every hit and muddied the kit (the macros' dice + liked it a lot). **FM ENV** strikes the FM with each hit and lets it go with the pitch envelope (a few ms): a beater, + a click, a metal edge on the attack, the tail as the kit has it. Projects keep the value; its effect is the new one. +- **DRUM-X: EDIT > TONE**, a new page after X-MOD: **BP**, a band-pass on the hats, the rim and the cowbell (OFF or 15 + centres, about 1.5 to 9 kHz), and **FEEDBK**, every sound's oscillator fed back into itself (warm to growl to noise). + Saved with the section's kit in a byte it already reserved: older projects open with both OFF, sections no bigger. +- **Films**: the features film's music is new and darker (E harmonic minor, Em(add9) Cmaj7 Am7 B7, a rolling sub, a + low arp, the robot low and spaced) and the camera cuts to HOME's beings every two bars of a long scene; the DICE ALL + film shows HOME's beings instead of the mixer. + ### v0.6.35 - **DICE ALL: the drums as before, darker.** The chords, the variety and the guard rails of 0.6.34 stay; the drums go back to 0.6.33's, which sounded better: the DRUM-X kit rolled around the factory one through a soft low-pass, the @@ -748,7 +759,7 @@ locks it into a short window. CHIP sets the resolution: FULL is smooth, 4BIT and ### 4. DRUM-X drums - Set a track to DRUM. **KNOB 1 MORPH** goes from side A to side B of the whole kit: it's the knob to play live. -- **FOLD** folds each hit's wave: the attack shines and the tail comes back clean. **FM** dirties the timbre. +- **FOLD** folds each hit's wave: the attack shines and the tail comes back clean. **FM ENV** strikes FM on each hit's attack (a beater, a click, a metal edge) and leaves the tail clean; EDIT > **TONE** has a band-pass for the hats, rim and cowbell (**BP**) and the oscillators' **FEEDBK**. - **EDIT > SOUND, SOUND 2, SOUND 3** edit each sound (BD, SD, CP, CH, OH, TM, RS, CB; KNOB 1 on SOUND and SOUND 3 picks which). SOUND 3 has **PMOD** (how the pitch falls: DECAY, 808-style LONG, NOISE, SINE), DRV and WAVE. diff --git a/docs/MANUAL.es.md b/docs/MANUAL.es.md index a53f1406..cd9e3ecb 100644 --- a/docs/MANUAL.es.md +++ b/docs/MANUAL.es.md @@ -237,6 +237,7 @@ a la derecha); apretá OCT+ para ejecutarla. | SOUND 2 | DECAY | NOISE | COLOR | MODE | DRUM | | SOUND 3 | LANE | PMOD | DRIVE | WAVE | DRUM | | X-MOD | RATE | DEPTH | SHAPE | RAND | DRUM | +| TONE | BP | FEEDBK | — | — | DRUM | | VOICE | VOICE | GLIDE | MODE | PRIO | todos los motores | **GLO** (MIXER es por pista; GLOBAL y SYSTEM son globales) @@ -361,7 +362,7 @@ HOME de cada pista. | **VOICE** | VOWEL, VOWEL2, TALK, SHIFT | BUZZ, BREATH, Q, RAND | VOWEL, BUZZ, BREATH, TALK | | **WHEEL** | REG, SUB, BODY, TOP | PERC, CLICK, DRIVE, ROTOR | REG, PERC, DRIVE, ROTOR | | **NOISE** | MODE, COLOR, FREQ, PEAK | TRK, DENSE, DRIFT, CRUSH | FREQ, PEAK, COLOR, REL | -| **DRUM** (DRUM-X) | MORPH, TUNE, TONE, DECAY | NOISE, FM, FOLD, DRIVE | MORPH, TUNE, TONE, DECAY | +| **DRUM** (DRUM-X) | MORPH, TUNE, TONE, DECAY | NOISE, FM ENV, FOLD, DRIVE | MORPH, TUNE, TONE, DECAY | - **ANALOG**: dos osciladores. WAVE: SAW, SQR, TRI, SIN, PWM, SYNC, RING, SAW3. **INT** fija el intervalo del oscilador 2 (±24 semitonos). Su filtro es por voz. @@ -409,8 +410,9 @@ DRUM-X es un kit sintetizado de ocho sonidos, **BD SD CP CH OH TM RS CB**, gener - Cada sonido tiene dos lados, **A** y **B**. **MORPH** (EDIT 1, KNOB 1, también en HOME) mueve todo el kit entre ellos: la perilla para tocar en vivo. -- EDIT 1: MORPH, TUNE, TONE, DECAY. EDIT 2: NOISE, **FM**, **FOLD** (un wavefolder después de la envolvente: un - ataque brillante, una cola limpia), DRIVE. +- EDIT 1: MORPH, TUNE, TONE, DECAY. EDIT 2: NOISE, **FM ENV** (FM que golpea con cada nota y se va en pocos + milisegundos: un parche, un click, un filo metálico en el ataque, la cola limpia), **FOLD** (un wavefolder después de + la envolvente: un ataque brillante, una cola limpia), DRIVE. - **LANES / LANES 2**: el nivel de cada sonido (KICK, SNARE, CLAP, HATCL, HATOP, TOM, RIM, BELL). - **SOUND** (por sonido, por lado): LANE (qué sonido; tocar una tecla también lo elige), SIDE (A / B), PITCH, PMOD. - **SOUND 2**: DECAY, NOISE, COLOR, MODE (onda SIN / FM / MTL / BEL, filtro de ruido LP / BP / HP, y "+" para snap). @@ -418,6 +420,9 @@ DRUM-X es un kit sintetizado de ocho sonidos, **BD SD CP CH OH TM RS CB**, gener MTL, BEL). - **X-MOD** (todo el kit): **RATE** (OFF, 4BAR … 1/32, a tempo), **DEPTH** (cuánto oscila MORPH), **SHAPE** (SINE, TRI, SAW, RAMP, S&H), **RAND** (cada golpe recibe su propio MORPH y un poco de afinación). +- **TONE** (todo el kit): **BP**, un pasa-banda sobre los sonidos de metal (los hi-hats, el rim, el cowbell), OFF o 15 + centros de 1,5 a 9 kHz aprox.; **FEEDBK**, el oscilador de cada sonido realimentado sobre sí mismo (OFF, 1–15: + cálido, gruñido, arena, ruido). Se guarda con el kit de la sección. - **Mutes**: GLO mantenido + teclas negras 7–10 mutean los grupos KICK, SNARE, HAT, PERC; EDIT mantenido + teclas negras 1–8 mutean cada sonido. - **SELECT** en una página EDIT tira un kit nuevo alrededor del de fábrica. **EDIT mantenido + F3 (INIT)** trae de diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 57a00c1c..ab125c8d 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -230,6 +230,7 @@ and heating up with its own audio. The selected track is drawn bigger, a muted o | SOUND 2 | DECAY | NOISE | COLOR | MODE | DRUM | | SOUND 3 | LANE | PMOD | DRIVE | WAVE | DRUM | | X-MOD | RATE | DEPTH | SHAPE | RAND | DRUM | +| TONE | BP | FEEDBK | — | — | DRUM | | VOICE | VOICE | GLIDE | MODE | PRIO | every engine | **GLO** (MIXER is per track; GLOBAL and SYSTEM are global) @@ -350,7 +351,7 @@ every engine) or with KNOB 2 (ENG) on SAVE > PRESETS. Each track's four HOME kno | **VOICE** | VOWEL, VOWEL2, TALK, SHIFT | BUZZ, BREATH, Q, RAND | VOWEL, BUZZ, BREATH, TALK | | **WHEEL** | REG, SUB, BODY, TOP | PERC, CLICK, DRIVE, ROTOR | REG, PERC, DRIVE, ROTOR | | **NOISE** | MODE, COLOR, FREQ, PEAK | TRK, DENSE, DRIFT, CRUSH | FREQ, PEAK, COLOR, REL | -| **DRUM** (DRUM-X) | MORPH, TUNE, TONE, DECAY | NOISE, FM, FOLD, DRIVE | MORPH, TUNE, TONE, DECAY | +| **DRUM** (DRUM-X) | MORPH, TUNE, TONE, DECAY | NOISE, FM ENV, FOLD, DRIVE | MORPH, TUNE, TONE, DECAY | - **ANALOG**: two oscillators. WAVE: SAW, SQR, TRI, SIN, PWM, SYNC, RING, SAW3. **INT** sets oscillator 2's interval (±24 semitones). Its filter is per voice. @@ -395,14 +396,18 @@ DRUM-X is a synthesized kit of eight sounds, **BD SD CP CH OH TM RS CB**, genera - Every sound has two sides, **A** and **B**. **MORPH** (EDIT 1, KNOB 1, also on HOME) moves the whole kit between them: the knob to play live. -- EDIT 1: MORPH, TUNE, TONE, DECAY. EDIT 2: NOISE, **FM**, **FOLD** (a wavefolder after the envelope: a bright - attack, a clean tail), DRIVE. +- EDIT 1: MORPH, TUNE, TONE, DECAY. EDIT 2: NOISE, **FM ENV** (FM struck with each hit and gone in a few + milliseconds: a beater, a click, a metal edge on the attack, the tail clean), **FOLD** (a wavefolder after the + envelope: a bright attack, a clean tail), DRIVE. - **LANES / LANES 2**: the level of each sound (KICK, SNARE, CLAP, HATCL, HATOP, TOM, RIM, BELL). - **SOUND** (per sound, per side): LANE (which sound; striking a key also picks it), SIDE (A / B), PITCH, PMOD. - **SOUND 2**: DECAY, NOISE, COLOR, MODE (wave SIN / FM / MTL / BEL, noise filter LP / BP / HP, and "+" for snap). - **SOUND 3**: LANE, PMOD (how the pitch moves: DECAY, LONG, NOISE, SINE), DRIVE (ON / OFF), WAVE (SIN, FM, MTL, BEL). - **X-MOD** (the whole kit): **RATE** (OFF, 4BAR … 1/32, in time), **DEPTH** (how far MORPH swings), **SHAPE** (SINE, TRI, SAW, RAMP, S&H), **RAND** (each hit gets its own MORPH and a little tune). +- **TONE** (the whole kit): **BP**, a band-pass on the metal sounds (the hats, the rim, the cowbell), OFF or 15 + centres from about 1.5 to 9 kHz; **FEEDBK**, every sound's oscillator fed back into itself (OFF, 1–15: warm, growl, + grit, noise). Saved with the section's kit. - **Mutes**: GLO held + black keys 7–10 mute the groups KICK, SNARE, HAT, PERC; EDIT held + black keys 1–8 mute each sound. - **SELECT** on an EDIT page rolls a new kit around the factory one. **EDIT held + F3 (INIT)** brings the factory kit diff --git a/docs/cheatsheet-controls.pdf b/docs/cheatsheet-controls.pdf index b15430fd..7520e792 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 303311fd..91df6a63 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 7da28fd9..8cb1e034 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 8910dde6..70d33c0e 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 24aed19a..40eaeee5 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.6.35 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.6.36 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
THE PANEL

KNOBS AND TRANSPORT

MASTERMaster volume.
SELECTHOME: DICE EVERYTHING? (OCT+ yes): a new piece in one scale. EDIT: the sound's dice. GLO's pages or GLO held: the tempo. Macros open (LFO held or latched): new random routes.
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, T1–T6, from any page.
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 (two quick taps: next section)PUNCH-IN FX
SCLSCL · SCL 2ROOT by key
EDITEDIT 1 · EDIT 2 · FILTER · VOICE (FM6: OPERATOR · OP ENV · OPERATOR 2; DRUM: LANES · LANES 2 · SOUND 1–3 · X-MOD)INIT · RECALL · sound mutes
GLOMIXER · GLOBAL · SYSTEMMUTE · SOLO · LEVEL · TAP
SAVEPRESETS · USER · PROJECT · ARRANGE · TOOLSSONG layer
ARPARP · ARP 2—
SEQSTEP · PATTERN · SHIFT · PHRASES · SONG · CHANCE · AUTOMATION · AUTO LISTSEQ TOOLS
REC(transport)CLEAR · CLICK

BUTTON + PRESETS jumps straight to a page (no wrap); let go and you stay there.

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#

Act while held, 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). 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, SELECT rolls too (only tracks that sound).

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

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 2
STRN---
ARP
MODERATEOCTGATE
ARP 2
SWINGPROBHOLDORDER

FX

FX
DISTCHORUSDLYREV
DIST
DISTTYPETONE-
AUTOPAN
DEPTHRATESYNCWAVE
SLICER
MODEPATRATEDEPTH
SL BUS
T1T2T3T4
SL BUS 2
T5T6FX-
SL PITCH
STEPPITCHLENQUANT
DLY
TIMEFEEDBKTONEMIX
DLY 2
WIDEPITCHSPRAY-
REVERB
TYPESIZEDAMPPRE/AIR
REVERB 2
MODRATEFILTWIDE
CHORUS
RATEDEPTHSTEREO-
MASTER
CLIPPUNCHDUCKREL

EDIT

EDIT 1
E1E2E3E4
EDIT 2
E5E6E7E8
RETRIG
RTRG---
OPERATOR
OPRATIOFINELEVEL
OP ENV
OPSTAGERATELEVEL
OPERATOR 2
OPMODEDETUNEVEL
FILTER
TYPECUTRESDRIVE
VOICE
VOICEGLIDEMODEPRIO
LANES
KICKSNARECLAPHATCL
LANES 2
HATOPTOMRIMBELL
SOUND
LANESIDEPITCHPMOD
SOUND 2
DECAYNOISECOLORMODE
SOUND 3
LANEPMODDRIVEWAVE
X-MOD
RATEDEPTHSHAPERAND

SEQ

STEP
STEPNOTETIMEFLAG
STEP · DRUM
STEPLANEHITACC
PATTERN
LENDIVSWINGGATE
SHIFT
OFFSETPITCH--
PHRASES
PATLOAD--
CHANCE
STEPCHANCERATCH-
AUTOMATION
PLAYEVENTLOCKCLEAR
AUTO LIST
ROWSTEPPARAMVALUE

GLO · SAVE

MIXER
LEVELPANREVMUTE
GLOBAL
BPMSWINGCLOCKTUNE
SYSTEM
TRACKSLOADROUTECPU
PRESETS
No.ENGFAVLIST
USER
SLOTLOADERASESAVE
PROJECT
PROJSECTLOADSAVE
ARRANGE
ROWSECTBARSSCENE
TOOLSK1 or PRESETS: the list · OCT+ does it
+JIANT FM v0.6.36 \ No newline at end of file diff --git a/docs/cheatsheet/sound.html b/docs/cheatsheet/sound.html index cf8c54c4..5848ee64 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.6.35 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.6.36 · 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
NOISEFMFOLDDRIVE
8 sounds BD SD CP CH OH TM RS CB, sides A / B: MORPH morphs the kit. SOUND · SOUND 2 · SOUND 3: LANE SIDE PITCH PMOD · DECAY NOISE COLOR MODE · LANE PMOD DRIVE WAVE. X-MOD: RATE DEPTH SHAPE RAND.

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

SELECT on EDIT: 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. On HOME (after YES): a new piece: a genre, an energy (SPACE · MID · FRANTIC), its orchestration, every track a role. 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…E8CLIPPNCH

E1…E8: the engine's own EDIT knobs. CLIP / PNCH: the master.

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; SELECT / F3 roll 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. CHANCE (0–100 %) and RATCH (x1–x4) per step. REC + knobs while playing: automation (64 records a section, MOTION page plays / clears them, AUTO LIST edits them).

PATTERN · SHIFT

LENDIVSWGGATE
OFSPIT--

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, STRN (SCL 2) moves every sequence along the scale.

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.

AUTOPAN

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

WIDEPITCHSPRY-

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.

+
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. SOUND · SOUND 2 · SOUND 3: LANE SIDE PITCH PMOD · DECAY NOISE COLOR MODE · LANE PMOD DRIVE WAVE. X-MOD: RATE DEPTH SHAPE RAND. TONE: BP (hats, rim, cowbell) FEEDBK.

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

SELECT on EDIT: 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. On HOME (after YES): a new piece: a genre, an energy (SPACE · MID · FRANTIC), its orchestration, every track a role. 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…E8CLIPPNCH

E1…E8: the engine's own EDIT knobs. CLIP / PNCH: the master.

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; SELECT / F3 roll 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. CHANCE (0–100 %) and RATCH (x1–x4) per step. REC + knobs while playing: automation (64 records a section, MOTION page plays / clears them, AUTO LIST edits them).

PATTERN · SHIFT

LENDIVSWGGATE
OFSPIT--

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, STRN (SCL 2) moves every sequence along the scale.

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.

AUTOPAN

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

WIDEPITCHSPRY-

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.6.36 \ No newline at end of file diff --git a/firmware/src/drumx_voice.c b/firmware/src/drumx_voice.c index d239c507..356d4c57 100644 --- a/firmware/src/drumx_voice.c +++ b/firmware/src/drumx_voice.c @@ -36,6 +36,7 @@ typedef struct { /* a hit */ uint32_t ph3; /* (JIANT 0.4) the SINE pitch modulation's phase */ int32_t lp; /* (JIANT 0.5) the output's one-pole low-pass state */ int32_t hl; /* (0.6.17) the last half-rate sample (dx_run's upsampling) */ + int32_t b1, b2; /* (0.6.36) TONE's band-pass state */ uint8_t live, trig, choke; } dx_voice_t; @@ -72,14 +73,21 @@ static uint32_t dx_tau(uint32_t d) { return ((dv_exp2(d * 9u * 4096u / 127u) >> * dofs / cofs / nofs move DECAY / COLOR / NOISE (-64..63). warp (DRUM's FOLD since JIANT 0.5, was WARP, 0..127): the * oscillator through a wavefolder after its envelope, x1 .. x9 into three folds at +-T: the hit's loud start folds * into bright partials, its tail unfolds back to the plain wave (a West Coast drum); 0: the patch as it is. - * fm (DRUM's FM, JIANT, 0..127): every wave through FM with a harmonic modulator, its ratio in eight bands (x0.5 1 1.5 - * 2 3 4 5 7: the timbre's family) and, inside a band, its index rising (subtle .. hard); with WARP the two add. The oscillator and the noise each run their own loop (the wave and the + * fm (DRUM's FM ENV, JIANT 0.6.36; was FM, 0..127): how much FM the hit strikes with, its index following the pitch + * envelope (1..40 ms) down to the lane's own: an attack's beater / click / metal edge, the tail as the kit has it + * (the old FM, a fixed harmonic FM over the whole hit, muddied every sound). The oscillator and the noise each run their own loop (the wave and the * filter picked once a block), skipped when the mix leaves them out; gains and the pitch step per sample */ +/* (JIANT 0.6.36) EDIT > TONE, the kit's (project.c keeps it in the kit's reserved byte 7: 0 in older projects, off): + * low nibble BP, a band-pass on the metal sounds (the hats, the rim, the cowbell), 1..15 its centre ~1.5 .. 9 kHz; + * high nibble FEEDBK, every sound's oscillator fed back into its own phase (1..15: warm, growl, grit, noise) */ +static uint8_t dx_tone; +static dx_lane_t dx_kit[8]; /* (defined below with the factory kit: the BP knows its lanes) */ +#define DX_TONE_BP(t) ((uint32_t)(t) & 15u) +#define DX_TONE_FB(t) ((uint32_t)(t) >> 4) static __attribute__((noinline)) void dx_run(const dx_lane_t *L, dx_voice_t *v, int32_t morph, int32_t tune16, int32_t dofs, int32_t cofs, int32_t nofs, int32_t warp, int32_t fm, int32_t *y, uint32_t n) { - static const uint16_t FM_RATIO[8] = {128, 256, 384, 512, 768, 1024, 1280, 1792}; /* Q8 of the carrier */ int32_t q[DXP_N], p16, depth, ea1, en1, ep1, og, ng, ga, dga, gn, dgn, kd, inc, dinc; uint32_t i, k, wave = L->mode & 3u, flt = (L->mode >> 2) & 3u, ta, tn, tp, kb, inc1; tsvf_t c; @@ -111,6 +119,8 @@ static __attribute__((noinline)) void dx_run(const dx_lane_t *L, dx_voice_t *v, v->ep = 32767; v->ph = v->ph2 = 0; v->ic1 = v->ic2 = 0; + v->b1 = v->b2 = 0; + v->mo = 0; if (!v->rng) v->rng = 0x2545F491; v->inc = pitch_inc((uint32_t)clamp(p16 + depth, 0, 2047)); @@ -145,7 +155,7 @@ static __attribute__((noinline)) void dx_run(const dx_lane_t *L, dx_voice_t *v, uint32_t ph = v->ph; int32_t fold = clamp(warp, 0, 127); fm = clamp(fm, 0, 127); - warp = fm ? 0x100 : 0; /* (FM: the FM loop below; the flag stripped there) */ + warp = fm || DX_TONE_FB(dx_tone) ? 0x100 : 0; /* (FM ENV, FEEDBK: the loop below; the flag stripped there) */ if (wave == DXW_SINE && q[DXP_COLOR] && !warp) { /* drive x1 .. x2.5 into the soft clip */ int32_t g = 4096 + q[DXP_COLOR] * 48; for (i = 0; i < n; i++, inc += dinc, ga += dga) { @@ -166,19 +176,23 @@ static __attribute__((noinline)) void dx_run(const dx_lane_t *L, dx_voice_t *v, ph2 += ((uint32_t)inc >> 8) * ratio; } v->ph2 = ph2; - } else { /* FM: harmonic, every wave */ - uint32_t w = 0u; - uint32_t ph2 = v->ph2, ratio = (fm ? FM_RATIO[(uint32_t)fm >> 4] : DX_RATIO[wave]) + w * 70u, fb = w << 10; - int32_t idx = q[DXP_COLOR] * 3 + (int32_t)w * 3 + (fm ? (((fm & 15) + 3) * 12) : 0), mo = v->mo; /* (JIANT - * 0.5: the band's index halved and more, no glassy edge) */ - for (i = 0; i < n; i++, inc += dinc, ga += dga) { - mo = sine_i(ph2 + (uint32_t)mo * fb); /* (up to a turn of feedback; uint32: wraps as a phase) */ - y[i] = mulq15(sine_i(ph + (uint32_t)(mo * idx) * 512u), ga >> 8); + } else { /* (0.6.36) FM ENV: the FM struck with the hit and gone with + * the pitch envelope (1..40 ms): a beater, a click, a metal + * edge on the attack, the tail clean; a SINE gets its octave + * as the modulator, the other waves their own ratio and + * COLOR's index under it */ + uint32_t ph2 = v->ph2, ratio = wave == DXW_SINE ? 8192u : DX_RATIO[wave]; + int32_t base = wave == DXW_SINE ? 0 : q[DXP_COLOR] * 3; + int32_t ix = base + ((fm * 3 * v->ep) >> 15), dix = ((base + ((fm * 3 * ep1) >> 15)) - ix) / (int32_t)n; + int32_t o = v->mo, fbk = (int32_t)DX_TONE_FB(dx_tone) * 4096; /* (FEEDBK: up to half a turn) */ + for (i = 0; i < n; i++, inc += dinc, ga += dga, ix += dix) { + o = sine_i(ph + (uint32_t)(sine_i(ph2) * ix) * 512u + (uint32_t)(o * fbk)); + y[i] = mulq15(o, ga >> 8); ph += (uint32_t)inc << 4; ph2 += ((uint32_t)inc >> 8) * ratio; } v->ph2 = ph2; - v->mo = mo; + v->mo = o; } v->ph = ph; if (L->mode & DX_DRIVE) /* (JIANT 0.4) DRIVE: x3 into the soft clip, the level near */ @@ -223,6 +237,20 @@ static __attribute__((noinline)) void dx_run(const dx_lane_t *L, dx_voice_t *v, v->ic2 = ic2; v->rng = rng; } + if (DX_TONE_BP(dx_tone) && (L == &dx_kit[DV_HATC] || L == &dx_kit[DV_HATO] || L == &dx_kit[DV_RIM] || + L == &dx_kit[DV_BELL])) { /* (0.6.36) TONE's BP on the metal sounds */ + int32_t b1 = v->b1, b2 = v->b2; + tsvf_t cb; + tsvf_coef_k(&cb, (int32_t)(92u + DX_TONE_BP(dx_tone) * 2u) << 8, 1800); /* (half rate: + an octave) */ + for (i = 0; i < n; i++) { + int32_t v3 = y[i] - b2, v1 = (cb.a1 * b1 + cb.a2 * v3) >> 13, v2 = b2 + ((cb.a2 * b1 + cb.a3 * v3) >> 13); + b1 = clamp(2 * v1 - b1, -150000, 150000); + b2 = clamp(2 * v2 - b2, -150000, 150000); + y[i] = clamp(v1 + (v1 >> 1), -32767, 32767); /* (its centre a little louder: the band sings) */ + } + v->b1 = b1; + v->b2 = b2; + } { /* (JIANT 0.5) the edge taken off: a one-pole low-pass at * ~8 kHz on the sound (FM, FOLD and bright noise at 16 kHz * were knife-sharp, the dice's above all) */ diff --git a/firmware/src/eng_drum.c b/firmware/src/eng_drum.c index 2daf8e54..6803d1f2 100644 --- a/firmware/src/eng_drum.c +++ b/firmware/src/eng_drum.c @@ -14,7 +14,7 @@ * * Parameters (stored as before: KIT's slot is MRPH, SNAP's NOIS, KICK's WARP): MRPH the MORPH A..B of every * lane; TUNE (+-12 semitones), TONE (COLOR), DECY (DECAY) and NOIS (NOISE) move every lane from its patch (64: as - * the kit has it); FM (JIANT, once ACC) every sound through harmonic FM, eight ratio bands (drumx_voice.c dx_run); FOLD (JIANT 0.5, was WARP) every sound's oscillator through a wavefolder after its envelope: a bright attack folding back to the plain tail (0: as the kit has it); DRV a soft clip on every hit + * the kit has it); FM ENV (JIANT 0.6.36, once ACC, then FM) the FM struck with each hit and gone with its pitch envelope: a click, a beater, a metal edge (drumx_voice.c dx_run); FOLD (JIANT 0.5, was WARP) every sound's oscillator through a wavefolder after its envelope: a bright attack folding back to the plain tail (0: as the kit has it); DRV a soft clip on every hit * (x1..x4, level kept). Each lane has its LEVEL (P_LN0..P_LN7, EDIT > LANES / LANES 2, #97: square law, 100 % the * default) on the voice amplitude after the knee. The knobs move a hit while it rings. * @@ -346,7 +346,8 @@ static const engine_t ENG_DRUM = { {"TONE", F_PCT, 0, 127, 64, 0, 0}, {"DECAY", F_PCT, 0, 127, 64, 0, 0}, {"NOISE", F_PCT, 0, 127, 64, 0, 0}, - {"FM", F_PCT, 0, 127, 0, 0, 0}, /* (JIANT: was ACC) */ + {"FM ENV", F_PCT, 0, 127, 0, 0, 0}, /* (JIANT: was ACC; 0.6.36: was FM, a fixed FM: the FM struck + * with the hit, gone with the pitch envelope) */ {"FOLD", F_PCT, 0, 127, 0, 0, 0}, /* (JIANT 0.5: a wavefolder, was WARP) */ {"DRIVE", F_PCT, 0, 127, 0, 0, 0}, }, diff --git a/firmware/src/felucca.c b/firmware/src/felucca.c index 73be05a5..559bdbfc 100644 --- a/firmware/src/felucca.c +++ b/firmware/src/felucca.c @@ -32,7 +32,7 @@ #define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */ #endif #ifndef FELUCCA_VERSION -#define FELUCCA_VERSION "v0.6.35" /* JIANT's (based on Felucca 1.1.5.1): the splash, the menu, the console, the editor */ +#define FELUCCA_VERSION "v0.6.36" /* 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/params.c b/firmware/src/params.c index 4e4fa354..0da96fce 100644 --- a/firmware/src/params.c +++ b/firmware/src/params.c @@ -457,6 +457,7 @@ static const page_t PAGES[] = { {"SOUND 2", FAM_EDIT, SC_TRACK, GR_DXSND, {0xFF, 0xFF, 0xFF, 0xFF}}, {"SOUND 3", FAM_EDIT, SC_TRACK, GR_DXSND, {0xFF, 0xFF, 0xFF, 0xFF}}, /* (JIANT 0.4) the pitch modulation, DRIVE */ {"X-MOD", FAM_EDIT, SC_TRACK, GR_DXSND, {0xFF, 0xFF, 0xFF, 0xFF}}, /* (JIANT 0.5.1) the kit's LFO on MORPH, RAND */ + {"TONE", FAM_EDIT, SC_TRACK, GR_DXSND, {0xFF, 0xFF, 0xFF, 0xFF}}, /* (JIANT 0.6.36) the kit's BP (the metal), FEEDBK */ {"OP1 ENV", FAM_EDIT, SC_TRACK, GR_ADSR, {P_FM1_ATK, P_FM1_DEC, P_FM1_SUS, P_FM1_REL}}, {"OP2 ENV", FAM_EDIT, SC_TRACK, GR_ADSR, {P_FM2_ATK, P_FM2_DEC, P_FM2_SUS, P_FM2_REL}}, {"OP3 ENV", FAM_EDIT, SC_TRACK, GR_ADSR, {P_FM3_ATK, P_FM3_DEC, P_FM3_SUS, P_FM3_REL}}, diff --git a/firmware/src/project.c b/firmware/src/project.c index 1a259d8a..96671294 100644 --- a/firmware/src/project.c +++ b/firmware/src/project.c @@ -125,6 +125,7 @@ typedef struct { uint16_t dx_mute; /* its mutes (eng_drum.c: the groups DXG_* in the first reserved byte, the * sounds' DXM_LANE in the second) */ uint8_t dx_mot[4]; /* (0.5.1) the kit's X-MOD (eng_drum.c), in its reserved bytes 3..6 */ + uint8_t dx_tone; /* (0.6.36) the kit's TONE (drumx_voice.c: BP, FEEDBK), its byte 7 */ uint8_t pfx_lane[32], pfx_ltgt; /* the punch-in lane (pfx.c), in FUN9's spare bytes (PROJ_PFX_OFF) */ uint8_t macro[4]; /* the macros M1..M4 (mod.c macro_v), 0..127: after the lane's tracks */ char name[PROJ_NAME_LEN]; /* the project's name: upper-case ASCII 32..126, 0-padded; "" = none */ @@ -542,6 +543,7 @@ static void proj_fm6_init(project_t *q) memcpy(q->dx, DX_KIT_DEF, sizeof q->dx); q->dx_mute = 0; memset(q->dx_mot, 0, sizeof q->dx_mot); + q->dx_tone = 0; q->sum = proj_sum(q); } static int proj_import_old(project_t *q, const void *b, int n); @@ -820,6 +822,7 @@ static int proj_pack(project_store_t *out, const project_t *q) b[PROJC_DX_OFF + sizeof q->dx + 1u] = (uint8_t)(q->dx_mute >> 8); b[PROJC_DX_OFF + sizeof q->dx + 2u] = 4u; /* (FUNB's marker 4: the values as today's) */ memcpy(b + PROJC_DX_OFF + sizeof q->dx + 3u, q->dx_mot, sizeof q->dx_mot); + b[PROJC_DX_OFF + sizeof q->dx + 7u] = q->dx_tone; /* (0.6.36) TONE: 0 before it (off) */ { /* the name (0-padded; stops at the first 0) */ char n[PROJ_NAME_LEN + 1u]; memcpy(b + PROJ_NAME_OFF, n, proj_name_get(n, (const uint8_t *)q->name)); @@ -875,6 +878,7 @@ static int proj_pack_vb(project_store_t *out, const project_t *q) * 4 (0.5.4) LOFI BYTE / FLOAT's MOTN, GRIT / DCY; * 3 (0.4) LOFI's and ANALOG's new E values (core.h sound_v04) */ memcpy(b + PROJ_DX_OFF + sizeof q->dx + 3u, q->dx_mot, sizeof q->dx_mot); /* (0.5.1) X-MOD: 0 before it (off) */ + b[PROJ_DX_OFF + sizeof q->dx + 7u] = q->dx_tone; memcpy(b + PROJ_FM6_OFF, q->fm6, PROJ_LT * FM6_PACKED); { /* the name (0-padded; stops at the first 0) */ char n[PROJ_NAME_LEN + 1u]; @@ -983,6 +987,7 @@ static int proj_unpack_c(project_t *q, const uint8_t *b) if (!dx_kit_ok(q->dx)) return 0; q->dx_mute = (uint16_t)((b[PROJC_DX_OFF + sizeof q->dx] & DXG_ALL) | b[PROJC_DX_OFF + sizeof q->dx + 1u] << 8); memcpy(q->dx_mot, b + PROJC_DX_OFF + sizeof q->dx + 3u, sizeof q->dx_mot); + q->dx_tone = b[PROJC_DX_OFF + sizeof q->dx + 7u]; q->dx_mot[XM_RATE] = q->dx_mot[XM_RATE] > 8u ? 0u : q->dx_mot[XM_RATE]; q->dx_mot[XM_DPTH] &= 127u; q->dx_mot[XM_SHPE] = q->dx_mot[XM_SHPE] > 4u ? 0u : q->dx_mot[XM_SHPE]; @@ -1080,6 +1085,7 @@ static int proj_unpack(project_t *q, const uint8_t *b, uint32_t st) if (!dx_kit_ok(q->dx)) return 0; q->dx_mute = (uint16_t)((b[end + sizeof q->dx] & DXG_ALL) | b[end + sizeof q->dx + 1u] << 8); memcpy(q->dx_mot, b + end + sizeof q->dx + 3u, sizeof q->dx_mot); + q->dx_tone = b[end + sizeof q->dx + 7u]; q->dx_mot[XM_RATE] = q->dx_mot[XM_RATE] > 8u ? 0u : q->dx_mot[XM_RATE]; /* (out of range: off) */ q->dx_mot[XM_DPTH] &= 127u; q->dx_mot[XM_SHPE] = q->dx_mot[XM_SHPE] > 4u ? 0u : q->dx_mot[XM_SHPE]; @@ -1105,6 +1111,7 @@ static int proj_unpack(project_t *q, const uint8_t *b, uint32_t st) memcpy(q->dx, DX_KIT_DEF, sizeof q->dx); q->dx_mute = 0; memset(q->dx_mot, 0, sizeof q->dx_mot); + q->dx_tone = 0; } proj_new_tracks(q, PROJ_LT); /* (JIANT 0.6: tracks 5, 6 their power-on sounds) */ { @@ -1235,6 +1242,7 @@ static void project_capture(project_t *p) memcpy(p->dx, dx_kit, sizeof p->dx); p->dx_mute = dx_mute; memcpy(p->dx_mot, dx_mot, sizeof p->dx_mot); + p->dx_tone = dx_tone; memcpy(p->pfx_lane, pfx_lane, sizeof p->pfx_lane); p->pfx_ltgt = pfx_ltgt; memcpy(p->macro, macro_v, sizeof p->macro); @@ -1372,6 +1380,7 @@ static int project_recall_sound(uint32_t slot, uint32_t k) if (e == ENGI_DRUM) { memcpy(dx_kit, dx_kit_ok(p->dx) ? p->dx : DX_KIT_DEF, sizeof dx_kit); memcpy(dx_mot, p->dx_mot, sizeof dx_mot); + dx_tone = p->dx_tone; } fm1_irq_on(); if (t == TSEL) @@ -1401,6 +1410,7 @@ static int project_restore_runtime(const project_t *input) memcpy(dx_kit, dx_kit_ok(p->dx) ? p->dx : DX_KIT_DEF, sizeof dx_kit); /* (the section's DRUM-X kit) */ dx_mute_set(p->dx_mute); memcpy(dx_mot, p->dx_mot, sizeof dx_mot); /* (0.5.1: the kit's X-MOD) */ + dx_tone = p->dx_tone; /* (0.6.36: its TONE) */ memcpy(pfx_lane, p->pfx_lane, sizeof pfx_lane); /* (the section's punch-in lane) */ pfx_ltgt = p->pfx_ltgt > 2u ? 0u : p->pfx_ltgt; for (i = 0; i < 4u; i++) diff --git a/firmware/src/ui.c b/firmware/src/ui.c index 878e21fd..ff6df72d 100644 --- a/firmware/src/ui.c +++ b/firmware/src/ui.c @@ -1222,7 +1222,7 @@ static void track_select(uint32_t i) static uint8_t dx_ui_lane, dx_ui_side; static uint32_t dx_pagen(const page_t *pg) /* "SOUND 2"; (0.5.1) "X-MOD": 4 */ { - return pg->title[0] == 'X' ? 4u : pg->title[5] == ' ' ? (uint32_t)(pg->title[6] - '0') : 1u; + return pg->title[0] == 'X' ? 4u : pg->title[0] == 'T' ? 5u : pg->title[5] == ' ' ? (uint32_t)(pg->title[6] - '0') : 1u; } static uint32_t dx_page2(const page_t *pg) { return dx_pagen(pg) == 2u; } static void dx_knob(const page_t *pg, uint32_t k, int32_t s); diff --git a/firmware/src/ui_dx.c b/firmware/src/ui_dx.c index 218ce36f..9cca2925 100644 --- a/firmware/src/ui_dx.c +++ b/firmware/src/ui_dx.c @@ -39,6 +39,13 @@ static void dx_knob(const page_t *pg, uint32_t k, int32_t s) { dx_lane_t *L = &dx_kit[dx_ui_lane & 7u]; uint8_t *v = dx_ui_side ? L->b : L->a; + if (dx_pagen(pg) == 5u) { /* (JIANT 0.6.36) TONE: the kit's BP and FEEDBK */ + uint32_t bp = DX_TONE_BP(dx_tone), fb = DX_TONE_FB(dx_tone); + if (k == 0u) bp = (uint32_t)clamp((int32_t)bp + (s > 0 ? 1 : -1), 0, 15); + else if (k == 1u) fb = (uint32_t)clamp((int32_t)fb + (s > 0 ? 1 : -1), 0, 15); + dx_tone = (uint8_t)(bp | fb << 4); + return; + } if (dx_pagen(pg) == 4u) { /* (JIANT 0.5.1) X-MOD: the kit's, not a sound's */ static const uint8_t MX[4] = {8, 127, 4, 127}; int32_t v0 = dx_mot[k & 3u]; @@ -81,6 +88,21 @@ static void dx_cards(const page_t *pg) const uint8_t *v = dx_ui_side ? L->b : L->a; char val[12]; dx_follow(); + if (dx_pagen(pg) == 5u) { /* (JIANT 0.6.36) TONE */ + uint32_t bp = DX_TONE_BP(dx_tone), fb = DX_TONE_FB(dx_tone); + if (bp) { /* (its centre, as the filter sets it) */ + uint32_t hz = CUTOFF_HZ[78u + bp * 2u]; + if (hz < 1000u) { fmt_int(val, (int32_t)hz); } + else { fmt_fix(val, (int32_t)(hz / 100u), 1); } + } else str_cpy(val, "OFF", sizeof val); + draw_column(0, "BP", val, bp ? (CUTOFF_HZ[78u + bp * 2u] < 1000u ? "Hz" : "kHz") : "", bp ? VAL(0u) : T_DIM, + (int32_t)bp * 1000 / 15, ICON_TONE); + fmt_int(val, (int32_t)fb); + draw_column(1, "FEEDBK", fb ? val : "OFF", "", fb ? VAL(1u) : T_DIM, (int32_t)fb * 1000 / 15, ICON_DRIVE); + draw_column(2, "", "", "", T_THEME, -1, ICON_NONE); + draw_column(3, "", "", "", T_THEME, -1, ICON_NONE); + return; + } if (dx_pagen(pg) == 4u) { /* (JIANT 0.5.1) X-MOD */ static const char *const RT[9] = {"OFF", "4BAR", "2BAR", "1BAR", "1/2", "1/4", "1/8", "1/16", "1/32"}; static const char *const SH[5] = {"SINE", "TRI", "SAW", "RAMP", "S&H"}; @@ -128,6 +150,7 @@ static uint32_t dx_sig(void) const dx_lane_t *L = &dx_kit[dx_ui_lane & 7u]; uint32_t h = (uint32_t)dx_ui_lane * 31u + dx_ui_side * 977u + L->mode * 131u, i; h ^= (uint32_t)dx_mot[0] << 24 ^ (uint32_t)dx_mot[1] << 16 ^ (uint32_t)dx_mot[2] << 8 ^ dx_mot[3]; /* (X-MOD) */ + h = (h ^ dx_tone) * 2654435761u; /* (TONE) */ for (i = 0; i < DXP_N; i++) h = (h ^ (uint32_t)L->a[i] << 8 ^ L->b[i]) * 16777619u; return h; diff --git a/tests/drumx_test.c b/tests/drumx_test.c index 6ed51a95..fe4fafba 100644 --- a/tests/drumx_test.c +++ b/tests/drumx_test.c @@ -279,16 +279,44 @@ int main(int argc, char **argv) t = kitx(64, 64); t->p[P_E5] = 120; strike(t, lf, FS / 8u); - for (i = 0; i < FS / 8u; i++) { - d0 += fabs((double)a1[i] - a0[i]); - d1 += fabs((double)buf[i] - a1[i]); - pk = abs(buf[i]) > pk ? abs(buf[i]) : pk; - pk = abs(a1[i]) > pk ? abs(a1[i]) : pk; + { /* (0.6.36: FM ENV) the attack (its first 4 ms) struck differently, the tail (past 80 ms) as the kit's */ + double ta = 0, tt = 0, ra = 0, rt = 0; + for (i = 0; i < FS / 8u; i++) { + double e = fabs((double)buf[i] - a0[i]), r = fabs((double)a0[i]); + if (i < FS / 250u) { ta += e; ra += r; } + else if (i > FS / 12u) { tt += (double)buf[i] * buf[i]; rt += (double)a0[i] * a0[i]; } /* (energies: + * the noise is another each hit) */ + pk = abs(buf[i]) > pk ? abs(buf[i]) : pk; + pk = abs(a1[i]) > pk ? abs(a1[i]) : pk; + } + d0 = ta / (ra + 1.0); d1 = fabs(sqrt(tt / (rt + 1.0)) - 1.0); + if (getenv("DX_FMENV")) printf("lane %u attack %.3f tail %.3f pk %d\n", lf, d0, d1, pk); + ok3 &= (ra < 1000.0 || d0 > 0.05) && (rt < 1000.0 * (FS / 8u - FS / 12u) || d1 < 0.25) && pk < 32700; + /* (a hit already gone by then: no tail to compare) */ } - ok3 &= d0 / (FS / 8u) > 150 && d1 / (FS / 8u) > 150 && pk < 32700; /* (0.6.17: 150, was 200: at half - * rate the closed hat's FM partials past 11 kHz are gone, 195) */ } - check("FM (E5): 40 and 120 each another sound on every lane, under full scale, still ends", ok2 && ok3, 0); + check("FM ENV (E5, 0.6.36): the attack struck, the tail as the kit has it, under full scale, still ends", ok2 && ok3, 0); + { /* (0.6.36) TONE: BP moves the metal sounds only (hats, rim, cowbell), FEEDBK every sound; under full scale */ + static int32_t r0[FS / 8]; + uint32_t l2; + int okb = 1, okf = 1; + for (l2 = 0; l2 < 8u; l2++) { + double dbp = 0, dfb = 0, e0 = 0; + int32_t pk2 = 0; + int metal = l2 == DV_HATC || l2 == DV_HATO || l2 == DV_RIM || l2 == DV_BELL; + dx_tone = 0; strike(kitx(64, 64), l2, FS / 8u); memcpy(r0, buf, sizeof r0); + dx_tone = 8; strike(kitx(64, 64), l2, FS / 8u); + for (i = 0; i < FS / 8u; i++) { dbp += fabs((double)buf[i] - r0[i]); e0 += fabs((double)r0[i]); } + dx_tone = 12u << 4; strike(kitx(64, 64), l2, FS / 8u); + for (i = 0; i < FS / 8u; i++) { dfb += fabs((double)buf[i] - r0[i]); pk2 = abs(buf[i]) > pk2 ? abs(buf[i]) : pk2; } + if (getenv("DX_TONE")) printf("lane %u bp %.3f fb %.3f pk %d\n", l2, dbp / (e0 + 1), dfb / (e0 + 1), pk2); + if (metal) okb &= dbp / (e0 + 1) > 0.1; + else if (l2 == DV_KICK || l2 == DV_TOM) okb &= dbp / (e0 + 1) < 0.05; /* (the noisy ones: another each hit) */ + okf &= dfb / (e0 + 1) > 0.05 && pk2 < 32700; + } + dx_tone = 0; + check("TONE (0.6.36): BP on the hats, rim and cowbell only; FEEDBK moves every sound, under full scale", okb && okf, 0); + } } { double e0, t0, e1, t1; diff --git a/tests/target_budget.txt b/tests/target_budget.txt index 3fef5743..63823e02 100644 --- a/tests/target_budget.txt +++ b/tests/target_budget.txt @@ -14,7 +14,7 @@ noise_render 259 fm6_render 378 fm6_op_run 72 fm6_op_fb 26 -dx_run 368 +dx_run 420 slicer_bus 794 fm1_alnk0_irq 271 fm1_timer5_irq 33823 diff --git a/tests/ui_test.c b/tests/ui_test.c index 467f2154..c3d7c11b 100644 --- a/tests/ui_test.c +++ b/tests/ui_test.c @@ -2910,9 +2910,9 @@ static int test_edit_cycle(void) #endif { /* #97: a DRUM track's lane levels on EDIT > LANES (KICK SNARE CLAP HATCL) and LANES 2 (HATOP TOM RIM BELL) */ static const char *const CYC_K[] = {"EDIT 1", "EDIT 2", "FILTER", "LANES", "LANES 2", "SOUND", "SOUND 2", "SOUND 3", "X-MOD", - "VOICE", "EDIT 1"}; + "TONE", "VOICE", "EDIT 1"}; set_engine_of(TSEL, ENGI_DRUM); - bad += check("EDIT cycle (DRUM): EDIT 1 EDIT 2 FILTER LANES LANES 2 SOUND SOUND 2 SOUND 3 X-MOD VOICE EDIT 1", + bad += check("EDIT cycle (DRUM): EDIT 1 EDIT 2 FILTER LANES LANES 2 SOUND SOUND 2 SOUND 3 X-MOD TONE VOICE EDIT 1", engine_cycle(CYC_K, NELEM(CYC_K))); go_title("LANES 2"); frame(); ok = TSEL->p[P_LN5] == 127; diff --git a/tools/gen_cheatsheets.py b/tools/gen_cheatsheets.py index 3db00573..5c4d5468 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.6.35' +VERSION = 'v0.6.36' HEAT = ['#22d3ee', '#3b82f6', '#8b5cf6', '#d946ef', '#ef4444', '#ff7a00', '#facc15', '#f4f1ea'] @@ -282,9 +282,9 @@ def sound(): ('VOICE', HEAT[6], 'VOWEL VOWEL2 TALK SHIFT', 'BUZZ BREATH Q RAND', 'Formant voice (after klattsch): vowels, talk, breath.'), ('WHEEL', HEAT[5], 'REG SUB BODY TOP', 'PERC CLICK DRIVE ROTOR', 'Drawbar organ: registrations, percussion, rotary.'), ('NOISE', HEAT[4], 'MODE COLOR FREQ PEAK', 'TRK DENSE DRIFT CRUSH', 'Coloured and metallic noise, tracked or free.'), - ('DRUM-X', '#ff7a00', 'MORPH TUNE TONE DECAY', 'NOISE FM FOLD DRIVE', + ('DRUM-X', '#ff7a00', 'MORPH TUNE TONE DECAY', 'NOISE FM ENV FOLD DRIVE', '8 sounds BD SD CP CH OH TM RS CB, sides A / B: MORPH morphs the kit. SOUND · SOUND 2 · SOUND 3: LANE SIDE PITCH PMOD · ' - 'DECAY NOISE COLOR MODE · LANE PMOD DRIVE WAVE. X-MOD: RATE DEPTH SHAPE RAND.'), + 'DECAY NOISE COLOR MODE · LANE PMOD DRIVE WAVE. X-MOD: RATE DEPTH SHAPE RAND. TONE: BP (hats, rim, cowbell) FEEDBK.'), ] t = '' for n, c, e1, e2, d in eng: diff --git a/tools/video/capture.c b/tools/video/capture.c index 87e75404..b2d8d271 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.6.35" +#define FELUCCA_VERSION "v0.6.36" #include "ui_test.c" #define FPS 30u @@ -85,16 +85,18 @@ static int vbank_read(uint32_t k, uint8_t *pk) static void song_build(void) { - static const uint8_t ROOT[4] = {33, 29, 36, 31}; /* Am F C G, a bar each */ - static const int8_t BOFS[16] = {0, -1, 12, 0, -1, 0, 12, -1, 0, -1, 7, -1, 12, -1, 7, -1}; /* the electro bass */ - static const uint8_t CH[4][4] = {{57, 60, 64, 69}, {53, 57, 60, 65}, {55, 60, 64, 67}, {55, 59, 62, 67}}; - static const uint8_t AIX[16] = {0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3}; /* the computer arp */ + /* (0.6.36) the night: E harmonic minor, Em(add9) Cmaj7 Am7 B7, a bar each; a rolling sub on the offbeats, a low arp, + * the robot's line low and spaced (it was A minor's I-vi-ish pop: too bright, too happy) */ + static const uint8_t ROOT[4] = {28, 24, 33, 35}; /* E1 C1 A1 B1 */ + static const int8_t BOFS[16] = {-1, -1, 12, -1, -1, 12, 12, -1, -1, -1, 12, 12, -1, 7, 12, -1}; /* the rolling sub */ + static const uint8_t CH[4][4] = {{55, 59, 64, 66}, {55, 59, 60, 64}, {57, 60, 64, 67}, {54, 57, 59, 63}}; + static const uint8_t AIX[16] = {0, 2, 1, 3, 0, 2, 1, 2, 0, 3, 1, 2, 0, 2, 3, 1}; /* the low arp, turning */ /* the robot's melody (64 steps: note, 0 rest, 1 hold) */ static const uint8_t MEL[64] = { - 76, 1, 1, 1, 74, 1, 72, 1, 1, 1, 69, 1, 1, 1, 1, 1, - 72, 0, 72, 0, 69, 0, 72, 1, 1, 1, 74, 0, 72, 1, 1, 1, - 76, 1, 1, 1, 79, 0, 76, 0, 74, 1, 1, 1, 72, 0, 74, 0, - 71, 1, 1, 1, 74, 0, 0, 0, 71, 0, 67, 1, 1, 1, 1, 1}; + 64, 1, 1, 1, 0, 0, 67, 1, 66, 1, 1, 1, 0, 0, 0, 0, + 0, 0, 64, 1, 67, 1, 1, 1, 71, 1, 1, 1, 1, 1, 0, 0, + 72, 1, 71, 1, 69, 1, 1, 1, 0, 0, 67, 1, 66, 1, 1, 1, + 63, 1, 1, 1, 1, 1, 66, 1, 1, 1, 0, 0, 71, 1, 1, 1}; uint32_t i, k; ui_power_on(); settings.palette = UI_JIANT_INDEX; palette_set(UI_JIANT_INDEX); @@ -103,13 +105,13 @@ static void song_build(void) song.master_q12 = 4096; /* (the pot: ui_power_on leaves 0) */ sound(T_VOX, "VOICE", "VOX LEAD"); sound(T_BASS, "ANALOG", "FAT BASS"); - sound(T_ARP, "LOFI", "8BIT KEYS"); + sound(T_ARP, "LOFI", "FLOAT ARP"); sound(T_DRUM, "DRUM", "DRUM-X"); sound(T_PAD, "FM6", "PAD"); sound(T_ZAP, "NOISE", "WIND"); for (k = 0; k < NTRK; k++) { track_defaults_steps(&trk[k]); - trk[k].p[P_ROOT] = 9; trk[k].p[P_SCALE] = 2; /* A minor */ + trk[k].p[P_ROOT] = 4; trk[k].p[P_SCALE] = 7; /* E harmonic minor (0.6.36) */ trk[k].p[P_SLEN] = 16; trk[k].p[P_MUTE] = 1; } @@ -194,7 +196,7 @@ static void at_beat_v2(uint32_t q) mute(T_VOX, 0); page(T_VOX, "EDIT 1"); caption(q, ONLY, "THE ROBOT", "VOICE: formant synthesis|its own being on every engine page", 1); } - if (q == B(6, 0)) { page(T_ARP, "EDIT 1"); caption(q, ONLY, "LOFI", "bytebeat and floatbeat machines|8-bit keys and chips", 1); } + if (q == B(6, 0)) { page(T_ARP, "EDIT 1"); caption(q, ONLY, "LOFI", "bytebeat and floatbeat machines|grit, glass, ghosts", 1); } if (q == B(7, 0)) { trk[T_ARP].p[P_E0] = (int16_t)(trk[T_ARP].p[P_E0] ^ 1); } if (q == B(8, 0)) { mute(T_BASS, 0); trk[T_BASS].p[P_E0] = 5; /* the bass: ANALOG's SYNC */ @@ -313,7 +315,7 @@ static void at_beat_v2(uint32_t q) if (q == B(48, 0)) { drums(FLOOR); sound(T_ZAP, "NOISE", "ARCADE"); for (k = 0; k < 16u; k++) { uint8_t n = 84; put(T_ZAP, k, k == 3u || k == 11u ? 1u : 0u, &n, k == 3u || k == 11u ? ST_NOTE : ST_REST, 0); } - trk[T_ZAP].p[P_ROOT] = 9; trk[T_ZAP].p[P_SCALE] = 2; trk[T_ZAP].p[P_SLEN] = 16; mute(T_ZAP, 0); trk[T_ZAP].p[P_LEVEL] = 55; + trk[T_ZAP].p[P_ROOT] = 4; trk[T_ZAP].p[P_SCALE] = 7; trk[T_ZAP].p[P_SLEN] = 16; mute(T_ZAP, 0); trk[T_ZAP].p[P_LEVEL] = 55; home(T_DRUM); caption(q, ONLY, "ALL SYNTHESIS", "no samples|six beings, all alive", 1); } if (q == B(50, 0)) { go_title("MIXER"); caption(q, ONLY, "6-CHANNEL MIXER", "level · pan · send · mute|thermal meters", 0); } @@ -392,7 +394,7 @@ static void at_new(uint32_t q, uint32_t r) if (r >= 25u && r < 28u) enc_turn(EN_K1, 1); /* the root up */ if (r == 28u) enc_turn(EN_K1, -3); } -static void at_beat(uint32_t q) +static void at_beat_script(uint32_t q) { if (q < B(56, 0)) { at_beat_v2(q); return; } if (q < B(64, 0)) { at_new(q, q - B(56, 0)); return; } @@ -400,6 +402,23 @@ static void at_beat(uint32_t q) at_beat_v2(q - 32u); qoff = 0; } +/* (0.6.36) more alive: a page held for a while cuts to HOME's beings for two beats every two bars, then back */ +static void at_beat(uint32_t q) +{ + static uint32_t since, cut; + static uint8_t pg, sel; + uint8_t p0, h0, s0; + if (cut && --cut == 0) { ui.home = 0; ui.page = pg; song.sel = sel; page_entered(); } /* (back to the page) */ + p0 = ui.page; h0 = ui.home; s0 = song.sel; + at_beat_script(q); + if (ui.page != p0 || ui.home != h0 || song.sel != s0 || q < SPLASH_BEATS + 8u) { /* (the script moved: a scene) */ + cut = 0; since = q; pg = ui.page; sel = song.sel; + return; + } + if (!cut && !ui.home && q - since >= 6u && (q - since) % 8u == 6u && q + 26u < B(BARS, 0)) { + go_home(); cut = 3; /* (two beats of beings, the page back on the third) */ + } +} static void put_screen(void) { diff --git a/tools/video/capture_dice.c b/tools/video/capture_dice.c index ae4714d0..d9e51595 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.6.35" +#define FELUCCA_VERSION "v0.6.36" #include "ui_test.c" #define FPS 30u @@ -67,16 +67,15 @@ static int32_t show_track(void) for (k = 0; k < NTRK; k++) if (plays(k) && !drum_track(&trk[k])) return (int32_t)k; return 0; } -static void look(uint32_t view) /* the camera: the beings, the piano roll, the kit, the mixer */ +static void look(uint32_t view) /* the camera: the beings, the piano roll, the beings, the kit */ { int32_t k = show_track(); uint32_t dr = NTRK, j; for (j = 0; j < NTRK; j++) if (drum_track(&trk[j]) && plays(j)) dr = j; - switch (view % 4u) { + switch (view % 4u) { /* (0.6.36: HOME's beings most, no mixer) */ case 1: song.sel = (uint8_t)k; go_title("STEP"); break; - case 2: if (dr < NTRK) { song.sel = (uint8_t)dr; go_title("EDIT 1"); } else { song.sel = (uint8_t)k; go_title("EDIT 1"); } break; - case 3: go_title("MIXER"); break; - default: song.sel = (uint8_t)k; go_home(); break; + case 3: if (dr < NTRK) { song.sel = (uint8_t)dr; go_title("EDIT 1"); } else { song.sel = (uint8_t)k; go_home(); } break; + default: song.sel = (uint8_t)(view & 2u && dr < NTRK ? dr : (uint32_t)k); go_home(); break; } } diff --git a/web/editor.html b/web/editor.html index 5fe9bb91..d1afcc2a 100644 --- a/web/editor.html +++ b/web/editor.html @@ -1583,7 +1583,7 @@ function makeMockDevice(opt = {}) { D("-", F.INT, 0, 127, 0), D("-", F.INT, 0, 127, 0), D("-", F.INT, 0, 127, 0), D("-", F.INT, 0, 127, 0), D("-", F.INT, 0, 127, 0)], presets: [] }, { name: "DRUM", titles: ["KIT", "HIT"], 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", F.PCT, 0, 127, 0), + 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)] }, { name: "NOISE", titles: ["SRC", "MOVE"], edit: [E("MODE", ["ANLG", "DUST", "LFSR", "META"], 0), D("COLOR", F.PCT, 0, 127, 64), diff --git a/web/test_web.mjs b/web/test_web.mjs index 5b1e9e34..c94e9e49 100644 --- a/web/test_web.mjs +++ b/web/test_web.mjs @@ -364,9 +364,9 @@ function mockTables() { m0.stop(); 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,FOLD,DRIVE" && + 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: MRPH TUNE TONE DECY NOIS FM FOLD DRV), one kit suggesting BEAT"); + "editor: DRUM engine 10 (DRUM-X: MORPH TUNE TONE DECAY NOISE FM ENV FOLD DRIVE), one kit suggesting BEAT"); } const dj = DESC; if (!existsSync(dj)) { console.log("editor: mock tables == firmware (no build/host/desc.json) skip"); return; }
ENGINEEDIT 1EDIT 2WHAT TO KNOW