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
@@ -205,7 +205,7 @@ def realize(measure: dict, bar: generator.rhythm.Bar, previous: dict | None, *,
written = {'type': source.written_type, 'dots': source.dots} if unchanged else generator.model.written_for(duration)
if not unchanged and (lane == 'electric' or not chord):
duration, written = next(written_durations(duration))
event = generator.model.make_event(f'{measure["id"]}-rhythm-{lane}-{len(events)}', start, duration, 'note' if chord else 'rest', written=written)
event = generator.model.make_event(f'{measure["id"]}_rhythm_{lane}_{len(events)}', start, duration, 'note' if chord else 'rest', written=written)
if chord:
event['_harmony'] = chord
if lane:
@@ -215,7 +215,7 @@ def realize(measure: dict, bar: generator.rhythm.Bar, previous: dict | None, *,
events.append(event)
cursor = start + duration
for duration, written in written_durations(end - cursor):
events.append(generator.model.make_event(f'{measure["id"]}-rhythm-{lane}-{len(events)}', cursor, duration, 'rest', written=written))
events.append(generator.model.make_event(f'{measure["id"]}_rhythm_{lane}_{len(events)}', cursor, duration, 'rest', written=written))
cursor += duration
normalize_beams(events)
return events