lilypond-devel
[Top][All Lists]
Advanced

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

Re: Showing instrument name and correct clef with cue notes


From: Han-Wen Nienhuys
Subject: Re: Showing instrument name and correct clef with cue notes
Date: Tue, 19 Feb 2008 22:35:07 -0300

2008/2/12, Reinhold Kainhofer <address@hidden>:
> I've already sent this to lilypond-users, but didn't get any answer, so maybe
> you can help me...
>
> I have a large orchestral score and now I want to add cue notes to the
> instrumental scores. Unfortunately, by default \cueDuring has two
> shortcomings for me: It does not show the instrument name and it does not use
> the clef of the quoted instrument...
>
>
> Is it possible to show the instrument together with the quoted cue notes?
> Unfortunately, I can't modify either the quoting, nor the quoted music (since
> I generate other scores from the them too, where the cue notes are removed).
>
> Ideally, I would assign the instrument name once to the quote, something like
>
>     \addQuote "VIIIArieSQuote" \VIIIArieS
>     \addInstrumentNameToQuote "VIIIArieSQuote" "Sop."   % <= does not exist...

I think the easiest is to make a \addNamedQuote and \namedCue music
function, based on
and addQuote and cueDuring from ly/music-functions-init.ly.  The
addNamedQuote stores a name -> instrument mapping as well, and the
namedCue inserts a TextScriptEvent in parallel with the quote.

> The other issue is that I want the cue notes to automatically have
> the "correct" clef for the quoted instrument (i.e. the cue notes taken from
> soprano should automatically use the treble clef and reset the clef at the
> end of the cue notes). Is there something like
>     \setClefForQuote "VIIIArieSQuote" "treble"   % <= does not exist...

you could use the same trick, by creating a name -> clef mapping, and
have your function insert a clef change.  The tricky thing will be to
restore the clef after the quote ends; I don't see an easy solution to
automate that, except by writing a specialized Engraver which would be
signaled when cues start/end.

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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