gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shift-music


From: Laurent Martelli
Subject: Re: shift-music
Date: 21 Feb 2001 11:29:35 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Laurent" == Laurent Martelli <address@hidden> writes:

>>>>> "Laurent" == Laurent Martelli <address@hidden> writes:

>>>>> "Rune" == Rune Zedeler <address@hidden> writes:

  Rune> But this is not so neat.  Isn't it possible to define some
  Rune> short of shortcut for this, somehow?  Lilypond functions... :)

  Laurent> And it does not work as expected (at least not for me) for
  Laurent> keys other than C major. But I'm working on it.

  Laurent> That should work.

        [...]

One last little improvement, to save even more key presses :

#(define (my-shift-music delta)
   (eval `(lambda (x) (shift-music x ,delta key))))

#(define key c-major)
\apply #(my-shift-music 2) \patterna

#(define key g-major)
\apply #(my-shift-music 2) \patternb

-- 
Laurent Martelli
address@hidden              http://www.linuxfan.com/~laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]