Hi Lucas,

Am 31.05.26 um 16:44 schrieb Lucas Pinke:
Ah yes, now I get it... PEBKAC indeed. And actually, I think I finally get calling contexts back... living and learning. Just for sanity sake, I'll also add another "corrected code" (just called the context again).

%%SOF
\version "2.26.0"
initMelody= \new Voice = "melody" { }

This line does nothing as long as you do not use \initMelody anywhere. The main improvement in your new example is that you use \context instead of \new, which does just what you need: It re-uses the named context if it already exists. But it also creates a new context when needed, so you don't need to do what I guess you wanted to achieve with the initMelody line.

Lukas

Reply via email to