{"by":"octetta","descendants":33,"id":47386983,"kids":[47389030,47388541,47390305,47388603,47390244,47390136,47388413,47453784,47397455,47412534,47396726,47389511,47388497,47394673,47392916],"score":92,"text":"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:<p>Live Toolkit: <a href=\"https:&#x2F;&#x2F;octetta.github.io&#x2F;k-synth&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;octetta.github.io&#x2F;k-synth&#x2F;</a><p>If you visit the page, here is a quick path to an audio payoff:<p>- Click &quot;patches&quot; and choose dm-bell.ks.<p>- Click &quot;run&quot;—the notebook area will update. Click the waveform to hear the result.<p>- Click the &quot;-&gt;0&quot; button below the waveform to copy it into slot 0 at the top (slots are also clickable).<p>- Click &quot;pads&quot; in the entry area to show a performance grid.<p>- Click &quot;melodic&quot; to play slot 0&#x27;s sample at different intervals across the grid.<p>The &#x27;Weird&#x27; Stack:<p>- The Language: A simplified, right-associative array language (e.g., s for sine, p for pi).<p>- The Web Toolkit: Built using WASM and Web Audio for live-coding samples.<p>- 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.<p>The Goal: This isn&#x27;t meant to replace a DAW. It’s a compact way to generate samples for larger projects. It’s currently in a &quot;will-it-blend&quot; 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.<p>Source (MIT): <a href=\"https:&#x2F;&#x2F;github.com&#x2F;octetta&#x2F;k-synth\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;octetta&#x2F;k-synth</a>","time":1773579493,"title":"Show HN: What if your synthesizer was powered by APL (or a dumb K clone)?","type":"story","url":"https://octetta.github.io/k-synth/"}