2015-04-26 1:51 GMT+02:00 Davide Liessi <davide.lie...@gmail.com>:
> Il 26/04/15 01.38, David Kastrup ha scritto:
>>
>> Davide Liessi <davide.lie...@gmail.com> writes:
>>>
>>> "\set Staff.midiInstrument = ..." has no effect when used inside a
>>> RhythmicStaff.
>>
>>
>> Minimal example exhibiting the problem, version number?
>
>
> \version "2.19.15"
> \score {
>   \new RhythmicStaff {
>     %\set RhythmicStaff.midiInstrument = "flute"
>     %\set Staff.midiInstrument = "flute"
>     c
>   }
>   \midi { }
> }
>
> If I uncomment the "\set RhythmicStaff..." line, the resulting MIDI file
> contains the expected program change event setting the MIDI instrument to
> flute.
> If I uncomment the "\set Staff..." line, the resulting MIDI file doesn't
> contain any program change events.
>
> Best wishes.
> Davide



Maybe Issue 4281, should be fixed for 2.19.17 and late.

Try:

\score {
  \new RhythmicStaff {
    %\set RhythmicStaff.midiInstrument = "flute"
    \set Staff.midiInstrument = "flute"
    c
  }
  \midi {
    \context {
    \RhythmicStaff
    \alias Staff
    }
  }
}

Does it help?


Cheers,
  Harm

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

Reply via email to