lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternating text and music


From: Rutger Hofman
Subject: Re: Alternating text and music
Date: Sat, 27 Jul 2019 00:28:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

If you have issues with lengthening the laissez-vibrer tie: I got this from the list in some misted past. Sorry that I didn't write down the author or the message in which it occurred!

% Control length of laissezVibrer ties
% Usage:
%       \extendLV #3.0
extendLV = #(define-music-function (further) (number?) #{
    \override LaissezVibrerTie.X-extent = #'(0 . 0)
    \override LaissezVibrerTie.details.note-head-gap = #(/ further -2)
    \override LaissezVibrerTie.extra-offset = #(cons (/ further 2) 0)

It works for me.

Rutger

On 7/26/19 1:23 PM, Peter Toye wrote:
All,

Thanks very much for all the suggestions. I had asked for an _easy_ way! Also, I'm not 100% fussed about the exact layout as it's only for an example.

So I'm afraid that David's and Urs's solutions are overkill.

Rutger's seems good, - I hadn't realised you could use a repeatTie without a repeat! But I want th laisserVibrer tie to match the length of the bar. I tried changing its length using

{ c''1~ 1~ 1~ 1~ 1~
   \once  \override Voice.LaissezVibrerTieColumn.X-extent = #'( 0.0 . 50.0 )
      1\laissezVibrer  }
   }

but this doesn't seem to have any effect on the length of the tie. Instead it changes the amount of room after the tie, which is exactly what I don't want. I also tried

   \override Voice.LaissezVibrerTie.X-extent = #'(0.0  . 50.0  )

with the same result. Any ideas on how to do this?

Ben's is the easiest, but ties the markup to the music. Not a great problem in my case, as I can split the music where I want it first and add the text later.

Best regards,

Peter
mailto:address@hidden
www.ptoye.com <http://www.ptoye.com>

-------------------------
Thursday, July 25, 2019, 8:27:07 PM, David Wright wrote:

*>> Le 25 juil. 2019 à 16:45, Peter Toye <*address@hidden <mailto:address@hidden>*> a écrit :
Alternating text and music I want to engrave a piano piece, and have lines of 
text between the staff groups. I know I can do this with several \score blocks, 
but unfortunately there are a lot of tied notes at the ends of some of the 
lines, which need to be engraved, at both the end and the start of each line.

Is there any easy way of doing this? I'm not very good at the \markup command :(

On Thu 25 Jul 2019 at 19:14:40 (+0100), Peter Toye wrote:
Something like this but with the tie between the staves.

The easiest way I know, and which gives you total control, is to:
set your single \score with one system per page, ie line ≡ page,
burst¹ the PDF into separate PDF pages, your raw material,
crop² them so that they're not encumbered with white margins,
and assemble³ the cropped PDFs and text into the pages/book.

¹ $ pdftk filename.pdf burst
² $ pdfcrop --margins 1 input.pdf cropped.pdf
³ $ pdflatex (or lualatex)
text-fragments-and-includegraphics-directives.tex

It's basically what lilypond-book does, but
lets LP divide the score
into systems itself. You might need to set
breakbefore to clear any
titling from the first line of music, and of course you don't want
LP's own pagenumbering.

Problems: your final .tex file will need to be kept in sync if
you make changes in the score that alters the linebreaking. This
can be ameliorated if you're using \break
directives in the score.

Other methods:

Problem with markup: your text is tied to musical elements rather
than the pages you're building.

Problem with laissezVibrer/repeatTie: you have to slice and dice
the music yourself, and that interferes with other elements of
the scores like dynamics, octavation, etc.

Cheers,
David.  *



reply via email to

[Prev in Thread] Current Thread [Next in Thread]