Suppose you have this:

[image: Inline image 2]

This is something like

\fragment d d
\fragment c e
\fragment e c


So, more precisely I would write:

\version "2.19.35"

pattern =
{
   c16 d e f g a b c
}

\relative c'
{
  \pattern d4 d4
  \pattern c4 e4
  \pattern e4 c4
}


But the previous code generate:

[image: Inline image 1]

So I played a bit with "\absolute" and at the end I have been able to fix
the issue. Here it is the code:

\version "2.19.35"

pattern = \absolute
{
   c'16 d' e' f' g' a' b' c''
}

\relative c''
{
  \pattern d4 d4
  \pattern c4 e4
  \pattern e4 c4
}


Unfortunately this solution does not work well with "\changePitch" (that I
need). I also tried setting the pattern in the following way:

pattern = *\relative c'*
{
   c16 d e f g a b c
}


but it also does not work because the scope of "\relative " ends at the end
of the expression (if I understood correctly).

Any suggestion? does exist any command to simply set the octave of the next
note?

Thank you, g.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to