lilypond-user
[Top][All Lists]
Advanced

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

generate a warning/error if tag is not specified


From: Gianmaria Lari
Subject: generate a warning/error if tag is not specified
Date: Fri, 13 Apr 2018 09:13:27 +0200

Suppose that I define a variable so that according to a tag I can generate

a a a

or

a b a

Is there any way to make lilypond complaint with a compilation error/warning in case I don't  specify a \keepWithTag or \removeWithTag?

For example:

\version "2.19.81"
var = {
  a 
  \tag#'vera a 
  \tag#'verb b
  a
}
{\var}  #this should generate a warning   
{\keepWithTag #'vera \var} #this is ok!
{\keepWithTag #'verb \var} #this is ok!
{\removeWithTag #'vera \var} #this is ok!
%etc.

Thank you, g.

reply via email to

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