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 <[EMAIL PROTECTED]>:

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
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel






_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to