34 lines
925 B
Python
34 lines
925 B
Python
from __future__ import annotations
|
|
|
|
from typing import List, Optional
|
|
|
|
|
|
def stem_filename(prefix: str, stem_name: str, suffix: str) -> str:
|
|
label = stem_name.lower().replace("_", " ")
|
|
return f"{prefix} ({label}){suffix}"
|
|
|
|
|
|
def get_muted_stems(static_option: Optional[str]) -> List[str]:
|
|
if not static_option:
|
|
return []
|
|
|
|
option_map = {
|
|
"no_vocals": ["vocals"],
|
|
"no_drums": ["drums"],
|
|
"no_bass": ["bass"],
|
|
"no_vocals_no_bass": ["vocals", "bass"],
|
|
"no_drums_no_bass": ["drums", "bass"],
|
|
}
|
|
return option_map.get(static_option, [])
|
|
|
|
|
|
def static_name(static_option: Optional[str]) -> str:
|
|
name_map = {
|
|
"no_vocals": "No Vocals",
|
|
"no_drums": "No Drums",
|
|
"no_bass": "No Bass",
|
|
"no_vocals_no_bass": "No Vocals No Bass",
|
|
"no_drums_no_bass": "No Drums No Bass",
|
|
}
|
|
return name_map.get(static_option, "Static Mix")
|