[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing unwanted accidentals
From: |
Erik Sandberg |
Subject: |
Re: removing unwanted accidentals |
Date: |
Fri, 15 Apr 2005 12:43:03 +0200 |
User-agent: |
KMail/1.7.2 |
On Friday 15 April 2005 10.56, Karl Hammar wrote:
> address@hidden:
> > It also changes the numbering of all subsequent bars. I don't know the
> > author's intent in this case (I didn't write that snippet), but I guess
> > it could be something like an attaca movement.
>
> Yes. The bigger picture is H. Purcells opera "Dido & Æneas":
>
> http://aspodata.se/motett/noter/act*
nice! (will this end up on mutopia?)
> I did not like idea of big bar number, like 543.
> I think it is better with aria/movement 23, bar 25.
You could use something like this (based on print-circled-text-callback in
scm/output-lib.scm) to achieve what you want more cleanly. It works with
2.5.19, but not with 2.4 for some reason.
\version "2.4.0"
#(define-public (print-+100-text-callback grob)
(let* ( ;(text (ly:grob-property grob 'text))
(text (number->string (+ 100 (string->number (ly:grob-property grob
'text)))))
(layout (ly:grob-layout grob))
(defs (ly:output-def-lookup layout 'text-font-defaults))
(props (ly:grob-alist-chain grob defs))
(text-stencil (Text_interface::interpret_markup layout props text)))
(ly:stencil-add (centered-stencil text-stencil))))
\new Staff {
\set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
\override Score.BarNumber #'print-function =
#print-+100-text-callback
\repeat unfold 9 { c1 \break } \bar "|."
}
HTH,
Erik
- removing unwanted accidentals, Erik Sandberg, 2005/04/11
- Re: removing unwanted accidentals, Stephen, 2005/04/15
- Message not available
- Re: removing unwanted accidentals, Karl Hammar, 2005/04/15
- Re: removing unwanted accidentals, Stephen, 2005/04/16
- Message not available
- Re: removing unwanted accidentals, Karl Hammar, 2005/04/16
- Re: removing unwanted accidentals, Stephen, 2005/04/16
- Message not available
- Re: removing unwanted accidentals, Karl Hammar, 2005/04/17
- Re: removing unwanted accidentals, Graham Percival, 2005/04/17