[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic octaves
From: |
David Kastrup |
Subject: |
Re: Automatic octaves |
Date: |
Fri, 10 Jan 2014 17:31:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Daniel Rosen <address@hidden> writes:
>> -----Original Message-----
>> From: Eluze [mailto:address@hidden
>> Sent: Sunday, January 05, 2014 2:31 PM
>> To: address@hidden
>> Subject: Re: Automatic octaves
>>
>> instead of this (broken) snippet you could use dak's most elegant and short
>> proposal:
>>
>> http://lilypond.1069038.n5.nabble.com/quot-Octave-quot-script-in-
>> Frescobaldi-td152801.html#none
>
> That works great when the variable is invoked outside of a \relative
> expression, but not within it. Is there any way to modify the function
> so that it can be used this way?
>
> \version "2.18.0"
> myoctavate =
> #(define-music-function (parser location music) (ly:music?)
> #{ \context Bottom << $music \transpose c c' $music >> #})
You could use dak's most elegant make-relative macro...
myoctavate =
#(define-music-function (parser location music) (ly:music?)
(make-relative (music) music
#{ \context Bottom << $music \transpose c c' $music >> #}))
\relative { \myoctavate { a b c d } e f g a }
--
David Kastrup
- RE: Automatic octaves, (continued)
- Re: Automatic octaves, Eluze, 2014/01/05
- Re: Automatic octaves,
David Kastrup <=
- RE: Automatic octaves, Daniel Rosen, 2014/01/10
- Re: Automatic octaves, David Kastrup, 2014/01/10
- RE: Automatic octaves, Daniel Rosen, 2014/01/10
- Re: Automatic octaves, David Kastrup, 2014/01/11
- Re: Automatic octaves, Kieren MacMillan, 2014/01/11