Re: Get the pitch as number

2011-02-15 Thread Gilles THIBAULT
I see now what the problem was. however, I'm not quite sure yet how to avoid doing similar mistakes in the future, but maybe I'll get used to it (For example, how do I know that I should start looking for EventChord rather than NoteEvents?) You can start looking for NoteEvent but remenber you

Re: Get the pitch as number

2011-02-14 Thread Henrik Frisk
On Fri, Feb 11, 2011 at 3:10 PM, Gilles THIBAULT gilles.thiba...@free.fr wrote: It appears to me that I'm getting a list rather than an integer, but if I run (get-text texts (ly:pitch-semitones (ly:make-pitch 0 1 0))) So get-pitch was probably the culprit ... NB You use :

Re: Get the pitch as number

2011-02-11 Thread Gilles THIBAULT
It appears to me that I'm getting a list rather than an integer, but if I run (get-text texts (ly:pitch-semitones (ly:make-pitch 0 1 0))) So get-pitch was probably the culprit ... % #(define (make-text-script x) (make-music 'TextScriptEvent 'direction DOWN

Get the pitch as number

2011-02-09 Thread Henrik Frisk
Hi all, I'm trying to write a couple of functions that will attach a given text script to a note depending on the pitch. In the example below I get the first item in the list, as expected if I run (get-text 1). If I run (get-pitch msc) I get ((0)) and if I try to compile the file or run