lilypond-user
[Top][All Lists]
Advanced

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

Re: Wrong pitch


From: Christophe Papazian
Subject: Re: Wrong pitch
Date: Thu, 13 Dec 2012 21:52:21 +0100

Thank you for your quick and useful answer !

On Dec 13, 2012, at 9:40 PM, David Kastrup wrote:

> Christophe Papazian <address@hidden> writes:
> 
>> Hi,
>> 
>> I made a simple example of what I did, and I don't understand what's wrong :
>> 
>> %%%%%%%%%%%%%%%%
>> \version "2.16.1"
>> 
>> ArpOne =
>> #(define-music-function
>>     (parser location noteA noteB)
>>     (ly:music? ly:music?)
>>   #{         
>>     #noteA #noteB
>>     #noteA #noteB
>>     #noteA #noteB
>>     #noteA #noteB
>>   #})
>> 
>> 
>> \relative c'' {\clef treble
>> aes1 \ArpOne a8 b c1
>> }
>> %%%%%%%%%%%%%%%%
>> 
>> If someone can help me to repeat my notes using a music function
>> within the right octave !
> 
> #{ \repeat \volta 4 { #noteA #noteB } #}
> 
>> (Here the octave is wrong as you can see if you try to typeset that
>> example)
> 
> What happens here is that you use the same note multiple times without
> copying it.  So it gets relativized multiple times.
> 
> If you use the argument multiple times, you should be using $xxx for
> that reason rather than #xxx as $xxx creates a copy.
> 
> -- 
> David Kastrup
> 
> 
> _______________________________________________
> 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]