[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Octave" script in Frescobaldi
From: |
David Kastrup |
Subject: |
Re: "Octave" script in Frescobaldi |
Date: |
Tue, 22 Oct 2013 13:17:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
flup2 <address@hidden> writes:
> These days, I have to input a lot of octaves in some music scores (a typical
> figure in orchestral reductions :( ). I usually write <c c'> but, with lots
> of those, I hope it would be possible to write a snippet in Frescobaldi to
> accelerate to entry process.
>
> I looked at the "tuplet" snippet and tried < $SELECTION $SELECTION' > but it
> gives me < c ' >. I suppose it's because once the selection is used the
> first time, it replaced the selected note; there isn't any remaining
> selection for the remain of the script.
>
> Anyway, my wish would be to be able to select a large portion of notes like
> {a b c d e f g a} and turn that scale into * <c c'> <d d'> etc.
>
> Does anyone how to achieve that?
What about something like
myoctavate =
#(define-music-function (parser location music) (ly:music?)
#{ \context Bottom << $music \transpose c c' $music >> #})
\myoctavate \relative { a b c d e f g a }
--
David Kastrup