[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Automatic octaves
From: |
Daniel Rosen |
Subject: |
RE: Automatic octaves |
Date: |
Fri, 10 Jan 2014 15:38:38 +0000 |
> -----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
>
> Eluze
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 >> #})
\relative { \myoctavate { a b c d } e f g a }
%% Instead of
\myoctavate \relative { a b c d e f g a }
DR
- Automatic octaves, Daniel Rosen, 2014/01/04
- Re: Automatic octaves, David Kastrup, 2014/01/10
- 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