Navleen Singh Thukral

← Selected projects

Pantry: an AI sample generator inside your music software

A Windows plugin and app: you describe a sound, several AI services generate it at your tempo, and the results land in a searchable library you can drag straight into your music software.

My role
Product owner and architect
Context
Personal project, built with AI coding agents
Period
Sep to Oct 2026
Stack
C++, JUCE, VST3, Google Lyria and Gemini APIs, ACE-Step
Source
Private, available on request

What it is

Pantry is a VST3 plugin and standalone Windows app for music producers. You describe a sound: the genre, instruments to include or leave out, a loop or a one-shot (a single hit), the number of bars, the tempo and the key. Pantry asks several AI services for it at once, trims each result to the right length and files everything into one sample library. From there you can preview a clip and drag it straight into your digital audio workstation (DAW).

How I built it

I designed the product and directed Claude coding agents, which wrote the code. I chose the AI services, picked the interface design, set the requirements, did the hands-on testing and corrected course when something was wrong. For example, the project had assumed that Google’s Lyria could not sing. I questioned that, and a live test showed it could.

The result is about 9,000 lines of C++.

What it does

  • Generates with several services in parallel: Google Lyria and Gemini text-to-speech through their official APIs with your own key, and an ACE-Step server that you host yourself.
  • Follows your project’s tempo and time signature, trims loops to exact bars with a smooth crossfade, cuts one-shots at the first decay and saves 24-bit WAV files.
  • Detects the tempo and key of a sample, and whether it is a loop or a one-shot.
  • Creates spoken lines in 30 voices, with translation into 22 languages.
  • Keeps a searchable library with favorites, waveforms, preview, and drag and drop into your DAW.

Engineering decisions

  • One provider layer sits between the app and the AI services, so each setting reaches every service in a form it understands.
  • Preview playback never makes the audio thread wait. Slow work, such as decoding files and calling services, runs in the background.
  • API keys are stored in Windows Credential Manager, not in a settings file, and keys saved earlier are moved there and checked.
  • When the plugin was renamed, its identity codes stayed the same and old settings are still read, so saved data carries over.

Problems worth naming

  • The ACE-Step server’s top-level status never changed because the real state was hidden in a nested JSON string. Reading that fixed generation. Since a four-second clip took about three minutes on my server, I then added live progress.
  • Asking for a one-shot often returned a full beat. The fix was to tell every service the exact form wanted, then trim at the first decay.

Testing and limits

There are no automated tests yet. The services were checked live, and key detection got all 24 keys right on clean synthetic test signals, which is much easier than real music. Pantry runs on Windows only. Rescanning a very large library can stall the window, and tempos above 170 BPM are read as half their speed. It is installed in FL Studio, but I have not yet verified it inside a saved FL Studio project since the rename.

The source code is private, and I’m glad to walk through it.