Repository navigation
v1.11.0
Added
-
Backups: restoring now shows "what changes" before you confirm, on every pedal. The single-slot restore dialog ("Restore to P33") and "Restore all" reuse the import dialog's "What changes" list (
Changes,comparePresets; no second diff): the slot's name (today → after), then each block's model, on/off and parameters, and the unsaved-edits warning when the target is the loaded preset (its edit buffer is what is compared, and it is lost). Pocket Master and Smart Box: today comes from the edit buffer for the loaded slot, and from the stored-preset read (12 4F, no load, read-only) for any other slot. "Restore all" reads the 50 slots one after another when the dialog opens and lists only the slots that change (P12 “Lead” → “Heavy Core”), each expandable to its block diff, plus a count of the slots that stay as they are. Matribox II Pro: the unit shows a slot only once it is loaded, so the single restore compares the loaded slot (edit buffer, viambChanges) and, for any other slot, shows the backup's chain with a note instead of a diff; "Restore all" (240-preset file) compares names only, with the same note. The red Restore button and the "tempo is not restored" note stay. Newlib/restoreDiff.ts(slotChange), EN and PT strings. Tests: unit forslotChange, e2e on the simulated Smart Box/Pocket Master for the single restore and the restore-all list. -
MCP server, Smart Box: new
smart_box_set_controls(puts blocks on the unit's FS1 / FS2 in the edit buffer, the same11 4Dwrite as the Controls tab, at most three blocks per footswitch, checked before anything is sent and read back, an assignment the unit did not take is named);smart_box_get_presetnow lists what each footswitch toggles;smart_box_list_modelsgroups each block's models by sound type in the editor menu's order (coreformatModelstakesgrouped). Tests: set_controls and its limit, grouped listing, every Smart Box tool description names the Smart Box, no factory reset (11 3F) or slot clear (11 23/11 27) is ever sent. -
Switch a USB pedal to Bluetooth from the toolbar. USB still connects by itself on open and on plug-in, with no extra step; when a Pocket Master or Smart Box is connected over USB (and the browser has Web Bluetooth) a small "Use Bluetooth" button (PT-BR "Usar Bluetooth") sits beside the status chip. It reuses the existing Bluetooth connect (the browser's device chooser), which closes the USB link first; cancelling the chooser returns to USB. Hidden on the Matribox II Pro, which has no Bluetooth flow, and while connected over Bluetooth. Switching also clears the loaded preset first (the old link left a preset the refs no longer held, which crashed the page). Tests:
canSwitchToBluetoothunit test, e2e on the simulated Pocket Master. -
MIDI tab in the workstation dock (PT-BR "MIDI"), on the Pocket Master, the Smart Box and the Matribox II Pro: setup help for a MIDI controller (for example an M-Vave Chocolate), never a live bridge. At a gig the controller talks to the pedal on its own; the tab sends nothing to the pedal. It shows only the connected pedal's MIDI implementation, as typed tables in core (
MIDI_IMPLEMENTATIONS,midi-implementation.ts): every Control Change the manual lists, grouped (presets and banks, blocks on/off, tuner, tempo, volume, expression, controls, looper, drum machine), with its value range and meaning in our own words, the manual page in the source and averifiedflag. Pocket Master: 28 CCs from its manual (firmware V1.3.0, pages 20-21); presets are picked with CC 1 (1..50 = P01..P50, 51..100 = F01..F50), no Program Change and no channel are documented. Smart Box: 34 CCs (manual firmware V1.0.1, pages 30-31), the same list plus footswitch mode, preset BPM, tap tempo and CTRL 1-2. Matribox II Pro: 51 CCs (manual firmware V1.2.2, pages 60-63) plus bank select CC 0 with Program Change 0..119; tuner, tempo, looper and drum CCs are marked checked (the owner's unit, 2026-11-24, from the app over USB), the rest not checked. Doubts are shown on the entry: the Matribox manual lists CC 22..25 as bank +, bank −, preset +, preset − (the opposite of the Pocket Master and Smart Box, where 24 = down and 25 = up is confirmed); the Smart Box manual lists CC 7 twice (preset volume and EXP). None of the three manuals documents messages the pedal sends. "Set up my controller" lets you pick a function per button (1..8 buttons, 4 by default) and a MIDI channel, and says what to set on the controller: message type and number, momentary (each press sends 127) or toggle (127 on, then 0 off), and the bytes as SysEx hex (controllerButton,presetMessages,midiBytes); "Go to a preset" sends CC 1 on the Pocket Master and Smart Box, CC 0 then Program Change on the Matribox. The layout is kept per pedal in the browser. "Monitor a controller" (read only, folded) listens to the MIDI inputs that are not a pedal and names what each CC or Program Change does on this pedal (readControllerMessage); it never forwards anything. Tests: core table shape (one entry per CC, ranges, pages, verified flags), button and preset outputs, byte encoding and reading; every function, group, state and doubt has EN and PT words; e2e on the simulated Pocket Master, Smart Box and Matribox (the right table per pedal, the four-button layout and its bytes, the channel, the saved layout, Matribox go-to-preset, the monitor, nothing sent to the pedal, phone width and WCAG A/AA). -
One preset-file rule on every pedal (Pocket Master, Smart Box, Matribox II Pro). The header's single Export preset downloads the official Sonicake
.prst(what the pedal's own app opens); the Smart Box's separate "Export .prst" button from #331 is gone. Import preset takes the.prstand our older.json. Convert preset to… now writes the target pedal's official.prst(it wrote our.jsonfor the Pocket Master and Smart Box) and reads a Smart Box.prstas a conversion source; the Pocket Master reader goes through the CRC-checked parser. New Pocket Master.prstwriter (writePocketMasterPrst): both pedals now share one codec (packages/core/src/sonicake-prst.ts, a layout per pedal: magic, length, header, tail),parseSmartBoxPrst/writeSmartBoxPrst/parsePrstFilekeep their API. Byte 0x14 of the Pocket Master file is the same CRC-8 (poly 0x07, init 0, over 0x15..end) as the Smart Box's, and the parser now verifies it (a damaged file is refused with an EN and PT message). The Pocket Master file has no separate tail: its 515 bytes are the 474-byte edit-buffer dump (which ends with its own03 00 08 00+ 8 zero bytes record) after the 41-byte header; the Smart Box's 12 extra bytes are the stored-preset reply's extra record (04 00 08 00 01 00 00 00 01 00 00 00on every sample), so a stored read now passes its own through and an edit-buffer export writes that constant (still unconfirmed meaning). Checked offline: an official Pocket Master export (P02) re-encoded byte for byte. Backups keeps our.jsonbackups and, on the Pocket Master and the Smart Box, gains the multi-select "Export .prst…" (several slots read without loading, one file each,P31-Name.prst) and a multi-file import into chosen slots (each slot backed up first, written and read back). Matribox II Pro: header and conversions follow the rule; its Backups multi-.prstis a follow-up. Unit and e2e tests on the simulated pedals (synthetic files only).
Changed
- README: refreshed screenshots, MIDI/Smart Box/conversion shots added (
docs/media, generated bye2e/readme-shots.spec.tson the simulated pedals). - README: MCP section shortened; full details moved to apps/mcp/README.md. The rest of the README (and README.pt-BR.md) is a short overview too; the feature guide is now docs/features.md and the desktop app and its AI connection are in docs/desktop.md.
- Import preset takes another pedal's file in one step on every pedal (Pocket Master, Smart Box, Matribox II Pro). Picking a
.prstor.jsonof another pedal in Import preset (or dropping it on Backups, on the Pocket Master family) no longer opens a conversion dialog that has to be downloaded and imported again: the file is converted in memory (convertOtherPedalFile, the existing reader andconvert) and goes straight to the same import dialog a native file opens ("Import a preset", "What changes from the loaded preset" and "Load into the pedal" on the Pocket Master and Smart Box; slot, backup and confirmation on the Matribox), so confirming loads it through the existing native path. The dialog carries a compact notice, collapsed by default, with how many blocks were approximated or not converted and the full per-block report one click away, and an optional "Download converted (.prst)" link. Convert preset to… in the header is unchanged (it exports to another pedal); the "Load into the edit buffer" button of the conversion dialog, which could never apply to it, is gone. The README and /about say so (EN and PT). No new SysEx. Tests: unit for the routing (foreign file to converted preset and its import file, per pedal pair) and e2e on the simulated pedals (Smart Box imports a Matribox and a Pocket Master.prst, also from Backups; Pocket Master imports a Matribox and a Smart Box.prst; Matribox imports a Pocket Master and a Smart Box file), synthetic files only. The conversion line is a callout on every pedal: a tinted box with an accent left border, an icon and a bold "Preset converted from X → Y" heading above the counts (warning tone when something was approximated or not converted, info tone when nothing was), in light and dark themes; the full report still opens from it. - MIDI tab (owner's hardware test with an M-Vave Chocolate over Bluetooth on the Smart Box passed). The tab now sits between Controls and AI on every pedal. The controller-setup legend uses the owner's wording: "each press toggles CC 49 127 on, then CC 49 0 off · SysEx on B0 31 7F / off B0 31 00" for a two-state button and "each press sends CC 25 = 127 · SysEx B0 19 7F" for a one-state one (the hex, which the Chocolate's "SysEx (hex)" field sends raw, stays monospace; PT-BR equivalent). Verified on the unit (owner, M-Vave Chocolate, 2026-12-02): Smart Box CC 24, 25, 44, 49, 58 and 70; Pocket Master CC 24, 25, 44 and 49. Smart Box CC 71 and 72 (CTRL 1/2) are verified too: each presses the unit's own FS1/FS2, which toggles the blocks assigned to that footswitch in the preset (the Controls tab's chips) and answers with the
12 4Emask notice; they are now worded that way. "Set up my controller" explains why a latch button on a block's CC drifts out of step after a preset change (the CC is absolute), and on the Smart Box recommends CTRL 1/2 plus blocks assigned to FS1/FS2, since the pedal keeps the state; a tip about the controller's SysEx (hex) field, and the alternative that never drifts: short press = CC n 127 (on) and long press = CC n 0 (off), shown on the Pocket Master and the Smart Box (the Smart Box lists its CTRL 1/2 recommendation first). The CC 22..25 order doubt is gone for both (24 = preset down, 25 = preset up); the Matribox keeps it, its manual lists them the other way and nothing is verified there. - Sonicake Smart Box: the dock's Controls tab is enabled and gathers the Smart Box's controls, as on the Matribox. It holds (a) the per-preset footswitch assignment, a card for FS1 and one for FS2 with a chip per block (checked = the footswitch toggles it; same
11 4Dwrite, same three-block limit with its "already controls 3 blocks" reason, same read-back and "did not take" banner; the chips replace the FS1/FS2 buttons that sat in the block panel's header), and (b) the EXP / FS jack (type EXP, Single FS or Dual FS, and the targets; same11 11type and11 16/11 17target writes, targets still not read back), moved out of Global & EQ, which now keeps the levels, USB recording, re-amp, display and ECO.SettingsDialogtakes asection(globalorexpfs) so the jack's code lives once. No new SysEx. The Pocket Master's tab stays disabled; its reason now says the tab holds the footswitch, EXP and FS settings of the Smart Box and the Matribox (PT-BR too). The Smart Box's disabled tab used to show the Pocket Master's text. Tests: e2e on the simulated Smart Box (tab enabled, FS assignment and the three-block limit in the tab, EXP/FS targets, nothing left in the old places) and on the Pocket Master (disabled, reason).
Fixed
-
Phone layout (touch screens up to 720 px wide, checked at 360, 390, 430 and 440 px on all three pedals): every control is at least 44 px to tap (header buttons, theme and language switches, preset list rows, bank and segmented switches, select menus and fields, model menu buttons, the chain's page arrows, and the Matribox chips and global switches); the small ones inside tight layouts (block on/off LEDs, move arrows, knob values, switches) keep their look and gain a 44 px hit area; the chain's move arrows are spaced so neighbours do not overlap; dialogs keep a 16 px gutter and scroll inside when taller than the screen; the MIDI tab's "Set up my controller" panel no longer runs past its right edge (its grid and flex tracks shrank to min-content, so the button selects and the help paragraphs were wider than the panel and clipped by its overflow; they now shrink, the selects fill the width and long text wraps). Desktop and mouse layouts are unchanged (
apps/web/app/phone.css, in apointer: coarse+max-width: 720pxquery). New e2ephone-layout.spec.tsasserts no sideways page scroll, nothing outside the screen, 44 px targets and dialogs that fit, and that nothing inside the MIDI controller setup panel runs past the panel's right edge (a clipping check that page scroll cannot see), on the simulated Pocket Master, Smart Box and Matribox. -
MCP server (Pocket Master and Smart Box):
save_preset,restore_backupandcopy_preset(and thesmart_box_save) can refuse chosen slots in code, with a plain message and nothing sent. The guard is opt-in: setOPENSONICX_PROTECTED_SLOTS(for exampleP01-P04orP01,P02,P05); unset, every slot can be written, and an invalid value stops the server at startup. Before, only the tool text said to ask first. -
Matribox II Pro: connecting no longer shows a console error when the unit is slow to answer the first read. On the owner's connect the unit sent expression-pedal notices (
08 00 05 01and an undocumented09 00 05 01, flag 1 cmd 0x10, the preset list read's own flag and cmd) for 3 s instead of the preset list (00 00 0A 01); the link rightly skipped them as notices, but the format check's preset-list read timed out withconsole.errorand counted as "preset list: no reply", so the unit could be flagged as an unknown firmware (writing off) although the same read, asked again by the editor right after, was answered. A read (and an ask with a read frame) that times out is now asked once more, logged withconsole.warn; only a second timeout fails, withconsole.errorand the error shown in the editor as before ("…within 3000 ms, asked twice"). Writes are not repeated. No new SysEx: the repeat is the same read request. Tests: core link tests with a port that answers the first read with those notices only. -
Tempo changed on the unit is followed by the editor. Tap tempo on the Smart Box (CC 70) changes the preset BPM and the unit announces it with
12 42 02 20 04 00 <u32 LE>(the write is11 42 02 20 01 00 <u16 LE>; the notice carries four bytes: 143, 125 and 260 seen), but the notice was ignored, so the header's BPM knob kept the old value.decodeNotificationnow turns it into a BPM edit (40..260; anything else, and the volume field12 42 01, is still ignored); no read and no write. Tests: core with the sample frames, e2e on the simulated Smart Box. -
MIDI tab: the controller monitor stayed in the language a message arrived in ("canal 1 · … → Afinador liga/desliga" after switching to EN). A row now keeps only the raw message and is worded when drawn. Test: the same row in PT, EN and PT again, and e2e switching the language with rows on screen.
-
Sonicake Smart Box: the EXP / FS jack's footswitch targets are read from the unit. After a page refresh Function 1 and Function 2 (and the Single FS target) showed "Not set" because the editor assumed the unit does not report them. The owner's V1.0.6 SysEx logs show they are record 08 04 of the settings reply (
12 10): three u16 little endian at the byte offsets the11 16writes address, single FS at 0, dual FS Function 1 at 2 and Function 2 at 4, byFS_TARGETSindex (the capture before the owner's change held 02 / 0C / 0D = Tap Tempo / CTRL 1 / CTRL 2; after setting Dual FS with FX1 / FX2 and refreshing, 02 / 04 / 09 = Tap Tempo / FX1 / FX2). Record 01 05, the jack type, was already decoded (0 EXP, 1 single FS, 2 dual FS, confirmed by the same logs). Core'sdecodeGlobalsreturns them asfsTargets(null on the Pocket Master, which has no such record, or on an out-of-range value); the panel shows them after a reload and when the type is switched, and the "not reported" note now only shows for EXP, whose target is still not found in the reply (it stays "Not set" until chosen). A footswitch target written within the settings re-read window no longer reads as "08 04 changed on its own". No new writes. Tests: the owner's packet 5 captures as fixtures, out-of-range and missing records, the simulated unit storing11 16in 08 04, and an e2e on the simulated Smart Box (Dual FS targets shown, changed, kept across a reload). -
Sonicake Smart Box: the 16 Smart Box-only amps name their real gear and sit in the AMP menu's gain groups instead of "Other" with an empty right column. Seen on the unit's AMP model menu (owner screenshot, 2026-12-02): Doctor CL, Flyman B1, Calif IIC+, Supero 2 OD, Bog SV CL, Bog XT M, Superb CL, Brit 900, Calif Star CL, Dizzy VH+, Calif Bass, Calif IV LD, Tanger R100, Brit 50, Superb OD and Doctor OD were listed under "Other" with no gear. The previous entry said no source names their gear; the Smart Box (QME-20) manual, firmware V1.0.1, does, for every one of them.
MODEL_INFOnow gives each itsbasedOnfrom that manual (Dr. Z Maz 38 Sr., Friedman "Brown Eye" BE-100 BE channel, Mesa/Boogie Mark IIC+ / Lone Star / Mark IV / Bass 400, Supro Dual-Tone 1624T, Bogner Shiva 20th Anniversary and Ecstasy modern mode, Matchless Chieftain 212, Marshall JCM900 and JTM50, Diezel VH4 channel 4, Orange Rockerverb 100) and a description that keeps the gain characterampVoicereads (clean, crunch, high gain; bass amps none), andMODEL_GUIDEgives each a group (Clean, Crunch, High gain, Bass), the right-column label in EN and PT and the Portuguese description. The menu groups by gain character, not brand, so they join the existing groups; no group was added. The same manual names the gear of the two bass amps added after Pocket Master V1.3.0 (A BassVT: Ampeg SVT; Voks Bass: vintage VOX AC-100), of the Smart Box's C-Wah (Dunlop Cry Baby), Phaser M (a modified MXR M101 Phase 90) and Bass 4x10 IR (Fender '59 Bassman 4x10): filled too. The other Smart Box-only FX (Fullchor, Phaser ST, Crystal Chorus, Whirlcho, Jet, Flanser, Vibrato ST, BBD Phaser, Lofi Vibrato, Flanger ST) and delays (Echo, Shiny, Dark, Flash, Glost, Damage, Flutter) are described without named gear in the manual: they get a description, a group and a plain label (nobasedOn), so nothing on the Smart Box is left in "Other". The tone assistant's compact list now carries that gear next to the character. Display names unchanged. Tests: every Smart Box amp has abasedOn, every Smart Box-only model is described and names gear unless listed as having none in the manual, no Smart Box model in any block is grouped under "Other", the guide's label and length checks cover the Smart Box catalog. -
Tone assistant (Pocket Master, Smart Box, Matribox II Pro): tones for a well-known artist or style get the gain they need. Seen on the Smart Box (2026-12-02, Groq gpt-oss-120b, "timbre do Van Halen"): the model built the tone with DRV off, AMP Gain 20, delay off and a light reverb. Two causes in what the model was sent: the 16 Smart Box-only amps (Doctor CL/OD, Flyman B1, Calif IIC+/Star CL/IV LD/Bass, Supero 2 OD, Bog SV CL, Bog XT M, Superb CL/OD, Brit 900/50, Dizzy VH+, Tanger R100) reached it as bare names, with no gear and no description, so it could not tell a clean amp from a high-gain one; and nothing said that a parameter listed without a range runs 0..100, or how to stage gain for a style. Now
MODEL_INFOdescribes those amps by their character only (clean, crunch or high gain, read from the name and its catalog family; no source names their gear, sobasedOnstays empty and no brand is guessed), core'sampVoicegives every guitar amp's gain character (the tone adapter's own rule, now shared), the compact model list adds it next to the gear ("Marshall JCM800; crunch"), and a shortTONE_STYLE_GUIDE(about 180 tokens) in the Pocket Master/Smart Box and Matribox instructions says how to stage gain per style on the 0..100 scale, to keep the drive the style uses, mids forward for rock, and delay and reverb modest unless the style is known for them. The Smart Box's instructions also named the wrong pedal ("...an editor for the Sonicake Pocket Master guitar pedal"): core's newchatInstructions(pedal)names the pedal the preset comes from, and the web editor's agent uses it (CHAT_INSTRUCTIONSstays the Pocket Master text). Display names are unchanged. Tests: the Smart Box instructions name the Smart Box and never the Pocket Master, every guitar amp on both pedals has a gain character and the Smart Box-only ones name no gear, every Smart Box amp reaches the first message with its character, the compact tags, the guide in both instruction sets and its length bound.