lilypond-user
[Top][All Lists]
Advanced

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

Re: changing the default midi instrument "permanently"


From: David Kastrup
Subject: Re: changing the default midi instrument "permanently"
Date: Mon, 18 Mar 2013 01:57:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Eluze <address@hidden> writes:

> as I'm only writing guitar scores I'd like the midi instrument to always
> default to midiInstrument="acoustic guitar (nylon)"
>
> is there a way to do this?
>
> I know I can write
>
> \score {
>   \new GrandStaff \with{ midiInstrument="acoustic guitar (nylon)"}
>   <<
>     \new Staff { c''1 }
>     \new Staff { c' }
>   >>
> }
>
> and both instruments will be the acoustic guitar in the midi file.
>
> if I write
>
>   \layout {
>     \context {
>       \GrandStaff
>       midiInstrument="acoustic guitar (nylon)"
>     }
>   }
>   \midi { }
>
> it has no effect - why?

Try placing that context definition in the \midi block rather than the
\layout block.

-- 
David Kastrup




reply via email to

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