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:00:09 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

notes = \relative c' { c d e f g a b c }

\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 }
    }
  >>
  \layout { }
}

Am 15.11.2019 um 11:25 schrieb Sandro Santilli:
On Fri, Nov 15, 2019 at 10:45:45AM +0100, Michael Käppler wrote:
While I would strongly suggest that you update to the latest development
version, which can regarded
as very stable, this would work with 2.18.2:
Thanks, this works!
Can I specify a different override for different
voices by name ? Ie: I have these voices:

       \new Staff \with {
         instrumentName = #"Voice"
       } {
         \new Voice = "vocal" { \melody }
       }

       \new Staff \with {
         instrumentName = #"Alto"
       } {
         \transpose c a
         \new Voice = "sax" { \melody_alto }
       }

       \new Staff \with {
         instrumentName = #"Trumpet"
       } {
         \transpose c d
         \new Voice = "trp" { \melody_trp }
       }

--strk;





reply via email to

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