Play and record along with the separated band: the chord and the beat on screen, and your takes aligned with the music and analyzed bar by bar. It works with an AI assistant too.
Riffroom was made for practicing guitar at home with a multi-effects pedal connected by USB (tested with a BOSS GT-100), but it works with any audio interface and any instrument. It is free and open source (GPL-3.0). Everything runs on your computer: your songs and recordings never go to the cloud.
- The band, separated: turn each part (drums, bass, guitars, vocals…) on and off and set its volume. With everything at 0 dB, the band sounds like the record.
- "You will play": one click mutes the part you are going to play and sets where the recording goes.
- NOW panel:
- the chord that is sounding, its degree (I, IV, V…) and its shape on the neck;
- the next chord;
- the beats of the bar lighting up in time (12/8 or 4/4).
- Timeline: shows the sections, the chords and the waveform.
- A click goes to that bar.
- Dragging marks a part to loop.
- Double-clicking a section loops that whole section.
- Count-in and metronome: 4 beats before playing or recording, from any point.
- Takes:
- one button records, and each take comes out already aligned with the band (24-bit FLAC);
- Riffroom measures the delay of your computer once ("Fix the timing") and corrects the clock drift between the interface and the sound card.
- Timing analysis of each take, against the original part or the beat:
- early or late, and how consistent you are;
- which bars to practice, and where you rushed or dragged.
- Compare:
- each part plays the original or one of your takes;
- mark favorites, rename, delete (with undo), export MP3.
- Import a song with AI: turn an MP3 into a practice song, on your computer.
- Made for AI assistants: an MCP server lets Claude (Desktop or Code), or any MCP client, drive Riffroom and coach you (see With an AI assistant).
- Three languages: English, Portuguese and Spanish.
- Windows 10 or 11. The app window is Microsoft Edge, which comes with Windows.
- Python 3.10 or newer (tested with 3.13), free at python.org.
- An audio interface for your instrument: a pedal with USB (like the BOSS GT-100), a sound card, or the computer's own input.
- For the local AI (optional): about 1.5 GB of disk.
- Download the latest release ZIP and extract it, or run:
git clone https://github.com/luanmadson/riffroom - Double-click
install.bat. It:- creates the app's Python environment in
%LOCALAPPDATA%\Riffroom\venv; - installs the libraries;
- makes the demo song (a slow blues in A, synthesized by Riffroom itself);
- creates the Riffroom shortcut on the Desktop and in the Start menu;
- registers Riffroom for Claude Code and Claude Desktop, when they are installed;
- opens the app.
- creates the app's Python environment in
Options (also work with install.bat):
| Option | What it does |
|---|---|
-AI |
Installs the local AI: PyTorch for CPU, Demucs, beat-this and librosa (~1.5 GB). |
-AI -GPU |
The same, with PyTorch for NVIDIA cards (CUDA, ~3 GB). Separating takes seconds instead of minutes. |
-Language pt |
Starts in Portuguese (es for Spanish). You can also change it later in the app. |
-Library FOLDER |
Adds a folder of songs. |
-NoClaude |
Does not register Riffroom with AI assistants. |
-Uninstall |
Removes the shortcuts, the registration and the environment. Your songs and takes stay. |
If Windows warns that the file came from the internet, click "More info", then "Run anyway".
- Open Riffroom from the shortcut. The first time, a short tour shows each area.
- At the top, check:
- the Input, where your guitar comes from (the GT-100 is picked automatically);
- the Output, where the band plays: the computer speakers, or the interface itself.
- Do Fix the timing once: mute the strings and strum together with 8 clicks. It takes about 10 seconds.
- In You will play, choose your part and press Record (R).
- Press ▶ on the take to hear it in place of the original. The take's ⋯ > Analyze the timing shows where you rushed or dragged.
In the songs menu, choose + Import a song (MP3, WAV, FLAC)… with AI. It needs install.bat -AI. Riffroom then:
- separates the instruments (Demucs
htdemucs_6s: drums, bass, guitar, piano, vocals, other); - finds the beats and the bars;
- adds 4 beats of silence before bar 1 for the count-in;
- suggests the chords;
- writes everything to
<music folder>\<Artist>\<Title>\.
On a typical CPU, a 6-minute song takes about 2 minutes. The chords are written to chords.txt as a suggestion: listen and correct them (see the format below), then open the song again.
How good is it? We compared the AI with a hand-checked map of a real 12/8 rock song.
- Tempo: within 1 beat per minute.
- Bars: 91% start within 60 ms of the checked ones.
- Chords: the root note is right about 60% of the time. Sus chords are named as power chords or major.
Riffroom also finds songs that you separated yourself. Add the folder from the songs menu (+ Add a music folder…). Each song needs its own folder with the tracks:
Riffroom\
└── My band\
└── My song\
├── drums.wav (bass.wav, guitar.wav, vocals.wav, other.wav, piano.wav — the Demucs names)
├── mixture.wav (optional: the whole song, to set the volume of each part)
└── chords.txt (optional: the chord chart)
Names in Portuguese and Spanish work too (bateria, baixo, guitarra, voz…), as do rhythm_guitar and lead_guitar. The first time you open the song, Riffroom prepares it by itself.
To see the beat, the chords and the count-in, give the tempo. Run it with the app's Python:
%LOCALAPPDATA%\Riffroom\venv\Scripts\python.exe app\prepare.py "<song folder>" --bpm 92 --time-signature 4/4 --first-bar 1.25
| Option | Meaning |
|---|---|
--bpm |
Beats per minute, the beat you tap your foot to. In 12/8 it is the dotted quarter note. |
--first-bar |
The second where bar 1 starts. |
--tuning -1 |
For a guitar tuned a half step down: the chords are named by the shape you play. |
--targets guitar,vocals |
The parts shown in "You will play". |
One bar per word:
[Intro]
A5 % D5 A5
[Verse]
A5 % % %
D5 % A5 %
E5 D5,C5 A5 -
| Sign | Meaning |
|---|---|
% |
repeats the previous bar |
D5,C5 |
splits the bar between the two chords |
- |
a bar with no chord |
[Name] |
starts a section of the song |
# at the start of a line |
a comment |
Riffroom works out the degree of each chord and draws the shape. The demo song has a complete example.
Riffroom comes with an MCP server (app/mcp_server.py). With it, an AI assistant can run a practice session for you. For example:
- "Open the demo song, loop the solo and record three takes of the rhythm guitar."
- "Where did I rush? What should I practice?"
- "Compare my last takes."
- "Import C:\Music\song.mp3; the guitar is tuned a half step down."
- "These are the chords of the verse: A5 D5 A5 E5. Write the chart."
The assistant sees only what the tools return: the structure of the song, the state of the app and the timing analyses, never your audio. The tools are:
- songs:
list_songs,open_song,get_song_map; - playback:
play,pause,set_loop,clear_loop; - the band:
set_part,set_target,set_options; - recording and takes:
record_take,stop_recording,list_takes,play_take,update_take,delete_take,analyze_take,compare_takes,export_mp3; - preparing songs:
set_chords,prepare_song,import_song,get_job; calibrate_latencyandget_status.
There is also a coach_session prompt.
install.bat registers the server automatically. To do it by hand:
claude mcp add riffroom --scope user -- "%LOCALAPPDATA%\Riffroom\venv\Scripts\python.exe" -I -X utf8 "<folder>\app\mcp_server.py"
For Claude Desktop, add this to %APPDATA%\Claude\claude_desktop_config.json, then restart Claude Desktop:
{ "mcpServers": { "riffroom": { "command": "C:\\Users\\<you>\\AppData\\Local\\Riffroom\\venv\\Scripts\\python.exe",
"args": ["-I", "-X", "utf8", "<folder>\\app\\mcp_server.py"] } } }If Riffroom is closed when the assistant needs it, the server opens it.
| Key | What it does |
|---|---|
| Space | play and pause (and stop recording) |
| R | record and stop |
| Home | back to the start (or to the start of the loop) |
| ← → | previous and next bar |
| L | loop on and off |
| C | count-in on and off |
| M | metronome on and off |
| 1 2 3… | "you will play": the buttons of the Band panel, in order |
| ? | help |
| What | Where |
|---|---|
| Takes | Takes\, in the song folder: FLAC plus a .json record. In Portuguese, Gravações\Tentativas\; in Spanish, Grabaciones\Tomas\. The folder that already exists is used. |
| Deleted takes | Takes\Trash\ |
| Exported MP3 | Exports\ |
| Settings and log | %LOCALAPPDATA%\Riffroom\ (music folders, language, input, timing fix, the mix of each song) |
- app/riffroom.py: a local server, on 127.0.0.1 only, that refuses requests from other sites. The window is Edge in app mode. The screen (app/web/, plain HTML/CSS/JS) talks to the server with JSON and receives events by SSE.
- app/engine.py: the audio, with sounddevice (PortAudio, WASAPI). It mixes the parts, the loop, the count-in and the metronome without clicks, and records the input along with the time of each block.
- Alignment:
- PortAudio reports when each output block reaches the speakers and when each input block arrives.
- That ties the first recorded sample to the position of the song that was sounding at that instant.
- A line fitted through those times measures the drift between the interface clock and the sound card clock. If the difference passes 1.5 ms over the take, the take is resampled.
- "Fix the timing" measures what is left, the latency of the guitar path.
- app/analysis.py:
- finds each strum with log spectral flux, refined to about 1 ms on the envelope above 1.5 kHz (the pick transient, which survives distortion and compression);
- matches each strum to the beat subdivisions and to the attacks of the original part.
- app/ai/: Demucs, beat-this, and chord suggestions from chroma (librosa) per beat, with chord templates and Viterbi smoothing. When the bar starts are unclear, the bar length (12/8 against 6/8) is chosen with the help of the chord changes.
- app/prepare.py: recognizes the tracks, sets the volume of each part by least squares against the whole song, and builds the bars, chords and sections.
- demo/make_demo.py: synthesizes the demo song (Karplus-Strong guitars and bass, synthesized drums).
%LOCALAPPDATA%\Riffroom\venv\Scripts\python.exe -X utf8 tests\run_tests.py
The tests need no audio device. The AI tests run only when the local AI is installed.
GPL-3.0-or-later. Version 1.0.0, released as "Sala de Ensaio", was MIT-licensed.
Riffroom builds on:
- numpy, scipy, soundfile, librosa and PyTorch (BSD/ISC);
- sounddevice, the MCP SDK, Demucs and beat-this (MIT);
- lameenc (LGPL).
