This commit is contained in:
khodowany
2026-10-04 15:51:18 -05:00
parent 405066eb43
commit f234dd6d51
54 changed files with 2104 additions and 330 deletions
+3 -3
View File
@@ -68,11 +68,11 @@ class SoloInstrumentAndIdentity(unittest.TestCase):
self.assertTrue(any(p.string_number==1 for p in placement.positions(65,electric)))
self.assertTrue(any(p.string_number==1 for p in placement.positions(65,acoustic)))
def test_sounding_melody_reference_and_octave_relation(self):
def test_soft_overlapping_registers_do_not_inherit_a_mandatory_octave(self):
source=analysis.analyze(generator.parts.prepare_document(song(count=4,chords=('CM7',))))
acoustic=profiles.for_part('acoustic',source);electric=profiles.for_part('electric',source)
self.assertEqual(electric.reference-acoustic.reference,12)
self.assertEqual(electric.reference,profiles.weighted_center(source.melody)+12)
self.assertLess(electric.reference-acoustic.reference,12)
self.assertEqual(acoustic.melody_range,electric.melody_range)
self.assertEqual(acoustic.cost(acoustic.reference+4),0)
self.assertGreater(acoustic.cost(acoustic.reference+9),0)