Re: How to generate notes in a scale

2008-04-21 Thread Peter Chubb
> "Mats" == Mats Bengtsson <[EMAIL PROTECTED]> writes: Mats> Isn't it possible to obtain the same result in a simpler way by Mats> just transposing a hard coded template in C major into the Mats> current key? You'ld need a different template for each degree of each kind of scale, I think.

Re: How to generate notes in a scale

2008-04-21 Thread Mats Bengtsson
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 perh

Re: How to generate notes in a scale

2008-04-20 Thread Peter Chubb
OK, here's how I did it in the end. Is there a better way??? #(define ac:current-key (make-music 'KeyChangeEvent 'tonic (ly:make-pitch -1 0 0) 'pitch-alist (list (cons 0 0) (cons 1 0) (cons 2 0) (con

How to generate notes in a scale

2008-04-18 Thread Peter Chubb
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