r/musicprogramming • • Jan 28 '26

Using physics simulation for procedural music generation.

219 Upvotes

I wanted to share with this community a project I have been working on for a few months now on what some may regard as a physics based music making tool.

The way it works is you place note spawners that spawn blue balls at different intervals according to the set BPM. If you left click and drag, you can draw a "vine". There are 7 vines with different sounds for each. When a ball from the spawner falls and bounces off a vine, it creates a musical tone. Every subsequent bounce generates a new pitch that fits the key, scale, and pattern that has been set. I created a quantizer that takes a subdivision of the BPM (1/16th) and queues each sound on a quantized tick synced with the physics timing. Therefore, everything is on beat and the BPM can be changed in real-time. Each vine also has FX you can set such as reverb, delay, flanger, and chorus. Since the sounds for the vines are sample based, you can also change them out to create your own "soundbanks" to experiment with new sounds. I've created some basic plugins with the JUCE API in the past, so I am exploring how to integrate it as a VST so you can sync it with your project and record directly into your DAW with midi or audio.

It makes music creation super easy and fun. You don't need to know music theory because the physics and underlying logic handles it all. It brings a whole new approach to music production I think.

I'm really excited to share it with this community and see what people think.


r/musicprogramming • • Feb 19 '26

Making music with physics and vines

84 Upvotes

This is my tool/game that I call Dewdrop. It allows you to make music using physics just by drawing. No music theory is required to use it. The logic keeps everything quantized to 1/16th notes at whatever BPM you set (60 - 180). There are settings to control the key, scale, and pattern of the note or "droplet" that spawns. You can also change the notes of individual "vines" you draw and dial in some cool FX.

I made this longer form video to demonstrate what it's like to make music using most of the mechanics. There will be other soundbanks to select, and you will also be able to customize your own soundbanks to upload your own samples.

I've been asked about turning this into a VST plugin. Due to the nature of the game relying heavily on physics to generate the music, it may a little difficult to get it working with a DAW. The physics can start to stutter when the BPM gets really low. I haven't found a way to alleviate that yet. This is why I set the minimum BPM to 60. So I'm entirely sure yet how this could work as a VST but I'm still open to exploring it more.

(Apologies for the audio crackles. There is an issue with my sound setup and graphics card currently.)

If you'd like to try it out, I have a demo available where you can experiment with some of the basic features.


r/musicprogramming • • Feb 10 '26

Granular Synthesizer

84 Upvotes

hello all. i just finished a granular synthesizer. you can download it at www.dumumub.com or check out the repo at https://github.com/hugh-buntine/dumumub-0000006


r/musicprogramming • • Apr 25 '25

Making an open-source DAW

Post image
78 Upvotes

Building my own DAW.
The notable feature is it runs entirely in browser, and can generate midi similar to how Suno/Udio works (but with actual usable midi data instead of raw audio).

I'm about a week into development, will keep updating.

Github: https://github.com/alacrity-ai/sequenzia


r/musicprogramming • • Feb 04 '26

I made a 6 stem splitter with chord detection

Thumbnail
gallery
63 Upvotes

You can check it out at https://audelta.com/chords for free. I would love to get some feedback


r/musicprogramming • • Dec 10 '25

New music programming language :)

57 Upvotes

I was not happy with what we have by now, so I built my own language on top of Supercollider. Check it out, perhaps someone likes it! There are tons of examples in the docs of the standard lib. Code will be open sourced next weekend when I have time to clean up!

https://vibelang.org


r/musicprogramming • • Sep 02 '26

I built a 3D MIDI visualizer in the browser with live Web MIDI API support. Looking for feedback! (Free Beta)

53 Upvotes

Hi everyone! I’m an indie dev and I just launched the public beta of a spatial music tool I've been building. You can load a MIDI file or plug in your MIDI keyboard (using the Web MIDI API) to play the 3D space in real-time. It also features tools for chord visualization and Negative Harmony. It’s 100% free, no sign-ups, and zero tracking.

You can try the app here: https://gemina3d.com/


r/musicprogramming • • Aug 21 '26

Free MIDI generator based on 40 research papers on music theory

53 Upvotes

I’ve been working on a MIDI generator that might help producers and musicians find a starting point for new ideas. It's 100% free and doesn't request any user details.

Choose an instrument, genre, mood and length, then adjust the rhythm, harmony, complexity, dynamics and humanisation. It generates one editable MIDI part rather than attempting a complete arrangement.

https://melidigenerator.com/

Unlimited exports, no account. I’d love some feedback on the results, controls or anything that feels awkward to use.


r/musicprogramming • • Jul 13 '26

Did I make the world's first physics based DAW?

49 Upvotes

I've been working on this project for about 9 months now. It started very simple, just bouncing droplets and generative music, but it quickly turned into some sort of physics based DAW that I don't think has ever been done before.

This is a demonstration of the sandbox mode, where you can create music freely using a plethora of tools and sounds. You can add a total of 12 instruments, each with 4 different effects (reverb, delay, chorus, phaser) that you can dial in to your liking for each one.

No music theory is required to play, just bounce and experiment. There are some deeper tools if you want to get more complex though. Such as changing the key, BPM, scale, pattern, as well as the notes of individual vines to get the exact melody or rhythm you want. You can upload your own samples to create custom vines and also download the track you created.

I'm releasing it on Steam next month:

https://store.steampowered.com/app/4163480/Dewdrop/

Would love to hear what you think of the game and any features you think would be cool to include!


r/musicprogramming • • Aug 12 '26

I made a physics based music toy that anyone can play

45 Upvotes

Hey everyone! I've been working on a fun new music toy that lets you create music with physics. The game is simple. Just draw vines and bounce little "dewdrops" off them. Each vine has a unique sound. You can even add FX or create your own vines that you can share with others. And that's just the Sandbox mode! There is also a puzzle mode, where each level introduces something new to teach you the mechanics of the game while you solve and create beautiful music.

If you're interested, check it out on Steam!
https://store.steampowered.com/app/4163480/Dewdrop/


r/musicprogramming • • Sep 18 '26

My physics based music sandbox is out now

43 Upvotes

So excited to announce the release of Dewdrop!

I wanted to capture my love for music, and bring that child-like curiosity and experimentation with sound that I love to everyone else. Dewdrop's logic keeps everything in sync and musical sounding while you experiment with physics to solve puzzles, or create music in an ethereal landscape.

Thank you to everyone who has helped me out and expressed their love and interest for Dewdrop along the way!

(Shoutout to my wife for the voice over in the video too 😊)

https://store.steampowered.com/app/4163480/Dewdrop/


r/musicprogramming • • Mar 04 '26

Official JUCE C++ framework course for audio plugin development has been published

Thumbnail
wolfsoundacademy.com
43 Upvotes

JUCE framework has published an official free online course to learn audio plugin development for C++ developers: https://www.wolfsoundacademy.com/juce?utm_source=reddit&utm_medium=social.

Audio plugins are "shared libraries" that you can load in digital audio workstations (DAWs) to generate sound (sound synthesizers) or add audio effects to the sound (reverb, EQ, compression, distortion, etc.).

Most audio plugins on the market are created in C++ using the JUCE C++ framework; it has become the de facto industry standard.

The course teaches you everything you need to know about audio programming to get started: from installing the right developer tools on your operating system, to building your first plugin, defining its audio processing chain, adding parameters, creating a graphical user interface, testing in a DAW, and the basics of distribution. Throughout the course, you will create an actual audio plugin, a tremolo effect, that you can use in a DAW of your choice.

The course reflects all the best practices of the audio plugin industry and is provided completely free of charge.

I am a co-author of this course, and I'd be happy to answer any questions you have. I'd also be eager to take your feedback on the course.


r/musicprogramming • • Dec 25 '25

I built a generative audio sampling engine with live-controllable sliders

42 Upvotes

I just finished a project that turns any set of audio samples into evolving, generative soundscapes.

It’s like a live generative musician jamming in your computer, turning a static samples folder into a constantly evolving performance.

It supports live playing and parameterisation for BPM, pitch, spectral chopping, several effects, and layer weights. These can be adjusted in real-time, move on their own, so the sound is always evolving, but you can override them manually anytime.

I’d love to hear your feedback, feature suggestions, or thoughts on the sound!


r/musicprogramming • • Jul 21 '24

The Marimba Lumina.

41 Upvotes

r/musicprogramming • • Oct 08 '26

I made an instrument app where you type text and it plays

40 Upvotes

r/musicprogramming • • Sep 22 '26

Program for helping write Second Species Conterpoint

40 Upvotes

I am working on a set of 18th century musical rules to help compose the way people used to. This is still a work in progress but it is kind of fun and any feed back is appreciated. You can try it out at Counterpoint


r/musicprogramming • • Jul 19 '25

i wanna do anything programming relevant to music but i dont know where to start

40 Upvotes

Hi!
I’m not a music composer or producer, and I don’t really use a DAW since I don’t create music. But I do code—a lot. I’ve been working on a pitch monitor for vocalists, and that got me curious about doing more with audio: maybe studying it, analyzing it, visualizing it—honestly, just anything I find useful.

Since I don’t use a DAW, writing plugins doesn’t make much sense to me right now because I haven't ever used any. So I was wondering..
Does anyone know where I should be looking or who I could talk to?
What do you all usually build if not plugins?
Is there anything going on in sound research that could use some coding help? I’d be happy to contribute for free.
Or maybe any game devs out there need a tool to help consolidate audio libraries or manage sound in their projects?

Because, honestly, I don’t know what I’m looking for—I just know I want to build something useful in this space.

Edit: wow i didnt expect such a supportive response in most subreddits im treated like an idiot for not being born cool. Im in love u guys 😩🫶🫶, thank u soo very much


r/musicprogramming • • Mar 22 '19

I did a Cover of Stranger Things in Sonic Pi for unversity, maybe this is of interest for some :)

Thumbnail
youtube.com
40 Upvotes

r/musicprogramming • • Sep 30 '25

Capo: A modern music notation programming language

39 Upvotes

I stumbled across LilyPond the other day and as an engineer and a musician my mind immediately went to “what would a modern version of this look like?” because LilyPond is frankly pretty outdated, despite the community around it.

So, I got to work and came up with a concept for a modern music notation programming language I’m calling Capo.

Capo is a way to write out music in a fast, intuitive way and CapoCompose is where the magic really happens. CapoCompose is where you put together full scores in a declarative markup language, but adds functions and variables to extend its capabilities and make programmatic music notation possible.

I’d love to hear your feedback or discuss any part of this in the comments or on the github page, or if anyone wants to contribute this will best be a community effort.


r/musicprogramming • • Nov 30 '25

my live looping daw for improvising and performing full songs

Post image
37 Upvotes

r/musicprogramming • • Aug 23 '26

MIDI beat generator that makes mathematically perfect chaos!

33 Upvotes

This is the best thing I’ve made. Basically it is irregular rhythms that are stacked and looped so they fill a larger cycle perfectly. The individual parts can sound awkward on their own, but together they become coherent without relying on normal bar/beat repetition. If it doesn't make sense reading it then trust me, just generate and listen for a few cycles. It gets very interesting!

It’s based on vuza canon music theory. There’s a whole 'How it works' page for anyone interested.

Please randomly generate some order from chaos. There is no AI, and you can export as much MIDI as you like for free:
https://melidigenerator.com/perfect-chaos-beat-generator/

FYI I did use AI to vibecode the website. I don’t like AI-generated music (like 99% of people) but I’m not really interested in having that debate. If you’re against people using AI for coding also, just don’t use it. All the programming logic comes from real analysis and research on rhythmic canons and if you want to use it rest assured you are not using AI.


r/musicprogramming • • Jun 21 '24

I created a web-synthesizer that generates sound from the binary code of any files

33 Upvotes

r/musicprogramming • • Dec 16 '25

I used Claude to teach Claude how to live code SuperCollider

Thumbnail
youtu.be
32 Upvotes

This is Claude desktop using an MCP server I built (with Claude Code) to send messages to a headless scsynth process. Basically, live coding via LLM. This really isn’t Claude-specific technology, but I’m calling it Claude Collider anyways because I think it sounds cool.

Claude Collider consists of two parts:

- the MCP server (built with https://github.com/modelcontextprotocol/typescript-sdk)

- the ClaudeCollider quark

The quark’s purpose is to provide SuperCollider functionality at arms reach: Prebuilt synths, effects with predefined parameters, MIDI, samples and recording. Claude can write all that from scratch, but this approach makes many commonly used synths and effects short one-liners, which means Claude has to think less and write less, which is both faster and consumes less context. The MCP server then becomes just a way to present ClaudeCollider to the LLM- all of the “logic” has been moved into SuperCollider-land.

ClaudeCollider also has diagnostic tools to inspect the SuperCollider runtime and audio routing configuration, which Claude can use for debugging on the fly when it screws things up.

The video above is Haiku 4.5 live coding in real time, showcasing prebuilt synths, new synths Claude coded on the fly in sclang, and the sampler feature built into the ClaudeCollider quark. Unlike Haiku, Sonnet and Opus actually seem to think through the composition and make some really interesting suggestions. I’d really like to try this out with other LLMs to see how they compare “creatively”.

May open source if there’s any interest! Cheers!

ETA Open source'd it: https://github.com/jeremyruppel/claude-collider


r/musicprogramming • • Feb 24 '21

Vital synth has been open sourced (by Matt Tytel, the creator of Helm)

Thumbnail
github.com
31 Upvotes