What if your synthesizer was powered by APL (or a dumb K clone)?

I built k-synth as an experiment to see if a minimalist, K-inspired array language could make sketching waveforms faster and more intuitive than traditional code. I’ve put together a web-based toolkit so you can try the syntax directly in the browser without having to touch a compiler: Live Toolkit: https://octetta.github.io/k-synth/ If you visit the page, here is a quick path to an audio payoff: - Click "patches" and choose dm-bell.ks. - Click "run"—the notebook area will update. Click the waveform to hear the result. - Click the "->0" button below the waveform to copy it into slot 0 at the top (slots are also clickable). - Click "pads" in the entry area to show a performance grid. - Click "melodic" to play slot 0's sample at different intervals across the grid. The 'Weird' Stack: - The Language: A simplified, right-associative array language (e.g., s for sine, p for pi). - The Web Toolkit: Built using WASM and Web Audio for live-coding samples. - AI Pair-Programming: I used AI agents to bootstrap the parser and web boilerplate, which let me vet the language design in weeks rather than months. The Goal: This isn't meant to replace a DAW. It’s a compact way to generate samples for larger projects. It’s currently in a "will-it-blend" state. I’m looking for feedback from the array language and DSP communities—specifically on the operator choices and the right-to-left evaluation logic. Source (MIT): https://github.com/octetta/k-synth

  • Code Generation
  • Content Creation
  • Integrations
Mar 15, 2026Visit website

AI Summary

k-synth is an experimental web-based toolkit that uses a minimalist, K-inspired array language for live-coding and generating audio waveforms directly in the browser.

Best For

array language enthusiasts, digital signal processing (DSP) experimenters, audio sample creators

Why It Matters

It provides a compact, syntax-driven environment for rapidly sketching and iterating on custom audio samples without needing a full digital audio workstation.

Key Features

  • Web-based toolkit for live-coding audio samples directly in the browser
  • Minimalist, K-inspired array language with right-to-left evaluation for sketching waveforms
  • Pre-built patches and a performance grid for playing samples at different intervals
  • WASM and Web Audio integration enabling real-time sound generation

Use Cases

  • A sound designer working on a video game needs to quickly prototype unique weapon sounds. Instead of loading a full DAW, they open k-synth in their browser, writes a few lines of concise array expressions to generate metallic clangs and energy blasts, and exports the raw waveforms to import directly into their game engine's audio system.
  • An electronic musician experimenting with generative music uses k-synth during a live coding performance. They manipulate arrays in real-time to create evolving ambient textures, using the performance grid to trigger and pitch-shift samples on the fly, creating a dynamic, algorithmically-driven set.
  • A researcher in digital signal processing is teaching a workshop on waveform synthesis. They use k-synth's minimalist syntax to demonstrate core concepts like frequency modulation and additive synthesis without the visual clutter of traditional graphing software, allowing students to focus on the mathematical relationships.