lilypond-devel
[Top][All Lists]
Advanced

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

\context foo = "bar" vs. \new foo


From: Graham Percival
Subject: \context foo = "bar" vs. \new foo
Date: Fri, 10 Feb 2006 10:20:44 -0800

Why do we have \context and \new ? I know that \context lets you name a context and \new doesn't... but is that the only difference? ... actually, you can use \context to do fancy stuff with already-existing contexts, right?

Could we change \new so that it can also name a new context? I'm looking at the vocal templates, having:
\score {
  \new Staff { \violinmelody }
  \context Staff =singer {
    \context Voice = vocal { \blah }
  \new PianoStaff {...}
}

The alternating \new and \context seems confusing. It would be nice if we could do
  \new Staff { \violinmelody }
  \new Staff = singer {
    \new Voice = vocal { \blah }
  \new PianoStaff {...}

Cheers,
- Graham





reply via email to

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