Skip to content

Commit

Permalink
Cleaned up music.py files.
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca committed Feb 16, 2024
1 parent 8226a2b commit daad992
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions faberge/sections/07/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ def fl_cl(cache):
abjad.select.leaves(o.rleaves()), [2], overhang=True
),
"o< mp >o !",
glue=True,
)


Expand Down
6 changes: 6 additions & 0 deletions faberge/sections/09/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< f >o !",
glue=True,
rleak=True,
)
with baca.scope(m.get(5, 7)) as o:
Expand All @@ -214,12 +215,14 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o.rleaves(), [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
with baca.scope(m[7]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mp >o !",
glue=True,
rleak=True,
)

Expand All @@ -234,6 +237,7 @@ def eh(m):
baca.piecewise.hairpin(
baca.select.lparts(leaves, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
baca.rspanners.material_annotation(
Expand Down Expand Up @@ -289,6 +293,7 @@ def fl_cl(cache):
abjad.select.leaves(cmgroup), [2], overhang=True
),
"o< mp >o !",
glue=True,
)
baca.rspanners.material_annotation(
o,
Expand Down Expand Up @@ -631,6 +636,7 @@ def vc(m):
baca.piecewise.hairpin(
baca.select.clparts(o, [1, 1]),
"pp p >o !",
glue=True,
rleak=True,
)
baca.pitch(o, "Eb2")
Expand Down
1 change: 1 addition & 0 deletions faberge/sections/11/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def fl_cl(cache):
abjad.select.leaves(cmgroup), [2], overhang=True
),
"o< mp >o !",
glue=True,
)
baca.rspanners.material_annotation(
o,
Expand Down
2 changes: 2 additions & 0 deletions faberge/sections/12/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def fl_cl(cache):
baca.piecewise.hairpin(
abjad.select.partition_by_ratio(baca.select.plts(o.rleaves()), (2, 3)),
"o< mp >o !",
glue=True,
)
for n in [1, 3]:
with baca.scope(m[n]) as o:
Expand All @@ -232,6 +233,7 @@ def fl_cl(cache):
baca.piecewise.hairpin(
abjad.select.partition_by_ratio(baca.select.plts(o.rleaves()), (2, 3)),
"o< p >o !",
glue=True,
)


Expand Down
2 changes: 2 additions & 0 deletions faberge/sections/13/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def eh(m):
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
baca.rspanners.trill(
Expand Down Expand Up @@ -527,6 +528,7 @@ def vc(m, metadata):
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1, 1, 1, 1, 1]),
"o< pp >o ! o< pp >o ! o< pp >o !",
glue=True,
rleak=True,
)

Expand Down
9 changes: 9 additions & 0 deletions faberge/sections/14/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< p >o !",
glue=True,
rleak=True,
)
with baca.scope(m.get(5, 8)) as o:
Expand All @@ -201,6 +202,7 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mp >o !",
glue=True,
rleak=True,
)
with baca.scope(m.get(5, 8)) as o:
Expand All @@ -215,12 +217,14 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
with baca.scope(m[8]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< f >o !",
glue=True,
rleak=True,
)

Expand Down Expand Up @@ -270,6 +274,7 @@ def eh(m):
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
baca.rspanners.trill(
Expand Down Expand Up @@ -407,18 +412,21 @@ def vc(m, metadata):
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1]),
"o< mp >o !",
glue=True,
rleak=True,
)
run = abjad.select.run(o, 1)
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1, 1, 1]),
"o< mf >o ! o< mf >o !",
glue=True,
rleak=True,
)
run = abjad.select.run(o, 2)
baca.piecewise.hairpin(
baca.select.lparts(run, [1, 1]),
"o< f >o !",
glue=True,
rleak=True,
)
with baca.scope(m[5]) as o:
Expand All @@ -430,6 +438,7 @@ def vc(m, metadata):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< p >o !",
glue=True,
rleak=True,
)
baca.pitch(o, "F2")
Expand Down
9 changes: 9 additions & 0 deletions faberge/sections/15/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,24 +165,28 @@ def fl(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
with baca.scope(m[6]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mp >o !",
glue=True,
rleak=True,
)
with baca.scope(m[7]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< p >o !",
glue=True,
rleak=True,
)
with baca.scope(m[8]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< pp >o !",
glue=True,
rleak=True,
)

Expand Down Expand Up @@ -342,6 +346,7 @@ def vc(m):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< p >o !",
glue=True,
rleak=True,
)
baca.pitch(o, "F2")
Expand All @@ -363,24 +368,28 @@ def vn_va_vc(cache):
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mp >o !",
glue=True,
rleak=True,
)
with baca.scope(m[6]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< mf >o !",
glue=True,
rleak=True,
)
with baca.scope(m[7]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< f >o !",
glue=True,
rleak=True,
)
with baca.scope(m[8]) as o:
baca.piecewise.hairpin(
baca.select.lparts(o, [1, 1]),
"o< ff >o !",
glue=True,
rleak=True,
)

Expand Down

0 comments on commit daad992

Please sign in to comment.