lilypond-user
[Top][All Lists]
Advanced

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

Re: How to manually set MIDI channel # for a staff?


From: Jean Abou Samra
Subject: Re: How to manually set MIDI channel # for a staff?
Date: Mon, 29 Apr 2024 13:48:22 +0200
User-agent: Evolution 3.50.4 (3.50.4-1.fc39)

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.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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