[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alternating text and music
From: |
Urs Liska |
Subject: |
Re: Alternating text and music |
Date: |
Thu, 25 Jul 2019 19:23:18 +0000 |
25. Juli 2019 20:30, "Rutger Hofman" <address@hidden> schrieb:
> Isn't it an option to use \lassezVibrer and \repeatTie?
That was what I wanted to suggest, but they look totally different.
I can suggest a solution, but it requires an openLilyLib package (well, it
doesn't *really*, one could copy that one function oll:grob-system-position ...)
%%%
\version "2.19.82"
\include "oll-core/package.ily"
\loadModule grob-tools.system
\paper {
indent = 0
}
#(define (align-text-to-staff grob)
"Determine the grob's horizontal distance from the staff symbol
and offset the grob by that amount to align it with the left edge."
(let*
((offset (* -1 (oll:grob-system-position grob X))))
(ly:grob-set-property! grob 'extra-offset (cons offset 0))))
{
\override TextScript.after-line-breaking = #align-text-to-staff
c'1 _\markup "Left-aligned text" ~
c' ~
c' ~
\break
c' _\markup "Left-aligned text" ~
c' ~
\break
c'
}
%%%
This calculates the horizontal distance of a markup from the left edge of the
staff and moves it there. You could from there of course tweak the vertical
distances and wrap the \markup in a function that includes a \once \override
(so you don't have to worry about interfering with "normal" markups.
Is that like what you're after?
HTH
Urs
>
> Rutger
>
> On 7/25/19 8:14 PM, Peter Toye wrote:
>
>> Hi Muzhic,
>>
>> Something like this but with the tie between the staves.
>>
>> Best regards,
>>
>> Peter
>> mailto:address@hidden
>> www.ptoye.com <http://www.ptoye.com>
>>
>> -------------------------
>> Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:
>>
>> Hello Peter,
>>
>> Can you post a picture of what you’re after?
>>
>> JM
>>
>> Envoyé de mon iPhone
>>
>> 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 :(
>>
>> Thanks in advance,
>>
>> Peter
>> mailto:address@hidden
>> www.ptoye.com <http://www.ptoye.com>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden <mailto:address@hidden>
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
intertext.pdf
Description: Adobe PDF document
- Alternating text and music, Peter Toye, 2019/07/25
- Re: Alternating text and music, Muzhic, 2019/07/25
- Re: Alternating text and music, Peter Toye, 2019/07/25
- Re: Alternating text and music, Ben, 2019/07/25
- Re: Alternating text and music, Rutger Hofman, 2019/07/25
- Re: Alternating text and music,
Urs Liska <=
- Re: Alternating text and music, David Wright, 2019/07/25
- Re: Alternating text and music, Peter Toye, 2019/07/26
- Re: Alternating text and music, Rutger Hofman, 2019/07/26
- Re: Alternating text and music, Wols Lists, 2019/07/27
- Re: Alternating text and music, David Wright, 2019/07/27
- Re: Alternating text and music, David Kastrup, 2019/07/27
- Re: Alternating text and music, David Wright, 2019/07/27
- Re: Alternating text and music, David Kastrup, 2019/07/27
- Subdividing beams, William Zeitler, 2019/07/27
- Re: Subdividing beams, Karlin High, 2019/07/27