Improve Catalog
ci / checks (push) Successful in 46m42s

This commit is contained in:
khodowany
2026-09-27 11:03:43 -05:00
parent a416a80dd9
commit 142d843fac
418 changed files with 440 additions and 324488 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import generator.accompaniment
import generator.model
import generator.parts
import generator.playback
import generator.practice.generate
import tests.arrangement_fixtures
import generator.rhythm
import tests.rhythm_fixtures
import tests.test_musicxml
@@ -337,8 +337,8 @@ class DetachedAccompanimentTests(unittest.TestCase):
before = copy.deepcopy(source)
bars = tied_library(2).for_meter('4/4')[0].bars
plan = generator.accompaniment.Plan(bars, bars, ())
prepared = generator.parts.prepare_document(source, practice=True)
result = generator.practice.generate._practice_document(prepared, 'acoustic', plan)
prepared = generator.parts.prepare_document(source)
result = tests.arrangement_fixtures.section_document(prepared, 'acoustic', rhythms=tests.rhythm_fixtures.library(), plan=plan)
generator.model.validate_document(result)
self.assertEqual(timing(tests.test_musicxml.notes(result)), [(0, 4, 'note')])
self.assertEqual(timing(tests.test_musicxml.notes(result, 1)), [(0, 4, 'rest')])