Skip to content

Releases

OpenPocket v42

Choose a tag to compare

@isod89 isod89 released this 10 Nov 23:26
995c84b

OpenPocket v42

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html
Without internet: INSTALL-OFFLINE.bat in the source.

Packages: PocketX_942.fwsc (Donner Pocket X), BlackBox_942.fwsc (M-VAVE BlackBox).
Source: https://github.com/isod89/openpocket/tree/v42

What's new in OpenPocket v42: a new editor, reworked pedal controls, USB audio

v42 brings together four pull requests from the community. Thank you, Vince Speelman
(VinSpee)
, for #23, #24 and #25, and Ivan Shevchuk
(Testing7B)
, for #26.

The sound engine is unchanged from v41: every output sample is the same.

1. The pedal's controls and screens (pull request #24)

A design review of the pedal's interface. SOUNDS-AND-CONTROLS.md has the full list.

  • Both footswitches open the tuner, as the panel always said. The first one still changes the preset at once; the
    second one, within about 0.15 s, changes it back and opens the tuner.
  • PUSH on PLAY opens the block at once. It used to wait 350 ms for a possible second click. A double click still
    starts MOVE.
  • An unsaved edit is kept when a footswitch moves on: come back to that preset and the edit is there, still marked
    EDITED. One edit is kept at a time.
  • The preset list: HOME on PLAY lists the presets by name; the knob browses without loading, PUSH loads.
  • NAM MODEL and USER IR move one model a click, skip the empty slots and show their place (MODEL 6/14). Presets do
    not change.
  • On a block page the knob goes down the page in the order drawn: ON, the model, the settings. FX steps through its
    blocks in the order of the preset's chain.
  • The corner reads DSP 42%, amber above 80 %, red when a block ran late. The tuner page shows the tuner only, with an
    arrow toward in tune.
  • Diagnostics pages (keep holding HOME past the tuner): bars and meters for the load, each core, the costliest blocks,
    the inputs and the battery, every figure written beside its picture. Take a photo of both pages for a bug report.
  • Smaller things: a copy saved to another slot keeps its name (the page says so), RESTORE FACTORY says PUSH: RESTORE
    and does nothing on a factory sound, SYN's page is SYNTH, USER IR's cuts show HZ, a failed start or update says what
    to do first.
  • The installer: rescue mode moves to the advanced section, and a finished install names the version and links to the
    editor and these notes.
  • v41's CORE 2 OFF line stays on the MIDI page: it says when the second core was set aside, and why.

2. The pedal as a USB sound card (pull request #25)

With the new USB AUDIO setting on (the MIDI page, hold FX; or the editor's MIDI section), a computer sees a USB sound
card named OpenPocket beside the MIDI port, with no driver: stereo, 16 bit, 44.1 kHz, both ways.

  • Recorded: the pedal's sound before MASTER, so the knob does not change a recording.
  • Played: what the computer plays comes out of the pedal's output, at MASTER's level. It is not in the recording.
  • A change takes the pedal off USB for a second; it comes back as the other device.
  • Off by default. Off, the pedal is the same USB device as before, with the same sound and DSP load. On, it costs
    about 1 % of the DSP.
  • Tried on a BlackBox with macOS 26 only (10 minutes without a gap, no frame lost). Windows, iOS, Linux and older macOS
    are still to be tried. USB-AUDIO.md has the details.

3. The web editor (pull request #23)

The web editor is now four sections:

  • Presets show what each one is made of, can be searched, copied and moved, and every write says what it replaces
    and can be undone.
  • Sound shows the chain in one line, uses lists and buttons for settings with named values, works from the keyboard,
    adds Compare, and keeps the DSP load in the top bar.
  • Models takes several files at once, shows which presets use a slot, and renames or moves a capture with its
    presets following. TONE3000 has its own panel with your favorites and the trending list.
  • MIDI is new: the pedal's Control Change numbers named for the current preset; controls learned from another MIDI
    device, which the page passes on while it is open; a monitor; and the USB AUDIO setting.

4. BlackBox V21: check and restore the factory sounds (pull request #26)

The official BlackBox V21 download installs the firmware but contains no sound bank, and OpenPocket uses part of the
flash where the stock sound bank lives. After going back to V21, the installer can now verify the factory sounds:
all 20 amps, 20 cabinets and 80 presets, over MIDI. If they are missing, RESCUE.md
has a recovery tool for macOS that restores only the sound bank from the M-EFCS app's own files, after a full flash backup.

Please try on the pedal

Not yet tried on this exact build:

  • the new gestures: both footswitches for the tuner, PUSH opening at once, the double click for MOVE, holding HOME;
  • the preset list, the kept edit, the diagnostics pages on the real screen;
  • USB audio on Windows;
  • the new editor with real USB (reading all 52 presets) and a real TONE3000 sign-in.

For developers

  • Editor protocol 4: one new command, USB_AUDIO (28). Editors for protocols 1 to 3 work as before.
  • The simulator's API gains press/fx_long and press/feet, and the modes midi, list and diag.
  • The editor's code is in modules (editor.js, edcore.js, edpresets.js, edsound.js, edmodels.js, edmidi.js,
    pxmidi.js, pxlib.js), with tests/test_editor_logic.mjs.
  • The Bluetooth test image (node tools/op.mjs ble) does not link: it was already about 1.2 KB over its flash region in
    v41, and the new screens add about 6 KB. The release image is not affected.

OpenPocket v41

Choose a tag to compare

@isod89 isod89 released this 10 Nov 16:10
69561af

OpenPocket v41

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html
Without internet: INSTALL-OFFLINE.bat in the source.

Packages: PocketX_941.fwsc (Donner Pocket X), BlackBox_941.fwsc (M-VAVE BlackBox).
Source: https://github.com/isod89/openpocket/tree/v41

What's new in OpenPocket v41: NAM presets much lighter, every chain fits

Most of v41 is VinSpee's work (pull request #22, first reviewed step by
step in VinSpee/openpocket #16, #18, #19 and #21). Thank you, Vince.

Every output sample is the same as v40's: VinSpee checked it bit for bit on the PC (every block, every type, every factory
preset) and on the pedal at boot. Nothing sounds different. The pedal just has much more room.

1. NAM presets use much less of the processor

  • Before: the two cores split each block of the NAM network by frames. They ran every layer on half the frames,
    the second core waited for the first at every layer, and the end of the network ran on one core.
  • Now: they split it by layers. The first core runs the first layers, the second core the rest, and neither waits
    for the other at each layer. The second core keeps working through the audio interrupts, and the split between the
    cores is set in one step from what is measured.
  • New hand-written routines for the network (rdm, post4, post5), and six effect blocks (gate, compressor, EQ, two
    pitch types, two synth types, the cabinet) now work on a whole sub-block at a time.

Measured on a pedal, all 24 factory presets:

v40 v41
NAM presets (DSP load) 68 to 82 % about 51 to 63 % (on average 18 %, then 6 to 11 % lower again)
ORGAN 82 % 63 %
TIGHT METAL 68 % 51 %

A NAM amp with all 12 blocks on and every knob at 100 now runs. On v40, four to seven of eleven such worst-case
chains switched the effects off (BYP). On v41 none do: they run at 71 to 83 % on average, at most 86 %, against the
93 % at which the safety bypass engages.

2. More free memory

24 KB of RAM freed (27 KB free instead of 3 KB), with the same features: smaller tuner buffers, buffers moved to unused
memory, the preset store and the update code without their own copies.

3. Preset changes sound sooner

  • A preset now sounds in 16 to 27 ms instead of 57 to 96 ms (footswitch, MIDI Program Change, editor).
  • When the MODEL knob loads another NAM model, the corner of the screen shows LOADING until it plays.

4. The screen

  • A red OVERLOAD: SOUND BYPASSED bar when the safety bypass engages, with what to do (turn a block off) and the peak.
  • LOADING in amber.
  • A footswitch on a block page goes back to the PLAY page, where the new preset shows.
  • Blocks that are off are easier to read.
  • While a preset is edited, the PLAY page's footer says HOLD: SAVE.

5. Safer

  • After a failed boot, safe mode also skips the NAM routines' start-up check: a fault there costs one boot, not a
    boot loop, and USB stays reachable for the installer's rescue.
  • If the second core stops answering, the first one now gives up waiting after 8 ms, sets the second core aside and
    goes on alone, as v40 did. VinSpee's second core runs for as long as the split is on, so v40's time limit no longer
    applied there. Without this, a stuck second core would have held the audio until the watchdog restarted the pedal.
  • The MIDI page says when the second core was set aside, and why, in red: CORE 2 OFF: MISREAD, LATE, FAULT...
    Until the pedal is switched off, presets that need both cores can then go to BYP. The corner shows C1 both for a
    preset that runs on one core by design and for this case; the MIDI page tells them apart.

6. For developers

  • PING (editor command 18) reports the peak load, late blocks, clipped blocks, the stacks' free bytes and a DSP
    profile. node tools/op.mjs dsp --presets 1,2,3 --seconds 6 prints them per preset over USB.
  • New host tests: tests/engine/lp_test.c (the layer split against one core), tests/engine/hand_test.c (the hand
    routines against C, under the sanitizers), tests/engine/lp_stuck.c (a second core that never moves: the waits give
    up), tests/test_post5.py, tests/test_ping.mjs, and tests/equiv.sh REF (this engine against another commit's, bit
    for bit, 852 runs).
  • The Bluetooth test image fits again. Its radio now scans for the stored radio records from 0xA1000 (where a Pocket
    X keeps them) and gives defaults when installing OpenPocket erased them (firmware/ble/ble_rf.c).

Bluetooth MIDI: set aside

Bluetooth MIDI in the normal firmware (the work after v40) is kept on the branch ble-v41, not in this release. On it,
a Pocket X was seen and connected from Android, and a phone's slider set the volume. But the sound crackled while a
phone sent a stream of messages, and VinSpee's work uses the memory that branch gave the radio. Bluetooth will come back
on top of v41. What was learned is in BLUETOOTH.md and
STOCK-FIRMWARE.md, section 19.

Please try on the pedal

Not yet tried on a real pedal: your own NAM models, the tuner, the looper, the footswitches' timing, the LOADING
indicator on the screen, and a real guitar into the heaviest chains. If something sounds different from v40 or a
CORE 2 OFF line appears on the MIDI page, please report it with the preset.

OpenPocket v40

Choose a tag to compare

@isod89 isod89 released this 09 Nov 01:09

OpenPocket v40

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html
Without internet: INSTALL-OFFLINE.bat in the source.

Packages: PocketX_940.fwsc (Donner Pocket X), BlackBox_940.fwsc (M-VAVE BlackBox).
Source: https://github.com/isod89/openpocket/tree/v40

What's new in OpenPocket v40: the effects run the stock firmware's way

The stock BlackBox firmware, read down to its boot code (STOCK-FIRMWARE.md, sections 7.3, 8.2,
8.6 and 18.1), does three things OpenPocket did not. v40 does all three. The aim is no BYP and no crackle when the
reverb is on.

1. The audio path runs from RAM

  • Until v39 the whole engine ran from the flash, through an instruction cache that the two cores share. A heavy
    preset needs more code than that cache holds: the amp or the NAM network on one core and the delay and reverb on the
    other kept pushing each other out of it. Every miss is a slow read from the flash, and that time showed up as load,
    then as BYP.
  • The stock firmware copies its whole per-sample library into RAM at boot (66 KB) and runs it from there.
  • Now OpenPocket does the same. The functions that run every block (the chain, the delay and reverb loops, the NAM
    network and its hand-written routines, the oversampling, the cabinet IR, the audio interrupt's own code) are copied to
    RAM at boot, about 75 KB. The code is exactly what the compiler made before, moved and not rewritten.
  • Why v37's try failed and this one does not: in v37 the RAM code sat at the bottom of the RAM, just out of the
    call instruction's reach of the flash (+-4 MiB), and the linker refused 478 calls. The RAM code window now sits at the
    top of the free RAM (0x01C5E000), within reach of all the flash code. The link checks it (firmware/app.ld).

2. The delays run at half rate, as the stock delays do

  • The delay line now turns at 22.05 kHz (one tick every two samples), as the stock firmware's five delays do. That
    halves the delay's work, and its memory: 2 s of delay in 88 KB instead of 175 KB. The freed RAM is what makes room
    for point 1.
  • Same echoes: the same times (within 0.1 ms), the same feedback and modulation (every depth converted). Measured on
    the bundled lead loop through an amp and cabinet, the echoes are within 0.1 dB in level and 0.4 dB up to 6 kHz. Above
    6 kHz, where a cabinet leaves very little, they are about 2 dB darker. A small fixed lift on the echoes makes up most of
    what the half rate takes off.
  • The wet lanes of v39 are unchanged: the delay through its lane is still bit for bit the delay inline
    (tests/engine/wet_test.c).

3. The reverb's low cut runs at the tank's rate

The reverb's tank already ran at half rate. Its low cut now does too, as the stock reverbs' filters do: one filter fewer
per sample. TONE stays at the full rate, because it also removes the half rate's images. The reverb's output is the same
as v39 to within 0.0002 on every type.

On the pedal

  • Nothing to change in your presets. The delay's TIME knob, tap tempo and MIDI clock give the same times.
  • Please report, on a preset that went to BYP with v39: the tuner page's footer (CPU per block) with v39 and with
    v40, and whether BYP, LATE or CUT still appear.

For developers

  • tools/ramcode.py renames a compiled object's function sections (.text.NAME to .ram_text.dsp.NAME), so that the
    linker puts them in RAM. --plain also moves an object's plain .text (px_dsp.o's hand-written routines).
    firmware/build.sh lists the functions (RAM_DSP, RAM_FW). A name the compiler inlined is reported and skipped.
  • firmware/app.ld:
    • POOL is 0x01C20000..0x01C5E000 (248 KB);
    • RAMTEXT is 0x01C5E000..0x01C74000 (88 KB);
    • an ASSERT refuses the link if the flash code ever grows out of the RAM code's call range;
    • 0x01C00000..0x01C08000 is free.
  • tools/check_calls.py: the audio path's RAM code (.ram_text.dsp.*) may call the flash and be called from it. The
    flash driver and the second core's loop still may not, because they run while the flash cannot be read.
  • Engine: PX_DLY_N is 45,056 ticks. Delay times and depths are in ticks (rc_delay). The delay keeps
    dly_tick, dly_xa, dly_y0, dly_y1 and dly_dp, as the reverb keeps its own half-rate state.

OpenPocket v37

Choose a tag to compare

@isod89 isod89 released this 08 Nov 01:42

OpenPocket v37

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html
Without internet: INSTALL-OFFLINE.bat in the source.

Packages: PocketX_937.fwsc (Donner Pocket X), BlackBox_937.fwsc (M-VAVE BlackBox).
Source: https://github.com/isod89/openpocket/tree/v37

What's new in OpenPocket v37: neural amp models (NAM A2)

Neural amps on the pedal

  • A new AMP type, NAM, plays Neural Amp Modeler networks of the A2 architecture (its "Lite" size) on the pedal
    itself. The pedal no longer plays an approximation fitted to a capture: it plays the network.
  • 12 factory models, trained for the pedal from community captures of real amps (Fender Twin Reverb, Vox AC15,
    Magnatone Super 59, Friedman Dirty Shirley clean and crunch, Marshall JCM900, JCM2000 and JVM, Mesa Mark IV, Splawn
    Pro Mod, Peavey 5150 and 6505+). All at the same loudness.
  • Knobs: MODEL, GAIN (±12 dB into the network), BASS, MID, TREBLE (an EQ after it).
  • Details, accuracy and credits: NAM.md.

Load your own captures (TONE3000)

  • The web editor has a NAM models panel: pick a user slot, choose an A2 .nam file (from TONE3000, or from
    NAM's trainer), and it goes to the pedal in about 2 seconds. 16 user slots, kept through firmware updates.
  • The editor checks the file, refuses A1 captures with the reason, and sets the model's level so it plays as loud as
    the others.
  • On the pedal, MODEL shows the model's name; the PLAY page shows it as the amp.
  • Browse TONE3000 from the editor: the button opens TONE3000's own tone browser (sign in there, A2 captures only),
    then the editor shows the chosen tone (title, gear, creator) and its A2 models, and loads one into a user slot. It
    uses TONE3000's public API (its "Select" flow, OAuth with PKCE); nothing is stored by the editor.

New factory presets

  • All 24 factory presets are rebuilt around the NAM models, levelled to the same loudness as before. The 28 USER
    slots start from a clean NAM Twin.
  • The 8 fitted amps of v34 stay available as AMP types, and your saved presets keep the amp they use.

Faster engine

  • The NAM network has hand-written routines for the pedal's CPU, checked against the C versions at every start-up:
    each layer is read straight from its history ring (no copy), 4 frames at a time, a weight read once for the 4,
    multiply-adds paired with loads.
  • It can use the chip's vector unit (in its FFT block) for the dot products beside the CPU, and the second
    core
    : with a NAM amp, CPU0 runs the block and CPU1 takes the first frames of each network block (earlier frames
    never need later ones, so CPU1 never waits). At start-up the pedal times the ways it can run the network and keeps
    the fastest.
  • A NAM amp replaces the fitted amp's ×4-oversampled stages, so it adds less than its own cost.
  • Effects run over a whole block, one after another, instead of sample by sample (same output, about 20% cheaper).
    In front of a NAM amp the drive runs at ×2 oversampling instead of ×4.
  • With a NAM amp the two cores work as a pipeline: CPU1 runs the effects after the amp on the previous block while
    CPU0 runs the effects before it, then both run the network. This adds one block of latency (2.9 ms).
  • The network reads each layer's history without any per-tap position arithmetic: every ring's first frames are
    mirrored after its end, and each layer's whole block runs in one hand-written call.
  • In the pipeline CPU1 goes straight from its effects to the network and takes the last frames of each network
    block; CPU0 takes more frames when CPU1 comes late, so neither core waits for the other.
  • Load on the pedal (% of real time, measured): the network alone 66%, the 23 factory presets with a NAM amp
    69–90% (most 75–83%). The status corner shows 2C and the load while both cores run a NAM preset. Above 93% for
    8 blocks in a row the pedal bypasses the effects (BYP) until the next change, as before (85% on one core).

Battery gauge

  • The battery icon now works: v36 read the chip's battery channel without switching on the buffer that drives it (the
    SDK's adc_pmu_detect_en does), so there was never a reading and the icon stayed hidden. The bias and the test-bus
    settings are now set as the SDK sets them, with the chip's bandgap trim from the boot loader.
  • The gauge reads the cell where the stock firmware does: on the Pocket X the chip's own battery pin is a regulated
    3.3 V (it never moves, charged or not), so the gauge now reads PC9 (ADC channel 8, the cell through a 1:2 divider) and
    computes the percentage exactly as PocketX_016 and BlackBox do: raw 528 = 0 %, 636 = 100 %, linear between.
  • With no reading the icon shows an empty cell and -- instead of nothing. Only the ADC is read: nothing analog is
    switched any more (the first v37 builds switched the chip's test bus every 2 s).

Crackles

  • The output no longer clips hard: above 0.8 of full scale a soft knee bends the loudest peaks towards full scale
    instead of cutting them flat (the corners of a hard clip crackle).
  • A late block is shown: when the DSP takes longer than a block's 2.9 ms (what makes a crackle), the load in the
    status corner turns red with a ! for 2 s (2C 88%!).
  • The tuner page's last line counts them since the start: C9 the battery's raw reading, CH a status bit,
    LATE the late blocks, CLIP the blocks that reached the soft knee, PK the highest block load (%).
  • In bypass the status corner says which cores were running: BYP 2C 150% or BYP C0 150%.

From the community (merged into v37)

  • MIDI over USB-C (VinSpee, #10): Program Change picks a preset, Control Change switches blocks and sets their
    models and settings (CC 8–19 toggle a block on value 0), the pedal sends its own changes, MIDI clock sets the delay
    time; a MIDI page on the pedal sets the channel. Reference: MIDI.md.
  • Button lights on the BlackBox (steponme82, #17): AMP, MOD, DLY, REV and CAB light while their block is on, FX
    while any block of its group is on, HOME blinks in the tuner. Checked on a BlackBox; on a Pocket X the order of the
    lights still has to be checked.
  • Bluetooth test image (VinSpee, #13, #16): make ble builds a test firmware where the pedal is a Bluetooth MIDI
    device named OpenPocket (a Chocolate Plus controller paired and switched effects with it). It is a separate test
    image, not this release: BLE-TEST.md.
  • Tools (VinSpee, #11, #12, #14, #15): a command-line flasher with a rescue mode (node tools/op.mjs flash), a
    Mac-side UBOOT rescue for a BlackBox that restarts in a loop (RESCUE.md), a simulated pedal in the
    browser with its front panel and its sound (SIMULATOR.md), and a reader of the pedal's state
    (node tools/op.mjs log).

For developers

  • Editor protocol 2: NAM_LIST, NAM_WRITE, NAM_COMMIT, NAM_ERASE (19–22), and DIAG (23, the Bluetooth test
    image's log channel) (EDITOR-PROTOCOL.md).
  • tools/train_a2.py (JAX) trains an A2-Lite network from a capture; tools/mk_nam_factory.py builds the factory
    set; tests/test_nam.py checks the fixed-point engine against a float reference.
  • Memory: the NAM history buffers (83 KB) sit in the POOL region beside the engine, so that the ordinary RAM keeps
    about 47 KB free (for Bluetooth later).
  • tools/check_calls.py (run by firmware/build.sh): refuses a direct call between the flash code and the RAM code,
    which is out of the CPU's call range, and names it.

Please report

The CPU load cannot be measured off the pedal. Please send the 2C nn% shown at the bottom right on a few factory
presets (for example 02 CHORUS CLEAN, 06 AMBIENT SWELL and 23 ORGAN), and say if you hear crackles.

OpenPocket v33

Choose a tag to compare

@isod89 isod89 released this 04 Nov 20:46
482e500

OpenPocket v33

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html

Packages: PocketX_933.fwsc (Donner Pocket X), BlackBox_933.fwsc (M-VAVE BlackBox).

OpenPocket v32

Choose a tag to compare

@isod89 isod89 released this 04 Nov 20:25

OpenPocket v32

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/
Preset editor (v32 and newer): https://isod89.github.io/openpocket/editor.html

Packages: PocketX_932.fwsc (Donner Pocket X), BlackBox_932.fwsc (M-VAVE BlackBox).

OpenPocket v31

Choose a tag to compare

@isod89 isod89 released this 04 Nov 15:22

OpenPocket v31

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/

Packages: PocketX_931.fwsc (Donner Pocket X), BlackBox_931.fwsc (M-VAVE BlackBox).

OpenPocket v30

Choose a tag to compare

@isod89 isod89 released this 04 Nov 01:22

OpenPocket v30

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/

Packages: PocketX_930.fwsc (Donner Pocket X), BlackBox_930.fwsc (M-VAVE BlackBox).

OpenPocket v29

Choose a tag to compare

@isod89 isod89 released this 03 Nov 18:49

OpenPocket v29

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/

Packages: PocketX_929.fwsc (Donner Pocket X), BlackBox_929.fwsc (M-VAVE BlackBox).

OpenPocket v28

Choose a tag to compare

@isod89 isod89 released this 03 Nov 15:41

OpenPocket v28

Install from the browser (Chrome / Edge): https://isod89.github.io/openpocket/

Packages: PocketX_928.fwsc (Donner Pocket X), BlackBox_928.fwsc (M-VAVE BlackBox).