lilypond-user
[Top][All Lists]
Advanced

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

Re: insert a `Custos` grob manually


From: Jean Abou Samra
Subject: Re: insert a `Custos` grob manually
Date: Tue, 28 Mar 2023 20:39:57 +0200
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Le mardi 28 mars 2023 à 18:24 +0000, Werner LEMBERG a écrit :

Thanks, this is good enough.  I simply hide the note following the custos – of course, the ideal solution would be that the custos is really at the end of the staff line, and the extra note is just there to indicate at which pitch the custos gets typeset.

This should do:

\version "2.25.2"

custos =
#(define-music-function (pos) (integer?)
   #{
     \new Bottom \with {
       \consists
       #(lambda (context)
          (make-engraver
           ((process-music engraver)
            (let ((custos (ly:engraver-make-grob engraver 'Custos '())))
              (ly:grob-set-property! custos 'staff-position pos)))))
     }
     { }
   #})

\paper {
  ragged-right = ##t
}

\new Staff \with {
  \override StaffSymbol.break-align-symbols = #'(break-alignment)
}
{
  c'1
  \custos -5
}

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


reply via email to

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