[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Current octave in relative mode
From: |
David Kastrup |
Subject: |
Re: Current octave in relative mode |
Date: |
Sat, 16 May 2020 12:30:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Flaming Hakama by Elaine <address@hidden> writes:
>> From: Klaus Blum <address@hidden>
>> To: "address@hidden" <address@hidden>
>> Cc:
>> Bcc:
>> Date: Fri, 15 May 2020 12:01:06 +0200
>> Subject: Current octave in relative mode
>> Hi,
>>
>> I have a function that uses a music expression twice.
>> My problem is:
>> In relative mode, this expression can lead into a different octave. Then
>> the second application of the music expression starts from that new octave.
>> (See the last two invocations of "\highlight" in the example below)
>>
>>
>> % ----------------------------------------
>> highlight =
>> #(define-music-function (mus)
>> (ly:music?)
>> #{
>> <<
>> $mus
>> \makeClusters $mus
>> >>
>> #})
>>
>> \new Staff {
>> \highlight { c'8 d' e' f' g' a' b' c'' }
>> \relative c' {
>> c1 \highlight { c8 d e f g f e d }
>> c1 \highlight { c8 d e f g a b c }
>> c1 \highlight { f,4 e d c }
>> c1
>> }
>> }
>> % ----------------------------------------
> I'm not quite sure what you are after here, except that some things are not
> in the octave you want, but I'm not sure which.
>
[...]
> So, in your example, if all the c1's are supposed to be the same octave
> this is accomplished by just specifying each of the ones you pass to your
> function.
>
>
> \version "2.19.81"
> % ----------------------------------------
> highlight =
> #(define-music-function (mus)
> (ly:music?)
> (make-relative (mus) mus
> #{
> <<
> $mus
> \makeClusters $mus
> >>
> #}))
You are aware that make-relative here fixes the problem? Did you just
copy the fixed version by accident from my reply?
--
David Kastrup
- Re: Current octave in relative mode, (continued)
- Re: Current octave in relative mode, antlists, 2020/05/15
- Re: Current octave in relative mode, antlists, 2020/05/16
- Re: Current octave in relative mode, David Kastrup, 2020/05/16
- Re: Current octave in relative mode, antlists, 2020/05/16
- Re: Current octave in relative mode, David Kastrup, 2020/05/16
- Re: Current octave in relative mode, antlists, 2020/05/16
- Re: Current octave in relative mode, David Kastrup, 2020/05/16
Re: Current octave in relative mode, Flaming Hakama by Elaine, 2020/05/15
- Re: Current octave in relative mode,
David Kastrup <=
Re: Current octave in relative mode, Klaus Blum, 2020/05/17