Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread David Kastrup
Thomas Morley writes: > Or with other words, the rhythm is wrong in the line labeled with %% <== > > controlDivisi = { > \switchOn > s4 s s s > \switchOff > s %% <== > \switchOn > s1 > } > > And I'm blind ... at least today. It's more like that I'm better at answering "how would

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread Thomas Morley
2018-08-09 0:09 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2018-08-08 22:21 GMT+02:00 Thomas Morley : >> >>> >>> Well, this whole post was meant to explain my thoughts while coding >>> the example from my previous mail. >>> I expected the code to fail like my previous. >>> It doesn't.

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread David Kastrup
Thomas Morley writes: > 2018-08-08 22:21 GMT+02:00 Thomas Morley : > >> >> Well, this whole post was meant to explain my thoughts while coding >> the example from my previous mail. >> I expected the code to fail like my previous. >> It doesn't. >> Though, even after your hints above, what's the

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread Thomas Morley
2018-08-08 22:21 GMT+02:00 Thomas Morley : > > Well, this whole post was meant to explain my thoughts while coding > the example from my previous mail. > I expected the code to fail like my previous. > It doesn't. > Though, even after your hints above, what's the essential difference? > > I'll

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread Thomas Morley
2018-08-08 15:25 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2018-08-07 21:42 GMT+02:00 David Kastrup : >>> Thomas Morley writes: >>> 2018-08-07 20:28 GMT+02:00 David Kastrup : > Thomas Morley writes: >>> Ok, let me chime in: I've basically developed some of the

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread David Kastrup
Thomas Morley writes: > 2018-08-07 21:42 GMT+02:00 David Kastrup : >> Thomas Morley writes: >> >>> 2018-08-07 20:28 GMT+02:00 David Kastrup : Thomas Morley writes: >>> >> Ok, let me chime in: I've basically developed some of the low-level >> mechanisms for divisi staves. >

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-08 Thread Thomas Morley
2018-08-07 21:42 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2018-08-07 20:28 GMT+02:00 David Kastrup : >>> Thomas Morley writes: >> > Ok, let me chime in: I've basically developed some of the low-level > mechanisms for divisi staves. You mean that 'make-dead-when

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread Saul Tobin
Super glad to see this conversation happening! David I'm so glad you've been working on the backend for divisi. Divisi staves have long been my biggest headache. Thomas, thanks for writing the improved version. I haven't had a chance to look at the code deeply yet — I will play around with it

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread David Kastrup
Thomas Morley writes: > 2018-08-07 20:28 GMT+02:00 David Kastrup : >> Thomas Morley writes: > Ok, let me chime in: I've basically developed some of the low-level mechanisms for divisi staves. >>> >>> You mean that 'make-dead-when stuff? >> >> Well, that's the internal part of the low

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread Thomas Morley
2018-08-07 20:28 GMT+02:00 David Kastrup : > Thomas Morley writes: >>> Ok, let me chime in: I've basically developed some of the low-level >>> mechanisms for divisi staves. >> >> You mean that 'make-dead-when stuff? > > Well, that's the internal part of the low end. But it's usually driven > by

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread David Kastrup
Thomas Morley writes: > 2018-08-07 19:48 GMT+02:00 David Kastrup : >> Thomas Morley writes: >> >>> 2018-08-06 21:40 GMT+02:00 Thomas Morley : 2018-08-05 18:14 GMT+02:00 Thomas Morley : > Inspired by your work I come up with the attached. Attached an improved and

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread Thomas Morley
2018-08-07 19:48 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2018-08-06 21:40 GMT+02:00 Thomas Morley : >>> 2018-08-05 18:14 GMT+02:00 Thomas Morley : >>> Inspired by your work I come up with the attached. >>> >>> Attached an improved and simplified version. >>> It's tested with

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread David Kastrup
Thomas Morley writes: > 2018-08-06 21:40 GMT+02:00 Thomas Morley : >> 2018-08-05 18:14 GMT+02:00 Thomas Morley : >> >>> Inspired by your work I come up with the attached. >> >> Attached an improved and simplified version. >> It's tested with 2/3/4-voices divisi, all in one score. >> Although not

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-07 Thread Thomas Morley
2018-08-06 21:40 GMT+02:00 Thomas Morley : > 2018-08-05 18:14 GMT+02:00 Thomas Morley : > >> Inspired by your work I come up with the attached. > > Attached an improved and simplified version. > It's tested with 2/3/4-voices divisi, all in one score. > Although not tested, I see no reason why it

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-06 Thread Thomas Morley
2018-08-06 21:40 GMT+02:00 Thomas Morley : > 2018-08-05 18:14 GMT+02:00 Thomas Morley : > >> Inspired by your work I come up with the attached. > > Attached an improved and simplified version. > It's tested with 2/3/4-voices divisi, all in one score. > Although not tested, I see no reason why it

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-06 Thread Thomas Morley
2018-08-05 18:14 GMT+02:00 Thomas Morley : > Inspired by your work I come up with the attached. Attached an improved and simplified version. It's tested with 2/3/4-voices divisi, all in one score. Although not tested, I see no reason why it shouldn't work with even more voices. HTH, Harm

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-05 Thread Thomas Morley
2018-08-03 23:14 GMT+02:00 Saul Tobin : > Hi all, > > I just put together a snippet to make managing shared wind staves more > automatic, particularly with triple winds that may be combined in different > ways. > > \version "2.19.82" > > #(define remove-if-sibling >(lambda (offsets) >

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-03 Thread Saul Tobin
Those errors are from this expression in the three staff example: << \global \I \II \III >>. Lilypond is implicitly creating three Voices instead of treating it as a single Voice with simultaneous music. If you replace that expression with { <> << \global \I \II \III >> }, the errors go away.

Re: New snippet: remove staff if another is alive (for wind divisi)

2018-08-03 Thread Ben
On 8/3/2018 5:14 PM, Saul Tobin wrote: Hi all, I just put together a snippet to make managing shared wind staves more automatic, particularly with triple winds that may be combined in different ways. \version "2.19.82" #(define remove-if-sibling    (lambda (offsets)      (lambda (grob)    

New snippet: remove staff if another is alive (for wind divisi)

2018-08-03 Thread Saul Tobin
Hi all, I just put together a snippet to make managing shared wind staves more automatic, particularly with triple winds that may be combined in different ways. \version "2.19.82" #(define remove-if-sibling (lambda (offsets) (lambda (grob) (let* ( ;; The parent of