Repository navigation
Enaga v0.3.0
Enaga 0.3.0 adds USB DRIVE and USB audio, along with battery support, SYNC polarity settings and a larger UI toolkit. USB DRIVE lets a computer copy files to and from the SD card over USB. USB audio sends and receives sound between the unit and a computer, with no driver needed.
What has been tested on a unit. USB DRIVE, USB audio and USB MIDI were tested on a SmplTrek with a Windows 11 computer. Battery support, SYNC polarity and the new screens were tested only on the emulator and in the test suite. Please report what you find.
For players
- USB DRIVE: press F1 + POWER and choose USB DRIVE. The app stops, and the SD card appears on the computer as a drive. Use it to copy apps and samples.
- Eject the drive on the computer, or press OK on the unit; the page closes when the computer has stopped writing. Pulling the cable also ends it.
- The card is checked and remounted afterwards, so new apps appear in the menu straight away.
- Writing is slow for now, about 150 KiB/s (a 100 MB file takes about 11 minutes).
- USB audio: the unit appears as a USB audio device for both playback and recording: 48 kHz, 16-bit stereo each way.
- What the app plays goes to the computer as well as to the outputs, before VOLUME.
- Apps can take the computer's audio as an input. The CHECK app does this with STEP 14 on its AUDIO page.
- USB at full speed: the unit now connects at full speed (12 Mbit/s), as the original firmware does. Before, computers could connect at high speed, which USB audio and USB DRIVE do not support.
- Battery: the menu shows a battery mark when running on batteries, and the STATUS page shows the level. A BATTERY setting picks the battery type: ALKALINE, NiMH or LITHIUM. When the batteries run flat, the unit counts down and then switches off cleanly.
- SYNC polarity: POL IN and POL OUT settings choose the edge SYNC IN counts and the shape of SYNC OUT's pulses. RISE and FALL mean what they mean on the original firmware.
- Menu and settings: the current line is shown on a lit bar, with key hints at the bottom of the screen.
- STATUS page: scroll back through the last 32 log lines with UP / DOWN or VALUE.
- Synth example: the patch list moves with UP / DOWN, a saved patch shows a notice, and pad pressure responds only after the hit.
For app developers
- UI toolkit (
<enaga/ui.hpp>), new parts:Linebuilds text: numbers, fixed point, hex and note names.- A status line and a key-hint line frame the screen.
Noticeshows a message for a moment.- Bars, centred bars and level meters, with
meter_db. Grid: a bank of cells moved with the arrows.PadMap: the pads laid out as on the panel.FileBrowser: browse folders on the card.ParamPagegains tabs (set_group_names), columns, a step per parameter, faster turning when a knob is spun, andset_values.examples/widgetsshows them all.
- Runtime:
- 64-bit division and remainder now link.
<enaga/string.h>providesstrcmp,strncmp,strchrandstrrchr.- The font gains
< ( ) , _ ' * [ ].
- USB audio input:
ENAGA_INPUT_USBselects the computer's audio as the app's input. Your app's output goes to the computer without any extra code. - Battery:
enaga::battery()gives the level, 0-4, or -1 on USB or adapter power. - Emulator script (
tools/emulate.py): new options--card-mib,--file,--turn,--power-offand--get. - Rebuild your apps for 0.3.0. The app interface is provisional until 1.0, and an app needs firmware of the same version.
Known issues
- USB DRIVE writes at about 150 KiB/s.
- Atomic read-modify-write on 8- and 16-bit types (
std::atomic<uint8_t>::fetch_addand the like) still fails to link. 32-bit types work. - USB uses test IDs until a pid.codes product ID is granted.
- DIN MIDI, the clock and SYNC, battery support and the new screens have not yet been checked on a unit.
Installing
Firmware update files for the SmplTrek, Lofi-12 XT and CyDrums are attached. Only the SmplTrek has been tested. Unzip the file for your device, copy the .bin to the root of the SD card keeping its name, then follow "Installing" in the README.
For writing apps, download enaga-sdk-v0.3.0.zip and enaga-toolchain-v0.3.0-linux-x86_64.tar.xz, then start with docs/getting-started.md in the SDK. The toolchain's source, GCC and binutils (GPLv3) with GMP, MPFR, MPC and ISL, is enaga-toolchain-v0.3.0-source.tar.
Full changelog: v0.2.0...v0.3.0