[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic octaves
From: |
Eluze |
Subject: |
Re: Automatic octaves |
Date: |
Fri, 10 Jan 2014 19:05:07 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 10.01.2014 16:53, schrieb Daniel Rosen:
The other thing about the broken snippet, though, is that it allowed
the user to choose both the direction of octavation and the number of
octaves. Is there any way for this kind of functionality to be added
here? E.g. \relative { \myoctavate #-1 { ... } } to add notes an
octave below.
you could add another parameter:
myoctavate =#(define-music-function (parser location pitch music)
(ly:pitch? ly:music?)
#{
\context Bottom <<
$music
\transpose c $pitch $music
>>
#}
)
and then:
\myoctavate c'' \relative c' { a b c d e f g a }
or
\myoctavate c, \relative c' { a b c d e f g a }
would give the wanted result.
but for the \relative issue I can't figure out a solution (unless you
want to define two functions, one for relative and one for absolute entry)
Eluze
- Re: Automatic octaves, (continued)
- 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