lilypond-user
[Top][All Lists]
Advanced

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

Re: ottavation


From: Nick Payne
Subject: Re: ottavation
Date: Thu, 07 Apr 2011 09:37:23 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 06/04/11 23:26, Peter O'Doherty wrote:
Thanks.
The code you sent applies \ottava #1 to the whole score, whereas I also have instances of 8vb and 15va etc. All I need is a way to change the property to print only 8 or 15 without va, vb etc. to save me typing \set Staff.ottavation = #"8" each time.
Thanks,
Peter

\score { \new Staff {
 {
{
  \ottava #1
  %\set Staff.ottavation = #"8"
  c''1
  \ottava #-1
  %\set Staff.ottavation = #"8"
  c,1
}

}}
\layout {
  \context { 
    % \Score ottavation=#"8" % this does not work
} }}

Why not just define something like

eightU = { \ottava #1 \set Staff.ottavation = #"8" }
eightD = { \ottava #-1 \set Staff.ottavation = #"8" }

{
  \eightU
  c''1
  \eightD
  c,1
}

Nick

reply via email to

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