> -----Original Message-----
> From: Kieren MacMillan [mailto:[email protected]]
> 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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to