lilypond-user
[Top][All Lists]
Advanced

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

Re: midi doesn't work with custom Voice contexts


From: David Kastrup
Subject: Re: midi doesn't work with custom Voice contexts
Date: Sat, 07 Sep 2013 12:12:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> 2013/9/7 David Kastrup <address@hidden>:
>> Janek Warchoł <address@hidden> writes:
>>
>>> apparently somewhere in midi generation there's a hard-coded "Voice"
>>> context, and midi doesn't want to work with custom-defined contexts.
>>
>> Wrong.  \midi would be happy to work with any custom-defined context
>> type, but you don't declare any for \midi.  You only declare them for
>> \layout.
>
> Ah, i understand!  Now
> (http://github.com/openlilylib/snippets/commit/55a80652dc0da9506edb4826d4def58f3a34f145)
> the file compiles, but there is no sound output, as if no
> midiInstrument was specified.  Can you look at
> http://github.com/openlilylib/snippets/tree/55a80652dc0da95/templates/predefined-instruments
> and tell me what's wrong?

You explicitly override the setting inherited from \Staff with

\type "Engraver_group"

telling LilyPond to wire up this context for use with engravers, making
it see and distribute grobs.  Which is not particularly helpful with
\midi output.

Specifying \type rarely makes sense when not defining a context from
scratch but inheriting from some existing definition.

-- 
David Kastrup



reply via email to

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