lilypond-user
[Top][All Lists]
Advanced

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

Re: How to generate notes in a scale


From: Mats Bengtsson
Subject: Re: How to generate notes in a scale
Date: Mon, 21 Apr 2008 10:06:21 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Isn't it possible to obtain the same result in a simpler way by just transposing a hard coded
template in C major into the current key?
Information on the current key signature is available in the keySignature context property (see the internal reference documentation for Key-engraver), but perhaps not in a very useful way. Also, don't forget about the instrumentTransposition property (which is set by the \transposition command) if you want to handle transposing instruments correctly.

   /Mats

Peter Chubb wrote:
Hi,
        I'm currently trying to get improved MIDI output.  I have a
scheme function that processes articulations like staccato, tenuto,
etc., working now.  But for turns and trills, I need to generate the
notes around a note in the current key.

        Has anyone written a scheme function to do this yet?  for
example, given e return fis (if the current key is g), or given e return f (if
the current key is c)? I'm a bit stuck, as I can't even work out how to get at the current key within a music-function.
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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