lilypond-user
[Top][All Lists]
Advanced

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

Re: Non-standard ledger lines and articulations collisions


From: Paul Morris
Subject: Re: Non-standard ledger lines and articulations collisions
Date: Thu, 11 Jan 2018 09:13:09 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 01/11/2018 04:20 AM, David Kastrup wrote:

Or let grob-transformer do all of the work.

Thanks for the tip!  That's the perfect tool for the job.  And I can also use it for other cases where I have been using before-line-breaking.  For the archives, below is the example expanded to show ly:unpure-call and grob-transformer.

Paul

%%%%%%%%%%

\version "2.19.63"

m = {
  c'''
  c'''\fermata
  c'''\trill
  c'''-^
  c'''-.
  c'''\segno
}

% collisions ahead!
{
  \override Staff.StaffSymbol.ledger-extra = 2
  \m
}

% using ly:unpure-call
{
  \override Staff.StaffSymbol.ledger-extra = 2
  \override Staff.Script.Y-offset =
  #(lambda (grob)
     (+ 1 (ly:unpure-call side-position-interface::y-aligned-side grob)))
  \m
}

% using grob-transformer from scm/music-functions.scm
{
  \override Staff.StaffSymbol.ledger-extra = 2
  \override Staff.Script.Y-offset =
  #(grob-transformer
    'Y-offset
    (lambda (grob default-value) (+ 1 default-value)))
  \m
}

%%%%%%%%%%






reply via email to

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