Closed trevorbaca closed 4 months ago
Here is a score that contains a chord with note-head tweaks; the LilyPond format is correct:
staff = abjad.Staff("<d'' fs''>8 e'4") abjad.attach(abjad.Violin(), staff[0]) abjad.tweak(staff[0].note_heads[1], r"\tweak color #red") abjad.tweak(staff[1].note_head, r"\tweak color #blue") string = abjad.lilypond(staff) print(string)
\new Staff { < d'' \tweak color #red fs'' >8 \tweak color #blue e'4 }
But abjad.iterpitches.transpose_from_sounding_pitch() removes note-head tweaks from chords:
abjad.iterpitches.transpose_from_sounding_pitch()
abjad.iterpitches.transpose_from_sounding_pitch(staff) string = abjad.lilypond(staff) print(string)
\new Staff { <d'' fs''>8 \tweak color #blue e'4 }
This is a bug.
Teach abjad.iterpitches.transpose_from_sounding_pitch() to preserve note-head tweaks.
Same situation with abjad.itertpitches.transpose_from_written_pitch().
abjad.itertpitches.transpose_from_written_pitch()
Fixed in Abjad 3.20.
Here is a score that contains a chord with note-head tweaks; the LilyPond format is correct:
But
abjad.iterpitches.transpose_from_sounding_pitch()
removes note-head tweaks from chords:This is a bug.
Teach
abjad.iterpitches.transpose_from_sounding_pitch()
to preserve note-head tweaks.