+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user