Re: How do I mix ly and scheme in define-music-function

2007-04-01 Thread Maximilian Albert
Nicolas Sceaux schrieb: Here is the structure of your function: setAltStaff = #(define-music-function (parser location style lowerOctave upperOctave) (string? number? number?) (if #t #{ ..foo.. #}) #{ ..baz.. #}) The function return the last form, which

Re: How do I mix ly and scheme in define-music-function

2007-04-01 Thread Nicolas Sceaux
Maximilian Albert [EMAIL PROTECTED] writes: Nicolas Sceaux schrieb: Here is the structure of your function: setAltStaff = #(define-music-function (parser location style lowerOctave upperOctave) (string? number? number?) (if #t #{ ..foo.. #}) #{ ..baz.. #})

Re: How do I mix ly and scheme in define-music-function

2007-04-01 Thread Maximilian Albert
Nicolas Sceaux schrieb: The music expression that is finally inserted into the surrounding music is what is *returned* by the music function, that is, the last form. Ah, that's point. Thanks for the hint! I'm sure this will help me quite a few times in the future (when I finally find the time

Re: How do I mix ly and scheme in define-music-function

2007-04-01 Thread Kevin Dalley
Thanks. That was the part I was missing. I didn't realize that all of the items must be combined, and I didn't know how to combine them anyway. Is this worth mentioning somewhere in the Music Functions section of the documentation. Does that mean I have to write it. Nicolas Sceaux [EMAIL

How do I mix ly and scheme in define-music-function

2007-03-31 Thread Kevin Dalley
I want to stick an if statement in the middle of setting many values: This doesn't work. The if block appears to be skipped. By the way, in the real code, I replace #t with something else, but if I can't get it to work with #t, there is something wrong with my understanding. The later block