Package
ci / checks (push) Successful in 48m34s

This commit is contained in:
khodowany
2026-09-30 19:46:37 -05:00
parent 2a1aa2c67a
commit 09656a9d60
6621 changed files with 698 additions and 774 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ def source_paths(directory: pathlib.Path) -> list[pathlib.Path]:
raise ValueError(f'{path}: performance sources belong directly under data/songs')
identity = generator.score.slugify(path.stem)
if identity in identities:
raise ValueError(f'{identities[identity]} and {path}: conflicting output path {identity}-acoustic.json')
raise ValueError(f'{identities[identity]} and {path}: conflicting output path {identity}_acoustic.json')
identities[identity] = path
return paths
@@ -45,7 +45,7 @@ def generated_voice(measure: dict, role: str) -> list[dict]:
beat_index = 0
while onset < end:
duration = min(beats[beat_index % len(beats)] if beats else end - onset, end - onset)
event = generator.model.make_event(f'slash-{len(events)}', onset, duration, 'note')
event = generator.model.make_event(f'slash_{len(events)}', onset, duration, 'note')
event['notehead'] = 'slash'
events.append(event)
onset += duration