lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \transposedCueDuringWithClef


From: Richard Shann
Subject: Re: \transposedCueDuringWithClef
Date: Wed, 27 Aug 2014 14:30:24 +0100

Thank you, that works perfectly
Richard
On Wed, 2014-08-27 at 11:48 +0100, Mark Knoop wrote:
> At 10:22 on 27 Aug 2014, Richard Shann wrote:
> >Thanks - I don't quite understand this though:
> >
> >what dir clef main-music
> >
> >doesn't seem to have an argument for the transposition and
> >'quoted-transposition (ly:make-pitch 0 0)
> >would seem to mean a c c transposition (guessing)
> >I tried putting it in anyway, putting the clef before the transposition
> >but got a strange result
> >
> >\transposedCueDuringWithClef #"flute Mvmnt 1"#1 "bass" a { r2 }
> >
> >where \transpose c a is the intended transposition (to undo a
> >\transpose c ees which is applied to the whole score).
> 
> Yes, sorry, just looking at this again I had no need for the pitch
> argument in my project so had hard-coded it... this should work with a
> pitch now:
> 
> transposedCueDuringWithClef =
> #(define-music-function
>    (parser location what dir pitch clef main-music)
>    (string? ly:dir? ly:pitch? string? ly:music?)
>    (_i "Combine cueDuringWithClef and transposedCueDuring.")
>    (make-music 'QuoteMusic
>          'element main-music
>          'quoted-context-type 'CueVoice
>          'quoted-context-id "cue"
>          'quoted-music-name what
>          'quoted-music-clef clef
>          'quoted-voice-direction dir
>          'quoted-transposition pitch))
> 
> So your usage will be:
> 
> \transposedCueDuringWithClef #"flute Mvmnt 1" #1 a "bass" { r2 }
> 
> (Do you really want the flute cue with a bass clef?)
> 
> >On Wed, 2014-08-27 at 09:29 +0100, Mark Knoop wrote:
> >> At 09:21 on 27 Aug 2014, Richard Shann wrote:
> >> >I have just got to grips with the marvellous cue facilities in
> >> >LilyPond.
> >> >
> >> >I can see \cueDuring and \cueDuringWithClef and
> >> >\transposedCueDuring but no \transposedCueDuringWithClef in the
> >> >2.18 docs and indeed it causes an error.
> >> >Do I need to create it myself? Or is the idea that you use a
> >> >suitable transposition interval to bring the notes into the range
> >> >of the clef in use?
> >>
> >> I made my own in a recent project:
> >>
> >> transposedCueDuringWithClef =
> >> #(define-music-function
> >>    (parser location what dir clef main-music)
> >>    (string? ly:dir? string? ly:music?)
> >>    (_i "Combine cueDuringWithClef and transposedCueDuring.")
> >>    (make-music 'QuoteMusic
> >>          'element main-music
> >>          'quoted-context-type 'CueVoice
> >>          'quoted-context-id "cue"
> >>          'quoted-music-name what
> >>          'quoted-music-clef clef
> >>          'quoted-voice-direction dir
> >>          'quoted-transposition (ly:make-pitch 0 0)))
> >>
> --
> Mark Knoop





reply via email to

[Prev in Thread] Current Thread [Next in Thread]