lilypond-user
[Top][All Lists]
Advanced

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

Re: drawing a range reguardless of transposition


From: Michael Käppler
Subject: Re: drawing a range reguardless of transposition
Date: Fri, 15 Nov 2019 12:20:51 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

Why not put it in the underlying "input" then?

melody = {
    \override NoteHead.color = \highlightOutOfRange e' b'
   \relative c' {  c4 d e f }
}

You could even define a shortcut for this:

melodyRange = \override NoteHead.color = \highlightOutOfRange e' b'

melody = {
   \melodyRange
   \relative c' {  c4 d e f }
}



Am 15.11.2019 um 12:09 schrieb Sandro Santilli:
On Fri, Nov 15, 2019 at 12:00:09PM +0100, Michael Käppler wrote:

\score {
   <<
     \new Staff \with {
       instrumentName = #"Voice"

     } {
       \new Voice = "vocal" \with {
         \override NoteHead.color = \highlightOutOfRange e' b'
       } { \notes }

     }

     \new Staff \with {
       instrumentName = #"Alto"
     } {
       \new Voice = "sax" \with {
         \override NoteHead.color = \highlightOutOfRange a e'
       } { \transpose c g, \notes }
     }

     \new Staff \with {
       instrumentName = #"Trumpet"
     } {
       \new Voice = "trp" \with {
         \override NoteHead.color = \highlightOutOfRange g' f''
       } { \transpose c b \notes }
     }
   >>
The thing is I'm writing multiple scores with the same parts
replicated (some with all 3 voices, some with just 2 voices)
so I'd like to avoid the duplication of ranges. A range is
specific to an instrument so I'd like to specify that in the
header for each instrument, reguardless of score...

--strk;





reply via email to

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