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

Reply via email to