AI Stem Mixer — Local Installer (PowerShell-only)
================================================

Run (Windows)
1) Unzip
2) Right-click Start-StemMixer.ps1 -> "Run with PowerShell"
   - If you don't see that option:
     Open PowerShell in this folder and run:
       powershell -ExecutionPolicy Bypass -File .\Start-StemMixer.ps1

What happens
- It auto-detects Python (py/python/python3)
- Creates a local venv in .venv
- Installs requirements (Demucs + PyTorch are large; first run takes a while)
- Starts the local app and opens your browser at http://localhost:8080

Logs
- stem_mixer_install.log is created next to the launcher. If anything fails, send the last ~40 lines.


QUICK START (most reliable): double-click Start-StemMixer.cmd


FIX5: Server now auto-picks a free port (8080, 8081, ...) and launcher opens the correct URL.


FIX6: Adds torchcodec dependency required by recent torchaudio builds.


FIX7: Demucs failures now return stdout+stderr tails in the UI and save full logs per run in runs/<job>/.


FIX8: Forces torchaudio backend to 'soundfile' when running Demucs to avoid torchcodec DLL load failures on Windows/Python 3.13.


FIX9: Removes torchcodec entirely and auto-uninstalls it in the venv each run; forces torchaudio backend to soundfile.
If you previously ran FIX6/7/8, you can keep .venv — this build will remove torchcodec automatically.


FIX10: Monkeypatches torchaudio.load to use soundfile directly, bypassing torchaudio's torchcodec requirement.


FIX11: Patches BOTH torchaudio.load and torchaudio.save to use soundfile, fully bypassing torchcodec.


FIX14: Header/title simplified to 'AI Stem Mixer' (no subtitle).


FIX15: App titled 'Vapor Tuek’s AI Stem Mixer'.
