[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New snippet: remove staff if another is alive (for wind divisi)
From: |
Thomas Morley |
Subject: |
Re: New snippet: remove staff if another is alive (for wind divisi) |
Date: |
Thu, 9 Aug 2018 00:23:48 +0200 |
2018-08-09 0:09 GMT+02:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> 2018-08-08 22:21 GMT+02:00 Thomas Morley <address@hidden>:
>>
>>>
>>> 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 investigate.
>>
>>
>> The essential difference is the rhythm of the control-voice.
>> The code below never prints single instrument staves.
>> But changing in controlDivisi
>> s4 s s s -> s1
>> works.
>>
>> Changing
>> s4 s s s -> $#{ s4 s s s #}
>> works as well.
>>
>> WTF?
>
> Bit of a red herring here. Those two sequences produce the same music
> but the first one sets the default duration to 4 while the second one
> leaves it unchanged at the previous value of 1, and the next skip then,
> lacking a duration of its own, gets a duration of 4 and 1, respectively.
>
> Same with s4 s s s -> s1 . That's one reason why it is a good idea to
> use an explicit duration for the first note of each line, making the
> line's meaning independent from how the last line ended (at least
> regarding the duration).
>
> --
> David Kastrup
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.
Thanks,
Harm
- Re: New snippet: remove staff if another is alive (for wind divisi), (continued)
- Re: New snippet: remove staff if another is alive (for wind divisi), Thomas Morley, 2018/08/07
- Re: New snippet: remove staff if another is alive (for wind divisi), David Kastrup, 2018/08/07
- Re: New snippet: remove staff if another is alive (for wind divisi), Thomas Morley, 2018/08/07
- Re: New snippet: remove staff if another is alive (for wind divisi), David Kastrup, 2018/08/07
- Re: New snippet: remove staff if another is alive (for wind divisi), Saul Tobin, 2018/08/07
- Re: New snippet: remove staff if another is alive (for wind divisi), Thomas Morley, 2018/08/08
- Re: New snippet: remove staff if another is alive (for wind divisi), David Kastrup, 2018/08/08
- Re: New snippet: remove staff if another is alive (for wind divisi), Thomas Morley, 2018/08/08
- Re: New snippet: remove staff if another is alive (for wind divisi), Thomas Morley, 2018/08/08
- Re: New snippet: remove staff if another is alive (for wind divisi), David Kastrup, 2018/08/08
- Re: New snippet: remove staff if another is alive (for wind divisi),
Thomas Morley <=
- Re: New snippet: remove staff if another is alive (for wind divisi), David Kastrup, 2018/08/08