<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://ambionix.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://ambionix.com/" rel="alternate" type="text/html" /><updated>2026-09-28T16:43:54-04:00</updated><id>https://ambionix.com/feed.xml</id><title type="html">Ambionix</title><subtitle></subtitle><entry xml:lang="en"><title type="html">Boards of Casio</title><link href="https://ambionix.com/blog/boards-of-casio/" rel="alternate" type="text/html" title="Boards of Casio" /><published>2026-09-24T00:00:00-04:00</published><updated>2026-09-24T00:00:00-04:00</updated><id>https://ambionix.com/blog/boards-of-casio</id><content type="html" xml:base="https://ambionix.com/blog/boards-of-casio/"><![CDATA[<p>While working away on the <a href="https://www.crazyphase.com/czp-1/">CZP-1</a>, which was at least initially an effort to create a Casio <a href="https://en.wikipedia.org/wiki/Casio_CZ_synthesizers#CZ-101">CZ-101</a> on a web page I happened to see this YouTube video by oliveoil22:</p>
<div class="video-embed"><iframe src="https://www.youtube-nocookie.com/embed/CDxGebl1ejE" title="Boards of Casio" loading="lazy" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe></div>

<p>The immediate question was “How can I make those sounds in the CZP-1?”. Luckily for me oliveoil22 had also shared their CZ-101 patch data . . .</p>

<h3>Boards of Casio patch data</h3>

<ol>
  <li>Download the patch data <a href="/assets/data/boards-of-casio-1dd1280bd9f655ad1a5da93de9460ccd.json" download="boards-of-casio.json">here</a>.</li>
  <li>Open the <a href="https://www.crazyphase.com/czp-1/">CZP-1</a> and turn it on by pressing Power. (Make sure your device is not in silent mode!)</li>
  <li>In the “Library” panel under “Banks” select an empty slot from drop down menu.</li>
  <li>Select the <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-input preview-icon"><path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"></path><path d="M2 13h10"></path><path d="m9 16 3-3-3-3"></path></svg> (“Load bank from JSON file”) button and choose the file you downloaded, probably in your Downloads directory.</li>
  <li>Now the bank program data has been replaced by the loaded Boards of Casio patches, so under “Programs” you can select one of the loaded sounds.</li>
  <li>Touch the on screen keyboard, or play notes with your computer keyboard, or if you are adventurous use the MIDI facilities to connect an external keyboard.</li>
</ol>

<p>Note the CZP-1 doesn’t include the post processing effects oliveoil22 has in their patches, and that accounts for most of the differences, but it is otherwise very close.</p>

<p>The CZP-1 saves the banks you have loaded in different slots in your browser so as long as you don’t use private browsing you will find it remembers them between sessions. This also operates across tabs, so all CZP-1 tabs will see the same bank data loaded, but you can select different banks and programs in different tabs.</p>

<p>If you want to empty a bank you unload it with the <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-x preview-icon"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path><path d="m9.5 10.5 5 5"></path><path d="m14.5 10.5-5 5"></path></svg> (“Remove bank”) button.</p>

<h3>Sharing sounds with urls</h3>

<p>The CZP-1 doesn’t just support sharing sounds by loading and saving json files, you can also just share urls.</p>

<p>For example <a href="https://www.crazyphase.com/czp-1/?czp1=jAIAAPcSAgABAQAIEgAAY2JjYmNiY2JjYmNiY2JjYgEAB2NiY2JjYmNiY2JjYmNiY2IBAAc_eCU2E8YtVjGORmhjRGNIBQAFY8ZjxmPGY8ZjxmPGY8ZjxgEAB2PGMowoAGMAYwBjAGMAYwACAAdjxjKMKABjAGMAYwBjAGMAAgAHAQFAMgAaMwD_AhMIAA">here</a> is another sound.</p>

<p>To make these urls you just make the sound you want and in the Library under Programs hit <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-share preview-icon"><path d="M12 2v13"></path><path d="m16 6-4-4-4 4"></path><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path></svg> “Share” which copies the url to your device clipboard.</p>

<p>The url encodes the data in itself. There is no sound data stored on the server, and you can freely send urls between devices.</p>

<p>Check out more in the <a href="../introducing-the-czp-1">the introductory blog post</a> or the full CZP-1 <a href="https://www.crazyphase.com/czp-1/manual.html">Manual</a>.</p>

<h3>Hang on, what? Again?</h3>

<p>The twist here was how this was done. I downloaded the patch data from the Google Drive oliveoil22 links to on the YouTube video page, guessed it was probably system exclusive MIDI data from the “syx” extension, told the Claude that had done the last pass of the CZP-1 audio engine and five minutes later I had the json file of the bank containing the patch data for loading into the CZP-1.</p>

<p>If you tried to do this kind of thing in the before times this is mind bending stuff.</p>

<p>Finally. thank you to oliveoil22 who deserves the credit of anything good about that patch data. I assume you’re cool with this, if not let me know.</p>]]></content><author><name></name></author><summary type="html"><![CDATA[While working away on the CZP-1, which was at least initially an effort to create a Casio CZ-101 on a web page I happened to see this YouTube video by oliveoil22:]]></summary></entry><entry xml:lang="en"><title type="html">Introducing the CZP-1</title><link href="https://ambionix.com/blog/introducing-the-czp-1/" rel="alternate" type="text/html" title="Introducing the CZP-1" /><published>2026-09-21T00:00:00-04:00</published><updated>2026-09-21T00:00:00-04:00</updated><id>https://ambionix.com/blog/introducing-the-czp-1</id><content type="html" xml:base="https://ambionix.com/blog/introducing-the-czp-1/"><![CDATA[<p>To kick things off in a very unlikely way, let me introduce the <a href="https://www.crazyphase.com/czp-1/">CZP-1</a>, a software implementation of <a href="https://en.wikipedia.org/wiki/Phase_distortion_synthesis">phase distortion synthesis</a> as a complete instrument on a web page.</p>

<p>Using the <a href="https://www.crazyphase.com/czp-1/">CZP-1</a> you could . . .</p>
<ol>
  <li>Create soothing music</li>
  <li>Make annoying noises (bonus: on your mobile phone)</li>
  <li>Craft a genre defining sound, ideally bass</li>
  <li>Share sounds with your friends on the web</li>
</ol>

<p>. . . and whatever else you may think of.</p>

<p><a href="https://en.wikipedia.org/wiki/Phase_distortion_synthesis">“Phase Distortion Synthesis”</a> is the sound generation process <a href="https://www.casio.com/">Casio</a> came up with in the early 1980s, and put in products such as the <a href="https://en.wikipedia.org/wiki/Casio_CZ_synthesizers#CZ-101">CZ-101</a>. I’ve never knowingly even been near a CZ series synthesizer but have always wanted to play with a phase distortion synth, so what’s a developer in 2026 going to do? Build one with agents, obviously.</p>

<p>No, this wasn’t one shot vibe coded. If you do that it won’t sound quite right, and the UI will suck horribly, but it gets you a surprisingly long way. The question with these things is how to make them usable by other people and finish them.</p>

<h3>Playing it</h3>
<p>Go to the <a href="https://www.crazyphase.com/czp-1/">web page</a> and turn it on. Then touch the keys, or use your computer keyboard to play some notes.</p>

<p>If you don’t hear anything your volume might be turned down or your phone might be in silent mode.</p>

<p>Sounds are organised into banks (groups of sounds) and programs (individual sounds) in the Library panel. The existing bank of “Factory Presets” should be selected, and different sounds in there show some of the potential.</p>

<h4>Share via link</h4>
<p>So you’ve made a cool sound and you want your friend to be able to use it . . . no problem! You can send a web link to a CZP-1 with your particular sound. <a href="http://www.crazyphase.com/czp-1/?czp1=gwECAPoSAgYFAfQGEgICMmMyYzJjMmMyYzJjMmMyYwAAADJjMmMyYzJjMmMyYzJjMmMAAABYcDqYGlYblic-JZwypDIAB3cHWMYwqCoAMgAyADIAMgAyAAJ3AkOINbQAdB4AMgAyADIAMgADAANLiDe0LAAyADIAMgAyADIAAgACAAEYQSb_GgCAAhMIAA">Here’s one I made earlier.</a></p>

<p>Copy/paste into your preferred messenger, store them in documents, whatever. The data for the sound is in the actual link, there’s nothing on any server.</p>

<h3>What else can I do with it?</h3>
<p>The MIDI support should be easy enough for anyone familiar with MIDI, which enables the use of external keyboards or driving it from a sequencer. There is pedal and wheel support mapped to the usual controllers. The expression pedal affects the velocity sensitive aspects of the program.</p>

<p>For more details on absolutely everything else check the CZP-1 <a href="https://www.crazyphase.com/czp-1/manual.html">Manual</a></p>

<h3>Why and how?</h3>
<p>Having tried, and aborted, several audio projects over the years, I had come to regard it as one of the hardest fields in programming; a suitable test for the current fad of agentic programming then</p>

<p>My working process involves bouncing various agents off against each other. (At least Claude Code, DeepSeek in Pi and Codex were all used). For whatever reason they seem to have mutually exclusive blind spots so that this leads to iterating towards a far more successful result than any will achieve independently.</p>

<p>I started by prompting Claude to implement a phase distortion synthesizer in JavaScript on a web page. That first effort was surprising, including that it decided to use browser automation to compare the audio output with reference audio it got from . . . somewhere. The problems were it didn’t sound right, the parameters were being misinterpreted, and the user interface sucked. But it did actually kind of work, even with the incredible wonky presets Claude hallucinated in place.</p>

<p>Consequently I bounced it to DeepSeek with comments about the audio engine Claude had written, and it went off did a load of research and managed to establish various aspects of the fundamental waveforms were wrong, the mixing functions were wrong, etc. and completed a pass correcting them.</p>

<p>This bouncing back and forth carried on for about a week, with them progressively mining basically every source of information on the subject of implementing phase distortion synthesis iterating ever closer towards a position neither could meaningfully improve on.</p>

<p>This is what led to the audio engine actually working as it is now, with less than a handful of highly specific interjections.</p>

<p>But then there is the whole user interface and piles of user facing features, like polyphony (the ability to play multiple notes at once), modulation, legato sliding with portamento. All of these have to be individually talked through, designed, implemented and debugged as appropriate. None of that was automatic, and often knowing the precise algorithm to use, such as round robin allocation of voices for polyphony, and prompting for exactly that was necessary to finish the feature.</p>

<h4>Lessons from that?</h4>

<p>The big lessons were:</p>
<ol>
  <li>The “Hard” bit of the low level work wasn’t hard anymore - scarily so.</li>
  <li>The “Annoying” part of all the fuzzily unspecified gaps of what makes a workable synthesizer and the web based UI remains annoying to get into a truly acceptable state, and takes much more active oversight than the “Hard” part.</li>
  <li>Having the LLMs work on the manual exposed several surprising problems in the user interface.</li>
  <li>Using models from multiple different providers makes the code quality improve dramatically</li>
  <li>You still need to know the right design patterns, data structures and algorithms to use in order to ask for them by name or they will hack up something wrong that is 90% there but doesn’t quite fit.</li>
</ol>

<p>If I were to do this again I’d have the manual in progress from the moment UI work starts as it proved to be a useful point for maintaining conceptual consistency.</p>

<p>To emphasise how insane the low level work situation is, while doing this I was being surprised and as a test decided to port the web games I did at <a href="https://www.luduxia.com/">Luduxia</a> from their custom hand written WebGL2 renderer to WebGPU - a task I had procrastinated over due to iOS Safari among other things. This was completed with agent assistance and deployed inside a fairly relaxed 24 hours. The more familiar you are with WebGL and WebGPU the more shocking that is. (As part of the work on CZP-1 the Luduxia build system was itself actually ported by agents and it is that which performs the final build of the synth).</p>

<p>We live in a new age where knowing low level stuff is useful for design purposes but you will be outgunned by the machines when it comes to implementation. Fighting that trend is just the road to a lot of pain, but it’s going to upset a lot of people.</p>

<h3>Hang on? What’s this got to do with the Internet of Things?</h3>
<p>There’s a lot of great inspiration to take from 80s synthesizers, such as the cross vendor MIDI interoperability, the ability to represent and generate interesting sounds using tiny amounts of memory and relatively little compute, and faith that users will learn something complex and esoteric if it’s going to help them achieve their goals or just have fun. Hopefully there will be more on that another time.</p>]]></content><author><name></name></author><summary type="html"><![CDATA[To kick things off in a very unlikely way, let me introduce the CZP-1, a software implementation of phase distortion synthesis as a complete instrument on a web page.]]></summary></entry><entry xml:lang="en"><title type="html">Hello, world!</title><link href="https://ambionix.com/blog/hello-world/" rel="alternate" type="text/html" title="Hello, world!" /><published>2026-08-31T00:00:00-04:00</published><updated>2026-08-31T00:00:00-04:00</updated><id>https://ambionix.com/blog/hello-world</id><content type="html" xml:base="https://ambionix.com/blog/hello-world/"><![CDATA[<p>We are at a new frontier, and no one knows quite how it goes. The era of the “Internet of Things” never really happened, becoming a frustrating disappointment, and now we head towards a new era of pervasive ambient intelligence, but with many of the core problems unsolved.</p>

<p>Connectivity can be from a few kB per day or GB per second at massively varying latency and reliability. Where it is best to deploy RAM and compute is not what is easiest for the software, but what makes most logistical sense within the constraints of the application.</p>

<p>But what really keeps stopping the good stuff from happening is that all the major participants want to own the whole ecosystem.</p>

<p>There has to be some better way, and I’m hoping to find it.</p>]]></content><author><name></name></author><summary type="html"><![CDATA[We are at a new frontier, and no one knows quite how it goes. The era of the “Internet of Things” never really happened, becoming a frustrating disappointment, and now we head towards a new era of pervasive ambient intelligence, but with many of the core problems unsolved.]]></summary></entry></feed>