pattern =
    \relative c' {
    {
       c16 d e f g a b c
    }
    }
    \relative c'
    {
      \pattern d'4 d4
      \pattern c4 e4
      \pattern e4 c4
    }

On 08.03.2016 17:45, Gianmaria Lari wrote:
Suppose you have this:

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:

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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to