Re: syntax helper for ly:music-property

2004-06-19 Thread Nicolas Sceaux
Jan Nieuwenhuizen <[EMAIL PROTECTED]> writes: > Han-Wen Nienhuys writes: > >>> >> guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) > >> No. Do you have a more elaborate example? > > Hmm. I just thought that #@ .. elements.0.elements.2 > > looked vagely like a class initilizer > >(make

Re: syntax helper for ly:music-property

2004-06-19 Thread Jan Nieuwenhuizen
Han-Wen Nienhuys writes: >> >> guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) > No. Do you have a more elaborate example? Hmm. I just thought that #@ .. elements.0.elements.2 looked vagely like a class initilizer (make #elements 0 #elements 2 but then I realized that all names w

Re: syntax helper for ly:music-property

2004-06-19 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > Han-Wen Nienhuys writes: > > >> guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) > > > > Funky stuff, but maybe too exotic to put into the standard > > distribution? > > Yes, it looks cool, but I can imagine you'd want to do this in a more > readable way, maybe w

Re: syntax helper for ly:music-property

2004-06-19 Thread Jan Nieuwenhuizen
Han-Wen Nienhuys writes: >> guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) > > Funky stuff, but maybe too exotic to put into the standard > distribution? Yes, it looks cool, but I can imagine you'd want to do this in a more readable way, maybe with a goops class (set! xx (elements #:x y #

Re: syntax helper for ly:music-property

2004-06-19 Thread Nicolas Sceaux
Han-Wen Nienhuys <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] writes: >> >> guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) > > Funky stuff, but maybe too exotic to put into the standard > distribution? Maybe :-) ___ lilypond-devel mailin

Re: syntax helper for ly:music-property

2004-06-18 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > > guile> (set! [EMAIL PROTECTED] (ly:make-pitch -1 4 0)) Funky stuff, but maybe too exotic to put into the standard distribution? -- Han-Wen Nienhuys | [EMAIL PROTECTED] | http://www.xs4all.nl/~hanwen ___ lily

Re: syntax helper for ly:music-property

2004-06-13 Thread Nicolas Sceaux
Nicolas Sceaux <[EMAIL PROTECTED]> writes: > Hello, > > Manipulating music expressions makes me impatient and lazy (don't know > about hubris). Here is a little utility which can be used as a > shortcut for ly:music-property : > hm, this was not enough. (define (read-dotted-expression chr port)

syntax helper for ly:music-property

2004-06-13 Thread Nicolas Sceaux
Hello, Manipulating music expressions makes me impatient and lazy (don't know about hubris). Here is a little utility which can be used as a shortcut for ly:music-property : (define (read-dotted-expression chr port) (define (gen-music-prop-expr music prop . rest) (if (null? rest) `