Le lundi 29 avril 2024 à 06:31 -0500, Jason Yip a écrit :
> Hi,
>
> Does anyone know how to manually set the midi channel # for a staff to
> something other than the default of channel 0/1? Without having to
> create dummy staffs with just `s256` as the voice content preceding the
> desired staff? The staff in question usually only has one voice, so I
> modified the midi context as shown below simply made a bunch of dummy
> voices with only `s256` as the content so that they don't at least
> affect the graphical output:
>
> ```
> \midi {
> \context {
> \Staff
> \remove "Staff_performer"
> }
> \context {
> \Voice
> \consists "Staff_performer"
> }
> }
> ```
You can do \set Score.midiChannelMapping = #'voice as an alternative to that.
Also \new Voice { } should work (untested) instead of \new Voice { s256 }.
I don't think there's a better way.
signature.asc
Description: This is a digitally signed message part
