On Tuesday 03 January 2006 07.47, Frédéric Bron wrote:
> When using the trick to add staccato to all notes, there is a bad
> interference with "\relative".
>
> In the example given in the doc, just replace :
>
> "a b \applymusic #(lambda (x) (music-map add-staccato x)) { c c }"
> by
> "a b \applymusic #(lambda (x) (music-map add-staccato x)) { c' c, }"
>
> and you will see that the reference of the "\relative" function remains
> always the "b" that is before \applymusic which is not what is desired.
Usually, \relative doesn't apply to parameters of music functions. You'll have
to add an extra \relative, like:
"a b \applymusic #(lambda (x) (music-map add-staccato x)) \relative b' { c'
c, }"
> Any idea to run a good add-staccato?
>
> Also, I noticed that the staccato is also added to rests. Any
> possibility to add staccato only to notes?
You will need to re-define the function add-staccato, this requires some
knowledge in Scheme. What you need to do, is to only add a staccato if the
music property 'types (which is a list) contains 'note-event.
--
Erik Sandberg
Maintainer of the Lilypond bug CVS archive,
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lily-bugs/bugs/
http://lilypond.org/bugs/v2.7/
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond