Hello :)

This is trivial, but having functions like these might help ease typing a
lot:

#(define (span-maker type)
   (lambda (text)
     (make-music 'type
                 'span-direction START
                 'span-type 'text
                 'span-text text)))

textCresc =
#(define-event-function (parser location text)
   (markup?)
   ((span-maker 'CrescendoEvent) text))

textDecresc =
#(define-event-function (parser location text)
   (markup?)
   ((span-maker 'DecrescendoEvent) text))


%% usage
{ b2\textCresc "cres" b
  b\textCresc "cen" b
  b\textCresc "do" b
  b1\f }


Best,

On Tue, Apr 30, 2013 at 2:20 PM, Keith OHara <k-ohara5...@oco.net> wrote:

> Derek <cushy <at> shmerek.com> writes:
>
> > Thanks for that. I assume this means at this juncture it isn't possible?
> > cheers
>
> Writing a chain of crescendos spelling out each syllable is possible
>
> { b2-\tweak#'text"cres"\cresc b
>   b-\tweak#'text"cen"\cresc b
>   b-\tweak#'text"do"\cresc b
>   b1\f }
>
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to