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 23, 2024
1 parent 5e3b50f commit e36b640
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion faberge/sections/04/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
)
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
runs = abjad.select.runs(o)
baca.hairpin(
baca.select.clparts(runs[0], [1]),
Expand Down
4 changes: 2 additions & 2 deletions faberge/sections/05/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def fl_cl(cache):
with baca.scope(cache[name][n]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:])
baca.hairpin(
baca.select.lparts(o, [1, 1, 2]),
"o< mp>o p>pp",
Expand Down Expand Up @@ -372,7 +372,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
)
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
runs = abjad.select.runs(o)
baca.hairpin(
baca.select.clparts(runs[0], [1]),
Expand Down
2 changes: 0 additions & 2 deletions faberge/sections/06/music.ily
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,6 @@ number.6.Flute.Music = {
\glissando

g'4
\glissando

\once \override DynamicText.self-alignment-X = -0.75
g'4
Expand Down Expand Up @@ -1444,7 +1443,6 @@ number.6.Clarinet.Music = {
\glissando

fs'!4
\glissando

\once \override DynamicText.self-alignment-X = -0.75
fs'!4
Expand Down
2 changes: 1 addition & 1 deletion faberge/sections/06/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def fl_cl(cache):
with baca.scope(m[n]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:4])
baca.hairpin(
baca.select.lparts(o, [1, 1, len(o) - 2]),
"o< mp>o p>pp",
Expand Down
2 changes: 1 addition & 1 deletion faberge/sections/07/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def fl_cl(cache):
with baca.scope(m[n]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:4])
baca.rspanners.trill(
o.leaves()[:2],
abjad.Tweak(r"- \tweak bound-details.right.padding 2"),
Expand Down
4 changes: 2 additions & 2 deletions faberge/sections/10/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def fl_cl(cache):
with baca.scope(m[n]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:4])
baca.rspanners.trill(
o.leaves()[:2],
abjad.Tweak(r"- \tweak bound-details.right.padding 2"),
Expand Down Expand Up @@ -615,7 +615,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
),
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
baca.hairpin(
baca.select.lparts(baca.select.rleak(abjad.select.run(o, 0)), [1, 1, 1]),
"o< p>o !",
Expand Down
4 changes: 2 additions & 2 deletions faberge/sections/11/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def fl_cl(cache):
with baca.scope(m[n]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:4])
baca.rspanners.trill(
o.leaves()[:2],
abjad.Tweak(r"- \tweak bound-details.right.padding 2"),
Expand Down Expand Up @@ -527,7 +527,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
)
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
run = abjad.select.run(o, 0)
baca.hairpin(
baca.select.lparts(run, [1, 1, 1, 2]),
Expand Down
1 change: 0 additions & 1 deletion faberge/sections/13/music.ily
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ number.13.Flute.Music = {
\glissando

g'4
\glissando

\once \override DynamicText.self-alignment-X = -0.75
g'4
Expand Down
4 changes: 2 additions & 2 deletions faberge/sections/13/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def fl(m):
with baca.scope(m[3]) as o:
baca.override.dynamic_text_self_alignment_x(o.pleaf(2), -1)
baca.override.dynamic_text_self_alignment_x(o.pleaf(-1), -0.75)
baca.basic_glissando(o.pleaves()[2:])
baca.glissando(o.pleaves()[2:4])
baca.hairpin(
baca.select.lparts(o, [1, 1, 3]),
"o< mp>o p>pp",
Expand Down Expand Up @@ -519,7 +519,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
)
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
run = abjad.select.run(o, 0)
baca.hairpin(
baca.select.lparts(run, [1, 1, 1, 1, 1, 1]),
Expand Down
2 changes: 1 addition & 1 deletion faberge/sections/14/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def vc(m, metadata):
metadata=metadata,
name="CELLO_GLISSANDI",
)
baca.basic_glissando(o.tleaves())
baca.glissando(o.tleaves(), do_not_hide_middle_note_heads=True)
run = abjad.select.run(o, 0)
baca.hairpin(
baca.select.lparts(run, [1, 1]),
Expand Down

0 comments on commit e36b640

Please sign in to comment.