[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manual volta repeat commands [was Re: Quoted text]
From: |
Neil Puttock |
Subject: |
Re: Manual volta repeat commands [was Re: Quoted text] |
Date: |
Sat, 31 May 2008 00:26:50 +0100 |
2008/5/30 John Mandereau <address@hidden>:
> Maybe something like
>
> \set Score.repeatCommands = #(list (list 'volta (markup
> #:line (#:simple "1.2.3..." #:roman (#:italic "ad lib.")))) 'end-repeat)
>
> or an equivalent form
>
> voltaAdLib = \markup { "1.2.3..." \roman \italic "ad lib." }
> \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'end-repeat)
>
> is more realistic. However, I can't make it work with Lily 2.11.46 (see
> the end of this email for a complete input file), I got this:
>
> Drawing systems.../usr/local/share/lilypond/2.11.46/scm/markup.scm:549:24: In
> procedure + in expression (+ space (cdr #)):
> /usr/local/share/lilypond/2.11.46/scm/markup.scm:549:24: Wrong type argument
> in position 1: #f
>
> Is it a bug or a missing feature? It seems that using any markup more
> complex than \markup { "foo" } doesn't work here, and the description in
> repeat-commands doesn't mention markup can be used instead of a string.
The issue seems to be the lack of 'word-space: the function in
markup.scm, which is used by \line, is expecting a value for
'word-space which doesn't exist, resulting in failure.
Markup which doesn't rely on 'word-space works fine, e.g \markup
\normal-text { foo }.
OTOH, any markup command which has a default for 'word-space (e.g.
\fontsize) will fix the \line problem:
voltaAdLib = \markup \normal-text \fontsize #1 \line { "1.2.3..."
\italic "ad lib." } (see attachment)
A simple fix would be to add a default for 'word-space to
VoltaBracket. Would anybody object if I push this fix (with an
input/new snippet for demonstration)?
Regards,
Neil
voltaAdLib.png
Description: PNG image
- Re: Quoted text (was Re: When is "-" required in articulations?), Graham Percival, 2008/05/23
- Re: Quoted text (was Re: When is "-" required in articulations?), John Mandereau, 2008/05/24
- Re: Quoted text (was Re: When is "-" required in articulations?), Graham Percival, 2008/05/24
- Re: Quoted text (was Re: When is "-" required in articulations?), Risto Vääräniemi, 2008/05/29
- Re: Quoted text (was Re: When is "-" required in articulations?), Neil Puttock, 2008/05/29
- Manual volta repeat commands [was Re: Quoted text], John Mandereau, 2008/05/30
- Re: Manual volta repeat commands [was Re: Quoted text],
Neil Puttock <=
- Re: Manual volta repeat commands [was Re: Quoted text], Graham Percival, 2008/05/30
- Re: Manual volta repeat commands [was Re: Quoted text], John Mandereau, 2008/05/31
- Ottava brackets formatting [was Re: Quoted text (was Re: When is "-" required in articulations?)], John Mandereau, 2008/05/25
- Re: Ottava brackets formatting [was Re: Quoted text (was Re: When is "-" required in articulations?)], Neil Puttock, 2008/05/25
- Re: Ottava brackets formatting [was Re: Quoted text (was Re: When is "-" required in articulations?)], John Mandereau, 2008/05/26
- Re: Ottava brackets formatting [was Re: Quoted text (was Re: When is "-" required in articulations?)], Neil Puttock, 2008/05/26