refactor: rename project, package, and CLI from songsplit to unmix
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
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():
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
"""Unit tests for songsplit CLI."""
|
||||
"""Unit tests for unmix CLI."""
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
from songsplit.cli import app
|
||||
from unmix.cli import app
|
||||
|
||||
runner = CliRunner()
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.container import (
|
||||
from unmix.container import (
|
||||
SongpackSecurityError,
|
||||
build_manifest_for_dir,
|
||||
pack_songpack,
|
||||
|
||||
@ -5,16 +5,16 @@ from pathlib import Path
|
||||
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.container import pack_songpack, unpack_songpack
|
||||
from songsplit.export.ultrastar import parse_ultrastar
|
||||
from songsplit.schema.chords import ChordsDocument
|
||||
from songsplit.schema.manifest import ManifestDocument
|
||||
from songsplit.schema.meta import MetaDocument
|
||||
from songsplit.schema.strumming import StrummingDocument
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.tracks import TrackDocument
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.container import pack_songpack, unpack_songpack
|
||||
from unmix.export.ultrastar import parse_ultrastar
|
||||
from unmix.schema.chords import ChordsDocument
|
||||
from unmix.schema.manifest import ManifestDocument
|
||||
from unmix.schema.meta import MetaDocument
|
||||
from unmix.schema.strumming import StrummingDocument
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.tracks import TrackDocument
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
|
||||
def test_demo_package_structure():
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
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():
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from songsplit.export.ultrastar import UltraStarNote, UltraStarSong
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from unmix.export.ultrastar import UltraStarNote, UltraStarSong
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_normalize_text_for_wer():
|
||||
|
||||
@ -8,7 +8,7 @@ import numpy as np
|
||||
import pytest
|
||||
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:
|
||||
|
||||
@ -6,12 +6,12 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s4_pitch import PitchStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from unmix.eval.metrics import evaluate_vocals
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s4_pitch import PitchStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
|
||||
|
||||
def test_m2_pitch_ultrastar_and_eval(tmp_path: Path):
|
||||
|
||||
@ -7,12 +7,12 @@ import numpy as np
|
||||
import pytest
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s5_tempo import TempoStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s5_tempo import TempoStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_m3_tempo_stage_and_click_track(tmp_path: Path):
|
||||
|
||||
@ -6,11 +6,11 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s6_chords import ChordsStage
|
||||
from songsplit.schema.chords import ChordsDocument
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s6_chords import ChordsStage
|
||||
from unmix.schema.chords import ChordsDocument
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
|
||||
|
||||
def test_m4_chords_stage_pipeline(tmp_path: Path):
|
||||
|
||||
@ -6,11 +6,11 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s7_strumming import StrummingStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.strumming import StrummingDocument
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s7_strumming import StrummingStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.strumming import StrummingDocument
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
|
||||
|
||||
def test_m5_strumming_pipeline(tmp_path: Path):
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
import numpy as np
|
||||
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():
|
||||
|
||||
@ -4,7 +4,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
from unmix.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
|
||||
|
||||
class MockStageA(Stage):
|
||||
|
||||
@ -6,8 +6,8 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext
|
||||
from songsplit.pipeline.s1_extract import ExtractStage, get_audio_duration
|
||||
from unmix.pipeline.runner import PipelineContext
|
||||
from unmix.pipeline.s1_extract import ExtractStage, get_audio_duration
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@ -4,8 +4,8 @@ from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext
|
||||
from songsplit.pipeline.s2_stems import StemsStage
|
||||
from unmix.pipeline.runner import PipelineContext
|
||||
from unmix.pipeline.s2_stems import StemsStage
|
||||
|
||||
|
||||
def calculate_snr(original: np.ndarray, reconstructed: np.ndarray) -> float:
|
||||
|
||||
@ -5,7 +5,7 @@ import json
|
||||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from songsplit.schema import (
|
||||
from unmix.schema import (
|
||||
ChordsDocument,
|
||||
MetaDocument,
|
||||
ModelInfo,
|
||||
@ -152,7 +152,7 @@ def test_strumming_document_roundtrip_and_spec_example():
|
||||
|
||||
|
||||
def test_manifest_document_roundtrip():
|
||||
from songsplit.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
||||
from unmix.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
||||
|
||||
manifest = ManifestDocument(
|
||||
created="2026-11-02T11:40:00+01:00",
|
||||
@ -177,7 +177,7 @@ def test_manifest_document_roundtrip():
|
||||
|
||||
|
||||
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
|
||||
t_strum = TrackDocument(
|
||||
@ -218,7 +218,7 @@ def test_tracks_document_kinds():
|
||||
|
||||
|
||||
def test_vocals_f0_document():
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
f0 = VocalsF0Document(
|
||||
hop_sec=0.01,
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
||||
from songsplit.schema.strumming import StrumEvent
|
||||
from unmix.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
||||
from unmix.schema.strumming import StrumEvent
|
||||
|
||||
|
||||
def test_estimate_strum_direction_phase_prior():
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from songsplit.tempo import beat_to_sec, sec_to_beat
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.tempo import beat_to_sec, sec_to_beat
|
||||
|
||||
|
||||
def test_empty_tempo_map_raises_error():
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
from songsplit.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
from unmix.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
|
||||
|
||||
def test_build_tempo_map_constant_tempo():
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_ultrastar_writer_and_reader(tmp_path: Path):
|
||||
|
||||
Reference in New Issue
Block a user