lilypond-user
[Top][All Lists]
Advanced

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

Re: hide clef


From: Patrick Atamaniuk
Subject: Re: hide clef
Date: Wed, 27 Aug 2003 01:15:29 +0200
User-agent: Mutt/1.4.1i

Hello,

one can set the clef to transparent
        \context Staff = staffIV \notes\relative c' {
            \property Staff.Clef \set #'transparent = ##t
            \clef violin
            c4 d e f g a
        }
Here no \remove in the paper section is required.


Another method would be to define a noclefStaff context similar to
the improvisation voice (SquashVoice) in test/improv.ly
(maybe overkill, depending on context and goals)

\score {
    <
        \context Staff = staffI \notes\relative c' {
            \clef violin
            c4 d e f g a
        }

        \context noclefStaff = staffII \notes\relative c' {
            \clef violin
            c4 d e f g a
             \repeat unfold 20 {d d d d d d d d}
        }
    >
    
    \paper {
        \translator {
            \StaffContext
            \name noclefStaff
            \alias Staff
            \remove "Clef_engraver"
        }
        \translator {
            \ScoreContext
            \accepts noclefStaff
        }
    }
}

hope this helps.

Peter Lutek(address@hidden)@2003.08.26 16:42:38 +0000:
> what if it's only one staff in a multi-staff system?
> >>i'm wondering how to hide a clef.

-- 
regards,
        Patrick Atamaniuk

----------------------------------------------------
Patrick Atamaniuk               address@hidden
----------------------------------------------------
list: bash me if i'm telling utter nonsense :)




reply via email to

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