Hi everyone,
I'm working on a piece that includes cross-rhythms with 6/8 sounding
against 2/4, with the bar lengths constant. I'm trying to compress my code
with a music function like this:
\include "english.ly"
>
> inTwoFour =
> #(define-music-function
> (parser location mus)
> (ly:music?)
> #{
> \set Staff.timeSignatureFraction = 2/4
> \scaleDurations 3/2 { $mus }
> \revert Staff.timeSignatureFraction
> #})
>
> \relative g' {
> \time 6/8 g2. \inTwoFour { af2 } g2.
> }
>
>
However, GUILE gives an error at "$mus". What's wrong?
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user