Thank you all for your suggestions.  I finally have the flag working after 
years of just editing my master file when I wanted one track per voice!
Thanks,
Carolyn

> On May 20, 2024, at 6:09 AM, Jean Abou Samra <j...@abou-samra.fr> wrote:
> 
> 
>> nostaffmidi =
>> #(define-scheme-function () ()
>>   (if TrackPerVoice #{ \context { \Staff \remove "Staff_performer" } #}))
> 
> 
> Ah, that proves me wrong. I didn't recall the parser was smart enough for 
> this.
> 
> 
>> Although, I don't understand why the contents of the scheme functions cannot 
>> be placed directly into the midi block like this
>> 
>> \midi {
>>  #(if TrackPerVoice #{ \context { \Staff \remove "Staff_performer" } #})
>>  #(if TrackPerVoice #{ \context { \Voice \consists "Staff_performer" } #})
>> }
> 
> 
> It works with $ instead of # , as explained in my other post.
> 
> 
> <signature.asc>

Reply via email to