Free and open source / Version 0.4.0

Make music with an agent. Hear every edit land.

Pina Studio is a DAW where Claude Code, Codex or any agent works in your song with you. You play; it writes, arranges, mixes and masters, and every step it takes lands in the song in front of you as an edit you can undo.

Download Pina Studio

Version 0.4.0/also for Windows

Pina Studio's main window with the song Corner Store Blues: a drum stack of kick, snare and hats, FX, 808, bass, keys, stabs and pad tracks in coloured regions across the Intro, Verse, Hook and Verse 2, the inspector on the left, and the transport at 95 BPM in C minor.
Corner Store Blues · 95 BPM · C minor Built one pina do command at a time. Watch it get made

Session replay

Watch a beat get built, one command at a time.

Corner Store Blues was made by a script that works the way an agent does: one pina do command at a time. These are real lines from its build, laid along the song where each one lands. With the song open in Pina Studio, each one shows up on screen as a single edit you can undo.

Replay/Corner Store Blues

1.1.1.001Bar · beat · div · tick 0:00.000Time 95.00BPM C minKey
  1. 01StartBar 1

    IntentA boom-bap beat at 95 BPM, in C minor.

    pina new "Corner Store Blues" pina do song '{"op":"set_tempo","bpm":95}' pina do song '{"op":"set_key","key":"C minor"}'

    A new song at 95 BPM in C minor, right there in the top bar.

    The top bar of Corner Store Blues: transport, 95 BPM, 4/4, C minor.
  2. 02DrumsBar 5

    IntentA kick from samples, and a pattern for the verse.

    pina do song '{"op":"add_track","name":"Kick","instrument":{"sampler":{"zones":[…]}}}' pina do song '{"op":"add_pattern_region","track":0,"start":15360,"length":61440,"step":240,"rows":[…]}'

    ⋯ then the rest of the kit, the same way

    A sampler kick playing a 16-bar pattern from bar 5 on sixteenths: tick 15,360 is bar 5, and a step of 240 is a sixteenth.

    The drum stack in Corner Store Blues: the Kick, Snare and Hats rows with their Verse and Hook patterns.
  3. 03The hookBar 21

    IntentMark where the hook comes in.

    pina do song '{"op":"add_marker","tick":76800,"name":"Hook"}'

    A Hook marker at bar 21. At 3,840 ticks to a bar, 76,800 is twenty bars in.

    The marker lane of Corner Store Blues: Intro, Verse 1, Hook at bar 21 and Verse 2 above the drum regions.
  4. 04Verse twoBar 29

    IntentBring the bass back for verse two, tighten it, and slow the keys loop for the break.

    pina do song '{"op":"add_alias","track":5,"region":0,"start":107520}' pina do song '{"op":"edit_notes","track":5,"region":0,"edit":{"kind":"quantize","grid":240,"strength":1}}' pina do song '{"op":"stretch_region","track":6,"region":1,"length":7680}'

    The bass comes back at bar 29 as an alias, its notes snapped to sixteenths at full strength; the keys loop plays at half time in the break.

    The 808, Bass and Keys rows of Corner Store Blues, with the bass regions repeating into Verse 2.
  5. 05Mix and masterWhole song

    IntentMix it, then master it to the genre's loudness.

    pina mix song pina master song

    Each part's EQ, compression, saturation, pan, reverb and level, set from its own measured sound. Then a master at the genre's loudness.

    The mixer of Corner Store Blues: a strip per track with EQ thumbnails, inserts, Room and Hall sends, and faders.
  6. 06CritiqueWhole song

    IntentWhat's still wrong with it?

    pina critique song

    What's wrong, worst first, from clashing notes to tonal balance, each with the command that fixes it.

    The Channel EQ on the Kick: six bands over a live spectrum analyzer, with its analyzer settings open.
  7. 07Your turnNot from the build

    Your noteMake the hook hit harder.

    pina ask song "make the hook hit harder"

    Notes in plain words, answered in edits you can hear and undo. And every track, region and knob stays yours, down to the Kick's five modulators.

    The Modulation pane on the Kick: LFO, Steps, Envelope, Follower and Random cards mapped to pan, EQ band gain, low cut and volume.
Arrange · Corner Store Blues

Agents, built in

Give notes like you would to a producer.

Claude Code and Codex are the Studio Agent's engines ⌘L, or take your notes from a terminal. Each runs on your own account, with Pina Studio's tools as its only tools.

  • “make the hook hit harder”

    The critic checks for a hook weaker than its verse.

  • “write a bassline that follows the chords”

    Theory writes it in key, voice-led, with the genre's groove.

  • “find a dusty keys loop in C minor”

    Samples are found by what they sound like.

  • “flip the vocal into a hook”

    Smart Slice cuts it at its words; the agent re-sequences them.

  • “what's wrong with it? fix the worst first”

    Every problem comes with the command that fixes it.

  • “master it to the genre's loudness”

    Mix targets are measured from released songs.

The Studio Agent mid-song: the song's shape, its loudness, true peak, low end and width after the mix, what it says it did, and a What changed card listing the tempo, a new Sub track, the lead's notes and the drums' compressor.

In the room, not in a chat window.

With the song open, the agent shows up the way a collaborator does in a shared file.

  1. 1

    Its avatar sits in the top bar.

  2. 2

    An outline and a cursor mark what it just changed.

    You see the edit where it happened, not in a log.

  3. 3

    Each edit is one undo.

    Keep what you like. Step back through the rest.

Notes from a terminal show up in the panel too: pina ask <song> "…"

What Pina Studio brings

An agent can't hear, and isn't a musician. So Pina Studio does the parts it would get wrong.

The Lo-fi hip-hop playbook: 60 bars, 6 sections, 5 parts and a -13.0 LUFS master; tempo 70 to 90, swing 60, minor key, a groove grid for kick, snare and hats, and the chords Am9, Fmaj7, Dm9, E7b9.
Playbooks · the Lo-fi hip-hop pageEditable, like everything else
  1. 01

    Playbooks

    Yours, and only if you want one: a genre's tempo, swing, keys, the parts and how to write them, sections, progressions and mix targets. Make one from a song you study, keeping its chords, drums and each section's loudness, and the agent follows it when you ask.

    pina playbook lofi
  2. 02

    Theory

    Chords and progressions for a key and a mood. Bass, chords, melodies and drums written in key, voice-led, with a genre's groove.

    pina theory "A minor" dark trap
  3. 03

    A critic

    What's wrong, worst first: clashing notes, a bass off its chords, robotic velocities, a hook weaker than its verse, clipping, tonal balance. Each comes with the command that fixes it.

    pina critique song
  4. 04

    Mixing by measurement

    Each part's EQ, compression, saturation, pan, reverb and level, set from its own measured sound. Then mastered to the genre's loudness.

    pina mix song pina master song
  5. 05

    Sounds and samples

    Real presets from the instruments you have installed. Samples found by what they sound like, and kits that fit the song's key and tempo.

    pina samples find "dusty keys loop in C minor 95 bpm"
  6. 06

    Song Study

    A finished song taken apart from its audio: tempo, key, chords, form, groove, and its lyrics' rhymes and hooks. Only its title, artist and length are sent anywhere, never its audio.

    pina study song.mp3

Sampling

Chop anything. Flip it like a producer.

Smart Slice listens to what's in a recording, a beat, a voice in a beat or a voice alone, and slices it that way in one click, each slice named for what it sounds like. Take a song's stems apart with a separation model you add. Then the Studio Agent flips the chops into hooks and grooves you can hear before you keep them.

Smart Slice on a drum loop: Kick, Perc, Snare and Closed Hat slices, each with its icon, waveform and play button, a filter by kind and To Sampler.

A beat cut at its hits, each slice named by what it sounds like: kick, snare, closed hat, a chord in A minor. Hear one, narrow them by kind, and put them on a Sampler, a pad each, played where they were. A voice in a beat is chopped with it, the way a soul sample is.

Listen

Two songs. Take them apart.

Midnight Drive was made entirely with pina do commands, the way an agent would make it, on Pina Studio's built-in instruments. Corner Store Blues is the boom-bap beat from the replay, on real samples. These are their real stems, bounced with pina bounce --stems. Mute them, solo them, and the light follows whatever is left.

Midnight Drive open in Pina Studio: Drums, Bass, Keys, Lead and Pad tracks across 16 bars, with Intro, Verse, Pre-Chorus and Chorus markers, at 112 BPM in A minor.
1.1Bar 0:00.0of 0:34.3 112BPM

Five stems, about 2.3 MB. Nothing loads until you press play.

  • Drums
  • Bass
  • Keys
  • Lead
  • Pad

A whole studio

The agent's studio is your studio.

Everything the agent touches is a real part of a real studio, and none of it needs an agent. Play it, write it, shape it and mix it yourself, with your own plugins.

The piano roll: four chords as coloured notes, quantize, strength and swing, tools such as Humanize, Strum and Arpeggiate, and a velocity lane.

Chords as coloured notes, the chord names on the ruler, quantize and swing, tools that humanize, strum, chop and arpeggiate, a chance on every note, and MPE: each note's own pitch, slide and pressure. Plus MIDI FX, score view, musical typing, and MIDI and audio recording.

Arrange

Regions that loop, trim, fade and time-stretch. Markers, cycle, aliases, take folders with comping, Live Loops, track stacks, sends and aux buses, and plugin delay compensation.

Plugins

VST3CLAPVST2Audio Units

Scanned, played and automated, with their own windows shown. Audio Units on macOS.

Bounce

The mix, stems or sections, to a loudness, with tails. Unsaved edits are kept every 30 seconds and offered back.

  • Space plays
  • R records
  • C cycle
  • K metronome
  • ⌘L Studio Agent

Open by default

Read it. Build it. Change it.

MIT licensed and written in Rust from top to bottom. The interface is drawn on the GPU; the built-in effects and instruments are Pina Studio's own DSP, in Rust too. And it works with whichever agent you like.

License
MIT
Written in
Rust
Interface
Drawn on the GPU, with gpui
Effects and instruments
Its own, in Rust
Agents
Claude Code and Codex built in; any other through MCP or the CLI
Runs on
macOS, Apple silicon and Intel · Windows x64

Add it to Claude Code

Any agent, through MCP

An MCP server with 39 tools:

  • show
  • edit
  • analyze
  • render
  • critique
  • mix
  • master
  • stems
  • slices
  • lyrics
  • synth_sounds
  • samples
  • plugins
  • and more

Or one command at a time

pina do <song> '<json>' changes a song one command at a time; pina describe lists every command.

Build it from source

It's late. Make something.

Pina Studio is free and open source, for macOS and Windows.

macOS

Apple silicon and Intel. A disk image with an installer.

Disk image (.dmg)

It isn't notarized yet. If macOS won't open it: System Settings › Privacy & Security › Open Anyway.

Windows

x64. A per-user installer, no administrator needed, or a zip.

Installer (.exe) Zip

The installer isn't code-signed yet. If SmartScreen stops it, choose More info › Run anyway.

From source

With Rust installed, from a clone of the repository:

Every release is on GitHub.