r/Bitwig • • 8d ago

I built an open-source bridge that lets AI agents (Claude Code etc.) work inside Bitwig, and every change is verified

Post image

Hi all, I've been working on Agent Bridge for Bitwig: a controller script plus a local MCP server that lets an AI agent like Claude Code create tracks, write MIDI clips, insert devices and plug-ins, set mixer and device parameters, launch scenes and run Bitwig's actions.

Example: I typed "write a bassline". About 40 seconds later there was a Bass track with Polymer and a 4-bar C-minor clip, and the agent reported that Bitwig read back all 32 notes exactly as written.

What it's good for: tedious, precisely describable work. Track layouts, chord progressions as a starting point, renaming and coloring many tracks, level changes. Everything happens in your project and can be undone with Bitwig's normal undo.

What it can't do (Controller API limits): edit Arranger clips directly, audio clips, automation lanes, open projects. And it doesn't hear anything; judging the sound is still your job.

Runs locally only (loopback, no network). Tested with 6.1.7 on macOS, Windows and Linux. Free and open source (MIT): https://github.com/zkyron-de/agent-bridge-for-bitwig

Feedback and bug reports welcome, especially from setups I haven't tried.

0 Upvotes

24 comments sorted by

17

u/shadowvox 8d ago

Good luck, but I, for one, want to keep AI out of my music as much as possible.

2

u/zkyron 8d ago

Totally fair. It's strictly opt-in: nothing changes in Bitwig unless you install the controller script yourself.

6

u/AlphabetDust 8d ago

If you find coming up with a bass line is tedious work then perhaps making music isn’t for you.

4

u/zkyron 8d ago

Fair point, the bassline was a poor example on my part. The idea is the opposite: let it handle setup chores like creating, naming and coloring a track layout or setting levels, so more time goes to the parts you enjoy.

3

u/tarsonis999 8d ago

Exactly!

16

u/stan7 8d ago

Cool. Can you also build a bridge that plays GTA 6 for me while I'm at work? I'd hate to accidentally have fun.

11

u/rainer_xox 8d ago

yeah not letting clankers do the only fun thing about living in music industry.

2

u/von_Elsewhere 8d ago

This is so cool. Now we can further detach from boring repetitive tasks and focus more on the creative side of things. I hope this provides some time or mental energy savings over manual work.

I see this as a workflow feature. For the people who dislike this - the better workflow and faster and more intuitive controls the software has the less benefit AI tools will have. Bitwig could have so much faster editing tools with proper and working keyboard shortcut model and a creative mouse interfacing system. So please do ask Bitwig for improvements if you come up with ideas or face shortcomings, that's how they know people care.

Anyway, thanks for the OP. I'm intrigued about where this goes with all the modding going on rn.

5

u/zkyron 8d ago

Thanks, that's exactly how I see it too: a workflow tool, not a replacement for the creative part. And agreed, better native editing in Bitwig would help everyone.

1

u/von_Elsewhere 8d ago

You know what would be totally super cool? Having an AI agent that understands voice prompts so that we can use keyboard and mouse or play keyboards or twist synths etc. and simultaneously tell the AI agent what to do by speaking to it.

1

u/zkyron 8d ago

That's a great idea, and partly possible already: the agent just takes text, so any speech-to-text works. On macOS, system dictation (press the Fn/Globe key twice) types into the terminal; Windows has Win+H. So you can keep your hands on the keys and say "mute the drums and bring the pad up 2 dB". A dedicated push-to-talk would be nicer, though, and it's a fun direction to explore.

1

u/von_Elsewhere 8d ago

I believe you need to have the terminal focused if you want the Voice Access to write there on Windows. So you need to prepare for the even where you need the speech recognition. It would be super useful to have an AI assistant that would listen to a defined audio endpoint and only work on Bitwig no matter what else is open or active on the desktop.

1

u/zkyron 7d ago

Good point, dictation always types into whatever has focus, so it breaks the flow exactly when you need it. The bridge itself only needs text, so the missing piece is a small voice front end: a global push-to-talk key (or a pedal/MIDI button) that records from a chosen input, transcribes, and hands the text to the agent, no matter which window is active. That's not something the bridge does today, but it's a nice separate project. I've noted it as an idea.

1

u/von_Elsewhere 7d ago

A physical push to talk control would also solve the issue of the lag produced by the dictator program while waiting for further input before deciding that the user has completed their input session. So you could start playing a synth that's too loud and say "turn down the level by 6 db" and release the control right away and have it done right there instead of waiting for 3 seconds and then having it done or so.

Also, when this thing matures, there could be guides for the agent about how to interpret certain words, or a lack of context. In the previous example, how would the agent know what level to turn down? If no other tracks would put out any audio, then it could infer that it's the track that has an active output above a certain threshold to account for physical inputs producing noise. While the transport is active it could infer that it's the track or tracks that's receiving midi notes from controllers. And so forth. Like what "this" means, or "that". This is likely an advanced concept, but an important one. Perhaps it should ask for clarification and learn from it if possible. Dunno if that's possible without being able to train a model specifically for Bitwig.

Just thinking out aloud. I've been wanting something like what this kind of a thing could become for a long time; basically a voice control over the whole DAW.

2

u/vxkxox 8d ago edited 8d ago

It's funny how hesitant to critical comments dominate. I share the perspective that AI can be a huge workflow tool. Not replacing, but speeding up the creative mind behind it.

(And yes, I know about the beauty of musical accidents. But sometimes I wish for a boost in just craft, not art, just to get shit done.)

1

u/zkyron 7d ago

Thanks! "Craft, not art" sums it up well. The happy accidents still happen while you play and tweak. The agent just takes care of the clicking around them: setting up tracks, routing, naming, levels. Out of curiosity, which chores eat the most time for you? That helps me decide what to improve next.

1

u/DR-DIKKER 8d ago

Nice! The only thing i would be interested using this though would be to create some arrangement suggestions. Perhaps with some added transition fx. For me that's often the time consuming tricky part i would like to get bit push in the process. Hope you can come up with solutions for that sort of thing! 

1

u/zkyron 8d ago edited 8d ago

Thanks! Part of that works today: the agent can lay out an arrangement from your launcher scenes, printing clips into the Arranger at exact bars (intro, build, drop, …) and placing cue markers for the sections, so you get a draft structure to react to. Transition FX are the hard part: Bitwig's Controller API can't write automation lanes, so it can insert a riser or filter device and set its parameters, but not draw the sweep over time. That's an API limit, not something I can work around cleanly, but I'm keeping an eye on it.

Edit: I've opened an issue for it so the idea doesn't get lost: https://github.com/zkyron-de/agent-bridge-for-bitwig/issues/4. Feel free to add your typical workflow there; concrete examples help a lot.

2

u/DR-DIKKER 8d ago

That is so cool. I have been creating a clap plugin+remote script combo for bitwig help me with arrangements. I could send you some screenshots of my project in private in case they might inspire you. What comes to those automations, would it be possible to use device modulators instead of automation lanes to create those basic noise uplifters, noise hits etc. At least for me it's completely normal to have few copies of each for different lengths. Is it able to create new channel and load bitwig device presets? Then it could have a small premade library with proper name convensions in it's use (would save tokens?) and if it would always load the same presets it would be easy for user to update them for their own needs

1

u/zkyron 7d ago

That's a great idea, and most of it works today. The bridge can create tracks and insert Bitwig presets by their exact browser name (your own presets too), and a preset brings its modulators with it. So a noise uplifter whose envelope or Segments modulator is triggered by a note would need no automation lane at all. The agent creates the track, loads "Uplifter 8 bars", writes a clip with one long note and prints it into the Arranger at the section boundary. A small preset library with clear names would make that cheap and predictable, and easy for anyone to tweak.

Screenshots are very welcome. Feel free to DM me, or add your naming scheme to the issue so others can build on it.

1

u/DR-DIKKER 1d ago

Just saw this arrangement tool for M4L

https://youtu.be/DtAlKwBtcjk?is=PwHwHrEP79xdLNzd

1

u/AutoModerator 8d ago

If you think you've found a bug or want to submit a feature request, just send a quick email to support@bitwig.com The team can jump on it right away and let you know if it's already a known issue or maybe even already fixed in the next version.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.