Rhythm Time Signatures
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ def source_paths(directory: Path, *, practice: bool = False) -> list[Path]:
|
||||
identities = {}
|
||||
for path in paths:
|
||||
if practice:
|
||||
if path.parent != directory or len(path.stem) != 3 or not path.stem.isascii() or not path.stem.isdecimal():
|
||||
raise ValueError(f'{path}: practice sources require a three-digit filename directly under data/practice')
|
||||
if path.parent != directory or len(path.stem) != 4 or not path.stem.isascii() or not path.stem.isdecimal():
|
||||
raise ValueError(f'{path}: practice sources require a four-digit filename directly under data/practice')
|
||||
elif path.parent != directory:
|
||||
raise ValueError(f'{path}: performance sources belong directly under data/songs')
|
||||
identity = path.stem if practice else slugify(path.stem)
|
||||
|
||||
Reference in New Issue
Block a user