Repository navigation
Releases
Enaga v0.4.0
Enaga 0.4.0 makes USB DRIVE about four times faster and adds a USB debug port, recording to WAV files, and a much larger library for app developers: fast math, samples and a sample player, sequencing helpers, dynamics, and tests that run on a PC. The DSP library is faster too, and the SDK now ships it prebuilt.
What has been tested on a unit. USB DRIVE's new speed, the debug port with remote input, and the audio engine's lower overhead were tested on a SmplTrek with a Windows 11 computer. Recording, the new library code and the examples were tested on the emulator and in the test suite only. Please report what you find.
For players
- USB DRIVE is about four times faster: about 0.9 MiB/s writing and 1 MiB/s reading on a good port, up from 0.15. That is close to the limit of the unit's USB speed (12 Mbit/s).
- Which port matters. On the PC we tested, a front port on the chipset's USB controller was three to four times slower than a rear port on the CPU's. If copies are slow, try another port.
- The unit's audio streams also take some of the bandwidth. Disabling the unit's audio devices in the computer's sound settings during a big copy makes it 15-30 % faster.
- On a good port the drive appears about 8 seconds after you choose USB DRIVE, down from about 50.
- The audio engine's own overhead is less than half what it was, leaving more of each block to the app.
- The build is shown: the STATUS page header and the first log line give the commit the firmware was built from, e.g.
0.4.0 7487bbf. - Fixes:
- Settings are saved however their page is left, including F1 + POWER and switching off.
- A pad press could switch the unit off through AUTO OFF. Fixed.
- FAT32's free-space record (FSInfo) was checked at the wrong offset, so Enaga ignored valid ones. Fixed.
- MIDI clock: DIN follows the MIDI IN setting like USB; only one port's clock is followed at a time; a long pause no longer gives one wrong tempo reading.
- An app that fails to start, or crashes, gives back the input, the clock and the LEDs.
For app developers
- Breaking: the data folder is the package's folder,
/ENAGA/DATA/<folder under /ENAGA/APPS>, as the docs always said. Before, it used the display name. An app whose display name differs from its folder must move its old data once. - Recording (
<enaga/wav.hpp>):wav::Writerrecords a WAV file:create(path, format, ring, size),write(in, frames)inaudio(), andclose()writes the header. It converts your floats to 16-bit, 24-bit, 32-bit or float, and drops whole frames if the card falls behind.writealso works in the main context, for rendering faster than real time.enaga_float_to_pcmdoes the conversion on its own.examples/recorderrecords the input to/RECORD. - Samples:
dsp::SampleandSamplePlayer(any pitch, forward and ping-pong loops, reverse),wav::Loader(a WAV file into a sample in the background, converted to 48 kHz), sample format conversion and a windowed-sinc resampler,VoiceAllocatorandNoteStack, andenaga::Queuebetween the audio and main contexts.examples/samplerputs a WAV file on each pad. - Math: fast functions in
enaga::dsp(sqrt,tanh,sin/cosin radians,atan2,pow, decibels and more) and the standard float functions through<cmath>and<math.h>, within 1 ulp. - Sequencing and music:
enaga::seq(StepClockwith swing,NoteOffs, chance, every N),enaga::music(note names, scales, quantize, degrees, tempo), anddsp::Smoothedfor parameters that glide. - Dynamics:
Compressor(with side chain), a look-aheadLimiter,BitcrusherandDcBlocker. The UI toolkit draws waveforms (ui::Waveform,ui::scope). - Tests on a PC:
tools/host_test.pybuilds an app'stests/*.cppwith the app's own sources and the DSP library, and runs them with the PC's g++.<enaga/testing.hpp>has the helpers: measurements, checks, and WAV files in and out.examples/sampler/testsis an example. - The DSP library is faster: the sample player is about ten times faster and a synced sine three times. The SDK now includes the library prebuilt by TI's compiler, so you get that speed with GCC alone. Edit the library's sources and the build tool builds it with GCC instead.
- USB debug port: a second USB MIDI port carries Enaga's log, status and screen, and takes keys, knobs and pads from the computer, so you can script tests on a unit.
tools/usb_debug.py(in the SDK) is the tool, anddocs/usb-debug.mdis the guide. Log from your app withenaga::log. - Emulator tools:
tools/emulate.pycan save the whole run's audio, andpanel.pytakes--fileand--card-mib. Long file names work on the emulator's cards. - Rebuild your apps for 0.4.0. The app interface is provisional until 1.0, and an app needs firmware of the same version.
Known issues
- Channel timing, unconfirmed: the left and right channels may be taken one sample apart, in and out. The emulator works this way because Enaga copies the original firmware's audio setup, but it has not been checked on a unit. If it holds, a mono source recorded in stereo has its channels one sample apart. CHECK's new REC page measures it.
- 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, and battery support 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.4.0.zip and enaga-toolchain-v0.4.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.4.0-source.tar.
Full changelog: v0.3.0...v0.4.0
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
Enaga v0.2.0
Enaga 0.2.0 brings MIDI, an external clock, input selection, pad pressure, a small UI toolkit, app icons and the first SDK. With the SDK you can write apps from the release downloads alone, without cloning the repository.
Tested on the emulator only. Everything new in this release was tested on the emulator and in the test suite, but not yet on a unit. 0.1.0's features are unchanged and ran on a SmplTrek. Expect rough edges with MIDI, clock and USB on real hardware, and please report what you find.
For players
- MIDI on the DIN jacks: MIDI in and out, with MIDI CH and MIDI THRU settings.
- USB MIDI: connect the unit to a computer and it appears as a class-compliant MIDI device, with no driver needed. This release uses test USB IDs; real ones will follow.
- Clock and sync: one clock follows the app, MIDI clock or SYNC IN, set by CLOCK SRC. MIDI clock and SYNC OUT can send it on, set by CLOCK OUT and SYNC OUT. The SETTINGS page now scrolls.
- Input selection: apps can choose the built-in mic, Hi-Z, dynamic mic, or stereo or mono line input, at LOW, NORMAL or HIGH level.
- The built-in mic works only with headphones in.
- The input goes back to its default between apps.
- Pad pressure: pads report aftertouch-style pressure while held.
- Menu: each app now has an icon, and the menu shows five entries at a time.
- CHECK app: new MIDI and clock pages, input choice on the AUDIO page, and pressure on the PANEL page.
For app developers
- SDK:
enaga-sdk-v0.2.0.zipholds the headers, the app runtime, the build tool, a template app and three examples (tone, widgets, synth).enaga-toolchain-v0.2.0-linux-x86_64.tar.xzis a prebuilt GCC 13.3 for the C6748. It needs glibc 2.38 or newer, as on Ubuntu 24.04, Debian 13 or Fedora 39.- Start with
docs/getting-started.mdin the SDK, which goes from an empty folder to your app running on the unit. - Apps can now be built from any folder; the output goes to
<app>/build/APP.ENA.
- MIDI:
on_midiandon_midi_sysexcallbacks, with sending through<enaga/midi.hpp>.- Full MIDI 1.0 parsing: running status, real-time messages, SysEx in chunks and active sensing.
- Clock:
- Ticks at 96 PPQN, delivered with each audio block and the exact frame each tick falls on.
- Transport events: start, stop, continue and Song Position Pointer.
- Input:
enaga::system::input(source, level). - Pad pressure:
on_pad_pressureandENAGA_EVENT_PAD_PRESSURE. - UI toolkit (
<enaga/ui.hpp>):List,ParamPage,DialogandTextEntry, drawn in the menu's style, with knob groups of four.examples/widgetsshows them all. - App icons: an optional
icon.txtin the app folder (16×16, 16 greys) becomes the app's icon in the menu. Apps without one get a generic icon. <enaga/bytes.hpp>: little- and big-endian reads and writes that are safe at any address. They are needed because a misaligned 32-bit access on this processor silently uses the wrong address instead of faulting.- Rebuild your apps for 0.2.0. The app interface is provisional until 1.0, and an app needs firmware of the same version.
Known issues
- An app that divides or takes the remainder of a 64-bit integer fails to link (
undefined reference to __exidx_start). A fix is in review (#1). Until it lands, avoid 64-bit/and%in apps. - Atomic read-modify-write on 8- and 16-bit types (
std::atomic<uint8_t>::fetch_addand the like) fails to link. 32-bit types work.
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.
The toolchain's source, GCC and binutils (GPLv3) with GMP, MPFR, MPC and ISL, is enaga-toolchain-v0.2.0-source.tar.
Full changelog: v0.1.0...v0.2.0
Enaga v0.1.0
Firmware update files for the SmplTrek, Lofi-12 XT and CyDrums (only the SmplTrek has been tested).
Unzip the file for your device and copy the .bin to the root of the SD card, keeping its name; then follow
"Installing" in the README.