Re: Problem with understanding results with multiple voices and Note_heads_engraver
> Before mentioning where one problem is, I suspect that I'm not handling the multiple voices properly so that could be a problem as well. > The offending code in mwe.ly appears to be the following: Ok, I discovered that there was an easier way to code multiple voices across staves and now all the problems are gone. Still an interesting problem, I suppose, but I've moved on. Dave Bellows On Wed, Oct 19, 2016 at 6:31 PM, David Bellowswrote: > I've attached mwe.ly and mwe.png. I'm using Lilypond 2.19.49 but I've > observed the same results in other versions including 2.18. > > Before mentioning where one problem is, I suspect that I'm not > handling the multiple voices properly so that could be a problem as > well. > > The offending code in mwe.ly appears to be the following: > > \context { \Voice \remove "Note_heads_engraver" \consists > "Completion_heads_engraver" \remove "Rest_engraver" \consists > "Completion_rest_engraver"} > > Remove this line and the it prints out as you'd expect with those two > B's as 16th notes in the lower staff. Here's the thing, the Lilypond > code is generated automatically by my software and it's rare that > notes fit within the bar lines so I always have that line included so > that Lilypond prints things out accurately no matter what happens at > bar lines (Lilypond automatically splits up and ties notes across bar > lines and it does it really, really well). > > So I'm not sure if I've formed that line incorrectly or if there is > something else going on or a combination of things. > > Thanks for any help, > David Bellows ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Problem with understanding results with multiple voices and Note_heads_engraver
I've attached mwe.ly and mwe.png. I'm using Lilypond 2.19.49 but I've observed the same results in other versions including 2.18. Before mentioning where one problem is, I suspect that I'm not handling the multiple voices properly so that could be a problem as well. The offending code in mwe.ly appears to be the following: \context { \Voice \remove "Note_heads_engraver" \consists "Completion_heads_engraver" \remove "Rest_engraver" \consists "Completion_rest_engraver"} Remove this line and the it prints out as you'd expect with those two B's as 16th notes in the lower staff. Here's the thing, the Lilypond code is generated automatically by my software and it's rare that notes fit within the bar lines so I always have that line included so that Lilypond prints things out accurately no matter what happens at bar lines (Lilypond automatically splits up and ties notes across bar lines and it does it really, really well). So I'm not sure if I've formed that line incorrectly or if there is something else going on or a combination of things. Thanks for any help, David Bellows \version "2.19.49" \header { } \language "english" voice_one = { \key c \major \clef "treble" \time 4/4 \tempo "adagio" 4 = 60 r8 c'16 e'16 d'16 s16 s16 c'16 e'16 d'16 a'16 c'16 c'16 a'16 e'16 f'16 c'1 } voice_five = { \key c \major \clef "treble" \time 4/4 \tempo "adagio" 4 = 60 s1 s1 } voice_two = { \key c \major \clef "bass" \time 4/4 \tempo "adagio" 4 = 60 s8 s16 s16 s16 b16\ff b16 s16 s16 s16 s16 s16 s16 s16 s16 s16 s1 } voice_six = { \key c \major \clef "bass" \time 4/4 \tempo "adagio" 4 = 60 e,1 d,1\bar "|." } \paper {#(set-paper-size "letter") } \score { \new PianoStaff << \new Staff = "upper" << \new Voice = "first" { \voiceOne { \voice_one}} {\voiceThree { \voice_five}} >> \new Staff = "lower" << \new Voice = "second" {\voiceTwo { \voice_two}} {\voiceFour { \voice_six}} >> >> \layout{ragged-bottom = ##t ragged-right = ##t \context { \Voice \remove "Note_heads_engraver" \consists "Completion_heads_engraver" \remove "Rest_engraver" \consists "Completion_rest_engraver"} } }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user