How flarkflarkflark/stemwerk-reaper works
STEMwerk is a local-first REAPER stem-separation package. A user selects media items or a time selection, chooses a separation model, stems, device and output mode, then runs processing and reviews the returned tracks or in-place takes. The map includes the normal separation path, DrumSep/Kit Split, and setup/runtime support. Relationship evidence is limited to the README and sampled files; unsampled implementation links are omitted where they cannot be verified.
Main entry points: STEMwerk_Workflow.lua Workflow Control · audio_separator_process.py Stem Separation · STEMwerk.lua STEMwerk Entry · stemwerk_drumsep_process.py DrumSep Processing
Components 15
Separation Workflow
- STEMwerk Entry
scripts/reaper/STEMwerk.lua - Workflow Control
scripts/reaper/_internal/STEMwerk_Workflow.lua - Model and Device Settings
scripts/reaper/_internal/STEMwerk_Settings.lua - Progress UI
scripts/reaper/_internal/STEMwerk_Progress_Render.lua
Audio Processing
- Stem Separation
scripts/reaper/audio_separator_process.py - DrumSep Processing
scripts/reaper/_internal/stemwerk_drumsep_process.py - Sample Rate Guard
scripts/reaper/_internal/stemwerk_samplerate_guard.py - Python Backend
REAPER Integration
- Project Context
scripts/reaper/_internal/STEMwerk_Project_Context.lua - Track and Take Output
scripts/reaper/_internal/STEMwerk_Workflow.lua - Kit Split Import
scripts/reaper/_internal/STEMwerk_DKS_Import.lua
Runtime Support
- Setup and Repair
scripts/reaper/STEMwerk-SETUP.lua - Managed Python Runtime
scripts/reaper/_internal/STEMwerk_Managed_Python.lua
Other components
- REAPER User
- REAPER Project
Connections 13
- REAPER User → STEMwerk Entry: starts workflow
README.md - STEMwerk Entry → Workflow Control: runs workflow
- Workflow Control → Model and Device Settings: configures separation
- Workflow Control → Stem Separation: runs backend
README.md - Stem Separation → Python Backend: uses Python
README.md - Workflow Control → Progress UI: shows progress
- Workflow Control → Project Context: reads selection
README.md - Workflow Control → Track and Take Output: returns results
README.md - Track and Take Output → REAPER Project: creates tracks or takes
README.md - Workflow Control → DrumSep Processing: runs kit separation
- DrumSep Processing → Kit Split Import: imports kit stems
- Setup and Repair → Managed Python Runtime: manages runtime
- Stem Separation → Sample Rate Guard: guards audio rate