Abjad provides a growing number of score templates in the templates directory.
abjad$ ls templates/
__init__.py lagos.ly paris.ly test
coventry.ly oedo.ly tangiers.ly tirnaveni.ly
Each template in the templates directory is a native LilyPond .ly file with layout, paper and grob settings appropriate for different types of score.
abjad> import random
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score)
Note
File is rotated because template is landscape.
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score, template = 'coventry')
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score, template = 'lagos')
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score, template = 'oedo')
Note
File is rotated because template is landscape.
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score, template = 'paris')
abjad> pitches = [random.randrange(0, 25) for x in range(32)]
abjad> staff_1 = Staff([ ])
abjad> staff_2 = Staff([ ])
abjad> score = Score([staff_1, staff_2])
abjad> staff_1.extend([Note(x, (1, 8)) for x in pitches[:16]])
abjad> staff_2.extend([Note(x, (1, 8)) for x in pitches[16:]])
abjad> show(score, template = 'tangiers')