Re: how to split into two parts

2022-04-24 Thread Stefan Thomas
Dear Gilles, thanks again for Your explanation! Best, Stefan Am Sa., 23. Apr. 2022 um 22:45 Uhr schrieb Gilles Thibault : > > > I would like to ask You two questions concerning the code, You've > > sended: > > > 1. How does the function noteToRest "know", that the f sharp has to be > > converted

Re: how to split into two parts

2022-04-23 Thread Gilles Thibault
I would like to ask You two questions concerning the code, You've sended: 1. How does the function noteToRest "know", that the f sharp has to be converted to a rest? It is not an EventChord, only a NoteEvent 2. Is it possible to to convert fis'8 r8 to r4 You can then use

Re: how to split into two parts

2022-04-23 Thread Gilles Thibault
Is there an easy way to get this result automatically? Sorry Stephan, to answer so late. % \version "2.22.0" \include "chordsAndVoices.ly" global = { \time 7/8 } flutes = { \global 8 r fis' 8 r 8 r8 r 8 r fis' 8 r r4 } noteToRest = #(define-music-function (music)

Re: how to split into two parts

2022-04-18 Thread Stefan Thomas
Dear Hans, sorry, it was a mistake of mine. I should have written flA = { \global \extractNote #2 \flutes } flB = { \global \extractNote #1 \flutes } My idea is: if there are 2 pitches at once, they shall be splitted (this works fine), if there is only one sinle, it should be only in the first

Re: how to split into two parts

2022-04-18 Thread Hans Aikema
> On 18 Apr 2022, at 12:23, Stefan Thomas wrote: > >  > Dear community, > I would like to split the following example into two parts: > \version "2.22.1" > global = { \time 7/8 } > flutes = { > \global > 8 r fis' 8 r 8 r8 r > 8 r fis' 8 r r4 > } > I know I can do it with

Re: how to split into two parts

2022-04-18 Thread Hans Aikema
Hmmm.. nevermind... wasn't reading well.. thought you got twice the same part > On 18 Apr 2022, at 13:43, Hans Aikema wrote: > >  > >> On 18 Apr 2022, at 12:23, Stefan Thomas wrote: >> >>  >> Dear community, >> I would like to split the following example into two parts: >> \version

how to split into two parts

2022-04-18 Thread Stefan Thomas
Dear community, I would like to split the following example into two parts: \version "2.22.1" global = { \time 7/8 } flutes = { \global 8 r fis' 8 r 8 r8 r 8 r fis' 8 r r4 } I know I can do it with chordsAndVoices.ly But the result is the desired only for the first flute. Whe I do flA = {