diff --git a/README.md b/README.md index fedc63e8..21ff7b1d 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.28).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it. +> **Status: in development (v0.6.29).** It builds and passes every test (Felucca's and its own), Back up the flash before installing it. ## Cheat sheets @@ -30,6 +30,15 @@ Two printable sheets with everything on the device. Click an image to open it fu Every update is listed here, newest first. +### v0.6.29 +- **TRACKS has a middle option: 6 LITE.** GLO > SYSTEM > TRACKS (and MENU > AUDIO > TRACKS) now reads **4 FULL** (the + default), **6 LITE** or **6 FULL** (the old 6 HIGH). With 6 LITE all six tracks play and the heaviest parts are + swapped for their nearest light kin while they sound: the **SHIMMER** and **CLOUD** reverbs play as **ROOM**, + **RESO** as **SPRING**, the **GRAIN** delay (DLY 2 PITCH / SPRAY) as a plain delay, and **FM6** plays two voices + instead of four. Nothing in the project changes: back on 6 FULL (or on another unit) it sounds as saved. The cards + that are swapped say **LITE** under their value. +- **Fixed**: when a message covered the header while the BPM was rolling, the old BPM could stay half-rolled. + ### v0.6.28 - **"After clearing a sequence it still triggers notes on all tracks" — fixed.** The punch-in FX lane (effects recorded by holding FX keys while REC is armed) kept repeating the last notes of the cleared steps with STUTTER and @@ -609,7 +618,9 @@ each layer. - **Load meter** (top right, next to the battery): five small bars showing how much of the audio time the sound is using right now. The firmware's RAM is reserved entirely at boot and doesn't change, so this is what's worth watching: with all five lit (red, yellow) you're close to the limit and should cut voices, the CLOUD reverb or heavy - effects. If it's often full, GLO > SYSTEM > **TRACKS 4 LOW** (the default; also in MENU > AUDIO > TRACKS) leaves T5 and T6 asleep for headroom. + effects. If it's often full, GLO > SYSTEM > **TRACKS 4 FULL** (the default; also in MENU > AUDIO > TRACKS) leaves T5 and T6 asleep for headroom, + and **6 LITE** plays all six with the heavy reverbs, the GRAIN delay and FM6 lightened (SHIMMER and CLOUD as ROOM, + RESO as SPRING, the GRAIN delay plain, FM6 two voices); **6 FULL** plays everything as it is. - **Power-on**: the signature draws itself in about a second, with beings swimming round it. To boot straight in: MENU > **ANIM OFF**. ### 3. Making a sound diff --git a/docs/cheatsheet-controls.pdf b/docs/cheatsheet-controls.pdf index 64f68b07..4953110e 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 a7773e6d..2d72242b 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 296b7c78..eedd5fbd 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 17ce56f8..cba5ee0b 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 dcca1670..39dfbdb8 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.28 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.6.29 · 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 (asks first), 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
MIDITRACKSROUTE-
PRESETS
No.ENGFAVLIST
USER
SLOTLOADERASESAVE
PROJECT
PROJSECTLOADSAVE
ARRANGE
ROWSECTBARSSCENE
TOOLSK1 or PRESETS: the list · OCT+ does it
+JIANT FM v0.6.29 \ No newline at end of file diff --git a/docs/cheatsheet/sound.html b/docs/cheatsheet/sound.html index c41581eb..664cbf5f 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.28 · M-VAVE FM-1 · juanjiant-bit.github.io/JIANT
+
firmware v0.6.29 · 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: MRPH morphs the kit. SOUND 1–3: LANE SIDE PTCH PMOD · DCAY NOIS COLR MODE · LANE PMOD DRV WAVE. X-MOD: RATE DPTH SHPE 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 OK): a new piece in a style (ROBOT POP .. IDM), 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 songs × 4 sections (A–D), a chain of up to 16 rows by bars (SEQ › SONG), 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

DPTHRATESYNCWAVE

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.29 \ No newline at end of file diff --git a/firmware/src/editor_menu.c b/firmware/src/editor_menu.c index 54763753..b57a8e72 100644 --- a/firmware/src/editor_menu.c +++ b/firmware/src/editor_menu.c @@ -18,7 +18,7 @@ static const uint8_t ED_MENU[][2] = { {MI_RESTORE, 15}, /* 1.2 (Discussion #130), a row of SYSTEM */ {MI_SCLLED, 16}, /* 1.2 (Discussion #127), a row of CONTROL */ {MI_SCROFF, 17}, /* 1.1.5, a row of DISPLAY */ - {MI_TRACKS, 18}, /* (JIANT 0.6.18) TRACKS 4 LOW / 6 HIGH, a row of AUDIO */ + {MI_TRACKS, 18}, /* (JIANT 0.6.18) TRACKS 4 FULL / 6 LITE / 6 FULL (0.6.29), a row of AUDIO */ }; #define ED_MENU_N NELEM(ED_MENU) diff --git a/firmware/src/felucca.c b/firmware/src/felucca.c index ac399180..ad252aab 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.28" /* JIANT's (based on Felucca 1.1.5.1): the splash, the menu, the console, the editor */ +#define FELUCCA_VERSION "v0.6.29" /* 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/fx.c b/firmware/src/fx.c index c342b970..23bc1444 100644 --- a/firmware/src/fx.c +++ b/firmware/src/fx.c @@ -235,6 +235,7 @@ static __attribute__((noinline)) void duck_block(void) * full MASTER level, USB audio takes that (audio.c uac_tap), and only then does MASTER scale what the DAC gets * (usb_fixed_dac). MASTER (0, the default): MASTER before master_out, as always (USB follows the knob) */ static volatile uint8_t fx_usb_fixed; +static const uint8_t REV_LITE[5] = {0, 1, 0, 1, 0}; /* (0.6.29) 6 LITE (voice.c fx_lite): each reverb's light kin */ #define MASTER_FULL 4096 /* main.c: the MASTER knob's top, Q12 */ /* the MASTER pot (ADC 0..1023, smoothed in main.c) to its level, square law: 0 .. 4088 (Q12) */ static inline uint32_t master_of_pot(uint32_t k10) { return (k10 * k10) >> 8; } @@ -882,7 +883,7 @@ static void fx_buses(const int32_t *cho_in, const int32_t *dly_in, const int32_t int32_t cdepth = song.g[G_CDEPTH] * 6, rt; uint32_t cinc = LFO_INC[song.g[G_CRATE] & 127] / CTL; int32_t hk = tn > 0 ? tn * tn * 4 : 0, wd = song.g[G_WIDTH]; /* (the low cut: up to ~3 kHz); WIDTH */ - int32_t gr = song.g[G_DPIT] || song.g[G_DSPRY]; /* (JIANT) the GRAIN delay */ + int32_t gr = !fx_lite && (song.g[G_DPIT] || song.g[G_DSPRY]); /* (JIANT) the GRAIN delay (6 LITE: plain) */ int32_t cs = song.g[G_CSTER], cw = 80 + wd / 2; /* (0.6.9) the chorus's side: 0 as before, - to mono, + ~2x */ cw = cs >= 0 ? cw + cs * 2 : (cw * (64 + cs)) >> 6; uint32_t dr = dl + (wd ? div_samples(3) * (uint32_t)wd / 127u : 0u); /* the right echo: up to 1/32 later */ @@ -949,6 +950,8 @@ static void fx_buses(const int32_t *cho_in, const int32_t *dly_in, const int32_t } } rt = (uint32_t)song.g[G_RTYPE] <= 4u ? song.g[G_RTYPE] : 0; + if (fx_lite) /* (0.6.29) 6 LITE: SHIMMER, CLOUD as ROOM; RESO as SPRING */ + rt = REV_LITE[rt]; if (rt != fx.rtype) { /* the model changed: the old one's block fades out, */ int32_t *t = part_buf, g = 65536, d = 65536 / (int32_t)n; /* its buffers are cleared, the new */ for (i = 0; i < n; i++) /* one starts from silence */ diff --git a/firmware/src/menu_items.c b/firmware/src/menu_items.c index 44c067ec..8f884e4f 100644 --- a/firmware/src/menu_items.c +++ b/firmware/src/menu_items.c @@ -67,8 +67,6 @@ static const menu_flag_t MENU_FLAGS[] = { {MI_SERIAL, PREF_SERIAL_OFF, {"ON", "OFF"}}, /* #67: OFF, no serial console (usb_serial_apply) */ {MI_RESTORE, PREF_RESTORE_OFF, {"ON", "OFF"}}, /* 1.2, #130: OFF, no autosave, power-on as new (project.c) */ {MI_SCLLED, PREF_SCALE_LEDS, {"OFF", "ON"}}, /* 1.2, Discussion #127: ON, the keys show the scale (ui_input.c) */ - {MI_TRACKS, PREF_SIX, {"4 LOW", "6 HIGH"}}, /* (JIANT 0.6.18) 4 tracks, low CPU (the default), or all 6 (voice.c - * trk_live) */ }; /* SPEAKER EQ (settings.lowcut, fx.c fx_lowcut): an EQ on the master for the small speaker, not a speaker switch * (#42: "OFF" read as the speaker off). FLAT is the old OFF (0, stored as before). The built-in speaker cannot be @@ -81,6 +79,9 @@ static const char *const CLICK_N[3] = {"OFF", "REC", "ON"}; /* REC: whi static const char *const CLKLVL_N[3] = {"LOW", "MID", "HIGH"}; static const char *const COUNTIN_N[3] = {"OFF", "1 BAR", "2 BARS"}; /* 1.1.5: SCREEN OFF (ui.c scr_*: the screen dark after this long without panel input; NEVER the default since 1.1.5.1) */ +/* (JIANT 0.6.18, 0.6.29) TRACKS: 4 (the default), 6 with the heavy parts light (voice.c fx_lite), or 6 as they are + * (ui.c trks_get; params.c N_TRKS the same names) */ +static const char *const TRKS_N[3] = {"4 FULL", "6 LITE", "6 FULL"}; static const char *const SCROFF_N[5] = {"NEVER", "5 MIN", "15 MIN", "30 MIN", "60 MIN"}; /* MENU > USB SERIAL (#67). The serial console is a developer tool (README: FELUCCA_CDC). ON (the default) presents it, @@ -113,7 +114,7 @@ static const menu_flag_t *menu_flag(uint32_t row) /* a row's value as 0..menu_n(row) - 1 in the order the menu steps it (LEDS: OFF DIM LO DIM HI INV, LEDS_MENU) */ static uint32_t menu_n(uint32_t row) { - return row == MI_COLOR ? NPALETTES : row == MI_LOWCUT || (row >= MI_CLICK && row <= MI_COUNTIN) ? 3u : + return row == MI_COLOR ? NPALETTES : row == MI_LOWCUT || (row >= MI_CLICK && row <= MI_TRACKS) ? 3u : row == MI_HOLD ? 4u : row == MI_LEDS ? LEDS_COUNT : row == MI_SCROFF ? NELEM(SCROFF_N) : 2u; } static uint32_t menu_get(uint32_t row) @@ -129,6 +130,7 @@ static uint32_t menu_get(uint32_t row) case MI_HOLD: return settings_hold % 4u; case MI_SCROFF: return scr_get(); case MI_CLICK: case MI_CLKLVL: case MI_COUNTIN: return rp_get(row - MI_CLICK); + case MI_TRACKS: return trks_get(); case MI_LEDS: while (i + 1u < LEDS_COUNT && LEDS_MENU[i] != settings_leds) i++; @@ -149,6 +151,7 @@ static const char *menu_vname(uint32_t row, uint32_t v) case MI_CLICK: return CLICK_N[v % 3u]; case MI_CLKLVL: return CLKLVL_N[v % 3u]; case MI_COUNTIN: return COUNTIN_N[v % 3u]; + case MI_TRACKS: return TRKS_N[v % 3u]; case MI_SCROFF: return SCROFF_N[v % NELEM(SCROFF_N)]; case MI_LEDS: return LEDS_NAME[LEDS_MENU[v % LEDS_COUNT]]; } @@ -180,6 +183,7 @@ static void menu_put(uint32_t row, uint32_t v) case MI_SCROFF: scr_put(v); break; /* (read every frame: ui.c scr_frame) */ case MI_LEDS: settings_leds = LEDS_MENU[v]; break; case MI_CLICK: case MI_CLKLVL: case MI_COUNTIN: rp_put(row - MI_CLICK, v); break; /* (at once: click.c, seq.c) */ + case MI_TRACKS: trks_put(v % 3u); break; /* (at once: voice.c trk_live, fx_lite) */ } } /* the menu's step, any of KNOB 1..4 or OCT+ (s > 0) / OCT- (s < 0): the next / previous value, stopping at the ends; diff --git a/firmware/src/params.c b/firmware/src/params.c index 4190270b..95ba3b41 100644 --- a/firmware/src/params.c +++ b/firmware/src/params.c @@ -409,7 +409,7 @@ typedef struct { * kept with the settings, not in the song). An id past the globals (no song.g of its own): trks_ui mirrors the setting * (ui.c rp_apply), a turn writes it back (ui_input.c knob_turn) */ #define G_TRKS 0xFEu -static const char *const N_TRKS[] = {"4 LOW", "6 HIGH"}; +static const char *const N_TRKS[] = {"4 FULL", "6 LITE", "6 FULL"}; /* (0.6.29: + LITE) */ static const param_desc_t TRKS_DESC = PE("TRACKS", N_TRKS, 0); static int16_t trks_ui; static const page_t PAGES[] = { @@ -458,7 +458,7 @@ static const page_t PAGES[] = { {"OP LEVEL", FAM_EDIT, SC_TRACK, GR_NONE, {P_FM1_LEVEL, P_FM2_LEVEL, P_FM3_LEVEL, P_FM4_LEVEL}}, {"VOICE", FAM_EDIT, SC_TRACK, GR_NONE, {P_VOICE, P_GLIDE, P_GLMODE, P_PRIO}}, {"GLOBAL", FAM_GLO, SC_GLOBAL, GR_NONE, {G_BPM, G_SWING, G_CLOCK, G_TUNE}}, - {"SYSTEM", FAM_GLO, SC_GLOBAL, GR_NONE, {G_MIDI, G_TRKS, G_ROUTE, G_INFO}}, /* (0.6.18) TRKS: 4 LOW / 6 HIGH */ + {"SYSTEM", FAM_GLO, SC_GLOBAL, GR_NONE, {G_MIDI, G_TRKS, G_ROUTE, G_INFO}}, /* (0.6.18) TRKS: 4 FULL / 6 LITE / 6 FULL */ {"PRESETS", FAM_SAVE, SC_GLOBAL, GR_BROWSE, {0xFF, 0xFF, 0xFF, 0xFF}}, /* browser: PRESETS knob / KNOB 1 */ {"USER", FAM_SAVE, SC_GLOBAL, GR_USER, {0xFF, 0xFF, 0xFF, 0xFF}}, /* user presets: SLOT LOAD ERASE SAVE */ {"PROJECT", FAM_SAVE, SC_GLOBAL, GR_SLOTS, {0xFF, G_SLOT, G_LOAD, G_SAVE}}, /* (0.6.12) PROJECT 1-8, SECT A-D */ diff --git a/firmware/src/settings_persist.c b/firmware/src/settings_persist.c index 71834606..d1b2122f 100644 --- a/firmware/src/settings_persist.c +++ b/firmware/src/settings_persist.c @@ -42,6 +42,8 @@ static int settings_import(persist_t *p, int n) b &= ~(3u << (2u * f)); p->favorites.factory[15][28] = (uint8_t)b; } + if (p->favorites.factory[15][26] > 1u) /* TRACKS 6 LITE (JIANT 0.6.29, ui.c ui_lite): unknown = FULL */ + p->favorites.factory[15][26] = 0; if (p->favorites.factory[15][27] > 7u) /* SCREEN OFF (1.1.5, ui.c SCR_CODE): unknown = 0 (NEVER since 1.1.5.1) */ p->favorites.factory[15][27] = 0; p->magic = PERSIST_MAGIC; diff --git a/firmware/src/ui.c b/firmware/src/ui.c index a2ba2163..cc772bdc 100644 --- a/firmware/src/ui.c +++ b/firmware/src/ui.c @@ -65,8 +65,10 @@ static uint32_t up_gen; /* bumped on every user bank change #define ui_rec_prefs (favorites.factory[15][28]) #define PREF_REC 0xFF00u /* (menu_items.c MENU_FLAGS: a bit of ui_rec_prefs, << 8) */ #define PREF_SCALE_LEDS (0x40u << 8) -#define PREF_SIX (0x80u << 8) /* (JIANT 0.6.18) MENU > TRACKS 6 HIGH: all six tracks play; clear (the - * default): 4 LOW, T5 and T6 asleep (voice.c trk_live) */ +#define ui_lite (favorites.factory[15][26]) /* (JIANT 0.6.29) bit 0: TRACKS 6 LITE (with PREF_SIX; a byte no engine + * uses, 0 in older settings: 6 HIGH reads as 6 FULL) */ +#define PREF_SIX (0x80u << 8) /* (JIANT 0.6.18) MENU > TRACKS 6 LITE / 6 FULL: all six tracks play; clear + * (the default): 4 FULL, T5 and T6 asleep (voice.c trk_live) */ enum { RP_CLICK, RP_LEVEL, RP_COUNTIN }; static uint32_t rp_get(uint32_t f) /* a field as the MENU steps it: 0..2 */ { @@ -80,7 +82,19 @@ static void rp_apply(void) /* the settings into clic click_lvl = (uint8_t)rp_get(RP_LEVEL); cin_bars = (uint8_t)rp_get(RP_COUNTIN); trk_live = (ui_rec_prefs & (PREF_SIX >> 8)) ? NTRK : 4u; - trks_ui = trk_live == NTRK; /* (GLO > SYSTEM's TRKS shows it) */ + fx_lite = trk_live == NTRK && (ui_lite & 1u); /* (0.6.29) 6 LITE (voice.c) */ + trks_ui = (int16_t)(trk_live != NTRK ? 0 : fx_lite ? 1 : 2); /* (GLO > SYSTEM's TRKS shows it) */ +} +/* (0.6.29) TRACKS as MENU and GLO > SYSTEM step it: 0 4 FULL, 1 6 LITE, 2 6 FULL (PREF_SIX and ui_lite) */ +static uint32_t trks_get(void) +{ + return !(ui_rec_prefs & (PREF_SIX >> 8)) ? 0u : (ui_lite & 1u) ? 1u : 2u; +} +static void trks_put(uint32_t v) +{ + ui_rec_prefs = (uint8_t)(v ? ui_rec_prefs | PREF_SIX >> 8 : ui_rec_prefs & ~(PREF_SIX >> 8)); + ui_lite = v == 1u; + rp_apply(); } static void rp_put(uint32_t f, uint32_t v) { diff --git a/firmware/src/ui_draw.c b/firmware/src/ui_draw.c index 566f456b..b209d3a6 100644 --- a/firmware/src/ui_draw.c +++ b/firmware/src/ui_draw.c @@ -296,6 +296,8 @@ static void draw_head(void) } else if (ui.force) { ui.roll[ROLL_BPM].from[0] = 0; } + if (!centre) + ui.roll[ROLL_BPM].from[0] = 0; /* (0.6.29) a message over it: no roll left to finish later */ fmt_int(b, song.g[G_BPM]); head_geo(&g, b); if (!ui.force && sig == ui.head_sig) { @@ -1131,6 +1133,10 @@ static void draw_columns(void) unit = "%"; } else { param_format(d, *vp, val, &unit); + if (fx_lite && cur_page()->scope == SC_GLOBAL && *vp && /* (0.6.29) 6 LITE swaps it while it sounds */ + ((cur_page()->id[c] == G_RTYPE && REV_LITE[*vp <= 4 ? *vp : 0] != *vp) || + cur_page()->id[c] == G_DPIT || cur_page()->id[c] == G_DSPRY)) + unit = "LITE"; } card_mot_of(vp); /* (a global: never) */ draw_column(c, d->label, val, unit, VAL(c), d->fmt == F_ENUM && d->max < 2 ? -1 : RATIO(d, enum_rank(d, *vp)), diff --git a/firmware/src/ui_input.c b/firmware/src/ui_input.c index 7498df50..6324a8fb 100644 --- a/firmware/src/ui_input.c +++ b/firmware/src/ui_input.c @@ -839,9 +839,8 @@ static void edit_param(uint32_t slot, int32_t steps) v = param_turn(d, *vp, accel(EN_K1 + slot, steps, d->fmt == F_ENUM ? 0 : d->max - d->min)); *vp = (int16_t)v; if (vp == &trks_ui) { /* (0.6.18) GLO > SYSTEM's TRKS: the MENU's setting, saved */ - ui_rec_prefs = (uint8_t)(v ? ui_rec_prefs | PREF_SIX >> 8 : ui_rec_prefs & ~(PREF_SIX >> 8)); - rp_apply(); - ui_message(v ? "6 TRACKS: HIGH CPU" : "4 TRACKS: T5-T6 ASLEEP"); + trks_put(v); + ui_message(v == 2 ? "6 TRACKS: HIGH CPU" : v ? "6 TRACKS: LITE FX" : "4 TRACKS: T5-T6 ASLEEP"); settings_save(); return; } diff --git a/firmware/src/voice.c b/firmware/src/voice.c index 8d32e2a0..45525d74 100644 --- a/firmware/src/voice.c +++ b/firmware/src/voice.c @@ -162,9 +162,16 @@ static void track_lfo_tick(track_t *t) } /* voices the engine may use (POLY and UNISON): its cap, else all of them */ +/* (JIANT 0.6.29) MENU > TRACKS 6 LITE: six tracks, the heavy parts swapped for their light kin while they sound (the + * project keeps its settings): FM6 two voices, the reverb SHIMMER / CLOUD as ROOM, RESO as SPRING, the GRAIN delay + * plain (fx.c). Set by ui.c rp_apply */ +static volatile uint8_t fx_lite; +#define LITE_FM6_POLY 2u static uint32_t trk_nvoice(const track_t *t) { uint32_t c = ENGINES[t->engine]->poly; + if (fx_lite && t->engine == ENGI_FM6 && c > LITE_FM6_POLY) + c = LITE_FM6_POLY; return c && c < NVOICE ? c : NVOICE; } diff --git a/tests/editor_test.c b/tests/editor_test.c index 3c607220..8e67ccc4 100644 --- a/tests/editor_test.c +++ b/tests/editor_test.c @@ -730,7 +730,7 @@ static int menu_protocol(void) {"SPEAKER EQ", "FLAT,LOWCUT,BASS+"}, {"USB LEVEL", "MASTER,FIXED"}, {"USB SERIAL", "ON,OFF"}, {"CLICK", "OFF,REC,ON"}, {"CLICK LEVEL", "LOW,MID,HIGH"}, {"COUNT-IN", "OFF,1 BAR,2 BARS"}, /* (1.1: appended) */ {"RESTORE LAST", "ON,OFF"}, {"SCALE LEDS", "OFF,ON"}, /* (1.2) */ - {"SCREEN OFF", "NEVER,5 MIN,15 MIN,30 MIN,60 MIN"}, {"TRACKS", "4 LOW,6 HIGH"}}; /* (0.6.18) */ + {"SCREEN OFF", "NEVER,5 MIN,15 MIN,30 MIN,60 MIN"}, {"TRACKS", "4 FULL,6 LITE,6 FULL"}}; /* (0.6.18; 0.6.29: + LITE) */ static const int32_t DEF[19] = {-1, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}; /* (COLOR: the default palette) */ static const uint8_t TAB[19] = {0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 2, 2, 2, 3, 1, 0, 2}; /* DISPLAY CONTROL AUDIO SYSTEM */ static const char *const TABN[4] = {"DISPLAY", "CONTROL", "AUDIO", "SYSTEM"}; @@ -810,7 +810,7 @@ static int menu_protocol(void) ok &= menu_set(16, 1) == 3 && (ui_rec_prefs & 0x40u) && click_mode == CLICK_ON && cin_bars == 2u; /* (its own bit) */ ok &= menu_set(17, 0) == 3 && scr_get() == 0u && menu_set(17, 9) == 3 && scr_get() == 4u && /* (clamped) */ menu_set(17, 2) == 3 && scr_get() == 2u && ui_scr == 1u; - ok &= menu_set(18, 1) == 3 && (ui_rec_prefs & 0x80u); /* TRACKS 6 HIGH (0.6.18; rp_apply: the next frame) */ + ok &= menu_set(18, 1) == 3 && (ui_rec_prefs & 0x80u) && ui_lite == 1u && fx_lite; /* TRACKS 6 LITE (0.6.29) */ for (i = 0; i < 19u; i++) { /* MENU_DESC reads them back */ static const int32_t SET[19] = {2, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 0, 2, 0, 2, 1, 1, 2, 1}; menu_desc(i, &it); diff --git a/tests/ui_test.c b/tests/ui_test.c index 91496650..399448e3 100644 --- a/tests/ui_test.c +++ b/tests/ui_test.c @@ -1860,7 +1860,7 @@ static int test_roll(void) * roll, nothing hot) the cards are pixel-identical to a forced redraw (what a page change would show). */ static int test_soak_cards(void) { - uint32_t seed = 63u, f, quiet = 0, old = 0, stale = 0, cmp = 0, c; + uint32_t seed = 63u, f, quiet = 0, was_hot, old = 0, stale = 0, cmp = 0, c; static uint16_t shot[240 * CARD_H]; #define SOAK_RND(n) ((seed = seed * 1103515245u + 12345u) >> 8) % (n) ui_power_on(); @@ -1890,13 +1890,14 @@ static int test_soak_cards(void) host_ticks += 16000u + SOAK_RND(3u) * 4000u; ui_input(); if (song.playing || transport_req) events_block(FS * 16u / 1000u); + was_hot = ui.hot_t; /* (its last frame still drawn hot: the next one redraws) */ ui_draw(); quiet++; if (ui.menu || ui.layer || ui.confirm || name_on() || ui.uboot) continue; /* (the cards are not drawn) */ for (c = 0; c < 5u; c++) old += ui.roll[c].from[0] && (uint8_t)(ui.frame - ui.roll[c].t0) >= ROLL_FRAMES; - if (quiet > 45u && !ui.hot_t && !ui.bpm_t && !ui.msg_t && SOAK_RND(8u) == 0u) { + if (quiet > 45u && !was_hot && !ui.bpm_t && !ui.msg_t && SOAK_RND(8u) == 0u) { for (c = 0; c < 5u && !ui.roll[c].from[0]; c++) {} if (c < 5u) continue; @@ -6783,8 +6784,9 @@ static int test_click_menu(void) turn(EN_K4, 1); ok &= cin_bars == 1u; turn(EN_K4, 1); ok &= cin_bars == 2u; turn(EN_PRESET, 1); ok &= ui.menu_sel == MI_TRACKS; - turn(EN_K1, -1); frame(); ok &= trk_live == 4u && !(ui_rec_prefs & 0x80u); /* (0.6.18) TRACKS 4 LOW */ - turn(EN_K1, 1); frame(); ok &= trk_live == NTRK && (ui_rec_prefs & 0x80u); /* 6 HIGH */ + turn(EN_K1, -1); turn(EN_K1, -1); frame(); ok &= trk_live == 4u && !(ui_rec_prefs & 0x80u) && !fx_lite; /* 4 FULL */ + turn(EN_K1, 1); frame(); ok &= trk_live == NTRK && (ui_rec_prefs & 0x80u) && fx_lite; /* (0.6.29) 6 LITE */ + turn(EN_K1, 1); frame(); ok &= trk_live == NTRK && (ui_rec_prefs & 0x80u) && !fx_lite; /* 6 FULL */ turn(EN_PRESET, 1); ok &= ui.menu_sel == MI_LOWCUT; /* (wraps within AUDIO) */ press(B_HOME); ok &= !ui.menu; @@ -6805,7 +6807,7 @@ static int test_click_menu(void) trk_all_off(&trk[4]); events_block(CTL); song.sel = (uint8_t)sel; ui.msg_t = 0; ui.msg[0] = ui.msg2[0] = 0; frame(); - bad += check("TRACKS 4 LOW: T5 asleep (no note, no voice); 6 HIGH wakes it", ok); + bad += check("TRACKS 4 FULL: T5 asleep (no note, no voice); 6 wakes it", ok); ui_rec_prefs &= (uint8_t)~0x80u; frame(); /* (0.6.28) a note sent to it: the screen says why it is silent */ ui.msg_t = 0; ui.msg[0] = 0; fm1_ms += 5000u; trk_note_on(&trk[4], 60, 100); frame(); @@ -6816,15 +6818,41 @@ static int test_click_menu(void) } { /* (0.6.19) GLO > SYSTEM's TRKS (KNOB 2): the same setting, both ways */ go_title("SYSTEM"); - turn(EN_K2, -1); frame(); + turn(EN_K2, -1); turn(EN_K2, -1); frame(); ok = trk_live == 4u && !(ui_rec_prefs & 0x80u) && trks_ui == 0; turn(EN_K2, 1); frame(); - ok &= trk_live == NTRK && (ui_rec_prefs & 0x80u) && trks_ui == 1; + ok &= trk_live == NTRK && (ui_rec_prefs & 0x80u) && trks_ui == 1 && fx_lite && msg_is("6 TRACKS: LITE FX"); + turn(EN_K2, 1); frame(); + ok &= trk_live == NTRK && trks_ui == 2 && !fx_lite; ui_rec_prefs &= (uint8_t)~0x80u; frame(); ok &= trks_ui == 0; /* (MENU's change shown there) */ ui_rec_prefs |= 0x80u; frame(); ui.msg_t = 0; ui.msg[0] = 0; press(B_HOME); frame(); - bad += check("GLO > SYSTEM: KNOB 2 TRKS 4 LOW / 6 HIGH, the MENU's setting both ways", ok); + bad += check("GLO > SYSTEM: KNOB 2 TRKS 4 FULL / 6 LITE / 6 FULL, the MENU's setting both ways", ok); + } + { /* (0.6.29) 6 LITE: the heavy parts swapped while they sound, the project's values kept */ + int16_t rt0 = song.g[G_RTYPE], dp0 = song.g[G_DPIT]; + int32_t o[2u * CTL]; + track_t ft = trk[0]; + trks_put(1u); + ok = fx_lite; + song.g[G_RTYPE] = 2; mix_block(o, CTL); mix_block(o, CTL); + ok &= fx.rtype == 0u && song.g[G_RTYPE] == 2; /* SHIMMER sounds as ROOM */ + song.g[G_RTYPE] = 3; mix_block(o, CTL); mix_block(o, CTL); + ok &= fx.rtype == 1u; /* RESO as SPRING */ + song.g[G_RTYPE] = 4; mix_block(o, CTL); mix_block(o, CTL); + ok &= fx.rtype == 0u; /* CLOUD as ROOM */ + ft.engine = ENGI_FM6; + ok &= trk_nvoice(&ft) == LITE_FM6_POLY; /* FM6: two voices */ + song.g[G_RTYPE] = 2; go_title("REVERB"); frame(); + ok &= strstr(ui.col[0], "|SHIMR|LITE") != 0; /* the card says it is swapped */ + trks_put(2u); + ok &= !fx_lite && trk_nvoice(&ft) == FM6_POLY; + song.g[G_RTYPE] = 2; mix_block(o, CTL); mix_block(o, CTL); + ok &= fx.rtype == 2u; /* 6 FULL: SHIMMER again */ + song.g[G_RTYPE] = rt0; song.g[G_DPIT] = dp0; mix_block(o, CTL); mix_block(o, CTL); + press(B_HOME); frame(); + bad += check("6 LITE: SHIMMER / CLOUD sound as ROOM, RESO as SPRING, FM6 two voices, TYPE says LITE; 6 FULL as saved", ok); } { persist_t p; diff --git a/tools/gen_cheatsheets.py b/tools/gen_cheatsheets.py index fd090171..0835842f 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.28' +VERSION = 'v0.6.29' HEAT = ['#22d3ee', '#3b82f6', '#8b5cf6', '#d946ef', '#ef4444', '#ff7a00', '#facc15', '#f4f1ea'] diff --git a/tools/video/capture.c b/tools/video/capture.c index 0954f53a..eda19880 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.28" +#define FELUCCA_VERSION "v0.6.29" #include "ui_test.c" #define FPS 30u diff --git a/tools/video/compose.py b/tools/video/compose.py index 93a413e3..f6225eb4 100644 --- a/tools/video/compose.py +++ b/tools/video/compose.py @@ -101,7 +101,7 @@ def thermal(t, e): sig = Image.open(ROOT / 'docs/cheatsheet/signature.png').convert('RGB') brand = text_layer(['JIANT FM'], F_SMALL, WHITE) -tag = text_layer(['M-VAVE FM-1 · v0.6.28'], F_SMALL, DIM) +tag = text_layer(['M-VAVE FM-1 · v0.6.29'], F_SMALL, DIM) def pill(txt): # the tag: dark letters on an orange plate L = text_layer([txt], F_SMALL, (14, 8, 20)) p_ = Image.new('RGBA', (L.width + 28, L.height + 6))