refactor: rename project, package, and CLI from songsplit to unmix
This commit is contained in:
44
README.md
44
README.md
@ -1,12 +1,12 @@
|
|||||||
# songsplit
|
# unmix
|
||||||
|
|
||||||
Audio-Analyse-Pipeline, die Songs (Audio/Video) in strukturierte Songpacks zerlegt: getrennte Stems, Text mit Silbentiming, Noten, Tempo-Map, Akkorde und Instrumenten-Tracks für Übungs-Apps und Editoren.
|
Audio-Analyse-Pipeline, die Songs (Audio/Video) in strukturierte Songpacks zerlegt: getrennte Stems, Text mit Silbentiming, Noten, Tempo-Map, Akkorde und Instrumenten-Tracks für Übungs-Apps und Editoren.
|
||||||
|
|
||||||
## Why songsplit exists
|
## Why unmix exists
|
||||||
|
|
||||||
Bestehende Audio-KI-Tools lösen meist nur ein isoliertes Einzelproblem: Demucs trennt Spuren, Whisper transkribiert Text ohne Tonhöhen, CREPE liefert unstrukturierte Rohfrequenzen und Beat-Tracker berechnen oft starre BPM-Durchschnitte.
|
Bestehende Audio-KI-Tools lösen meist nur ein isoliertes Einzelproblem: Demucs trennt Spuren, Whisper transkribiert Text ohne Tonhöhen, CREPE liefert unstrukturierte Rohfrequenzen und Beat-Tracker berechnen oft starre BPM-Durchschnitte.
|
||||||
|
|
||||||
Um Songs für interaktive Musiktrainer (Gesang, Gitarre, Klavier) und Editoren nutzbar zu machen, braucht man jedoch ein verlässliches, typisiertes Datenpaket, in dem Gesangszeiten (Sekunden), Rhythmus/Akkorde (Beats) und isolierte Audio-Stems exakt aufeinander abgestimmt sind. `songsplit` verbindet die besten State-of-the-Art-Open-Source-KI-Modelle in einer robusten, modular gecachten Pipeline mit dem standardisierten [Songpack-Format](songpack-spec.md).
|
Um Songs für interaktive Musiktrainer (Gesang, Gitarre, Klavier) und Editoren nutzbar zu machen, braucht man jedoch ein verlässliches, typisiertes Datenpaket, in dem Gesangszeiten (Sekunden), Rhythmus/Akkorde (Beats) und isolierte Audio-Stems exakt aufeinander abgestimmt sind. `unmix` verbindet die besten State-of-the-Art-Open-Source-KI-Modelle in einer robusten, modular gecachten Pipeline mit dem standardisierten [Songpack-Format](songpack-spec.md).
|
||||||
|
|
||||||
*Contributions:* Fehlerberichte und Feature-Wünsche sind als Issues und Pull Requests herzlich willkommen.
|
*Contributions:* Fehlerberichte und Feature-Wünsche sind als Issues und Pull Requests herzlich willkommen.
|
||||||
|
|
||||||
@ -20,13 +20,13 @@ Getestet auf: Linux (CachyOS / Arch / Ubuntu, Kernel 6.13+, AMD Ryzen AI 9 / Str
|
|||||||
|
|
||||||
**Rechenleistung & VRAM:** Die Ausführung im Qualitätsmodus `best` nutzt speicherintensive Modelle (`htdemucs_ft`, `whisper-large-v3`, `torchcrepe-full`). Auf Systemen mit weniger als 8 GB VRAM oder bei reiner CPU-Nutzung empfiehlt sich der Modus `--quality fast` (mit Modell-Chunking) oder das gezielte Ausführen einzelner Teilstufen über `--stage <name>`.
|
**Rechenleistung & VRAM:** Die Ausführung im Qualitätsmodus `best` nutzt speicherintensive Modelle (`htdemucs_ft`, `whisper-large-v3`, `torchcrepe-full`). Auf Systemen mit weniger als 8 GB VRAM oder bei reiner CPU-Nutzung empfiehlt sich der Modus `--quality fast` (mit Modell-Chunking) oder das gezielte Ausführen einzelner Teilstufen über `--stage <name>`.
|
||||||
|
|
||||||
**Urheberrecht & Weitergabe:** Das Weitergeben von Songpacks in der Variante `full` (inklusive getrennter Original-Audiospuren) unterliegt dem Urheberrecht der jeweiligen Musikaufnahme. Für das Weitergeben von Noten, Text und Akkorden fremder Songs steht die Variante `songsplit pack <ordner> --variant data` zur Verfügung (enthält keine Audiospuren; Empfänger ordnen ihre eigene Aufnahme über `meta.audio_ref` zu).
|
**Urheberrecht & Weitergabe:** Das Weitergeben von Songpacks in der Variante `full` (inklusive getrennter Original-Audiospuren) unterliegt dem Urheberrecht der jeweiligen Musikaufnahme. Für das Weitergeben von Noten, Text und Akkorden fremder Songs steht die Variante `unmix pack <ordner> --variant data` zur Verfügung (enthält keine Audiospuren; Empfänger ordnen ihre eigene Aufnahme über `meta.audio_ref` zu).
|
||||||
|
|
||||||
**Disclaimer:** `songsplit` ist ein unabhängiges Open-Source-Projekt und nicht verbunden mit den Urhebern der analysierten Musiktitel oder den Entwicklern von UltraStar Deluxe.
|
**Disclaimer:** `unmix` ist ein unabhängiges Open-Source-Projekt und nicht verbunden mit den Urhebern der analysierten Musiktitel oder den Entwicklern von UltraStar Deluxe.
|
||||||
|
|
||||||
## How this was built
|
## How this was built
|
||||||
|
|
||||||
`songsplit` wurde nach den Grundsätzen moderner Softwarearchitektur entwickelt:
|
`unmix` wurde nach den Grundsätzen moderner Softwarearchitektur entwickelt:
|
||||||
- Strenge Typisierung und Validierung aller Schnittstellen mittels **Pydantic v2**
|
- Strenge Typisierung und Validierung aller Schnittstellen mittels **Pydantic v2**
|
||||||
- Deterministische Hash-Invalidierung und Zwischenergebnis-Caching in `.cache/`
|
- Deterministische Hash-Invalidierung und Zwischenergebnis-Caching in `.cache/`
|
||||||
- Vollständige Entkopplung von Gesangs- und Instrumentenzweig
|
- Vollständige Entkopplung von Gesangs- und Instrumentenzweig
|
||||||
@ -41,8 +41,8 @@ Das Tool wird mit dem schnellen Python-Paketmanager `uv` installiert:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Repository klonen
|
# Repository klonen
|
||||||
git clone ssh://git@git.wlkns.org:2222/wlkns-dev/unmix.git songsplit
|
git clone ssh://git@git.wlkns.org:2222/wlkns-dev/unmix.git unmix
|
||||||
cd songsplit
|
cd unmix
|
||||||
|
|
||||||
# Virtuelle Umgebung mit Python 3.12 erstellen und Abhängigkeiten installieren
|
# Virtuelle Umgebung mit Python 3.12 erstellen und Abhängigkeiten installieren
|
||||||
uv venv --python 3.12
|
uv venv --python 3.12
|
||||||
@ -50,7 +50,7 @@ source .venv/bin/activate
|
|||||||
uv pip install -e ".[dev]"
|
uv pip install -e ".[dev]"
|
||||||
|
|
||||||
# System- und Hardwareprüfung durchführen
|
# System- und Hardwareprüfung durchführen
|
||||||
songsplit doctor
|
unmix doctor
|
||||||
```
|
```
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
@ -74,7 +74,7 @@ uv run ruff format --check
|
|||||||
|
|
||||||
## What it does
|
## What it does
|
||||||
|
|
||||||
`songsplit` nimmt eine Musikdatei (Audio oder Video) entgegen und erzeugt daraus ein vollständiges, validiertes **Songpack** (als Ordner oder komprimiertes `.songpack`-Archiv).
|
`unmix` nimmt eine Musikdatei (Audio oder Video) entgegen und erzeugt daraus ein vollständiges, validiertes **Songpack** (als Ordner oder komprimiertes `.songpack`-Archiv).
|
||||||
|
|
||||||
### Core Features
|
### Core Features
|
||||||
|
|
||||||
@ -123,50 +123,50 @@ Jede Stufe prüft vor der Ausführung, ob die Eingangsdaten und Parameter unver
|
|||||||
|
|
||||||
## How to use / CLI & Configuration
|
## How to use / CLI & Configuration
|
||||||
|
|
||||||
Nach der Installation steht der CLI-Befehl `songsplit` bereit:
|
Nach der Installation steht der CLI-Befehl `unmix` bereit:
|
||||||
|
|
||||||
### 1. Systemdiagnose
|
### 1. Systemdiagnose
|
||||||
```bash
|
```bash
|
||||||
songsplit doctor
|
unmix doctor
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Gesamte Analyse ausführen
|
### 2. Gesamte Analyse ausführen
|
||||||
```bash
|
```bash
|
||||||
# Standardanalyse (beste Qualität, 4 Stems, deutsche Sprache)
|
# Standardanalyse (beste Qualität, 4 Stems, deutsche Sprache)
|
||||||
songsplit analyze song.mp3 -o output_song/ --lang de
|
unmix analyze song.mp3 -o output_song/ --lang de
|
||||||
|
|
||||||
# Schnelle Analyse mit 6 Stems
|
# Schnelle Analyse mit 6 Stems
|
||||||
songsplit analyze song.mp4 -o output_song/ --stems 6 --quality fast --lang en
|
unmix analyze song.mp4 -o output_song/ --stems 6 --quality fast --lang en
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Gezielte Teilstufen ausführen
|
### 3. Gezielte Teilstufen ausführen
|
||||||
```bash
|
```bash
|
||||||
# Nur Akkorderkennung und deren Voraussetzungen rechnen
|
# Nur Akkorderkennung und deren Voraussetzungen rechnen
|
||||||
songsplit analyze song.mp3 -o output_song/ --stage chords
|
unmix analyze song.mp3 -o output_song/ --stage chords
|
||||||
|
|
||||||
# Nur den Gitarren-Strumming-Track neu berechnen (ignoriert Cache mit --force)
|
# Nur den Gitarren-Strumming-Track neu berechnen (ignoriert Cache mit --force)
|
||||||
songsplit analyze song.mp3 -o output_song/ --stage tracks:strumming --force
|
unmix analyze song.mp3 -o output_song/ --stage tracks:strumming --force
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Songpack packen und sicher entpacken
|
### 4. Songpack packen und sicher entpacken
|
||||||
```bash
|
```bash
|
||||||
# Song-Ordner als vollständiges .songpack packen (inkl. Stems)
|
# Song-Ordner als vollständiges .songpack packen (inkl. Stems)
|
||||||
songsplit pack output_song/ -o my_song.songpack
|
unmix pack output_song/ -o my_song.songpack
|
||||||
|
|
||||||
# Nur Noten und Metadaten packen (ohne urheberrechtlich geschützte Audiodateien)
|
# Nur Noten und Metadaten packen (ohne urheberrechtlich geschützte Audiodateien)
|
||||||
songsplit pack output_song/ -o my_song_data.songpack --variant data
|
unmix pack output_song/ -o my_song_data.songpack --variant data
|
||||||
|
|
||||||
# .songpack-Archiv mit Sicherheitsprüfungen entpacken
|
# .songpack-Archiv mit Sicherheitsprüfungen entpacken
|
||||||
songsplit unpack my_song.songpack -o unpacked_song/
|
unmix unpack my_song.songpack -o unpacked_song/
|
||||||
```
|
```
|
||||||
|
|
||||||
### 5. UltraStar-Export & Qualitäts-Benchmarks
|
### 5. UltraStar-Export & Qualitäts-Benchmarks
|
||||||
```bash
|
```bash
|
||||||
# UltraStar-Datei export/song.txt aktualisieren
|
# UltraStar-Datei export/song.txt aktualisieren
|
||||||
songsplit export-ultrastar output_song/
|
unmix export-ultrastar output_song/
|
||||||
|
|
||||||
# Evaluierungs-Benchmark gegen Referenzdaten laufen lassen
|
# Evaluierungs-Benchmark gegen Referenzdaten laufen lassen
|
||||||
songsplit eval testset.toml
|
unmix eval testset.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
## References & Links
|
## References & Links
|
||||||
@ -181,6 +181,6 @@ songsplit eval testset.toml
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Der Quellcode von `songsplit` steht unter der [MIT-Lizenz](LICENSE).
|
Der Quellcode von `unmix` steht unter der [MIT-Lizenz](LICENSE).
|
||||||
|
|
||||||
Die verwendeten Drittanbieter-Modelle und Bibliotheken (Demucs, Whisper, CREPE, librosa, Pyphen) unterliegen ihren jeweiligen Lizenzen (MIT, Apache-2.0, BSD, LGPL).
|
Die verwendeten Drittanbieter-Modelle und Bibliotheken (Demucs, Whisper, CREPE, librosa, Pyphen) unterliegen ihren jeweiligen Lizenzen (MIT, Apache-2.0, BSD, LGPL).
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Song-Paket Format Spezifikation (v1.0)
|
# Song-Paket Format Spezifikation (v1.0)
|
||||||
|
|
||||||
Dieses Dokument definiert das Dateiformat des **Song-Pakets** als verbindliche Schnittstelle zwischen der Analyse-Pipeline (`songsplit`) und nachgelagerten Anwendungen (z. B. der Rust-Gesangstrainer-App und Editoren).
|
Dieses Dokument definiert das Dateiformat des **Song-Pakets** als verbindliche Schnittstelle zwischen der Analyse-Pipeline (`unmix`) und nachgelagerten Anwendungen (z. B. der Rust-Gesangstrainer-App und Editoren).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,9 @@
|
|||||||
"schema_version": "1.0",
|
"schema_version": "1.0",
|
||||||
"id": "88fa27d4-d39f-4eae-8b15-14585248a1c9",
|
"id": "88fa27d4-d39f-4eae-8b15-14585248a1c9",
|
||||||
"created": "2026-11-02T11:16:09.795264+00:00",
|
"created": "2026-11-02T11:16:09.795264+00:00",
|
||||||
"modified": "2026-11-02T11:21:17.734955+00:00",
|
"modified": "2026-11-02T13:41:47.130704+00:00",
|
||||||
"generator": {
|
"generator": {
|
||||||
"name": "songsplit",
|
"name": "unmix",
|
||||||
"version": "0.1.0"
|
"version": "0.1.0"
|
||||||
},
|
},
|
||||||
"variant": "full",
|
"variant": "full",
|
||||||
@ -108,14 +108,6 @@
|
|||||||
"size": 529244,
|
"size": 529244,
|
||||||
"stem": "vocals"
|
"stem": "vocals"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "tracks/guitar.json",
|
|
||||||
"role": "track",
|
|
||||||
"schema_version": "1.0",
|
|
||||||
"sha256": "64f072e2bb2d17cca3ea18798d3c9448089f204e3ef40b04fab1ab8203b1eeea",
|
|
||||||
"size": 1091,
|
|
||||||
"stem": null
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "export/song.txt",
|
"path": "export/song.txt",
|
||||||
"role": "ultrastar",
|
"role": "ultrastar",
|
||||||
@ -123,6 +115,14 @@
|
|||||||
"sha256": "1989999030e4d14bd7feee99899cf0eedc7efd0b2dcd0edbefb529e664230dc4",
|
"sha256": "1989999030e4d14bd7feee99899cf0eedc7efd0b2dcd0edbefb529e664230dc4",
|
||||||
"size": 152,
|
"size": 152,
|
||||||
"stem": null
|
"stem": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "tracks/guitar.json",
|
||||||
|
"role": "track",
|
||||||
|
"schema_version": "1.0",
|
||||||
|
"sha256": "64f072e2bb2d17cca3ea18798d3c9448089f204e3ef40b04fab1ab8203b1eeea",
|
||||||
|
"size": 1091,
|
||||||
|
"stem": null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stages": {}
|
"stages": {}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "songsplit"
|
name = "unmix"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Song-Paket Audioanalyse-Pipeline (Stems, Lyrics, Vocals, Tempo, Chords, Strumming)"
|
description = "Song-Paket Audioanalyse-Pipeline (Stems, Lyrics, Vocals, Tempo, Chords, Strumming)"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@ -30,14 +30,15 @@ dev = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
songsplit = "songsplit.cli:app"
|
unmix = "unmix.cli:app"
|
||||||
|
songsplit = "unmix.cli:app"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["src/songsplit"]
|
packages = ["src/unmix"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Der Ordner `.cache/` (Zwischenergebnisse der Pipeline) gehört nicht zum Songpac
|
|||||||
"id": "5f0c9b0e-3c1e-4a56-9b8c-1d7f6c2a9a10",
|
"id": "5f0c9b0e-3c1e-4a56-9b8c-1d7f6c2a9a10",
|
||||||
"created": "2026-11-02T11:40:00+01:00",
|
"created": "2026-11-02T11:40:00+01:00",
|
||||||
"modified": "2026-11-02T11:55:12+01:00",
|
"modified": "2026-11-02T11:55:12+01:00",
|
||||||
"generator": {"name": "songsplit", "version": "0.1.0"},
|
"generator": {"name": "unmix", "version": "0.1.0"},
|
||||||
"variant": "full",
|
"variant": "full",
|
||||||
"audio_included": true,
|
"audio_included": true,
|
||||||
"license": null,
|
"license": null,
|
||||||
@ -369,7 +369,7 @@ Fehler verhindern das Laden, Warnungen werden in der Oberfläche angezeigt.
|
|||||||
## 14. Versionierung
|
## 14. Versionierung
|
||||||
|
|
||||||
- Minor-Erhöhung = nur neue optionale Felder. Alte Leser funktionieren weiter.
|
- Minor-Erhöhung = nur neue optionale Felder. Alte Leser funktionieren weiter.
|
||||||
- Major-Erhöhung = inkompatible Änderung. Das Analyse-Tool bietet `songsplit migrate` für ältere Songpacks an.
|
- Major-Erhöhung = inkompatible Änderung. Das Analyse-Tool bietet `unmix migrate` für ältere Songpacks an.
|
||||||
- Die Schema-Version steht pro Datei, damit sich Dateien unabhängig weiterentwickeln können.
|
- Die Schema-Version steht pro Datei, damit sich Dateien unabhängig weiterentwickeln können.
|
||||||
|
|
||||||
## 15. Offene Punkte
|
## 15. Offene Punkte
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
"""songsplit: Audio analysis pipeline for song package decomposition."""
|
|
||||||
|
|
||||||
__version__ = "0.1.0"
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
"""Evaluation package."""
|
|
||||||
|
|
||||||
from songsplit.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
|
||||||
from songsplit.eval.run_eval import run_evaluation
|
|
||||||
|
|
||||||
__all__ = ["evaluate_vocals", "normalize_text_for_wer", "run_evaluation"]
|
|
||||||
3
src/unmix/__init__.py
Normal file
3
src/unmix/__init__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"""unmix: Audio analysis pipeline for song package decomposition."""
|
||||||
|
|
||||||
|
__version__ = "0.1.0"
|
||||||
@ -1,4 +1,4 @@
|
|||||||
"""CLI interface for songsplit."""
|
"""CLI interface for unmix."""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import shutil
|
import shutil
|
||||||
@ -10,12 +10,12 @@ import typer
|
|||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.table import Table
|
from rich.table import Table
|
||||||
|
|
||||||
from songsplit import __version__
|
from unmix import __version__
|
||||||
from songsplit.config import config
|
from unmix.config import config
|
||||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||||
|
|
||||||
app = typer.Typer(
|
app = typer.Typer(
|
||||||
name="songsplit",
|
name="unmix",
|
||||||
help="Audio analysis pipeline decomposing songs into song packages.",
|
help="Audio analysis pipeline decomposing songs into song packages.",
|
||||||
add_completion=False,
|
add_completion=False,
|
||||||
)
|
)
|
||||||
@ -65,7 +65,7 @@ def export_ultrastar_cmd(
|
|||||||
song_dir: Path = typer.Argument(..., help="Song-Paket directory to export", exists=True),
|
song_dir: Path = typer.Argument(..., help="Song-Paket directory to export", exists=True),
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Export an existing Song-Paket directory to UltraStar song.txt."""
|
"""Export an existing Song-Paket directory to UltraStar song.txt."""
|
||||||
from songsplit.export.ultrastar import export_ultrastar
|
from unmix.export.ultrastar import export_ultrastar
|
||||||
|
|
||||||
res = export_ultrastar(song_dir)
|
res = export_ultrastar(song_dir)
|
||||||
print(str(res))
|
print(str(res))
|
||||||
@ -76,7 +76,7 @@ def eval_cmd(
|
|||||||
testset_config: Path = typer.Argument(..., help="Path to testset.toml", exists=True),
|
testset_config: Path = typer.Argument(..., help="Path to testset.toml", exists=True),
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Run quality benchmarks against UltraStar ground-truth references."""
|
"""Run quality benchmarks against UltraStar ground-truth references."""
|
||||||
from songsplit.eval.run_eval import run_evaluation
|
from unmix.eval.run_eval import run_evaluation
|
||||||
|
|
||||||
run_evaluation(testset_config)
|
run_evaluation(testset_config)
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ def pack_cmd(
|
|||||||
),
|
),
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Pack a songpack directory into a .songpack archive."""
|
"""Pack a songpack directory into a .songpack archive."""
|
||||||
from songsplit.container import pack_songpack
|
from unmix.container import pack_songpack
|
||||||
|
|
||||||
res = pack_songpack(song_dir, output_path=output, variant=variant) # type: ignore[arg-type]
|
res = pack_songpack(song_dir, output_path=output, variant=variant) # type: ignore[arg-type]
|
||||||
print(str(res))
|
print(str(res))
|
||||||
@ -102,7 +102,7 @@ def unpack_cmd(
|
|||||||
output_dir: Path | None = typer.Option(None, "-o", "--output", help="Destination folder for unpacked songpack"),
|
output_dir: Path | None = typer.Option(None, "-o", "--output", help="Destination folder for unpacked songpack"),
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Securely unpack a .songpack archive into a song directory."""
|
"""Securely unpack a .songpack archive into a song directory."""
|
||||||
from songsplit.container import unpack_songpack
|
from unmix.container import unpack_songpack
|
||||||
|
|
||||||
dest = output_dir or songpack_file.with_suffix("")
|
dest = output_dir or songpack_file.with_suffix("")
|
||||||
res = unpack_songpack(songpack_file, dest)
|
res = unpack_songpack(songpack_file, dest)
|
||||||
@ -112,7 +112,7 @@ def unpack_cmd(
|
|||||||
@app.command()
|
@app.command()
|
||||||
def doctor() -> None:
|
def doctor() -> None:
|
||||||
"""Check environment, ffmpeg installation, GPUs, and PyTorch availability."""
|
"""Check environment, ffmpeg installation, GPUs, and PyTorch availability."""
|
||||||
table = Table(title=f"songsplit v{__version__} Doctor System Check")
|
table = Table(title=f"unmix v{__version__} Doctor System Check")
|
||||||
table.add_column("Component", style="cyan", no_wrap=True)
|
table.add_column("Component", style="cyan", no_wrap=True)
|
||||||
table.add_column("Status", style="bold")
|
table.add_column("Status", style="bold")
|
||||||
table.add_column("Details", style="white")
|
table.add_column("Details", style="white")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
"""Configuration management for songsplit (devices, models, paths)."""
|
"""Configuration management for unmix (devices, models, paths)."""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -11,21 +11,21 @@ class Config(BaseModel):
|
|||||||
|
|
||||||
models_cache_dir: Path = Field(
|
models_cache_dir: Path = Field(
|
||||||
default_factory=lambda: Path(
|
default_factory=lambda: Path(
|
||||||
os.getenv("SONGSPLIT_MODELS_DIR", Path.home() / ".cache" / "songsplit" / "models")
|
os.getenv("UNMIX_MODELS_DIR", Path.home() / ".cache" / "unmix" / "models")
|
||||||
).expanduser()
|
).expanduser()
|
||||||
)
|
)
|
||||||
|
|
||||||
default_device: str = Field(default_factory=lambda: os.getenv("SONGSPLIT_DEFAULT_DEVICE", "cuda:0"))
|
default_device: str = Field(default_factory=lambda: os.getenv("UNMIX_DEFAULT_DEVICE", "cuda:0"))
|
||||||
|
|
||||||
stage_devices: dict[str, str] = Field(
|
stage_devices: dict[str, str] = Field(
|
||||||
default_factory=lambda: {
|
default_factory=lambda: {
|
||||||
"s1_extract": os.getenv("SONGSPLIT_DEVICE_S1", "cpu"),
|
"s1_extract": os.getenv("UNMIX_DEVICE_S1", "cpu"),
|
||||||
"s2_stems": os.getenv("SONGSPLIT_DEVICE_S2", "cuda:0"),
|
"s2_stems": os.getenv("UNMIX_DEVICE_S2", "cuda:0"),
|
||||||
"s3_lyrics": os.getenv("SONGSPLIT_DEVICE_S3", "cuda:0"),
|
"s3_lyrics": os.getenv("UNMIX_DEVICE_S3", "cuda:0"),
|
||||||
"s4_pitch": os.getenv("SONGSPLIT_DEVICE_S4", "cuda:0"),
|
"s4_pitch": os.getenv("UNMIX_DEVICE_S4", "cuda:0"),
|
||||||
"s5_tempo": os.getenv("SONGSPLIT_DEVICE_S5", "cpu"),
|
"s5_tempo": os.getenv("UNMIX_DEVICE_S5", "cpu"),
|
||||||
"s6_chords": os.getenv("SONGSPLIT_DEVICE_S6", "cpu"),
|
"s6_chords": os.getenv("UNMIX_DEVICE_S6", "cpu"),
|
||||||
"s7_strumming": os.getenv("SONGSPLIT_DEVICE_S7", "cpu"),
|
"s7_strumming": os.getenv("UNMIX_DEVICE_S7", "cpu"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -14,10 +14,10 @@ from datetime import UTC, datetime
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
|
||||||
from songsplit.pipeline.runner import compute_file_sha256
|
from unmix.pipeline.runner import compute_file_sha256
|
||||||
from songsplit.schema.manifest import ManifestDocument, ManifestFileInfo
|
from unmix.schema.manifest import ManifestDocument, ManifestFileInfo
|
||||||
|
|
||||||
logger = logging.getLogger("songsplit.container")
|
logger = logging.getLogger("unmix.container")
|
||||||
|
|
||||||
# Security limits according to Section 12
|
# Security limits according to Section 12
|
||||||
MAX_ENTRIES = 64
|
MAX_ENTRIES = 64
|
||||||
6
src/unmix/eval/__init__.py
Normal file
6
src/unmix/eval/__init__.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
"""Evaluation package."""
|
||||||
|
|
||||||
|
from unmix.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||||
|
from unmix.eval.run_eval import run_evaluation
|
||||||
|
|
||||||
|
__all__ = ["evaluate_vocals", "normalize_text_for_wer", "run_evaluation"]
|
||||||
@ -6,8 +6,8 @@ from typing import Any
|
|||||||
import jiwer
|
import jiwer
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from songsplit.export.ultrastar import UltraStarSong
|
from unmix.export.ultrastar import UltraStarSong
|
||||||
from songsplit.schema.vocals import VocalsDocument
|
from unmix.schema.vocals import VocalsDocument
|
||||||
|
|
||||||
|
|
||||||
def normalize_text_for_wer(text: str) -> str:
|
def normalize_text_for_wer(text: str) -> str:
|
||||||
@ -6,10 +6,10 @@ import tomllib
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from songsplit.eval.metrics import evaluate_vocals
|
from unmix.eval.metrics import evaluate_vocals
|
||||||
from songsplit.export.ultrastar import parse_ultrastar
|
from unmix.export.ultrastar import parse_ultrastar
|
||||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||||
from songsplit.schema.vocals import VocalsDocument
|
from unmix.schema.vocals import VocalsDocument
|
||||||
|
|
||||||
|
|
||||||
def run_evaluation(testset_config: Path, output_report_dir: Path | None = None) -> dict[str, Any]:
|
def run_evaluation(testset_config: Path, output_report_dir: Path | None = None) -> dict[str, Any]:
|
||||||
@ -68,7 +68,7 @@ def run_evaluation(testset_config: Path, output_report_dir: Path | None = None)
|
|||||||
|
|
||||||
# Generate Markdown Report
|
# Generate Markdown Report
|
||||||
md_lines = [
|
md_lines = [
|
||||||
"# songsplit Evaluationsbericht (Eval Report)",
|
"# unmix Evaluationsbericht (Eval Report)",
|
||||||
"",
|
"",
|
||||||
f"Konfiguration: `{testset_config.name}`",
|
f"Konfiguration: `{testset_config.name}`",
|
||||||
f"Getestete Songs: {len(results)}",
|
f"Getestete Songs: {len(results)}",
|
||||||
@ -1,5 +1,5 @@
|
|||||||
"""Export modules."""
|
"""Export modules."""
|
||||||
|
|
||||||
from songsplit.export.ultrastar import UltraStarNote, UltraStarSong, export_ultrastar, parse_ultrastar
|
from unmix.export.ultrastar import UltraStarNote, UltraStarSong, export_ultrastar, parse_ultrastar
|
||||||
|
|
||||||
__all__ = ["export_ultrastar", "parse_ultrastar", "UltraStarSong", "UltraStarNote"]
|
__all__ = ["export_ultrastar", "parse_ultrastar", "UltraStarSong", "UltraStarNote"]
|
||||||
@ -16,10 +16,10 @@ import json
|
|||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from songsplit.schema.meta import MetaDocument
|
from unmix.schema.meta import MetaDocument
|
||||||
from songsplit.schema.tempo import TempoDocument
|
from unmix.schema.tempo import TempoDocument
|
||||||
from songsplit.schema.vocals import VocalsDocument
|
from unmix.schema.vocals import VocalsDocument
|
||||||
from songsplit.tempo import sec_to_beat
|
from unmix.tempo import sec_to_beat
|
||||||
|
|
||||||
|
|
||||||
def export_ultrastar(song_dir: Path) -> Path:
|
def export_ultrastar(song_dir: Path) -> Path:
|
||||||
@ -1,17 +1,17 @@
|
|||||||
"""Pipeline stages and runner."""
|
"""Pipeline stages and runner."""
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
from unmix.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||||
from songsplit.pipeline.s1_extract import ExtractStage
|
from unmix.pipeline.s1_extract import ExtractStage
|
||||||
from songsplit.pipeline.s2_stems import StemsStage
|
from unmix.pipeline.s2_stems import StemsStage
|
||||||
from songsplit.pipeline.s3_lyrics import LyricsStage
|
from unmix.pipeline.s3_lyrics import LyricsStage
|
||||||
from songsplit.pipeline.s4_pitch import PitchStage
|
from unmix.pipeline.s4_pitch import PitchStage
|
||||||
from songsplit.pipeline.s5_tempo import TempoStage
|
from unmix.pipeline.s5_tempo import TempoStage
|
||||||
from songsplit.pipeline.s6_chords import ChordsStage
|
from unmix.pipeline.s6_chords import ChordsStage
|
||||||
from songsplit.pipeline.s7_strumming import StrummingStage
|
from unmix.pipeline.s7_strumming import StrummingStage
|
||||||
|
|
||||||
|
|
||||||
def get_default_pipeline() -> PipelineRunner:
|
def get_default_pipeline() -> PipelineRunner:
|
||||||
"""Instantiate the default 7-stage songsplit pipeline."""
|
"""Instantiate the default 7-stage unmix pipeline."""
|
||||||
return PipelineRunner(
|
return PipelineRunner(
|
||||||
[
|
[
|
||||||
ExtractStage(),
|
ExtractStage(),
|
||||||
@ -9,9 +9,9 @@ from datetime import UTC, datetime
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from songsplit.schema.meta import MetaDocument, ModelInfo, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, ModelInfo, SourceFileInfo
|
||||||
|
|
||||||
logger = logging.getLogger("songsplit.pipeline")
|
logger = logging.getLogger("unmix.pipeline")
|
||||||
|
|
||||||
|
|
||||||
def compute_file_sha256(file_path: Path, chunk_size: int = 65536) -> str:
|
def compute_file_sha256(file_path: Path, chunk_size: int = 65536) -> str:
|
||||||
@ -311,7 +311,7 @@ class PipelineRunner:
|
|||||||
ctx.save_meta(meta)
|
ctx.save_meta(meta)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from songsplit.container import build_manifest_for_dir
|
from unmix.container import build_manifest_for_dir
|
||||||
|
|
||||||
manifest = build_manifest_for_dir(ctx.output_dir)
|
manifest = build_manifest_for_dir(ctx.output_dir)
|
||||||
(ctx.output_dir / "manifest.json").write_text(manifest.model_dump_json(indent=2), encoding="utf-8")
|
(ctx.output_dir / "manifest.json").write_text(manifest.model_dump_json(indent=2), encoding="utf-8")
|
||||||
@ -6,7 +6,7 @@ import subprocess
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
|
|
||||||
|
|
||||||
def get_audio_duration(file_path: Path) -> float:
|
def get_audio_duration(file_path: Path) -> float:
|
||||||
@ -7,8 +7,8 @@ import julius
|
|||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from songsplit.config import config
|
from unmix.config import config
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
|
|
||||||
|
|
||||||
class StemsStage(Stage):
|
class StemsStage(Stage):
|
||||||
@ -7,8 +7,8 @@ from typing import Any
|
|||||||
|
|
||||||
import pyphen
|
import pyphen
|
||||||
|
|
||||||
from songsplit.config import config
|
from unmix.config import config
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
|
|
||||||
|
|
||||||
def hyphenate_word(word_text: str, dic: pyphen.Pyphen) -> list[str]:
|
def hyphenate_word(word_text: str, dic: pyphen.Pyphen) -> list[str]:
|
||||||
@ -8,10 +8,10 @@ import numpy as np
|
|||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from songsplit.config import config
|
from unmix.config import config
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
from songsplit.schema.base import GeneratedBy
|
from unmix.schema.base import GeneratedBy
|
||||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||||
|
|
||||||
|
|
||||||
def hz_to_midi(hz: np.ndarray) -> np.ndarray:
|
def hz_to_midi(hz: np.ndarray) -> np.ndarray:
|
||||||
@ -238,7 +238,7 @@ class PitchStage(Stage):
|
|||||||
|
|
||||||
# Write optional vocals_f0.json per Section 6
|
# Write optional vocals_f0.json per Section 6
|
||||||
try:
|
try:
|
||||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||||
|
|
||||||
hop_sec = hop_length / crepe_sr
|
hop_sec = hop_length / crepe_sr
|
||||||
f0_hz: list[float | None] = [
|
f0_hz: list[float | None] = [
|
||||||
@ -5,10 +5,10 @@ from typing import Any
|
|||||||
|
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.config import config
|
from unmix.config import config
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
from songsplit.schema.base import GeneratedBy
|
from unmix.schema.base import GeneratedBy
|
||||||
from songsplit.tempo import build_tempo_map_from_beats, generate_click_track
|
from unmix.tempo import build_tempo_map_from_beats, generate_click_track
|
||||||
|
|
||||||
|
|
||||||
class TempoStage(Stage):
|
class TempoStage(Stage):
|
||||||
@ -9,11 +9,11 @@ import librosa
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
from songsplit.schema.base import GeneratedBy
|
from unmix.schema.base import GeneratedBy
|
||||||
from songsplit.schema.chords import ChordEvent, ChordsDocument
|
from unmix.schema.chords import ChordEvent, ChordsDocument
|
||||||
from songsplit.schema.tempo import TempoDocument
|
from unmix.schema.tempo import TempoDocument
|
||||||
from songsplit.tempo import beat_to_sec, sec_to_beat
|
from unmix.tempo import beat_to_sec, sec_to_beat
|
||||||
|
|
||||||
PITCH_CLASSES = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
|
PITCH_CLASSES = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ class ChordsStage(Stage):
|
|||||||
chroma = librosa.feature.chroma_cqt(y=mono_audio, sr=sr)
|
chroma = librosa.feature.chroma_cqt(y=mono_audio, sr=sr)
|
||||||
detected_key_str = estimate_key(chroma.mean(axis=1))
|
detected_key_str = estimate_key(chroma.mean(axis=1))
|
||||||
|
|
||||||
from songsplit.schema.meta import KeyInfo
|
from unmix.schema.meta import KeyInfo
|
||||||
|
|
||||||
if detected_key_str.endswith("m"):
|
if detected_key_str.endswith("m"):
|
||||||
key_tonic = detected_key_str[:-1]
|
key_tonic = detected_key_str[:-1]
|
||||||
@ -1,6 +1,6 @@
|
|||||||
"""Stage 7: Strumming pattern analysis -> tracks/guitar.json (wrapper for s7_tracks/strumming)."""
|
"""Stage 7: Strumming pattern analysis -> tracks/guitar.json (wrapper for s7_tracks/strumming)."""
|
||||||
|
|
||||||
from songsplit.pipeline.s7_tracks.strumming import (
|
from unmix.pipeline.s7_tracks.strumming import (
|
||||||
StrummingTrackStage,
|
StrummingTrackStage,
|
||||||
aggregate_strum_patterns,
|
aggregate_strum_patterns,
|
||||||
estimate_strum_direction,
|
estimate_strum_direction,
|
||||||
@ -1,5 +1,5 @@
|
|||||||
"""Instrument track stages (tracks/<name>.json)."""
|
"""Instrument track stages (tracks/<name>.json)."""
|
||||||
|
|
||||||
from songsplit.pipeline.s7_tracks.strumming import StrummingTrackStage
|
from unmix.pipeline.s7_tracks.strumming import StrummingTrackStage
|
||||||
|
|
||||||
__all__ = ["StrummingTrackStage"]
|
__all__ = ["StrummingTrackStage"]
|
||||||
@ -8,11 +8,11 @@ import librosa
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
from unmix.pipeline.runner import PipelineContext, Stage
|
||||||
from songsplit.schema.base import GeneratedBy
|
from unmix.schema.base import GeneratedBy
|
||||||
from songsplit.schema.tempo import TempoDocument
|
from unmix.schema.tempo import TempoDocument
|
||||||
from songsplit.schema.tracks import StrumDirection, StrumEvent, StrumGrid, StrumPattern, TrackDocument
|
from unmix.schema.tracks import StrumDirection, StrumEvent, StrumGrid, StrumPattern, TrackDocument
|
||||||
from songsplit.tempo import sec_to_beat
|
from unmix.tempo import sec_to_beat
|
||||||
|
|
||||||
|
|
||||||
def estimate_strum_direction(
|
def estimate_strum_direction(
|
||||||
@ -1,8 +1,8 @@
|
|||||||
"""Songpack data schemas."""
|
"""Songpack data schemas."""
|
||||||
|
|
||||||
from songsplit.schema.base import DataSource, EditableItem, GeneratedBy, SongPackageBase
|
from unmix.schema.base import DataSource, EditableItem, GeneratedBy, SongPackageBase
|
||||||
from songsplit.schema.chords import ChordEvent, ChordsDocument
|
from unmix.schema.chords import ChordEvent, ChordsDocument
|
||||||
from songsplit.schema.manifest import (
|
from unmix.schema.manifest import (
|
||||||
FileRole,
|
FileRole,
|
||||||
GeneratorInfo,
|
GeneratorInfo,
|
||||||
ManifestDocument,
|
ManifestDocument,
|
||||||
@ -11,7 +11,7 @@ from songsplit.schema.manifest import (
|
|||||||
StageStatus,
|
StageStatus,
|
||||||
StemName,
|
StemName,
|
||||||
)
|
)
|
||||||
from songsplit.schema.meta import (
|
from unmix.schema.meta import (
|
||||||
AudioRefInfo,
|
AudioRefInfo,
|
||||||
CapoSuggestion,
|
CapoSuggestion,
|
||||||
KeyInfo,
|
KeyInfo,
|
||||||
@ -19,11 +19,11 @@ from songsplit.schema.meta import (
|
|||||||
ModelInfo,
|
ModelInfo,
|
||||||
SourceFileInfo,
|
SourceFileInfo,
|
||||||
)
|
)
|
||||||
from songsplit.schema.strumming import StrumDirection, StrumEvent, StrummingDocument, StrumPattern
|
from unmix.schema.strumming import StrumDirection, StrumEvent, StrummingDocument, StrumPattern
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignatureEntry
|
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignatureEntry
|
||||||
from songsplit.schema.tracks import DrumEvent, DrumPiece, NoteEvent, TrackDocument, TrackKind
|
from unmix.schema.tracks import DrumEvent, DrumPiece, NoteEvent, TrackDocument, TrackKind
|
||||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||||
|
|
||||||
# Backward compatibility alias
|
# Backward compatibility alias
|
||||||
TimeSignature = TimeSignatureEntry
|
TimeSignature = TimeSignatureEntry
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from pydantic import ConfigDict, Field
|
from pydantic import ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
from unmix.schema.base import EditableItem, SongPackageBase
|
||||||
|
|
||||||
|
|
||||||
class ChordEvent(EditableItem):
|
class ChordEvent(EditableItem):
|
||||||
@ -35,7 +35,7 @@ class GeneratorInfo(BaseModel):
|
|||||||
|
|
||||||
model_config = ConfigDict(extra="ignore")
|
model_config = ConfigDict(extra="ignore")
|
||||||
|
|
||||||
name: str = "songsplit"
|
name: str = "unmix"
|
||||||
version: str = "0.1.0"
|
version: str = "0.1.0"
|
||||||
|
|
||||||
|
|
||||||
@ -4,7 +4,7 @@ from typing import Literal
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict, Field
|
from pydantic import BaseModel, ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import SongPackageBase
|
from unmix.schema.base import SongPackageBase
|
||||||
|
|
||||||
|
|
||||||
class SourceFileInfo(BaseModel):
|
class SourceFileInfo(BaseModel):
|
||||||
@ -1,6 +1,6 @@
|
|||||||
"""Backward-compatible re-export of strumming types from tracks."""
|
"""Backward-compatible re-export of strumming types from tracks."""
|
||||||
|
|
||||||
from songsplit.schema.tracks import (
|
from unmix.schema.tracks import (
|
||||||
StrumDirection,
|
StrumDirection,
|
||||||
StrumEvent,
|
StrumEvent,
|
||||||
StrumGrid,
|
StrumGrid,
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from pydantic import ConfigDict, Field
|
from pydantic import ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
from unmix.schema.base import EditableItem, SongPackageBase
|
||||||
|
|
||||||
|
|
||||||
class TempoAnchor(EditableItem):
|
class TempoAnchor(EditableItem):
|
||||||
@ -4,7 +4,7 @@ from typing import Any, Literal
|
|||||||
|
|
||||||
from pydantic import ConfigDict, Field
|
from pydantic import ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
from unmix.schema.base import EditableItem, SongPackageBase
|
||||||
|
|
||||||
TrackKind = Literal["strumming", "notes", "drums"]
|
TrackKind = Literal["strumming", "notes", "drums"]
|
||||||
StrumDirection = Literal["down", "up", "mute", "unknown"]
|
StrumDirection = Literal["down", "up", "mute", "unknown"]
|
||||||
@ -4,7 +4,7 @@ from typing import Literal
|
|||||||
|
|
||||||
from pydantic import ConfigDict, Field
|
from pydantic import ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
from unmix.schema.base import EditableItem, SongPackageBase
|
||||||
|
|
||||||
SyllableType = Literal["normal", "golden", "freestyle", "rap"]
|
SyllableType = Literal["normal", "golden", "freestyle", "rap"]
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from pydantic import ConfigDict, Field
|
from pydantic import ConfigDict, Field
|
||||||
|
|
||||||
from songsplit.schema.base import SongPackageBase
|
from unmix.schema.base import SongPackageBase
|
||||||
|
|
||||||
|
|
||||||
class VocalsF0Document(SongPackageBase):
|
class VocalsF0Document(SongPackageBase):
|
||||||
@ -10,7 +10,7 @@ from bisect import bisect_right
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||||
|
|
||||||
|
|
||||||
def _get_sorted_anchors(tempo_map: TempoDocument) -> list[TempoAnchor]:
|
def _get_sorted_anchors(tempo_map: TempoDocument) -> list[TempoAnchor]:
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from songsplit.pipeline.s6_chords import estimate_key, extract_chords_template, parse_harte_chord
|
from unmix.pipeline.s6_chords import estimate_key, extract_chords_template, parse_harte_chord
|
||||||
|
|
||||||
|
|
||||||
def test_parse_harte_chord_labels():
|
def test_parse_harte_chord_labels():
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
"""Unit tests for songsplit CLI."""
|
"""Unit tests for unmix CLI."""
|
||||||
|
|
||||||
from typer.testing import CliRunner
|
from typer.testing import CliRunner
|
||||||
|
|
||||||
from songsplit.cli import app
|
from unmix.cli import app
|
||||||
|
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.container import (
|
from unmix.container import (
|
||||||
SongpackSecurityError,
|
SongpackSecurityError,
|
||||||
build_manifest_for_dir,
|
build_manifest_for_dir,
|
||||||
pack_songpack,
|
pack_songpack,
|
||||||
|
|||||||
@ -5,16 +5,16 @@ from pathlib import Path
|
|||||||
|
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.container import pack_songpack, unpack_songpack
|
from unmix.container import pack_songpack, unpack_songpack
|
||||||
from songsplit.export.ultrastar import parse_ultrastar
|
from unmix.export.ultrastar import parse_ultrastar
|
||||||
from songsplit.schema.chords import ChordsDocument
|
from unmix.schema.chords import ChordsDocument
|
||||||
from songsplit.schema.manifest import ManifestDocument
|
from unmix.schema.manifest import ManifestDocument
|
||||||
from songsplit.schema.meta import MetaDocument
|
from unmix.schema.meta import MetaDocument
|
||||||
from songsplit.schema.strumming import StrummingDocument
|
from unmix.schema.strumming import StrummingDocument
|
||||||
from songsplit.schema.tempo import TempoDocument
|
from unmix.schema.tempo import TempoDocument
|
||||||
from songsplit.schema.tracks import TrackDocument
|
from unmix.schema.tracks import TrackDocument
|
||||||
from songsplit.schema.vocals import VocalsDocument
|
from unmix.schema.vocals import VocalsDocument
|
||||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||||
|
|
||||||
|
|
||||||
def test_demo_package_structure():
|
def test_demo_package_structure():
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import pyphen
|
import pyphen
|
||||||
|
|
||||||
from songsplit.pipeline.s3_lyrics import hyphenate_word, split_word_into_syllables_timed
|
from unmix.pipeline.s3_lyrics import hyphenate_word, split_word_into_syllables_timed
|
||||||
|
|
||||||
|
|
||||||
def test_hyphenate_word_german():
|
def test_hyphenate_word_german():
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
from unmix.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||||
from songsplit.export.ultrastar import UltraStarNote, UltraStarSong
|
from unmix.export.ultrastar import UltraStarNote, UltraStarSong
|
||||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||||
|
|
||||||
|
|
||||||
def test_normalize_text_for_wer():
|
def test_normalize_text_for_wer():
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import numpy as np
|
|||||||
import pytest
|
import pytest
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||||
|
|
||||||
|
|
||||||
def compute_snr(orig: np.ndarray, recon: np.ndarray) -> float:
|
def compute_snr(orig: np.ndarray, recon: np.ndarray) -> float:
|
||||||
|
|||||||
@ -6,12 +6,12 @@ from pathlib import Path
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.eval.metrics import evaluate_vocals
|
from unmix.eval.metrics import evaluate_vocals
|
||||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||||
from songsplit.pipeline import PipelineContext
|
from unmix.pipeline import PipelineContext
|
||||||
from songsplit.pipeline.s4_pitch import PitchStage
|
from unmix.pipeline.s4_pitch import PitchStage
|
||||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||||
from songsplit.schema.vocals import VocalsDocument
|
from unmix.schema.vocals import VocalsDocument
|
||||||
|
|
||||||
|
|
||||||
def test_m2_pitch_ultrastar_and_eval(tmp_path: Path):
|
def test_m2_pitch_ultrastar_and_eval(tmp_path: Path):
|
||||||
|
|||||||
@ -7,12 +7,12 @@ import numpy as np
|
|||||||
import pytest
|
import pytest
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||||
from songsplit.pipeline import PipelineContext
|
from unmix.pipeline import PipelineContext
|
||||||
from songsplit.pipeline.s5_tempo import TempoStage
|
from unmix.pipeline.s5_tempo import TempoStage
|
||||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||||
from songsplit.schema.tempo import TempoDocument
|
from unmix.schema.tempo import TempoDocument
|
||||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||||
|
|
||||||
|
|
||||||
def test_m3_tempo_stage_and_click_track(tmp_path: Path):
|
def test_m3_tempo_stage_and_click_track(tmp_path: Path):
|
||||||
|
|||||||
@ -6,11 +6,11 @@ from pathlib import Path
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.pipeline import PipelineContext
|
from unmix.pipeline import PipelineContext
|
||||||
from songsplit.pipeline.s6_chords import ChordsStage
|
from unmix.pipeline.s6_chords import ChordsStage
|
||||||
from songsplit.schema.chords import ChordsDocument
|
from unmix.schema.chords import ChordsDocument
|
||||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||||
|
|
||||||
|
|
||||||
def test_m4_chords_stage_pipeline(tmp_path: Path):
|
def test_m4_chords_stage_pipeline(tmp_path: Path):
|
||||||
|
|||||||
@ -6,11 +6,11 @@ from pathlib import Path
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
|
|
||||||
from songsplit.pipeline import PipelineContext
|
from unmix.pipeline import PipelineContext
|
||||||
from songsplit.pipeline.s7_strumming import StrummingStage
|
from unmix.pipeline.s7_strumming import StrummingStage
|
||||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||||
from songsplit.schema.strumming import StrummingDocument
|
from unmix.schema.strumming import StrummingDocument
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||||
|
|
||||||
|
|
||||||
def test_m5_strumming_pipeline(tmp_path: Path):
|
def test_m5_strumming_pipeline(tmp_path: Path):
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.pipeline.s4_pitch import correct_octave_errors, hz_to_midi
|
from unmix.pipeline.s4_pitch import correct_octave_errors, hz_to_midi
|
||||||
|
|
||||||
|
|
||||||
def test_hz_to_midi_standards():
|
def test_hz_to_midi_standards():
|
||||||
|
|||||||
@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
from unmix.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||||
|
|
||||||
|
|
||||||
class MockStageA(Stage):
|
class MockStageA(Stage):
|
||||||
|
|||||||
@ -6,8 +6,8 @@ from pathlib import Path
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext
|
from unmix.pipeline.runner import PipelineContext
|
||||||
from songsplit.pipeline.s1_extract import ExtractStage, get_audio_duration
|
from unmix.pipeline.s1_extract import ExtractStage, get_audio_duration
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
@ -4,8 +4,8 @@ from pathlib import Path
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from songsplit.pipeline.runner import PipelineContext
|
from unmix.pipeline.runner import PipelineContext
|
||||||
from songsplit.pipeline.s2_stems import StemsStage
|
from unmix.pipeline.s2_stems import StemsStage
|
||||||
|
|
||||||
|
|
||||||
def calculate_snr(original: np.ndarray, reconstructed: np.ndarray) -> float:
|
def calculate_snr(original: np.ndarray, reconstructed: np.ndarray) -> float:
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import json
|
|||||||
import pytest
|
import pytest
|
||||||
from pydantic import ValidationError
|
from pydantic import ValidationError
|
||||||
|
|
||||||
from songsplit.schema import (
|
from unmix.schema import (
|
||||||
ChordsDocument,
|
ChordsDocument,
|
||||||
MetaDocument,
|
MetaDocument,
|
||||||
ModelInfo,
|
ModelInfo,
|
||||||
@ -152,7 +152,7 @@ def test_strumming_document_roundtrip_and_spec_example():
|
|||||||
|
|
||||||
|
|
||||||
def test_manifest_document_roundtrip():
|
def test_manifest_document_roundtrip():
|
||||||
from songsplit.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
from unmix.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
||||||
|
|
||||||
manifest = ManifestDocument(
|
manifest = ManifestDocument(
|
||||||
created="2026-11-02T11:40:00+01:00",
|
created="2026-11-02T11:40:00+01:00",
|
||||||
@ -177,7 +177,7 @@ def test_manifest_document_roundtrip():
|
|||||||
|
|
||||||
|
|
||||||
def test_tracks_document_kinds():
|
def test_tracks_document_kinds():
|
||||||
from songsplit.schema.tracks import DrumEvent, NoteEvent, StrumEvent, StrumPattern, TrackDocument
|
from unmix.schema.tracks import DrumEvent, NoteEvent, StrumEvent, StrumPattern, TrackDocument
|
||||||
|
|
||||||
# Strumming track
|
# Strumming track
|
||||||
t_strum = TrackDocument(
|
t_strum = TrackDocument(
|
||||||
@ -218,7 +218,7 @@ def test_tracks_document_kinds():
|
|||||||
|
|
||||||
|
|
||||||
def test_vocals_f0_document():
|
def test_vocals_f0_document():
|
||||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||||
|
|
||||||
f0 = VocalsF0Document(
|
f0 = VocalsF0Document(
|
||||||
hop_sec=0.01,
|
hop_sec=0.01,
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from songsplit.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
from unmix.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
||||||
from songsplit.schema.strumming import StrumEvent
|
from unmix.schema.strumming import StrumEvent
|
||||||
|
|
||||||
|
|
||||||
def test_estimate_strum_direction_phase_prior():
|
def test_estimate_strum_direction_phase_prior():
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||||
from songsplit.tempo import beat_to_sec, sec_to_beat
|
from unmix.tempo import beat_to_sec, sec_to_beat
|
||||||
|
|
||||||
|
|
||||||
def test_empty_tempo_map_raises_error():
|
def test_empty_tempo_map_raises_error():
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||||
from songsplit.tempo import build_tempo_map_from_beats, generate_click_track
|
from unmix.tempo import build_tempo_map_from_beats, generate_click_track
|
||||||
|
|
||||||
|
|
||||||
def test_build_tempo_map_constant_tempo():
|
def test_build_tempo_map_constant_tempo():
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||||
|
|
||||||
|
|
||||||
def test_ultrastar_writer_and_reader(tmp_path: Path):
|
def test_ultrastar_writer_and_reader(tmp_path: Path):
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
# Umsetzungskonzept: songsplit (Analyse-Tool)
|
# Umsetzungskonzept: unmix (Analyse-Tool)
|
||||||
|
|
||||||
Arbeitsanweisung für einen KI-Coding-Agenten. Alles hier ist verbindlich, sofern nicht ausdrücklich als "offen" markiert.
|
Arbeitsanweisung für einen KI-Coding-Agenten. Alles hier ist verbindlich, sofern nicht ausdrücklich als "offen" markiert.
|
||||||
|
|
||||||
## 1. Ziel
|
## 1. Ziel
|
||||||
|
|
||||||
`songsplit` zerlegt einen Song (Video oder Audio) in ein **Song-Paket**: getrennte Stems, Text mit Wort-/Silben-Timing, Gesangsnoten, Tempo-Map, Akkorde und Strumming-Vorschlag. Das Paket wird später von einer Rust-Gesangstrainer-App und einem Editor gelesen.
|
`unmix` zerlegt einen Song (Video oder Audio) in ein **Song-Paket**: getrennte Stems, Text mit Wort-/Silben-Timing, Gesangsnoten, Tempo-Map, Akkorde und Strumming-Vorschlag. Das Paket wird später von einer Rust-Gesangstrainer-App und einem Editor gelesen.
|
||||||
|
|
||||||
**Im Scope:** Analyse-Pipeline, Song-Paket-Format, UltraStar-Export (später auch Import als Testreferenz), Qualitätsmessung.
|
**Im Scope:** Analyse-Pipeline, Song-Paket-Format, UltraStar-Export (später auch Import als Testreferenz), Qualitätsmessung.
|
||||||
**Nicht im Scope:** Editor, Pitch-Scoring live, Wiedergabe, GUI.
|
**Nicht im Scope:** Editor, Pitch-Scoring live, Wiedergabe, GUI.
|
||||||
@ -22,10 +22,10 @@ Arbeitsanweisung für einen KI-Coding-Agenten. Alles hier ist verbindlich, sofer
|
|||||||
## 3. Projektstruktur
|
## 3. Projektstruktur
|
||||||
|
|
||||||
```
|
```
|
||||||
songsplit/
|
unmix/
|
||||||
pyproject.toml
|
pyproject.toml
|
||||||
README.md
|
README.md
|
||||||
src/songsplit/
|
src/unmix/
|
||||||
cli.py # typer-App
|
cli.py # typer-App
|
||||||
config.py # Modellwahl, Devices, Pfade
|
config.py # Modellwahl, Devices, Pfade
|
||||||
schema/ # pydantic-Modelle (siehe 4)
|
schema/ # pydantic-Modelle (siehe 4)
|
||||||
@ -149,11 +149,11 @@ Reihenfolge der Abhängigkeiten: 1 → 2 → (3 → 4) und (5 → 6, 7). Stufen
|
|||||||
## 7. CLI
|
## 7. CLI
|
||||||
|
|
||||||
```
|
```
|
||||||
songsplit analyze <datei> -o <ordner> [--lang de] [--stems 4|6] [--quality fast|best]
|
unmix analyze <datei> -o <ordner> [--lang de] [--stems 4|6] [--quality fast|best]
|
||||||
songsplit analyze <datei> -o <ordner> --stage chords [--force]
|
unmix analyze <datei> -o <ordner> --stage chords [--force]
|
||||||
songsplit export-ultrastar <ordner>
|
unmix export-ultrastar <ordner>
|
||||||
songsplit eval <testset.toml>
|
unmix eval <testset.toml>
|
||||||
songsplit doctor # prüft ffmpeg, Modelle, GPUs, Versionen
|
unmix doctor # prüft ffmpeg, Modelle, GPUs, Versionen
|
||||||
```
|
```
|
||||||
|
|
||||||
## 8. Qualitätsmessung (Eval)
|
## 8. Qualitätsmessung (Eval)
|
||||||
|
|||||||
110
uv.lock
generated
110
uv.lock
generated
@ -1368,61 +1368,6 @@ wheels = [
|
|||||||
{ url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },
|
{ url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "songsplit"
|
|
||||||
version = "0.1.0"
|
|
||||||
source = { editable = "." }
|
|
||||||
dependencies = [
|
|
||||||
{ name = "beat-this" },
|
|
||||||
{ name = "chord-extractor" },
|
|
||||||
{ name = "demucs", version = "4.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
|
|
||||||
{ name = "demucs", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" },
|
|
||||||
{ name = "faster-whisper" },
|
|
||||||
{ name = "jiwer" },
|
|
||||||
{ name = "julius" },
|
|
||||||
{ name = "pydantic" },
|
|
||||||
{ name = "pyphen" },
|
|
||||||
{ name = "rich" },
|
|
||||||
{ name = "scipy" },
|
|
||||||
{ name = "soundfile" },
|
|
||||||
{ name = "torch", version = "2.15.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
|
||||||
{ name = "torch", version = "2.15.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
|
||||||
{ name = "torchaudio", version = "2.11.1", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
|
||||||
{ name = "torchaudio", version = "2.11.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
|
||||||
{ name = "torchcrepe" },
|
|
||||||
{ name = "typer" },
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.optional-dependencies]
|
|
||||||
dev = [
|
|
||||||
{ name = "pytest" },
|
|
||||||
{ name = "pytest-cov" },
|
|
||||||
{ name = "ruff" },
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.metadata]
|
|
||||||
requires-dist = [
|
|
||||||
{ name = "beat-this", specifier = ">=1.1.0" },
|
|
||||||
{ name = "chord-extractor", specifier = ">=0.1.3" },
|
|
||||||
{ name = "demucs", specifier = ">=4.0.0" },
|
|
||||||
{ name = "faster-whisper", specifier = ">=1.0.0" },
|
|
||||||
{ name = "jiwer", specifier = ">=3.0.0" },
|
|
||||||
{ name = "julius", specifier = ">=0.2.7" },
|
|
||||||
{ name = "pydantic", specifier = ">=2.7.0" },
|
|
||||||
{ name = "pyphen", specifier = ">=0.14.0" },
|
|
||||||
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
|
||||||
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0.0" },
|
|
||||||
{ name = "rich", specifier = ">=13.7.0" },
|
|
||||||
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.4.0" },
|
|
||||||
{ name = "scipy", specifier = ">=1.12.0" },
|
|
||||||
{ name = "soundfile", specifier = ">=0.12.0" },
|
|
||||||
{ name = "torch", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
|
||||||
{ name = "torchaudio", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
|
||||||
{ name = "torchcrepe", specifier = ">=0.0.23" },
|
|
||||||
{ name = "typer", specifier = ">=0.12.0" },
|
|
||||||
]
|
|
||||||
provides-extras = ["dev"]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "soundfile"
|
name = "soundfile"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
@ -1715,6 +1660,61 @@ wheels = [
|
|||||||
{ url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" },
|
{ url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unmix"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = { editable = "." }
|
||||||
|
dependencies = [
|
||||||
|
{ name = "beat-this" },
|
||||||
|
{ name = "chord-extractor" },
|
||||||
|
{ name = "demucs", version = "4.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
|
||||||
|
{ name = "demucs", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" },
|
||||||
|
{ name = "faster-whisper" },
|
||||||
|
{ name = "jiwer" },
|
||||||
|
{ name = "julius" },
|
||||||
|
{ name = "pydantic" },
|
||||||
|
{ name = "pyphen" },
|
||||||
|
{ name = "rich" },
|
||||||
|
{ name = "scipy" },
|
||||||
|
{ name = "soundfile" },
|
||||||
|
{ name = "torch", version = "2.15.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||||
|
{ name = "torch", version = "2.15.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||||
|
{ name = "torchaudio", version = "2.11.1", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||||
|
{ name = "torchaudio", version = "2.11.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||||
|
{ name = "torchcrepe" },
|
||||||
|
{ name = "typer" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
{ name = "pytest" },
|
||||||
|
{ name = "pytest-cov" },
|
||||||
|
{ name = "ruff" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.metadata]
|
||||||
|
requires-dist = [
|
||||||
|
{ name = "beat-this", specifier = ">=1.1.0" },
|
||||||
|
{ name = "chord-extractor", specifier = ">=0.1.3" },
|
||||||
|
{ name = "demucs", specifier = ">=4.0.0" },
|
||||||
|
{ name = "faster-whisper", specifier = ">=1.0.0" },
|
||||||
|
{ name = "jiwer", specifier = ">=3.0.0" },
|
||||||
|
{ name = "julius", specifier = ">=0.2.7" },
|
||||||
|
{ name = "pydantic", specifier = ">=2.7.0" },
|
||||||
|
{ name = "pyphen", specifier = ">=0.14.0" },
|
||||||
|
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
||||||
|
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0.0" },
|
||||||
|
{ name = "rich", specifier = ">=13.7.0" },
|
||||||
|
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.4.0" },
|
||||||
|
{ name = "scipy", specifier = ">=1.12.0" },
|
||||||
|
{ name = "soundfile", specifier = ">=0.12.0" },
|
||||||
|
{ name = "torch", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||||
|
{ name = "torchaudio", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||||
|
{ name = "torchcrepe", specifier = ">=0.0.23" },
|
||||||
|
{ name = "typer", specifier = ">=0.12.0" },
|
||||||
|
]
|
||||||
|
provides-extras = ["dev"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "urllib3"
|
name = "urllib3"
|
||||||
version = "2.8.0"
|
version = "2.8.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user