@@ -131,7 +131,7 @@ class AcousticTests(unittest.TestCase):
|
||||
self.assertEqual(document, before)
|
||||
document['staves'][0]['arrangement_part_type'] = 'acoustic'
|
||||
measure = document['staves'][0]['measures'][0]
|
||||
measure['voices'] = [{'id': 'voice-arranged', 'notes': [generator.model.make_event('slash', fractions.Fraction(), fractions.Fraction(4), 'note') | {'voice': 'voice-arranged', 'notehead': 'slash'}]}]
|
||||
measure['voices'] = [{'id': 'voice_arranged', 'notes': [generator.model.make_event('slash', fractions.Fraction(), fractions.Fraction(4), 'note') | {'voice': 'voice_arranged', 'notehead': 'slash'}]}]
|
||||
before = copy.deepcopy(document)
|
||||
generator.acoustic.prepare(document)
|
||||
generator.acoustic.combine(document)
|
||||
@@ -155,4 +155,4 @@ class AcousticTests(unittest.TestCase):
|
||||
self.assertFalse([p for p in primitives if p.role in ('rest', 'tab-rest')])
|
||||
for note in document['staves'][0]['measures'][0]['voices'][0]['notes']:
|
||||
self.assertEqual(len([p for p in primitives if p.role == 'stem' and note['id'] in p.sources]), 1)
|
||||
self.assertFalse([p for p in primitives if p.role in ('tie', 'tab-tie')])
|
||||
self.assertFalse([p for p in primitives if p.role in ('tie', 'tab_tie')])
|
||||
|
||||
Reference in New Issue
Block a user