On Sun, 09 Oct 2011 04:13:39 -0700, Xavier Scheuer <[email protected]> wrote:
It would be great if someone could "extend" cueDuring
Trevor has made one at
<http://lilypond.org/doc/v2.14/Documentation/notation/opera-and-stage-musicals> that we might want
to include by default in LilyPond. It is used like this: \cueWhile "violin1"
"strings" #UP R1
so it can take *optional* arguments,
I have not yet learned to use David's new facility for optional arguments...
like cueClef,
Clue clefs are rude. LilyPond will happily set notes in the native clef of the
instrument receiving the cue.
If the instruments are octaves apart, LilyPond will transpose
% Use this as \trCueWhile "violin1" "strings 8va" #UP c, R1
%% For 2.16 one line will need to change to
%% (string? string? ly:dir? ly:pitch? ly:music?)
trCueWhile =
#(define-music-function
(parser location instrument name dir mc music)
(string? string? ly:dir? ly:music? ly:music?)
#{
\transposedCueDuring $instrument #$dir $mc {
\once \override TextScript #'direction = $dir
\tag #'part s1*0-\markup { \tiny $name }
$music
}
#}
)
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user