[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: *** SPAM *** Re: functions in \with
From: |
Trevor Daniels |
Subject: |
RE: *** SPAM *** Re: functions in \with |
Date: |
Fri, 1 Sep 2006 21:29:27 +0100 |
Nicolas
That works perfectly! Many thanks.
Trevor
> Nicolas Sceaux [mailto:address@hidden replied on
> 31 August 2006 21:23:
>
> "Trevor Daniels" <address@hidden> writes:
>
[snip]
> > I wanted to define a void function something like
> >
> > staffSize=#(
> > define-music-function (parser location fontsize separation) (number?
> > number?) #{
> > fontSize = #$fontsize
> > \override StaffSymbol #'staff-space = #(magstep #$fontsize)
> > \override VerticalAlignment #'forced-distance = #$separation
> > #}
> > (make-music 'SequentialMusic 'void #t)
> > )
>
> [not tested]
>
> staffWithSize =
> #(define-music-function (parser location size distance music)
> (number? number? ly:music?)
> #{
> \new PianoStaff \with {
> fontSize = #$size
> \override StaffSymbol #'staff-space = #(magstep $size)
> \override VerticalAlignment #'forced-distance = #$distance
> }
> $music
> #})
>
> ==>
> \staffWithSize #-2 #11 { ..music.. }
>
> nicolas
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: *** SPAM *** Re: functions in \with,
Trevor Daniels <=