2008/3/5, Mats Bengtsson <[EMAIL PROTECTED]>:
>

> Changing the default behaviour to always include the equivalent of \noBeam
>  is very easy, just add a line to the definition of \breathe in
>  ly/music-functions-init.ly

I tried to achieve it but it's the first time I write such an advanced function.
Can you please review it?

breathe=
#(define-music-function (parser location) ()
            (make-music 'SequentialMusic
              'origin location
              'elements   (list (make-music 'EventChord
              'elements   (list
                (make-music 'BeamForbidEvent)))
        (make-music  'EventChord
          'elements (list
       (make-music 'BreathingEvent))))))


{
        c'8 \breathe d'
}

>  Making it customizable with a context property setting is slightly more
>  advanced
>  but can still be done in Scheme.

I have to confess I have no idea how to create the property (nor how
to name it :)

> Since this will lead to an incompatible change of the default layout, I
>  would
>  propose to let convert-ly write out a warning about this change, if \breathe
>  is used in the file.

Yes... However, I'm happy to see that you regard it as a potentially
good idea ;)

Cheers,
Valentin


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to