# ramamanickam/vocalcutter architecture

> Architecture diagram of the GitHub repository ramamanickam/vocalcutter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ramamanickam/vocalcutter
- Repository: https://github.com/ramamanickam/vocalcutter

## Overview

This small Tkinter desktop app lets a user choose an MP3/WAV file, request Demucs vocal separation, select a time range from the instrumental output, and save the result as MP3. The workflow is implemented in one source file. Demucs is invoked as a subprocess; pydub handles WAV loading, slicing, and MP3 export. The graph reflects the single-file implementation shown; it does not assume additional persistence or processing stages.

Main entry points: [`vocal_cutter.py`](https://github.com/ramamanickam/vocalcutter/blob/main/vocal_cutter.py) (Tkinter app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Tkinter app<br/>[vocal_cutter.py]"]
end

subgraph group_audio["Audio processing"]
  node_demucs["Demucs separation"]
  node_instrumental["Instrumental WAV"]
  node_pydub["Audio slicing/export<br/>[vocal_cutter.py]"]
  node_output["Saved MP3"]
end

node_user(("User"))

node_user -->|"selects and starts"| node_app
node_app -->|"runs separation"| node_demucs
node_demucs -->|"writes WAV"| node_instrumental
node_app -->|"checks and loads"| node_instrumental
node_app -->|"slices audio"| node_pydub
node_app -->|"exports MP3"| node_output
node_user -->|"chooses save path"| node_output

click node_app "https://github.com/ramamanickam/vocalcutter/blob/main/vocal_cutter.py"
click node_pydub "https://github.com/ramamanickam/vocalcutter/blob/main/vocal_cutter.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_user toneBlue
class node_demucs,node_instrumental,node_pydub,node_output toneAmber
```

## Components

### Desktop interface

- [Tkinter app](https://github.com/ramamanickam/vocalcutter/blob/main/vocal_cutter.py): `vocal_cutter.py`

### Audio processing

- **Demucs separation**
- **Instrumental WAV**
- [Audio slicing/export](https://github.com/ramamanickam/vocalcutter/blob/main/vocal_cutter.py): `vocal_cutter.py`
- **Saved MP3**

### Other components

- **User**

## Connections

- User → Tkinter app: selects and starts (evidence: `vocal_cutter.py`)
- Tkinter app → Demucs separation: runs separation (evidence: `vocal_cutter.py`)
- Demucs separation → Instrumental WAV: writes WAV
- Tkinter app → Instrumental WAV: checks and loads (evidence: `vocal_cutter.py`)
- Tkinter app → Audio slicing/export: slices audio (evidence: `vocal_cutter.py`)
- Tkinter app → Saved MP3: exports MP3 (evidence: `vocal_cutter.py`)
- User → Saved MP3: chooses save path
