lilypond-user
[Top][All Lists]
Advanced

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

Re: Ottava printing at beginning of system


From: Valentin Petzel
Subject: Re: Ottava printing at beginning of system
Date: Mon, 29 Nov 2021 22:48:29 +0100

Basically grob.after-line-breaking is a function that get’s called on grob 
after line breaks are determined and allows us to do tweaks related to line-
breaking. So what this function does is:

If the ottava bracket is broken we check if the grob is a broken part. This is 
done by getting all broken parts (the siblings) and checking if grob is the 
first of these (implying that it is the first part which we do not want to 
change) or not (in which case it is a broken part which we want to change).

Then we we remove the text from these broken properties and recalculate the 
stencil (which will then be without text).

Cheers,
Valentin

Am Montag, 29. November 2021, 22:20:18 CET schrieb Molly Preston:
> That worked! Thank you so much! I've used lilypond for a long time but have
> never had to use any super advanced tweaks. So all the scheme code is
> confusing to me, but maybe I should learn more about it.
> 
> Thank you so much Valentin!
> 
> -Molly
> 
> On Mon, Nov 29, 2021 at 3:32 PM Valentin Petzel <valentin@petzel.at> wrote:
> > Hello Molly,
> > 
> > Try the appended method using after line breaking (slight modification
> > from
> > https://lilypond.org/doc/v2.21/Documentation/extending/difficult-tweaks).
> > As
> > of now OttavaBracket has no property for continuation text.
> > 
> > Cheers,
> > Valentin
> > 
> > Am Montag, 29. November 2021, 20:53:09 CET schrieb Molly Preston:
> > > Hi everyone!
> > > I'm wondering if anyone has a solution for this. I can't find one in the
> > > manuals.
> > > Is there a way to get it to not print that 8va on the second line, but
> > 
> > just
> > 
> > > continue it with a dashed line?
> > > 
> > > \version "2.22.1"
> > > 
> > > \score {
> > > 
> > > \new Staff {
> > > \set Staff.ottavationMarkups = #ottavation-ordinals
> > > 
> > >   \ottava #1
> > >  
> > >  c''' 4 d''' e'''' f''''
> > >  \break
> > >  d''' f'''' g'''' a''''
> > >  
> > >    }
> > > 
> > > }
> > > 
> > > -Molly

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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