[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:53:08 +0000 |
> -----Original Message-----
> From: Kieren MacMillan [mailto:address@hidden
> Sent: Friday, January 10, 2014 10:42 AM
> To: Daniel Rosen
> Cc: Eluze; Lilypond-User Mailing List
> Subject: Re: Automatic octaves
>
> Hi Daniel,
>
> Does this work?
>
> \version "2.18.0"
>
> \version "2.18.0"
> myoctavate =
> #(define-music-function (parser location music) (ly:music?)
> #{ \context Bottom << $music \transpose c c' \relative $music >> #})
>
> \relative { \myoctavate { a b c d } e f g a } %% Instead of \myoctavate
> \relative { a b c d e f g a }
>
> Hope this helps!
> Kieren.
It does appear to work! 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.
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