Re: question concerning arranger tool

2022-07-21 Thread Gilles Thibault

Is there an easy way in arranger.ly to quote a theme or motive with one
command in different or voices?
What would be e.g. if You have a fugue with the dux in soprano, alto, 
etc.

in different voices at different places in the score?


Well, in one command, not directly because a lot of parameters are 
involving. You have to make your own function.


%%%

\version "2.22.0"
\include "arranger.ly"
global = { s1*8 }

#(define all '(bas ten alt sop))
#(init all)

theme = { c2 d e c  }

#(define (dispatch-theme instru step where)
(rm instru where ((set-transp 0 step 0) theme)))

#(for-each
dispatch-theme
all
(list 0 4 7 (+ 4 7)) ; 4 =  a 5th, 7 = an octave
'(1 3 5 7)) % bar 1 3 5 7

\new ChoirStaff <<
  \new Staff {
<< \global \sop >> }
  \new Staff {
<< \global \alt >> }
  \new Staff {
<< \clef "G_8" \global \ten >> }
  \new Staff {
<< \clef bass \global \bas >> }




%%%


Note than an automation in a fugue can be difficult, because sometimes 
the theme when transposed in the 5th, is slightly different. (in french 
we call that a "mutation", don't know the English for that)

--
Gilles

Re: question concerning arranger tool

2022-07-04 Thread Gilles Thibault

Le 2022-06-20 14:12, Stefan Thomas a écrit :

Dear community,
I try to understand more of the arranger tool, have a look at
https://github.com/gilles-th/arranger.ly
Could someone give an instructional example, what the functions 
copy-out

can do and how it works?
I generally think taht there should be more examples in the docs. I'm
willing to help in this regard but therefore I sould understand a bit 
more

of the staff.
Thanks,
Stefan


Sorry one again to answer so late.

copy-out :

- An instrument 'instru has a section of his music (for ex from bar 11 
to bar 19) that comes back several times.


  (copy-out 'instru 11 19 40 60 80)

=> the section 11-19 is copied to bar 40 then to bar 60 then to bar 80.

- If all instrument of your score have their section 11-19 repeated :

   all = #'(fl1 fl2 oboe1 oboe2 cl1 cl2 ..)

   (copy-out all 11 19 40 60 80)

=> the section 11-19 of each instrument is copied to bar 40, 60, 80

- If a piece of music has a section repeated but transposed to a fifth 
higher for example, you have to use (copy-out-with-func func) instead :


  (let ((5th (set-transp 0 4 0))) ; 4 notes above = a fith
((copy-out-with-func 5th) all 1 20 80))

=> the section 1-20 of each instrument is copied to bar 80 but 
transposed a fifth higher.


Hope that helps.





--
Gilles



Re: question concerning arranger tool

2022-06-20 Thread Jean Abou Samra

Le 20/06/2022 à 14:12, Stefan Thomas a écrit :

Dear community,
I try to understand more of the arranger tool, have a look at
https://github.com/gilles-th/arranger.ly
Could someone give an instructional example, what the functions 
copy-out can do and how it works?
I generally think taht there should be more examples in the docs. I'm 
willing to help in this regard but therefore I sould understand a bit 
more of the staff.




For questions and remarks about arranger.ly, you probably want to CC the 
author, Gilles Thibault (I've added him here).


Best,
Jean




question concerning arranger tool

2022-06-20 Thread Stefan Thomas
Dear community,
I try to understand more of the arranger tool, have a look at
https://github.com/gilles-th/arranger.ly
Could someone give an instructional example, what the functions copy-out
can do and how it works?
I generally think taht there should be more examples in the docs. I'm
willing to help in this regard but therefore I sould understand a bit more
of the staff.
Thanks,
Stefan