lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem with /accepts


From: David Kastrup
Subject: Re: Problem with /accepts
Date: Tue, 18 Apr 2017 10:55:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2017-04-17 21:08 GMT+02:00 Roman Stawski <address@hidden>:
>> Hello all
>>
>>
>> I'm coming across a problem with context definitions:
>>
>>     \layout {
>>         \context {
>>             \name P
>>             \alias Voice
>>         }
>>
>> This blows up with the error
>>
>> Interpreting music...ERROR: In procedure symbol->string:
>>     ERROR: Wrong type argument in position 1 (expecting symbol): ()
>>     Exited with return code 1.
>>
>> If I comment out the '\accepts' compilation finishes, (but ignores the
>> context P obviously).
>
> From: NR 5.1.6 Defining new contexts
>
> "The mechanisms with which contexts communicate are established by declaring
> the context \type. Within a \layout block, most contexts will be of type
> Engraver_group.
> [...]
> Copying and modifying an existing context definition will also fill in
> the type."
>
>
> So (see comments):
>
>
> \layout {
>     %% define "P" from scratch
>     \context {
>         \type "Engraver_group"
>         \name P
>         \alias Voice
>         %% put in engravers for what you want
>         %% otherwise no output
>     }

Trigger and wording of error message are not overly helpful here.  This
should likely be caught at an earlier point of time.

-- 
David Kastrup



reply via email to

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