Repository navigation
Releases
Release v1.8.2
Emulator hardening
Three hardening passes covering startup, persistence, external input, and script execution.
Fixes
- Prevent infinite text-ellipsis loops in narrow labels; preserve UTF-8 character boundaries.
- Recover from malformed configuration/state and reject invalid saved I/O mappings.
- Quote file paths safely, avoid one subprocess per directory entry, and stop retrying failed completions every frame. Tab explicitly refreshes completion results.
- Save configuration/state via a temporary file and replacement only after successful write and close. Preserve the previous file on failure, retain dirty state for retry, and report failures accurately.
- Save actual window dimensions using the LÖVE window API.
- Validate OSC packet lengths, padding, addresses, bundle element sizes, and nesting depth; reject malformed bundles without partial delivery.
- Contain OSC callback and connection errors and close sockets after failed connection/bind attempts.
- Preserve the previous script/path and restore SDK global bindings when a new script fails to load. Failed paths are no longer persisted; initialization errors reject partially initialized scripts.
Script execution safety — behavior changes
- Regular callbacks have a budget of 50 ms CPU time or 2 million Lua instructions. Loading, including initialization/setup, has a budget of 1 second CPU time or 20 million instructions.
- Timed-out runtime callbacks are disabled until reload supplies a new callback function, instead of repeatedly stalling the interface.
- LuaJIT is disabled during guarded execution and its prior enabled state is restored afterward. Heavy scripts may run more slowly or need to spread work over multiple steps.
- Scripts may declare up to 64 inputs and 64 outputs; invalid counts reject the load.
This is best-effort protection for trusted development scripts, not a security sandbox. Blocking native/MIDI/filesystem calls remain uninterruptible; deliberate hook bypass and arbitrary script side effects are not isolated. See runtime safety and limits.
Validation
- All 13 test suites pass under Lua and LuaJIT, including intentional infinite-loop tests with an external timeout.
- Six real-LÖVE hardening scenarios pass, covering corrupt saved files, failed loads, runaway callbacks, and recovery to a healthy script.
- Real-LÖVE MIDI workflows pass with native MIDI unavailable and with a simulated host port.
- Failure injection covers file open/write/close/rename errors and OSC connection/callback failures.
The originally reported hang has not been reproduced locally; this release does not claim a confirmed fix for that specific setup.
Full changelog: v1.8.1...v1.8.2
Release v1.8.1
MIDI monitor performance and hang mitigation
A best-effort fix for a reported v1.8.0 hang with MIDI monitoring enabled. The hang has not been reproduced locally, so this release targets unnecessary work in the new monitor path rather than claiming a confirmed root cause.
- The closed MIDI log no longer copies the full event history every frame.
- The open log copies only visible rows when the history changes and reuses decoded text for unchanged rows.
- Replace repeated string-width/trimming loops with clipped text rendering; full details remain available on hover.
- Use a fixed-size, 128-event ring buffer instead of shifting the history on every captured message.
- Preserve pause, scrolling, clear, routing, and capture-only operation. Snapshot invalidation also handles clearing the history and restarting event IDs.
Validation
- All nine test suites pass under both Lua and LuaJIT.
- The real-LÖVE keyboard/mouse/routing workflow passes with native MIDI unavailable and with a simulated host port.
- Added 10,000-message bursts with the log open and closed, plus checks for bounded history, newest-message ordering, cached rendering, and no live-history copies during hidden or paused drawing.
Physical MIDI hardware and the affected user's exact environment have not been tested.
Full changelog: v1.8.0...v1.8.1
Release v1.8.0
MIDI monitoring that stays usable
- F5 opens a non-modal, draggable MIDI output log. Open it from F4 or the MIDI status badge as well.
- One row per call: aligned time, destination, decoded message/note name, hexadecimal bytes, and delivery result. Hover for full details.
- Pause freezes only the view; capture and the script keep running. Scroll, clear, and move the log without blocking buttons, pots, or encoders outside it.
- Capture works without a native MIDI library or selected output port. Destination mask 0 and rejected calls now have visible explanations rather than silently disappearing.
- F4 configures routing and no longer suppresses hardware keyboard shortcuts or strands note releases.
MIDI input fixes
- Dispatch all six documented input filters: note, CC, bend, aftertouch, poly pressure, and program change. Scripts responding to these messages can now generate monitored output.
- Match the manual: a configured MIDI channel parameter of 0 disables input; 1-16 selects a channel. Omitting channelParameter accepts all channels.
Validation
All eight suites pass under both Lua and LuaJIT. The isolated real-LÖVE workflow runner also passes with no native MIDI library and with a fake host port. It exercises actual keyboard/mouse/wheel handlers, continuous step output, MIDI-input callbacks, routing, reload, pause/clear/scroll/drag, rejected calls, and note releases across F4. Physical MIDI hardware delivery has not been tested.
Try scripts/api_simulation_demo.lua, press F5, then A (button 2) to send a test clock message. F4 chooses routes and the host output port.
Full changelog: v1.7.2...v1.8.0
Release v1.7.2
Fixes
- Correct the algorithm-index off-by-one error: enumerate from 1 through getAlgorithmCount(), inclusive. The fifth default algorithm, VCO, is now accessible at index 5.
- Align findAlgorithm, getAlgorithmName, parameter discovery/control, focus, and drawing with one-based algorithm indices.
- Make self.algorithmIndex available during init and keep it bound to the loaded script regardless of UI focus.
- Follow the selected algorithm when the overview spans multiple pages.
- Update shipped examples and add regression coverage for the first, last, duplicate-name, and dynamically added algorithms.
Compatibility
The loaded script is algorithm 1. Prefer self.algorithmIndex or findAlgorithm(name) instead of hard-coded indices. Scripts relying on the old incorrect zero-based algorithm indices need updating. getBusVoltage retains its separate stage range 0..getAlgorithmCount() and zero-based bus indices.
Customize the simulated preset data in modules/simulated_algorithms.lua; there was no missing fifth data entry.
Validation
All seven suites pass under Lua and LuaJIT. Verified enumeration, metadata, focus, and writes for every default algorithm in the actual LÖVE app, including index 5, and smoke-tested the updated default/query/index examples.
Full changelog: v1.7.1...v1.7.2
Release v1.7.1
Fixes
- Prevent script drawing errors from crashing the emulator with "present cannot be called while a Canvas is active".
- Always unwind leaked graphics pushes and restore the previous canvas after drawing, including when a script catches an error internally.
- Accept numeric values in drawText/drawTinyText and render missing text as blank, including missing parameter metadata values.
- Invalid Lua expressions, such as indexing enumStrings on an empty metadata table, now remain recoverable script errors rather than application crashes.
Validation
All seven suites pass under Lua and LuaJIT. Reproduced the empty-metadata error in the actual LÖVE app and verified that drawing continues afterward without a canvas or graphics-stack leak.
Full changelog: v1.7.0...v1.7.1
Release v1.7.0
New in v1.7.0
- Add getParameterInfo metadata and fully discoverable, controllable script parameters, including Bypass.
- Implement standard pot navigation and directional soft takeover.
- Read live mapped physical I/O bus voltages.
- Add useful algorithm parameter, overview, meter, and menu views, plus UI exit behavior.
- Add MIDI destination routing and live monitoring through F4, including monitor-only operation without MIDI hardware.
- Add deterministic virtual I2C registers for testing (not a real hardware-device protocol).
- Include scripts/api_simulation_demo.lua and expanded automated coverage.
Validation
All seven test suites pass under Lua and LuaJIT. The application and new screens were also smoke-tested in LÖVE.
Full changelog: v1.6.1...v1.7.0