Hi lilypond people,
I'm going to transcribe an orchester part; I'd like to put some musica
fragments in variables, then I coil avoid to type again the same things or
do so many copy and paste; I tried by this way :


\version "2.24.1"

\header {
  title = "Piano Concerto No 1"
  instrument = "Oboe"
  composer = "S. Prokofiev"
  opus = "10"
}

global = {
  \key des \major
  \time 2/2

  }

TEMA = {
  \relative c'' {

    r1
    r2 r4 aes8.( aes16
    c4\< des f g\!
    aes4\> ges f)\!\< g8.( g16\!
    aes4\> ges f\!\< g\!
    aes4\> ges f)\!
  }

oboe = \relative c'' {
  \global
  %1
  r1
  r2 r4 aes8.( aes16
  c4\< des f g\!
  aes4\> ges f)\!\< g8.( g16\!
  aes4\> ges f\!\< g\!
  aes4\> ges f)\!
  \TEMA

}

but I get error; my goal would be to get all common music fragments in a
single file, keeping them separated from other music parts, and using it
with \include statement; is it possible?

Reply via email to