[Top][All Lists]

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

Re: Consistent vertical alignment of annotations, disable time signiture

From: David Kastrup
Subject: Re: Consistent vertical alignment of annotations, disable time signiture
Date: Tue, 17 Apr 2018 17:40:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Robert Hickman <address@hidden> writes:

> Thanks, I have a vague familiarity with lisps, but have never used scheme.
> I'm not certain how to visually parse a statment like \Staff \omit
> TimeSignature. It kind of looks like \Staff is a function taking two
> arguments, where \omit is either a constant or a function that returns
> a constant, and TimeSignature is some kind of constant. But it could
> also be that TimeSigniture is being passed to \omit, which returns to
> \staff. It's difficult to read because it doesn't parenthesise like
> typical programming languages.

That's not Lisp/Scheme syntax but LilyPond syntax.  There is a manual
for it.  Several, in fact.

\context {
  \omit TimeSignature

is a context definition that starts by copying the existing "Staff"
context definition and adds an omission of the stencil for the
TimeSignature grob (graphical object) to it, then takes this as a new
context definition.  Since this copies the original "\name Staff"
definition of the origin Staff definition, it overrides the existing
Staff definition.  If you specified a different name, it would instead
create a new context definition under the given name.

I am not enthused with that syntax either.

David Kastrup

reply via email to

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