Hi everyone,
I've encountered a bug in abjad.Meter.rewrite() specifically when a Chord is tied to a Note (or vice versa) and the meter grid forces a rhythmic split.
I have been facing similar issues when writing chords where only specific notes are tied (I am currently composing for pipe organ).
Abjad docs modified example:
import abjad
string = "| 2/4 c'2 ~ |"
string += "| 4/4 c'32 d'2.. ~ <d' f'>16 e'32 ~ |"
string += "| 2/4 e'2 |"
container = abjad.parsers.reduced.parse_reduced_ly_syntax(string)
staff = abjad.Staff()
staff[:] = container
print(abjad.lilypond(staff))
string = "(4/4 ((2/4 (1/4 1/4)) (2/4 (1/4 1/4))))"
rtc = abjad.rhythmtrees.parse(string)[0]
meter = abjad.Meter(rtc)
meter.rewrite(staff[1][:])
print(abjad.lilypond(staff))
Output:
\new Staff
{
{
%%% \time 2/4 %%%
c'2
~
}
{
%%% \time 4/4 %%%
c'32
d'2..
~
<d' f'>16
e'32
~
}
{
%%% \time 2/4 %%%
e'2
}
}
\new Staff
{
{
%%% \time 2/4 %%%
c'2
~
}
{
%%% \time 4/4 %%%
c'32
d'4...
~
d'4...
e'32
~
}
{
%%% \time 2/4 %%%
e'2
}
}
Expected output:
\new Staff
{
{
\time 2/4 %%%
c'2
~
}
{
\time 4/4 %%%
c'32
d'4...
~
d'4. ~
d'32 ~
<d' f'>16
e'32
~
}
{
\time 2/4 %%%
e'2
}
}
Is this a known limitation in how LogicalTie handles chords tied to single notes and vice-versa?
Best regards,
Davi
--
You received this message because you are subscribed to the Google Groups "abjad-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to abjad-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/abjad-user/3cac056b-14ad-46eb-8900-4af73c30bf34n%40googlegroups.com.