Re: Scheme music function attempt

2009-01-27 Thread David Raleigh Arnold
On Monday 26 January 2009, Tao Cumplido wrote: > Original-Nachricht > > Datum: Mon, 26 Jan 2009 06:09:08 -0700 > > Von: "Carl D. Sorensen" > > > > You may want to use a different name from cs. cs is C sharp in english, > > so > > this code would run into the same problem as y

Re: Scheme music function attempt

2009-01-26 Thread Tao Cumplido
Original-Nachricht > Datum: Mon, 26 Jan 2009 06:09:08 -0700 > Von: "Carl D. Sorensen" > You may want to use a different name from cs. cs is C sharp in english, > so > this code would run into the same problem as you had before with c if > somebody wants to use english note nam

Re: Scheme music function attempt

2009-01-26 Thread Tao Cumplido
Yes, that helped a lot. Thanks! That's how I made the first step work now, in case of interest. #(define (root-name music) (let* ((e (car (ly:music-property music 'elements))) (p (ly:music-property e 'pitch))) (if (ly:pitch? p) (let ((n (ly:pitch-notename p)))

Re: Scheme music function attempt

2009-01-26 Thread Carl D. Sorensen
On 1/26/09 3:08 AM, "Tao Cumplido" wrote: > Yes, that helped a lot. Thanks! > That's how I made the first step work now, in case of interest. Great! > > #(define (root-name music) >(let* ((e (car (ly:music-property music 'elements))) > (p (ly:music-property e 'pitch))) >

Scheme music function attempt

2009-01-25 Thread Carl D. Sorensen
On 1/25/09 6:08 AM, "Tao Cumplido" wrote: > Now I've got a question which is slightly off-topic. > This thread got me inspired to give scheme another try (everytime I tried to > do > something with scheme before it'd never work). > I am trying to create a music function that makes it possible