I managed to find a workaround for this bug, by inserting a 'TremoloSpanEvent / STOP by hand inside the quotation. Attached the .ly and the .png to show both buggy and worked-around behaviour.

Rutger

On 3/22/20 7:57 PM, Rutger Hofman wrote:
For the examples I sent, 2.20 gives the same result as 2.21 (and any previous version, as far as I know). I had also tried with cueDuring but that didn't work either: no tremolos unless a "real" note follows in the quotation.

Lilypond still reports these warnings/errors (line numbers apply e.g. to the s1 quotes):

tremolo-quote-event.ly:26:5: warning: unterminated chord tremolo

programming error: Grob direction requested while calculation in progress.
continuing, cross fingers

tremolo-quote-event.ly:26:26: programming error: ly:stem::calc-length called but will not be used for beamed stem.
     \repeat tremolo 16 {
                          c32 d } |

Can I do more to help pinpoint the errors?

Rutger

On 3/22/20 5:23 PM, Mats Bengtsson wrote:

On 2020-03-21 17:15, Mark Knoop wrote:
At 15:10 on 21 Mar 2020, David Kastrup wrote:
Mark Knoop <m...@opus11.net> writes:
At 12:52 on 21 Mar 2020, Rutger Hofman wrote:
Good morning list,

when I end a \quoteDuring after a \repeat tremolo { ... }, the tremolo
beams are missing or distorted. If the quotation has nontremolo music
afterwards, there is no issue.

I didn't find a workaround. I tried adding a grace note or a
zero-duration note in the quotation, to no avail.

I would love to have a workaround as long as this has not been fixed.
You need to set quotedEventTypes to include tremolo-event. See:

http://lilypond.org/doc/v2.18/Documentation/notation/writing-parts#quoting-other-voices
Huh.  Why wouldn't that be the default?  This report triggered a Deja vu with me; I thought it was fixed previously?  Or was this some other kind
of event recently added?
Apologies David, it is indeed now included in the default. I think I was remembering the same from a previous problem I encountered. Rutger - I'm not sure what is going on here.

Quoting tremolo repeats works correctly in 2.20 but didn't work in 2.18 (and also not in 2.19.83 if I remember correctly). For the record, I used the following in my files, in version 2.18/2.19 (this is the same solution that is used by default in 2.20)

\layout{
   \context {
     \Score
     \compressFullBarRests
     quotedCueEventTypes = #'(
     note-event
     rest-event
     tie-event
     beam-event
     tuplet-span-event
     tremolo-event)
   }
   \context {
     \CueVoice
     \override StemTremolo.beam-thickness = #0.35
   }
}

    /Mats


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond
\version "2.21.0"

\paper {
    indent = 40
}

% Hack to stop a multi-note tremolo at the end of a quotation.
%
stopTremolo = #(define-music-function () ()
    (make-music 'TremoloSpanEvent
        'span-direction STOP))


music = \relative c'' {
    \repeat tremolo 16 { c32 d } |
    c4
}

\addQuote music         { \music }

\score {
    <<
        \new Staff \with { instrumentName = "the music" } <<
            \displayMusic \music
        >>

        \new Staff \with { instrumentName = "quote s1 | s4" } <<
            \quoteDuring music { s1 | s4 }
        >>

        \new Staff \with { instrumentName = "quote s1 |" } <<
            \quoteDuring music { s1 | }
        >>

        \new Staff \with { instrumentName = "quote s1 \stopTremolo |" } <<
            \quoteDuring music { s1 \stopTremolo | }
        >>
    >>
}
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to