Repository navigation
Releases
Releases · core-red-project/somnia
v0.6.0
Added
- Hardware Abstraction Layer (HAL) with dual Buzzer (PWM) and I2S DAC stereo backends.
- Zero-float integer ADSR dynamic envelope engine (
AdsrEnvelope) and 4-voice virtual polyphonic mixer (PolyphonicMixer). - Professional MIDI output stack: Hardware UART (31250 baud DIN-5/TRS) + USB-MIDI Class-Compliant (TinyUSB) + 24 PPQN real-time clock generator (
MidiClockGenerator). - Exponential Moving Average (EMA) integer digital low-pass filter (
EmaFilter) and modal hysteresis selector (HysteresisSelector) for noise-free analog potentiometer control. - Non-volatile persistent configuration in EEPROM / NVS (
SomniaConfig,StorageManager) with CRC8 checksum and dual-action button interface (short press: mutate seed, long press: save preset). - Official embedded library packaging conforming to PlatformIO Registry (
library.json) and Arduino Library 1.5 specification (library.properties) with canonical reference sketches (01_piezo_buzzer,02_usb_midi_player,03_i2s_ambient). - Native Non-POSIX Windows console support in CLI via Win32 Virtual Terminal Processing and
<conio.h>.
Changed
- Upgraded PRNG hash mixer to Knuth 32-bit multiplicative hash (
$h = (i \oplus \text{seed}) \times 2654435761\text{u}$ ), eliminating the 1024-step loop periodicity and enabling full 32-bit seeds (melodic output diverges from 0.5.0). - Separated
StreamStatetime accumulation into integer cell index + phase fraction, guaranteeing precision and non-degrading streaming across millions of steps. - Harmonized velocity dynamic range [40, 127] and duration evaluation between floating-point and Q8 fixed-point execution paths.
- Transitioned all core procedural music evaluation to fixed-point integer arithmetic (
StreamStateQ8,nextEventQ8). - Refactored CLI monolithic structure into decoupled Command Pattern (
CommandRegistry,Subcommands,TerminalRawMode). - Hardened cross-platform quality gates with strict zero-warning compiler enforcement.
v0.5.0
Release v0.5.0 - ESP32 & Raspberry Pi Pico multi-MCU support and CI v…
v0.4.0
Release v0.4.0: Modern CLI suite, DAW exporters, fixed-point engine a…
v0.1.0
chore: configure firmware bundle filtering and write permissions in C…