Roadmap
What exists and what is planned
Manguebyte aims to become the complete equivalent of JUCE for Rust. That is years of work, so it is split into phases, and each phase leaves the framework useful for a wider set of projects than the one before.
Nothing here is a promise or a schedule. It is a statement of direction, and it changes as people show up and build things. If an item interests you, open an issue and say so.
- Done
- In progress
- Not started
Phase 0: foundation (v0.1)
The types everything else is built on, and enough around them to make sound.
manguebyte-core:AudioBuffer,Sample,Smoothed, atomic floats, wait-free SPSC queue, decibel conversionsmanguebyte-dsp:Processortrait, compile-time tuple chains, band-limited oscillator, biquad filters, ADSR, delay line and echo, gainmanguebyte-midi: channel voice messages, sample-accurateMidiBuffermanguebyte-formats: WAV reading and writingmanguebyte-devices: playback on the default output devicemanguebyte: facade crate and prelude
Phase 1: a complete audio toolbox
Everything a standalone audio application needs, short of a user interface.
Devices
- Audio input and full-duplex streams
- Device enumeration and selection; choosing sample rate and buffer size
- Hot-plug: devices and MIDI ports added and removed, the default changing and a stream’s device lost, reported by
DeviceManagerandDeviceWatcher, which poll (every second by default) because no backend notifies; the systems’ own change notifications are not used - Clock-drift compensation between duplex devices by adaptive resampling of the input
- Choosing the audio host: WASAPI, CoreAudio, ALSA and AAudio, JACK behind the
jackfeature, and ASIO by either path below. No PipeWire host of its own, and JACK has not been run on real hardware - ASIO drivers, by two paths. The opt-in crate
manguebyte-pro-iospeaks to the drivers itself and runs behind the device manager through the publicAudioBackendseam; it is under the GPLv3 because it declares Steinberg’s interface under the SDK’s GPLv3 option, and has run on three drivers on Windows x86-64. Closed-source programs usecpal’s ownasiofeature instead, with an SDK they license themselves - Changing devices under a running engine (
DeviceManager::start_engine): the callback is prepared once at a fixedEngineFormat, and the devices change under it with a crossfade where the backend runs two streams at once, or a short faded gap where it cannot (an ASIO driver, the same device opened again, a driver’s reset request). The crossfade is proven on the headless backend only: two real outputs have not crossfaded yet - MIDI input and output ports, with jitter-free timing into the audio thread, and packets sent from the audio thread when their frame is heard (
midi_output_queue,MidiOutput) - MIDI output through the systems’ own Universal MIDI Packet APIs (
MidiOutput::open_with_protocol): MIDI 2.0 packets leave unchanged through CoreMIDI’sMIDISendEventListon macOS and iOS and the ALSA sequencer’s UMP events on Linux, to ports that speak MIDI 2.0, with MIDI 1.0 bytes and the default translation everywhere else. Checked in CI by a loopback to the test’s own endpoints (macOS, and Linux where the runner has the sequencer), not yet with a MIDI 2.0 device. Windows still sends MIDI 1.0 through WinMM: Windows MIDI Services’ API is not reachable from thewindowscrate
MIDI
- System common, system real-time and SysEx messages
- Running status and a byte-stream parser
- Standard MIDI File reading and writing, with tempo-aware timing
- MIDI 2.0: Universal MIDI Packets with every message type, and MIDI 1.0 to 2.0 translation as the specification prescribes
- RPN and NRPN, MPE zones, channel allocation and per-note tracking, and a keyboard state an interface can read while the audio thread writes
- MIDI 2.0 and MPE delivered to processors as per-note events, and through the device and plugin layers: one
NoteInputthat devices, the standalone runner, the harness and every wrapper read MIDI through - MIDI-CI: discovery, profiles, property exchange and process inquiry, and a device agent an application drives
- MIDI 2.0 out of plugins: notes, per-note expressions and any MIDI 2.0 channel voice message, written as MIDI 2.0 packets, as MIDI 1.0 by the default translation or as MPE, and sent through CLAP, VST 3, AU (its MIDI output callback, MIDI 1.0), LV2 (the notify port, MIDI 1.0) and the standalone runner. A
manguebyte-dspProcessorcannot send events by itself.manguebyte-hostreads what a hosted plugin sends in all four formats, through oneAnyProcessor::output_events(MIDI 1.0 from LV2 and AU)
DSP
- FFT of any length, real FFT and window functions
- Spectrum analysis: short-time Fourier transform with any size, hop and window, ballistics, peak hold, fractional-octave bands, A and C weighting (
manguebyte-analysis) - Overlap-add resynthesis for spectral processing: an STFT processor with any transform size and hop whose windows overlap-add to a constant (others are refused), exact reconstruction, a reported latency and output independent of the host’s blocks, with a spectral gate and denoiser, a spectral freeze and a basic phase-vocoder pitch shifter built on it (
manguebyte_dsp::stft) - Resampling at any ratio, and oversampling by 2, 4, 8 or 16
- State-variable filter, stable under audio-rate modulation
- FIR low-pass design (Kaiser-windowed sinc)
- One-pole and ladder filters, stable under audio-rate modulation
- High-order IIR design: Butterworth, Chebyshev I and II, elliptic, order 1 to 16, gliding between designs without blowing up
- Linkwitz-Riley crossovers, 2 to 5 bands that sum flat
- FIR filter processor, choosing direct or FFT convolution by length
- Dynamics: compressor with soft knee, noise gate
- Look-ahead limiter whose ceiling holds for every sample
- Expander, and sidechain keying for the compressor, gate and expander, chosen per processor
- Reverb (feedback delay network)
- Chorus and flanger, phaser, dry/wet mixing with latency compensation, panner, envelope follower, interpolated delay lines
- Workstation effects, each measured: bitcrusher and sample-rate reducer, tremolo and auto-pan with tempo sync, ring modulator, frequency shifter (an elliptic all-pass 90-degree network, image 90 dB down), stereo widener with bass mono, transient shaper, three-band multiband compressor, tape saturation with wow, flutter and drift, a channel vocoder of 8 to 32 bands, a granular delay with a fixed grain pool, and a formant filter morphing A-E-I-O-U. Not yet timed, nor in
manguebyte-webor Parabolic - Convolution: uniformly partitioned, with zero latency or a latency of one partition, true stereo, and responses swapped with a crossfade while playing. A non-uniformly partitioned scheme, cheaper for long responses at small block sizes, is not started
- Noise (white, pink, brown), LFO with tempo sync, waveshaper, DC blocker
- Wavetable oscillator: band-limited by a mip-map, with morphing between frames and phase modulation
- Sampler: an SFZ player (
manguebyte-sampler): multisamples, velocity layers, round robin and random layers, loop points with crossfades, release triggers, choke groups and polyphony limits, from files or from memory, in WebAssembly too, open so that any program can play the instruments Parabolic exports. Filters per region (one to six poles, band-pass and band-reject) with their envelope, and modulation by controllers (<opcode>_onccN,set_ccN, controllers up to 511 that a plugin sets without MIDI) are done and measured. Samples stream from disk with a preload in memory, packed without loss if asked, and other players stream through the same layer (SampleStore; ADR 0014); releases are chosen by the time a key was held and cross from the sustain in phase, and a model outside moves each key’s pitch and level frame by frame (modulate_key,SincReader); LFOs, controller curves and smoothing per opcode, a second filter, the other filter types and keyswitches are not started - Polyphonic voice allocation with per-note expression and modulation, accents and legato slides
- Tuning beyond 12-tone equal temperament (
manguebyte_dsp::tuning, ADR 0016): equal divisions of any period, Pythagorean, meantone, Werckmeister III, Kirnberger III, Vallotti, Young and just intonation on any key, Scala.scland.kbmfiles, any reference pitch, transposition, detune and octave stretch, and the MIDI Tuning Standard’s bulk dump and single note changes; played by every pitched instrument and the sampler, swapped without allocating. Checked against published cents and Caecilia 1.x’s tables. Not done: the MIDI Tuning Standard’s scale/octave messages, a tuning per channel or per MPE note, the drum kits - Instruments: physically modelled plucked strings (guitars and basses), four-operator FM, a tonewheel organ with a rotary speaker, the drums and kick bass of the classic analogue drum machine, and an acid bass; each a
Voicewith presets, measured for tuning, decay, velocity and accent - Acoustic instruments by physical modelling, with no samples: mallets by modal synthesis, bowed strings and winds by digital waveguide, and choirs and a solo voice by formant synthesis
- Drum kits: acoustic drums and cymbals by modal synthesis, calibrated against recordings of a real snare and crash; the 909, 606, CR-78 and 808; kits for trap, techno, house, drum and bass and lo-fi
- A deep polyphonic synthesiser: three band-limited oscillators with sixteen-voice unison, wavetables, sync, FM and ring modulation; two filters of fifteen models; four envelopes, three LFOs and a sixteen-slot modulation matrix; 68 presets for electronic and pop music
- Metering: loudness to ITU-R BS.1770 and EBU R 128 (checked against the EBU’s test signals), true peak, peak, RMS, VU, PPM, stereo correlation
- Pitch detection (YIN and the McLeod method) with note naming
- Sample-accurate events, transport and sidechain in the process call
- SIMD-accelerated buffer operations:
manguebyte_core::vector, with SSE2, AVX, AVX2, NEON and WebAssembly SIMD chosen at run time and the same results on every processor; used byAudioBuffer, the WAV reader and writer, convolution and the graph’s and browser engine’s mixing. The FFT, resampler, oversampler and filters are still scalar - Additive synthesis:
PartialBank, a bank of sine partials with frequencies, gain ramps and pans set every control block, rendered a partial per vector lane (vector::add_partials), the same bit for bit on every backend and Caecilia’s kernel bit for bit for every partial; amplitude held within 3e-5 for as long as it runs. 3 000 partials take 0.16 of a core on AVX2 against a whole core for the scalar kernel. NEON and WebAssembly SIMD are not yet run, and a block biquad across lanes is not started - Voicing a bank of partials (
PartialBank, ADR 0026): narrow-band air around each partial, an attack for each with overshoot, breath and a settling pitch, and wind jitter that keeps harmonics in ratio. A bank that asks for none of it renders the same bits as before; with it, the same bits whatever the blocks and on the backends run (scalar, SSE2, AVX and AVX2; not yet NEON or WebAssembly SIMD); its level, width, timing and depth measured on the output. 2 000 partials cost 1.4 to 1.6 times the plain kernel with air (0.05 to 0.11 of a core on AVX2), 1.8 to 2.5 (0.08 to 0.15) with everything on and every partial in an attack. In Caecilia’s code but in no published version of it, and not yet judged by ear: its defaults are mostly judgements - The space around an organ’s pipes (
manguebyte_dsp::space, ADR 0025): each pipe placed into up to 16 channels with pan, fractional delay, distance gain and air absorption, through shared fixed-point rings (300 sounding pipes into stereo in 8 to 11 % of a block’s time on a busy laptop, bit for bit the same whatever the blocks); early reflections of a rectangular room by image sources up to order 6; a swell box. Done and tested, and in Caecilia’s code but in no published version of it; used by no example instrument, and no frequency-dependent walls beyond one one-pole a path, no diffraction, no binaural output, no Doppler
Formats
- Streaming readers and writers that do not load whole files, with sample-exact seeking, RF64, and wait-free bridges for playing and recording from an audio callback
- Audio sources pulled by a device callback or a graph: a transport over a streamed file (play, pause, seek, loop from any thread), audio in memory, a mixer, a sample rate converter and a channel router
- AIFF and AIFF-C reading and writing
- FLAC decoding
- Recognising a file’s format from its contents
- Ogg Vorbis and MP3 decoding, with sample-exact seeking
- Opus decoding: SILK, CELT, hybrid and multistream, gapless, with seeking
- FLAC encoding, checked against FFmpeg
- Ogg Vorbis encoding, at qualities 0 to 10
- MP3 encoding: MPEG-1 layer III, constant and variable bitrate, gapless
- Opus encoding: CELT (music), constant and variable bitrate, frames of 2.5 to 20 ms, up to 255 channels, any input rate, gapless, with metadata; SILK and hybrid frames (speech) are still to come
- Metadata, cue points and loop markers: one model for every format, read and written where the format allows, unknown chunks kept
- MPEG audio layers I and II
- Waveform thumbnails with a cache file
- AAC, ALAC and WMA through the system’s codecs on Windows and macOS (
platform-codecs)
Networking
- Open Sound Control: codec, address patterns, UDP and TCP, and a real-time bridge that puts time-tagged bundles on their exact frame
Core
- Parameter system: ranges, skew, text conversion, smoothing
- Parameter descriptions as data and as JSON (range, curve, steps, names, smoothing), for editors outside Rust such as Aratu’s
- Sample-accurate parameter automation events
- Change gestures (begin and end of a user edit): a
Gestureguard in the editor contract, sent to CLAP hosts as gesture events and to VST 3 hosts asbeginEdit,performEditandendEdit - Parameter state save and restore, tolerant of version changes
- Denormal protection:
NoDenormals, held by the wrappers, the standalone engine, the device streams and the test harness - Rendering on several cores inside one audio callback (
manguebyte_core::pool, ADR 0015): a fixed set of jobs on workers started up front, output bit for bit that of one thread, a wait bounded by a limit with late jobs dropped and counted, no allocation or lock on the audio thread, parked workers when idle, real-time priority where the system grants it. Run and measured on Windows only; the CLAPthread-poolextension and macOS audio workgroups are not done - Graceful degradation under overload (
manguebyte_core::governor, ADR 0018): a governor that measures each block against its deadline and gives the instrument a budget in cost units for the next one, off when rendering offline, with a quality floor. Done and tested on a fake clock; on the real clock only on one loaded laptop, where on a real-time thread it held a synthetic organ asked for twice what fits at the target with no late block (at normal priority it kept nearly every block in time but thinned the organ far more than needed). No instrument of the framework spends a budget yet, and the wrappers do not turn it off for a host’s offline render - Allocation checking in debug builds (today it is a test-only allocator)
no_stdsupport formanguebyte-coreandmanguebyte-dsp
Phase 2: plugins
Write a processor once and ship it in every format.
manguebyte-plugin: the format-independent plugin API, plugin state, and a harness that runs a plugin in a unit test with no host- CLAP: audio and note ports, sample-accurate events in, parameters, state, latency, reporting of parameter changes to the host. Checked in CI by the CLAP project’s validator
- CLAP
gui,timer-supportandposix-fd-supportfor plugins with an editor, tested through the C interface against fake editors and hosts, includingmanguebyte-guieditors in a headless window. Mangue Pluck’s CLAP editor has been opened by hand in REAPER on Windows; no other host has opened one - CLAP extensions: per-note automation and modulation with the per-note-id and per-key flags of
ParamFlags::per_note, modulation converted around the value on its frame,voice-info,note-name,audio-ports-configandaudio-ports-activationfromPlugin::LAYOUTS, 64-bit ports through the 32-bit path, and transport events inside a block, which cut it there - CLAP
tail(issue #25), with the VST 3 and AU tails, fromPlugin::tail_samples - CLAP extensions still to come: note-end events, presets (
preset-loadand the preset-discovery factory), remote controls,render,thread-pool(the pool’s side isRenderPool::run_with), a native 64-bit path - VST 3: audio and event buses, every automation point on its frame, notes with ids, tuning and note expression, the MIDI controllers a plugin declares through hidden parameters, parameters, units, state, latency. Checked in CI by Steinberg’s validator on Windows, Linux and macOS
- VST 3 editor interfaces: the component handler kept and used for edits,
IPlugViewwith content scale, showing the editor once attached,IPlugFrameandIRunLoop, tested against fake host objects, includingmanguebyte-guieditors in a headless window; not yet opened in a real host - VST 3 64-bit audio and bus layouts:
kSample64through the plugin’s 32-bit path,setBusArrangementsaccepting the layouts inPlugin::LAYOUTSandactivateBusswitching the sidechain off - VST 3 still to come: program lists, note names, a native 64-bit path
- Auxiliary output buses (ADR 0017):
Plugin::AUX_OUTPUTSandprocess_with_aux, as CLAP audio ports switched byaudio-ports-activation, VST 3 auxiliary buses switched byactivateBus, Audio Unit output elements, LV2 port groups of optional ports, device channels in the standalone runner, and in the harness; a bus switched off is not rendered. Tested in process through the framework’s own host in all four formats, and the example organ, Mangue Divisions, loaded from its built library as CLAP and VST 3. It passes the CI validators and has not been in a DAW; widths are fixed, there are no auxiliary inputs, and an Audio Unit renders every element - Audio Unit, version 2:
export_au!through the plain C interface, with formats, parameters, scheduled parameters and MIDI on their frames, the host’s transport and state;.componentbundles written and installed bycargo mangue; tested through its C interface on every system, and both example plugins pass Apple’sauvalin a macOS CI job. MIDI output throughkAudioUnitProperty_MIDIOutputCallback, and the elements’ channel counts fromPlugin::LAYOUTS. Not yet loaded in a DAW. No editor, MIDI 2.0 output or factory presets - Audio Unit, version 3 (app extension)
- LV2: audio and sidechain ports, parameters as control ports, MIDI and transport on their frames, state, latency and generated Turtle files, tested in process through the C interface;
.lv2bundles written bycargo mangue bundle --format lv2, and the examples’ found and read by lilv in CI. Not yet checked bylv2lintor run in any host but the framework’s own (manguebyte-host); MIDI output on the notify port; no editor, one fixed layout - Plugin identity at run time (ADR 0012):
Plugin::info, asked once per library throughplugin_info, andlibrary_path, read by the CLAP, VST 3, LV2 and AU wrappers, saved state and the harness; two copies of one library with different identities appended are hosted side by side in one process, through CLAP and VST 3, editors included, in a test run on Windows. Not yet run on Linux, not run on macOS (appended data breaks a signature there), and AUInfo.plistand LV2 Turtle files are not rewritten per copy - Parameter names that change at run time (ADR 0020): display name, short name and unit set from any thread but the audio thread, with ids unchanged, reported by the CLAP, VST 3 and AU wrappers and told to the host once per batch (CLAP
rescan(INFO), VST 3kParamTitlesChanged, AUParameterList), tested against fake hosts and throughmanguebyte-host. VST 3 and AU have no main-thread call to ask for, so a rename waits for the host’s next call that can carry it; LV2 hosts see the shipped names;manguebyte-ui’s labels show the names parameters were made with; not tried in a DAW - Standalone application wrapper: sound card, MIDI ports in and out, input for effects
- Standalone device settings (ADR 0021): devices by identifier, rate, buffer size, MIDI input ports and the MIDI output port for the plugin’s notes (ADR 0023, with MPE or not) chosen in the options and changed while the plugin plays, with the same plugin instance, prepared again only when its rate changes (or kept at a fixed rate and resampled at the device’s edge); a change of MIDI output port leaves no note hanging; a report of what each change opened and what fell back; settings saved as text; a ready-made audio settings view in
manguebyte-ui, glued to the standalone bymanguebyte-gui’sstandalonefeature (ADR 0022), with the MIDI output port for a plugin that sends notes. Tested on the headless backend only; the view has no host, channel or MPE section - Aratu Bridge (
plugins/aratu-bridge): an example CLAP, VST 3 and AU instrument that plays an Aratu page’s music in a DAW, in time with its transport, from the control calls and events the page sends over a local WebSocket (docs/ARATU_BRIDGE.md). Tried by hand once, as a CLAP in REAPER on Windows with a Chromium page onhttp://127.0.0.1; other DAWs, other browsers andhttps://pages are not tried yet. No editor, one stereo output - Tooling:
cargo manguebundles (CLAP, VST 3, LV2 and AU), installs and validates plugins and creates new plugin crates from templates; macOS bundles get an ad-hoc signature and universal binaries. Signing with a real identity and notarisation are not started, and there is no LV2 validator in it
AAX depends on a proprietary SDK and will be considered once the other formats are solid.
Phase 3: user interface
An editor contract in the plugin API, rendering on the CPU first, a thin window layer of the framework’s own, and nothing claimed before its test exists.
- Editor contract and parameter gestures in the plugin API and both wrappers, each tested through the format’s real interface against fake hosts
- 2D renderer on the CPU behind a seam (
manguebyte-gfx): paths, gradients, images, clips, layers, a columns primitive for meters and spectra, damage-limited repaint that matches a full repaint bit for bit, and text with an embedded Inter subset. GPU rendering later, never the default while CI cannot test its pixels - Windowing, including embedding inside a plugin host: Win32 child windows inside a host’s window and a headless backend for tests (
manguebyte-window), and the glue that opens an editor in them (manguebyte-gui), tested on Windows, with two plugin binaries’ editors open in one process. Application windows with their loop, close requests, size limits and monitor changes, files dropped from other programs onto widgets, and the open, folder and save dialogs (ADR 0010), tested headless and with real Win32 windows; showing the dialogs and a real drag from the file manager are left to a person, and no such run is recorded. macOS and Linux follow as CI proves each - Editors for the example plugins: Mangue Duck’s (knobs, a bypass switch and a gain-reduction meter) and Mangue Pluck’s (a knob for each parameter), tested headless and in real Win32 windows. Mangue Pluck’s CLAP editor has been opened by hand in REAPER on Windows, showing its title and knobs; working its knobs there, and Mangue Duck’s editor in a host, are not tested by hand yet
- Layout, styling and a widget set (
manguebyte-ui): row, column and stack layout, theme tokens, label, knob, slider, toggle, meter and canvas done; text entry (a text field, and values typed into knobs and sliders, with the clipboard), popup menus with submenus, a combo box, hover and tooltips done; scroll views (wheel, touchpad, bars, keys, nested views, Tab scrolling to what it focuses), lists of rows the application keeps with only those in sight drawn (tested with 100 000), selection, typing to find a row and activation, drag and drop inside the interface with a typed payload, a ghost, auto-scrolling and cancelling, and pictures fitted and sharp at 2x done (ADR 0009); files dropped from other programs onto the same drop targets done (ADR 0010); tabs and a sidebar of pages switched without rebuilding the window, hidden pages costing nothing (not polled, laid out, drawn or asking for frames, tested), action buttons in three looks and a confirmation dialog inside the window with a focus trap done (ADR 0013); floating panels inside the window, not modal, moved by their title bar and kept inside it, their place and whether they are open in states the application keeps, raised by a press, Escape and the focus going in and back, done (ADR 0019), without resizing, snapping or docking; an interface designed at one size zoomed to fit any window, with bars around it and everything from clicks to the caret in the same space, and layouts chosen by the room they get, built once, with no frame showing the wrong one, done (ADR 0027), for the whole window only, not per panel, tested headless and in real Win32 windows and not yet in a program by hand; dragging out of the window, rows of different heights, multi-line text, drag and drop by keyboard, dialogs with content of their own and overflowing tab bars not started - Application state with undo and redo (
manguebyte-state, ADR 0008): a document tree with stable ids, named transactions, gestures as one step, merging by key, history limits, change journals polled instead of listeners, a mirror of the parameters that keeps host automation out of the history, the document saved with the plugin’s state as text or binary with migrations, a settings file, and snapshots handed to the audio thread without allocating. Tested, including random edit sequences undone to every earlier tree; no example plugin’s editor uses it yet, and it has not been in a DAW - Audio widgets: a waveform view drawn from a multi-resolution summary (zoom around the pointer, markers within rules the application gives and onto zero crossings, a selection, a playhead), a piano keyboard (glissando, velocity from where a key is pressed, the computer’s letters, keys lit and ranges marked by the application), an ADSR editor whose handles are gestures on four parameters, and a zone map of keys by velocities lined up with the keyboard, taking samples dragged from a list or from other programs, all tested headless; for a synth’s page, pitch bend and modulation wheels (bound to parameters or polled to send MIDI, the bend springing back), one cycle of an oscillator and a wavetable stacked in depth with the frame playing lit, tested headless; a low tone zoomed out in the waveform view drawn as a solid band instead of moiré; spectrum and EQ editors not started, and none worked by hand in a real window yet
- Design tokens and motion (ADR 0011): layered tokens (surfaces, hairlines, three text levels, one accent, categorical hues, semantic roles, elevation, radius, spacing, type, motion), a deep dark theme with glow as the default and a light editorial one, switchable at run time; cached, deterministic shadows and glows in the renderer; eased hover, press, focus and selection on the frame clock; the focus ring after the keyboard only; every widget restyled. Tested: an idle interface draws and asks for nothing, a transition repaints only its widget and stops, shadows are blurred once and partial renders through them equal whole ones, motion turns off with the system’s setting. Not worked by hand in a host yet
- Accessibility: every widget describes itself (the method has no default) and the test harness finds widgets only that way; each frame lists the widgets whose description changed (
Frame::access), such as names that follow the language throughTextSource, tested headless with a language switch across eight widgets; platform adapters not started, so nothing reads that list yet - High-DPI: scale flows from the host through the contract to the renderer, and a Win32 window takes the system’s scale when the host gives none; a change of scale while a window is open is handled but untested
Phase 4: hosting and graphs
The graph with its sidechain, event and feedback routing, the hosting of CLAP, VST 3, LV2 and Audio Unit (version 2) plugins, plugin scanning, and a tempo map with a transport clock are done. Hosted plugins’ editors are under way: CLAP and VST 3, in Win32 windows so far.
- Audio processing graph, rewired while it plays, with automatic latency compensation
- Graph extras: sidechain routing with buses and channels, per-node event routing (nodes that send events included), feedback through an explicit delay in frames that keeps the output independent of the block size, and latency compensation across all of them, all editable while it plays
- Graph extras still to come: crossfaded swaps, buffer reuse and pruning
- Hosting CLAP, VST 3 and LV2 plugins as processors, through one interface for all three formats, with every event on its frame; LV2 bundles read with the host’s own Turtle reader
- A hosted plugin’s auxiliary output buses read in all four formats (
process_with_auxon each processor) and switched before activation in CLAP, VST 3 and LV2; tested against the framework’s own wrappers only, and not yet in the one interface (any) or the graph, whose nodes have one output - Plugin scanning: the standard folders of each format, each CLAP and VST 3 file listed in a process of its own with a time limit, crashes and hangs reported, a cache keyed by path, time and size
- Hosting Audio Units, version 2: components found with
AudioComponentFindNextand made withAudioComponentInstanceNewon macOS, or in process from a factory function anywhere; stream formats,MaximumFramesPerSlice, channels asSupportedNumChannelsallows, the main input and sidechain through render callbacks, parameters withAudioUnitScheduleParametersand MIDI withMusicDeviceMIDIEventon their frames, the host’s transport callbacks, latency, tail,ClassInfostate and bypass, through the one interface and the out-of-process scanner. The example plugins sound the same, bit for bit, as with no host, through their factories on every system and, installed, through AudioToolbox in the macOS CI job, where the scanner also reports a unit that crashes and one that hangs. No unit from another vendor has been hosted yet. No AUv3 as such, editors or factory presets - Hosted plugins’ editors (issue #5): CLAP’s
gui(embedded),timer-supportandposix-fd-support, and VST 3’sIPlugViewwithIPlugFrame, content scale and, on X11 systems,IRunLoop, behind the same methods onClapPluginandVst3Plugin: open in a parent window, size, scale, close, and the editor’s requests and timers throughpump. The example plugins’ editors are opened, resized, rescaled and closed in real Win32 windows, and a knob dragged in each format reaches the hosted processor. Not yet opened in a real window on macOS or Linux, where the framework’s own editors do not open; no LV2 or AU editors - Transport, tempo map and timeline primitives: a tempo map with steps, linear ramps and time signatures, exact conversions between frames, seconds, quarter notes and bars, beats and ticks, and a real-time transport clock with loops and seeking, driving the harness and the standalone runner
Phase 5: everywhere
The browser engine is under way, and the audio crates are built for iOS and Android in CI; embedded targets are not started.
- iOS and Android: the core, DSP, MIDI, formats and device crates and the facade are built in CI for
aarch64-apple-iosandaarch64-linux-android(CoreAudio and CoreMIDI; AAudio and AMidi), but not run on a device; no plugin format for either - WebAssembly and Web Audio:
manguebyte-web, an engine in a browser’s AudioWorklet, fed 32-byte timestamped records through a shared-memory ring, with a synth, a drum kit, an SFZ sampler, the instruments ofmanguebyte-dsp(plucked strings, FM, an organ, an 808-style kit and bass, an acid bass, drum kits with Brazilian percussion on every kit, the polyphonic synthesiser, mallets, bowed strings, winds and a choir), thirteen effects (the drive with a tube curve), a master bus with a true-peak limiter, and a scope and levels for every part; tested natively and in Node.js, its demo tried once in Chromium, not yet under load. The same engine plays in a DAW through the Aratu Bridge. Its first user is Aratu - Embedded targets
Beyond parity
Matching JUCE is the baseline, not the finish line. These are the places where a framework designed for Rust can do better. They are goals: what is already proven has its own page.
- Compile-time checked real-time safety for user code
- Processing graphs that the compiler can inline end to end
- Deterministic offline rendering for testing audio code in CI
- Instruments that render less, rather than glitch, when the machine cannot keep up: a budget learnt from each block’s time (
core::governor, ADR 0018) - First-class CLAP support, including its newer extensions
- A plugin API in which sharing state between threads incorrectly does not compile
Against JUCE, module by module
JUCE 9.0.4 has 24 modules. Parity means the same capability, not the same classes: where Rust or its ecosystem already solves something well, the plan is to not rebuild it. JUCE_PARITY.md explains every row.
| JUCE module | Manguebyte crates | Status |
|---|---|---|
juce_audio_basics |
core, midi, dsp, sampler |
Done |
juce_audio_devices |
devices |
In progress |
juce_audio_formats |
formats |
In progress |
juce_audio_processors |
params, plugin, host, graph |
In progress |
juce_audio_processors_headless |
params, plugin, host, graph |
Done |
juce_audio_plugin_client |
clap, vst3, lv2, au, standalone |
In progress |
juce_audio_utils |
ui |
In progress |
juce_dsp |
dsp |
In progress |
juce_midi_ci |
midi |
In progress |
juce_osc |
osc |
Done |
juce_graphics |
gfx |
In progress |
juce_gui_basics |
ui, window, gui |
In progress |
juce_gui_extra |
Not started | |
juce_animation |
Not started | |
juce_opengl |
Not started | |
juce_video |
Not planned | |
juce_core |
core |
Not planned |
juce_events |
window |
In progress |
juce_data_structures |
state |
Done |
juce_cryptography |
Not planned | |
juce_javascript |
Not planned | |
juce_box2d |
Not planned | |
juce_analytics |
Not planned | |
juce_product_unlocking |
Not planned |
This page follows ROADMAP.md and docs/JUCE_PARITY.md at commit 46ec338.