lilypond-user
[Top][All Lists]
Advanced

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

adding to context voice conflicts with instrumentname


From: Simon Van Damme
Subject: adding to context voice conflicts with instrumentname
Date: Mon, 28 Jan 2008 14:17:14 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

Dear all

By means of the (simplified) code below, I wish to hide some part of the original music using "\context Voice = ...". It is important that the original notes and the hide/unhide specifications remain separated (ideally they come at the end of the score-block)

Problem: this stops working when I add an instrumentname to the original data. Suddenly, the additions go in a separate Staff. Does anyone knows where this conflict arises, so that I can sort it out?

Many thanks

Simon
Musicology Department
K.U.Leuven (Belgium)

--- CODE ---

\version "2.10.33"
\score { <<
   \new Staff {
   \set Staff.instrumentName = "name"    % OMITTING THIS LINE ...
       \new Voice = "V" { d'2 e' f' g' f' e' d'1 }
   }
% other Staves and Voices go here
\context Voice = "V" { s2 \hideNotes s1 \unHideNotes } % ... MAKES THIS LINE WORK PROPERLY
>> }

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm





reply via email to

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