lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: music patterns and octave


From: BB
Subject: Re: music patterns and octave
Date: Tue, 8 Mar 2016 18:21:56 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]