No description
  • C++ 86.7%
  • C 6.7%
  • Objective-C++ 4.7%
  • CMake 1.1%
  • Swift 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
100mountains 0ba6d65a3e ui_paint: split drawXYPad into background/crosshair halves, add a general drawLensGrid primitive
drawXYPad always drew its frame-fill, crosshair, dot and focus ring as one function, so a custom
XYPadPainter wanting SND's own crosshair/dot look (not just a bare pad) had to reimplement it
by hand. Split into drawXYPadBackground/drawXYPadCrosshair (drawXYPad itself unchanged: it calls
both in sequence, same output as before) so a painter can draw something of its own between them.

drawLensGrid is a new, general-purpose reference grid for any square control surface whose lines
bend toward a focus point (normalized 0..1) the way a weight pressed into a rubber sheet pulls the
mesh around it -- stronger near the focus, flat at the edges. Nothing about it is specific to any
one plugin or parameter; it's a reusable background a painter can draw under any xyPad (or
similar) that wants that look, built for a real editor (mac-component/crusher-X's "PM Field")
whose actual original draws exactly this kind of warped-grid backdrop.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-24 01:51:25 +00:00
.claude Complete retained UI menu and graph accessibility 2026-07-10 00:55:07 +01:00
.forgejo/workflows ci: drop the shared FetchContent cache 2026-07-29 10:01:44 +01:00
assets/grounds SND: themes -- snd::ui::theme, named looks in groups an app registers and the user picks (a palette, named colours, images, values and painters each), saved by id; regions an app sets for painters that follow its layout; and SND's own grounds, eleven panel plates in assets/grounds (the blue plate and ten finishes, three painted: wells, spotlight, horizon) 2026-11-04 21:07:54 +00:00
cmake SndPlugin.cmake: compute AU_DISPLAY_NAME before the aumu/aumi factory branch, not inside its else 2026-11-24 00:38:49 +00:00
docs ui_retained_widgets: knob/fader/toggle/meter claim and paint their real label footprint 2026-11-24 01:47:56 +00:00
examples/snd-example SND: DottedCircle/Screwdriver/Mini knobs, Blunt cap look in plasticFace, PillLook strip 2026-11-03 18:49:24 +00:00
include/snd ui_paint: split drawXYPad into background/crosshair halves, add a general drawLensGrid primitive 2026-11-24 01:51:25 +00:00
site SND: the widget site shows all sixteen knob styles -- Hifi, Bar and Rat sheets added to the widget shots (and their pictures), the page's knob section listing every style with the small-size and modulation states 2026-11-04 01:58:42 +00:00
src ui_paint: split drawXYPad into background/crosshair halves, add a general drawLensGrid primitive 2026-11-24 01:51:25 +00:00
test plugin_client: a processor is told the host's cycle; the editor's log says what the view costs the main thread 2026-11-17 07:05:12 +00:00
third_party gl: vendor GLAD so Windows and Linux can build the GL renderers 2026-07-29 07:40:06 +01:00
tools ui_draw: lines, arcs, glows and soft rings are the shader's -- a third of the vertices a frame 2026-11-16 10:16:24 +00:00
.gitignore Prepare repo for public release 2026-07-09 15:01:57 +01:00
AUDIT.md x11 editor: sized by the content scale -- IPlugViewContentScaleSupport from the host, the desktop's Xft.dpi when the host never sets one; logical sizes in, pixels at the window, the pointer and the framebuffer, and the font atlas baked for the scale 2026-10-10 13:37:49 +01:00
CMakeLists.txt tools: snd-edge-check -- shapes drawn off screen against true coverage, touching fills checked for seams 2026-11-16 06:28:16 +00:00
DESIGN.md SND: validate legacy AU parameter records before restore 2026-11-14 23:50:10 +00:00
LICENCE Prepare repo for public release 2026-07-09 15:01:57 +01:00
PROGRAMMING-GUIDE.md docs: DESIGN.md gains the plugin client SDK -- Processor, Engine, the three shells, buses, editors, control bus -- and its threading and CI statements match the code; the guide and roadmap drop their stale no-tick and no-CI lines; A3 closed 2026-10-08 14:38:36 +01:00
README.md docs: the plugin processor rules, auval steps, and where the SDK stands after the bruiser work 2026-10-03 20:46:33 +01:00
ROADMAP.md ROADMAP: bob3 lives at /Volumes/DATA/github/bob3 2026-10-30 03:57:08 +00:00
UI_PROGRAMMING_GUIDE.md SND: DottedCircle/Screwdriver/Mini knobs, Blunt cap look in plasticFace, PillLook strip 2026-11-03 18:49:24 +00:00

SND

SND is a small, in-house audio+UI foundation library — cross-platform audio I/O, a GUI shell, plugin hosting, and a write-once plugin SDK. Apps build on SND instead of on JUCE/iPlug. Free for any noncommercial use; commercial use needs a licence — see License.

Modules

  • snd::audio — device playback/capture, file decode (wav/aiff/flac/mp3/ogg), streaming reads, encoders (FLAC, MP3), resampling, a gapless Player
  • snd::ui — shared audio UI toolkit with two front ends: retained/aGooey (snd_ui_retained_gl, no ImGui target) and Dear ImGui compatibility (snd_ui_imgui). Widgets share paint helpers for knobs, meters, faders, keyboard, pattern grid, sequencer matrix, envelope editor, graph surface, menus, and custom painter hooks. The retained tree adds layout, keyboard focus, and accessibility semantics. See UI_PROGRAMMING_GUIDE.md.
  • snd::plugin — VST3 + AU hosting (editor GUIs in native windows, MIDI, host transport) and a client SDK: write a Processor + editor once and build it as VST3, AU, and a standalone app, which also renders headless (--render) for validation. Sample-accurate parameter events, stepped parameters with value text, latency reporting, mono to multichannel buses, an inter-plugin control-bus API, out-of-process crash-safe scanning.
  • snd::midi — MIDI events + CoreMIDI/ALSA/WinMM device I/O
  • snd::dsp — real FFT + COLA STFT (PFFFT), half-band Oversampler (x2–x16)
  • snd::state — a ValueTree-shaped state tree with XML round-trip + undo
  • snd::platform — native file dialogs, per-OS config dir

Mac, Linux, and Windows are supported. DESIGN.md records the architecture, PROGRAMMING-GUIDE.md the how-to, and AUDIT.md the current architecture audit.

Every push is built and selftested on self-hosted Linux and Windows runners (Forgejo Actions — see the repo's Actions tab; workflow in .forgejo/workflows/build.yml).

Build & test

Everything vendors or fetches automatically (CMake FetchContent); there is no package manager to set up. OpenGL needs nothing installed on any platform: on macOS the system framework provides GL 3.2, everywhere else the vendored GLAD loader (third_party/glad) resolves the modern entry points at runtime.

Prerequisites

  • macOS — Xcode command-line tools (xcode-select --install), CMake 3.24+.

  • Windows — Visual Studio 2022 (Community is fine) with the Desktop development with C++ workload, CMake 3.24+, git. Any shell works — the Visual Studio generator finds the toolchain itself.

  • Linux — gcc/clang, CMake 3.24+, and the X11/audio dev packages GLFW and the audio backend compile against:

    sudo apt install build-essential cmake libx11-dev libxrandr-dev \
        libxinerama-dev libxcursor-dev libxi-dev libasound2-dev
    

Build

macOS / Linux:

tools/build.sh            # configure + build + run --selftest
tools/build.sh --no-test  # configure + build only

Or by hand on any platform (on Windows this produces a Visual Studio build; add --config Debug to the build step and find binaries under build/Debug/):

cmake -S . -B build
cmake --build build
./build/snd-example --selftest   # headless checks
./build/snd-example --selftest-retained # focused retained UI contract
./build/snd-example              # window + audio device demo

--selftest verifies real behaviour, not just compilation: decode+playback, capture, VST3/AU hosting (parameter behaviour + stable-ID state round-trip), and the plugin-client SDK.

Last verified builds: macOS (arm64, AppleClang), Linux (Mint 22 / Ubuntu 24.04, gcc 13, selftest + headless GL render under Xvfb), Windows 11 (VS 2022, x64).

There is no CI here, and there won't be — private-repo Actions minutes are metered and easy to over-trigger. This repo only builds when someone runs the script by hand.

What's vendored vs. original

  • Vendored, unmodified, pinned (via CMake FetchContent): miniaudio, Dear ImGui, GLFW, VST3 SDK, Apple AudioUnitSDK, PFFFT, NFD, imgui-knobs, libFLAC
  • Original: everything under include/snd/ and src/ — SND's own API and the backends behind it

Dev workflow

See AGENTS.md for the multi-agent dev workflow that applies to work in this repo.

License

SND is source-available, not open source. It is licensed under the PolyForm Noncommercial License 1.0.0: free to use, modify, and share for any noncommercial purpose (personal projects, research, education, non-profits, evaluation).

Commercial use requires a separate commercial licence from the author. If you want to ship SND — or anything built on it — in a product or service for commercial advantage or monetary compensation, open an issue at https://github.com/100mountains/snd or contact @100mountains on GitHub to arrange one.

Copyright 2026 100mountains. The dependencies SND fetches keep their own licences (mostly permissive: ImGui, GLFW, miniaudio, PFFFT, NFD, libFLAC, imgui-knobs, nanosvg, stb_image, AudioUnitSDK). One to note: the VST3 SDK is GPLv3-or-Steinberg — if you build VST3 targets, your use of that SDK is governed by Steinberg's terms, separately from SND's licence.