Janek Warchoł <janek.lilyp...@gmail.com> writes:

> 2013/9/7 David Kastrup <d...@gnu.org>:
>> Janek Warchoł <janek.lilyp...@gmail.com> 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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to