|
From: | Mats Bengtsson |
Subject: | Re: (doc help) escaping a ly:music? variable |
Date: | Wed, 03 May 2006 14:38:55 +0200 |
User-agent: | Internet Messaging Program (IMP) H3 (4.0.4) |
One ugly solution is to attach the articulation to a spacer note in parallel to the music in the second variable. pattern = #(define-music-function (parser location x y) (ly:music? ly:music?) #{ $x e8-. a-. b-. << $y s1*0-.-> >> b8-. a-. e-. #}) \relative c''{ \pattern c8 c8 \pattern d8 ais8 \pattern cis8 des8 } Otherwise, I guess that you have to use Scheme constructs. /Mats Quoting Graham Percival <address@hidden>:
Quote from upcoming docs; please fill in the #### and fix the lilypond code. :)Cheers, - Graham ----- Even music expressions can be passed in. Note that since we want an articulation attached to the second variable, we must #####. pattern = #(define-music-function (parser location x y) (ly:music? ly:music?) #{ $x e8-. a-. b-. $y-.-> b-. a-. e-. #}) \relative c''{ \pattern c8 c8 \pattern d8 ais8 \pattern cis8 des8 } ---- _______________________________________________ lilypond-devel mailing list address@hidden http://lists.gnu.org/mailman/listinfo/lilypond-devel
[Prev in Thread] | Current Thread | [Next in Thread] |