Repository navigation
Releases
bento_enhanced v4.47: clean start on every boot (removes the cause of BE4.46's boot loop)
BE4.47 removes the cause of the boot loop BE4.46 could get into (found and reproduced in the emulator). Every boot now starts from scratch: nothing of the mod's is carried over in RAM from an earlier session. Checked on hardware: no loop or reset has been seen on BE4.47 (one unit, two sessions); one open item, stock's crash counter, is listed under Known limits below. Everything a project does is unchanged from BE4.46, and BE4.46 and BE4.47 open each other's projects. If you are on BE4.46, update.
Patch in your browser: romanjeff.github.io/bento_enhanced (v4.47 is the default). No install; your stock files never leave your computer, and the page checks the result against the hash below.
Or build it yourself: follow BUILDING.md. You need your own copy of the official Bento firmware 1.6.8 (bento1.bin and bento2.bin), downloaded from 1010music. No firmware is attached here or included in the repository. The kit you make holds 1010music's firmware: keep it to yourself, never share it.
Expected result: a default build's 01_TEST_FIRMWARE/bento1.bin has
SHA-256 538cf2187c439bb0e9db7091314bb9660febd2ded6b39bda0ec1cf890ddaf294
(make_kit prints MATCH; the web patcher shows the same hash). The stock 1.6.8 inputs it checks are bento1.bin cb8f830ec3ab45a92d120ae9688e380573b24ad88710a3ad3d21af6ffb3c8d0d and bento2.bin 8100906327093463fb58f531ee28583423a9881ea3a7d5b77874a7700735e99d.
Never touches the bootloader: to go back, install the stock pair from the kit's 03_RESTORE_STOCK/ the normal way (long-press power, then REC). Projects that use the mod's features are not supported on stock firmware: they usually open, but may not play correctly. Not affiliated with 1010music; at your own risk.
Plan, measurements and review: docs/plan-v4.47-clean-start.md. Device checklist: docs/checklist-v4.47.txt,
passed on hardware (2026-11-18): the unit boots, sessions on two projects played and saved, and the black-box logs
were recreated with the BE4.47 header.
The symptom, and how to get out of it
On BE4.46 the reset loop looked like this: the unit lights up briefly, resets, and repeats, never reaching the boot
screen. It happened with or without USB and with the card out. Stock 1.6.8 booted.
Recovery (BE4.46): unplug USB, hold the power button and keep holding past the bootloader screen until the
Bento switches off, leave it off with USB unplugged for a while, then power on (confirmed on the test unit: off with USB
connected kept looping, off with USB unplugged booted). If it still loops: from the bootloader screen (REC) install
stock 1.6.8 (the kit's 03_RESTORE_STOCK/), boot stock once, then install the BE firmware again.
What changed
- Every boot starts clean. At reset, before stock's own start-up code goes on, the audio core zeroes all of our
internal RAM (12.8 KB). Nothing of ours is reused from an earlier run, whatever magic words or counters it holds. Our
SDRAM areas start over the same way at their first use in a boot. What persists from one session to the next is the
project file: save the project. - Why that should end the loop (the cause, reproduced in the emulator). RAM keeps its contents across a reset
and in the "off on USB" state. BE4.46 decided "is this a new boot?" from that RAM. A run that reset early in its boot left
memory that looked like the new boot's own. The black box then kept the last run's buffers and wrote its log text into
memory that stock had just been given for its own objects. Boots are deterministic, so every reset repeated it, and
only a power cut (which loses the RAM) ended it. The emulator reproduces the corruption on the v4.46 image and shows it
gone on 4.47. The device's crash records name stock's audio-core instruction0x080659e8; how the corruption
leads there is not yet decoded. - The clock and the backup registers decide nothing. The RTC date and time, and the backup registers (where stock
keeps its crash record), can hold anything after the clock battery drains. They are only printed in the logs, as hex.
BE4.46 also compared stock's crash count during a session; that is gone. - A project loaded at boot keeps its mod settings. This was found in the review. When the boot-time auto-load ran
before the UI's first pass, its AT curves, AT Rec / AT Out settings and External / Note Mod settings could be dropped.
Earlier versions could do this on any cold boot. Now they stay. - Log files start over when missing. If BENTO_SAVES.log or BENTO_CRASHES.log has been deleted (or is empty, as a
full card leaves it), the next project save creates it again. It starts with this boot's header or line. - The logs are still written only when you save a project, never at boot, as in every version since v3.21. Card
writes outside stock's own save were what damaged cards in v3.19..v3.21. A boot without a save writes nothing. - Version: BE4.47 on the boot screen.
What the logs no longer show
All of these were the next boot printing what the last run had left in RAM. That RAM is now zeroed at reset, so there
is nothing left to print:
- the header's "previous boot" line, and the "as found at boot" figures;
- the last run's counters and its last trace records;
- the audio stall snapshot, the audio core's stall record and profile, and the UI core's watchdog profile, as printed
at the next boot. They are still captured during a boot, and the worst gaps still appear in every save; - the boot count: every header says "boot gen 1";
- the mid-session "NEW CRASH RECORD" alarm.
Still there: stock's own crash record (cause, pc, the backup registers), printed in every BENTO_CRASHES.log line and
in every save. It names what caused the last reset.
Compatibility
- Projects are saved exactly as on BE4.46; BE4.46 opens BE4.47 projects and the other way round.
- Projects that use the mod's features are not supported on stock firmware. They usually open, but they may not play
correctly: the mod's features (AT curves, conditions, FM rows, External / Note Mod and the rest) do nothing there, and
stock may drop some of them when it saves.
Known limits
- Once per boot, at the audio core's first traced event (usually the first note), it zeroes 41 KB of its own
memory. This was estimated at 0.1..0.2 ms and not measured. With a heavy project already playing, that may make one
audio block late, once. On the hardware test no click was heard at the first note
(checklist item 7; Jeff, 2026-11-18). - Open item: stock's crash counter. Stock's own crash count (in its backup registers) rose from 525 to 532
between the last BE4.46 log and the first BE4.47 boot, at the same audio-core instruction (0x080659e8) as the BE4.46
reset loop. The logs show that count only when a project is saved, so when those resets happened is not known
yet; they may be the BE4.46 loop itself, before the update. No crash or reboot has been seen on BE4.47. A decode
of that instruction is in progress; if it points at something still in BE4.47, a fix follows. - 1.6.1 builds (legacy) do not get the clean start; nothing ships on 1.6.1.
bento_enhanced v4.46: synth engine feature complete (Analog / Wavetable / FM)
Warning
Known issue: boot loop. Use v4.47 instead of this release: it removes the cause. BE4.46 can fail to boot: the screen lights up briefly, the Bento resets and tries again, and the boot screen never appears. It happens with or without an SD card, and the cause found is state left in RAM by an earlier session: being "off" while USB is connected keeps the RAM powered. BE4.47 starts every boot clean (no loop seen on it since), and its projects are the same as BE4.46's. No damage to projects or SD cards is known. To recover a Bento that loops on BE4.46:
- Unplug USB. Hold the power button and keep holding past the bootloader screen until the Bento switches off. Leave it off with USB unplugged for a while, then power on. This worked on our test unit.
- If it still loops: hold power to reach the bootloader screen, press REC and install stock 1.6.8 (the kit's
03_RESTORE_STOCK/), boot stock once.
Then install BE4.47 (build it, or use the web patcher).
The Analog / Wavetable / FM synth engine is feature complete. FM on Analog and Wavetable oscillators, a per-oscillator FM envelope, the FM amounts as Mod Matrix destinations and piano-roll lanes, and FM Env 1 / 2 as modulation sources. Checked on hardware.
Build it yourself: follow BUILDING.md. You need your own copy of the official Bento firmware 1.6.8 (bento1.bin and bento2.bin), downloaded from 1010music. No firmware is attached here or included in the repository. The kit you build holds 1010music's firmware: keep it to yourself, never share it.
Expected result: a default build's 01_TEST_FIRMWARE/bento1.bin has
SHA-256 d09bcff574e3e13225626fe543e6b9d43f58f0437536f277b6319666ca1430b5
(make_kit prints MATCH). The stock 1.6.8 inputs it checks are bento1.bin cb8f830ec3ab45a92d120ae9688e380573b24ad88710a3ad3d21af6ffb3c8d0d and bento2.bin 8100906327093463fb58f531ee28583423a9881ea3a7d5b77874a7700735e99d.
Never touches the bootloader: to go back, install the stock pair from the kit's 03_RESTORE_STOCK/ the normal way (long-press power, then REC). Projects that use the mod's features are not supported on stock firmware: they usually open, but may not play correctly. Not affiliated with 1010music; at your own risk.
BE4.46 lets the Mod Matrix move the FM amounts, gives the piano roll lanes on them, and adds each oscillator's FM envelope
as a modulation source. It builds on BE4.44 (FM on Wavetable and Analog oscillators) and combines two lanes that were
built and checked apart:
- FM amounts as destinations, and lanes on them (built as BE4.45; its kit was never released). Plan and
measurements:docs/plan-fm-targets.md(X1, X2, X3 and their reviews). - FM Env 1 / FM Env 2 as sources (built as a separate 4.46 kit,
-envsrc). Plan and measurements:
docs/feasibility-fm-env-sources.md(S1, S2 and their reviews).
Device checklist: docs/checklist-v4.46.txt, passed on hardware (2026-11-18). CPU figures below were measured in the emulator.
What it does
FM amounts as Mod Matrix destinations
-
Three new rows on a Wavetable track's Mod Matrix page:
- OSC1: Sub FM, after OSC1: Position;
- OSC2: FM 1>2 and OSC2: Sub FM, after OSC2: Position.
They work on Analog and on Wavetable oscillators, from any source of the list.
-
A routing moves the knob's travel. The depth played is
knob + amount x source, in knob units, held to 0..100 %,
then the usual depth curve. Several routings on one row add up. With the knob at 0, a routing alone turns FM on. -
OSC2: Sub FM plays only routed. It has had no knob since BE4.43. Routed, the sub modulates OSC2 next to FM 1>2.
-
The FM envelope still applies. FM Atk / FM Dec shape the routed depth as they shape the knob's.
-
Smooth. The depth follows its source once per audio block (2.7 ms) and ramps across each block. An LFO above
about 100 Hz on a depth aliases; the audio-rate FM sources are for that. -
The oscillator rows read "OSC1: ..." / "OSC2: ...". Stock and BE4.44 showed "WT1: ..." / "WT2: ..." on this page.
-
Piano-roll lanes. The lanes' destination list offers OSC1: Sub FM, OSC2: FM 1>2 and OSC2: Sub FM, each on its own
oscillator. A lane is saved and played as a routing from seq1..seq4, like any lane. -
Black box: the ANALOG line in BENTO_SAVES.log has
x2lost=, the FM routings the M7 could not keep (more routed
Wavetable roots than it has room for: 8). It should read 0.
FM Env 1 / FM Env 2 as sources
- Two more sources, right after Envelope 2: FM Env 1 (OSC1's FM envelope, its FM Atk / FM Dec) and FM Env 2 (OSC2's).
The Source list is now: [None], Velocity, Pressure, Envelope 1, Envelope 2, FM Env 1, FM Env 2, LFO 1, LFO 2,
Mod Seq, Key, Mod Wheel, Macro X, Macro Y, Auto A..D. - Per voice, one-shot, restarted at every note, like two extra envelopes, on Analog and Wavetable oscillators.
- It runs without any FM. The envelope runs whenever FM Atk / FM Dec is set, at any FM amount.
- The value is the FM envelope's own (0..1), at the start of each audio block. An unset envelope (FM Atk 0, FM Dec
Inf) gives a constant 1, as the FM depth does. A voice's first FM Env routing, made mid-note, reads 1 (the unset value)
for one block, not 0 (kept on purpose). - It moves once per audio block (2.7 ms), as stock's envelopes do; a Pitch routing from FM Env steps at that rate
too. - Granular and the other track types keep stock's source list.
The two together
- FM Env 1 / 2 routed to an FM row move that FM amount with the FM envelope's value of the same block: offline, bit
for bit the knob turned toknob + amount x FM Envevery block. The FM envelope then acts twice (it moves the depth
and still shapes it).
With nothing routed to the new rows and no FM Env routing, every track sounds exactly as on BE4.44 (offline: output and
voice state byte for byte).
Projects and compatibility
- Projects that use the mod's features are not supported on stock firmware: they usually open, but may not play
correctly. In detail: - An FM-row routing is saved as stock saves any routing, with the destination
bento_subfm/bento_fm12.- BE4.44 loads it and keeps it (it does nothing there).
- Stock 1.6.8 loads it as a routing to nothing (inert) and drops it when it saves: a project saved on stock comes
back to BE4.46 without it.
- An FM Env routing is a stock routing:
src="env3"(FM Env 1) orsrc="lfo3"(FM Env 2), stock's Envelope 3 / LFO 3
ids, which a Wavetable voice does not have on stock.- Stock 1.6.8 and BE4.44 open it and keep it, but play nothing from it. Their page shows the slot as [None] (or
"Envelope 3" / "LFO 3" after a one-row refresh). Saving there keeps it. - Editing that slot there removes it (stock's page sends it back with source None on an amount edit). Back on
BE4.46, an untouched routing works again.
- Stock 1.6.8 and BE4.44 open it and keep it, but play nothing from it. Their page shows the slot as [None] (or
- BE4.46 opens every BE4.44 project unchanged.
- Changing a track's instrument type starts a new matrix (stock's instrument replace makes a new track), so an FM Env
routing never turns into a real Envelope 3 / LFO 3 routing of another engine.
Known limits
- CPU, OSC2: Sub FM routed adds a whole second FM term to OSC2. On the heaviest voice (both oscillators Wavetable, full
FM, Position moving every block) that is 37.3k instructions a voice-block from velocity or a lane, 37.35k from FM Env 2,
37.42k from FM Env 2 with both FM envelopes running, and at worst 37.57k (every matrix slot used, routings on 8
tracks, envelopes running): 5.6 % to 6.4 % over BE4.44's heaviest voice (35,309). A lane on OSC2: Sub FM costs the same.
Accepted as a known limit (Jeff, 2026-11-17): it only matters with all 8 voices of the heaviest Wavetable voice
sounding, where voice stealing and glitches are normal anyway. Checklist section 8 still measures it on the device. - CPU, the other two rows stay within the ceiling on one routed track (35.15k from velocity, 35.21k from FM Env).
In the worst layout (every matrix slot used, routings on 8 tracks) with the FM envelopes running they are up to 83
instructions (0.24 %) over it: 35.39k from FM Env, 35.32k from velocity (so not from FM Env alone). Same
8-voice-only case as above; accepted as a known limit (Jeff, 2026-11-18): an edge case. - seq1..seq4 routed to the same FM row share one slot, as on every stock destination: the last one wins. Removing one of
two such routings silences the other until the project is reloaded (stock's rule too). - A lane whose routing is edited on the Mod Matrix page to another source keeps playing next to it, even after that
routing is removed, until the project is reloaded. Stock does the same on its own destinations. - A Wavetable OSC2's Sub FM routing starts from 0 even if an old project stored a value for it. Accepted (Jeff,
2026-11-17): no control on the page sets that value. - The FM-row routings are kept in the M7's own memory, set up when it starts. A project loaded before that point would
play them as unrouted until it is loaded again (not seen offline; the checklist has a cold-boot check). - FM Env routed to an Envelope or LFO parameter acts one block late (stock has the same lag between its own sources).
- Source names: offline, only the Mod Matrix page's own name call was found; any other screen that names a source through
another path may show "Envelope 3" / "LFO 3" (checklist section 2 asks).
Measured (emulator)
- Nothing routed: BE4.44's output, voice state and FM stats byte for byte (X2Identity, 8 cases, all type pairs);
P3Identity (against BE4.40, 48 cases) worst 1.0179 (BE4.45: 1.0177), under its 1.95 % stop line. - FM rows: routed = the...
bento_enhanced v4.44 (stock 1.6.8)
Build it yourself: follow BUILDING.md. You need your own copy of the official Bento firmware 1.6.8 (bento1.bin and bento2.bin), downloaded from 1010music. No firmware is attached here or included in the repository. The kit you build holds 1010music's firmware: keep it to yourself, never share it.
Expected result: a default build's 01_TEST_FIRMWARE/bento1.bin has
SHA-256 fc1c3232a27036d49a1ea82af3988a6b14865e0b59b0c3882978e38accab1cff
(make_kit prints MATCH). The stock 1.6.8 inputs it checks are bento1.bin cb8f830ec3ab45a92d120ae9688e380573b24ad88710a3ad3d21af6ffb3c8d0d and bento2.bin 8100906327093463fb58f531ee28583423a9881ea3a7d5b77874a7700735e99d.
Never touches the bootloader: to go back, install the stock pair from the kit's 03_RESTORE_STOCK/ the normal way (long-press power, then REC). Projects that use the mod's features are not supported on stock firmware: they usually open, but may not play correctly. Not affiliated with 1010music; at your own risk.
BE4.44 gives Wavetable oscillators the same FM as Analog ones. It builds on BE4.43 (one FM amount per oscillator plus its
FM envelope). Plan and measurements: docs/plan-wt-fm.md. Device checklist: docs/checklist-v4.44.txt.
What it does
-
Sub FM on a Wavetable OSC1. The sub oscillator modulates OSC1's pitch, the same way it modulates an Analog OSC1.
-
FM 1>2 into OSC2, from either OSC1 type. OSC1 modulates OSC2's pitch for all four type combinations:
- Analog to Analog (as in BE4.43);
- Analog to Wavetable;
- Wavetable to Wavetable;
- Wavetable to Analog.
-
The same FM as Analog:
- through-zero linear FM;
- the same depth curve (the knob's 0..100 % gives index 0..16, steeper at the top);
- the same FM Atk / FM Dec envelope, restarted at every note, per voice.
An FM amount of 0 plays the oscillator exactly as stock does.
-
The modulator is OSC1 before its Level. Turning OSC1's Level to 0 mutes OSC1, but OSC2 still hears it, so you can
hear the FM tone on its own. This works the same with a Wavetable OSC1. -
Anti-aliasing under FM. A Wavetable oscillator under heavy FM reads a smoother copy of its table (one mip level
coarser), changed with a crossfade, so it stays clean.- Light FM keeps the note's own level: up to about a third of the knob, nothing gets duller.
- The top of the knob trades some aliasing for brightness. This is deliberate: the "crazy and interesting" end.
- Two alternate kits move that trade-off. They are the same firmware with one constant changed:
-mip1.5, boot labelBEM1.5: a little cleaner and a little darker;-mipoff, boot labelBEMOFF: never darker than the note's own level, with more aliasing at the top.
-
A table's DC is kept out of FM 1>2. A frame whose waveform sits off centre (a narrow pulse, a half-wave shape) would
otherwise detune OSC2 at any FM 1>2 amount, and even make it run backwards. Each frame's average is removed from the
modulator, so OSC2 stays in tune. As on Analog, OSC1's own Sub FM can still move OSC2's pitch: that is part of the
FM sound.
The controls
Knob numbers are the same as Analog's. Changing an oscillator's Type leaves its FM knobs where they are.
| Row | Knobs 1..8 |
|---|---|
| OSC1, Wavetable | Level, Pitch, Position, Type, -, Sub FM, FM Atk, FM Dec |
| OSC2, Wavetable | Level, Pitch, Position, Type, -, FM 1>2, FM Atk, FM Dec |
| OSC1, Analog (unchanged) | Level, Pitch, Shape, Type, Glide, Sub FM, FM Atk, FM Dec |
| OSC2, Analog | Level, Pitch, Shape, Type, Sync 1>2, FM 1>2, FM Atk, FM Dec |
OSC2's knob 6 is now FM 1>2 for every OSC1 type (see the behaviour changes below).
Behaviour changes from BE4.43
- An Analog OSC2 next to a Wavetable OSC1.
-
Knob 6 is now FM 1>2. BE4.43 showed OSC2's Sub FM there.
-
OSC2's Sub FM no longer plays, whatever OSC1's type. Its value is kept and saved.
-
In a BE4.43 project with this layout:
- a Sub FM set on that OSC2 stops playing;
- an FM 1>2 value that OSC2 still held from earlier now plays. BE4.43 kept it but hid it.
To clear a value you don't want, turn OSC2's FM 1>2 (knob 6) to 0 and save.
-
- Mixed sync (Wavetable OSC1 as master, Analog OSC2 synced to it, Sync 1>2 on):
- OSC1's Sub FM plays as 0 while OSC2 is synced to it. The value is kept and comes back when Sync is off.
- FM 1>2 keeps working under sync, and sync stays sample-accurate, as in BE4.43. While synced, OSC1 plays stock's own
playback, so the slave's copy of its phase stays exact. A once-per-block re-alignment to OSC1's real phase is only a
safety net (for example the block right after Sync is turned on mid-note).
- A Wavetable OSC1 at Level 0 that feeds FM 1>2 keeps running so OSC2 still has its modulator. You can't hear it.
Its playback position then differs from where stock's would be when you turn it back up. The return is smooth: Level
ramps in as usual.
Projects
- Projects that use the mod's features are not supported on stock firmware: they usually open,
but may not play correctly. There are no new project keys:- stock 1.6.8 ignores the FM values;
- BE4.43 keeps them, but plays Wavetable oscillators as stock.
- BE4.44 opens BE4.43 projects. The only change is the Analog OSC2 next to a Wavetable OSC1 case above.
CPU
Offline instruction counts per voice and audio block (note 60 and full FM depth unless the row says otherwise). The
device's figure is the "DSP nn%" on OSC1's title.
| Voice | Median | Heaviest block |
|---|---|---|
| Stock Wavetable voice | 14.2k | |
| Analog full FM voice, BE4.43's heaviest FM voice | 28.9k | |
| Full Wavetable FM voice (Sub FM on OSC1, FM 1>2 Wavetable to Wavetable) | 27.4k | |
| The same with Position moving every block (an LFO on Position) | 34.5k | |
| Low notes (C0..C1), light FM (Sub FM 5..30 %, FM 1>2 30 %), Position moving every block | 34.8k | 39.4k |
| The same with FM Atk on both oscillators | 43.9k | |
| Wavetable OSC1 feeding an Analog OSC2 | 19.9k | |
| Wavetable OSC1 feeding a Wavetable OSC2 | 19.2k |
- The heaviest steady case is a low note with light FM and an LFO on Position: every block reads a new frame at a fine
level. Its heaviest block (39.4k) is the one where OSC2 settles its level after the note starts. - The FM Atk case's heaviest blocks are the few where a rising FM depth makes an oscillator change its mip level.
- The first block of a note no longer crossfades the mip level, so it costs about the same as the blocks after it.
Known limits
- At high notes under heavy FM, the reader is already on its coarsest level and aliases, as stock does above about 4.5 kHz.
- The FM envelope and the mip choice move once per audio block (2.7 ms).
- A note whose FM envelope has decayed to 0 still costs the FM's CPU.