Re: Setting the value of a music property

2010-07-25 Thread Joseph Wakeling
On 07/25/2010 10:14 PM, Neil Puttock wrote: > The music property must be set after calling the naturalizeMusic > function, otherwise it's too late: Brilliant, that works, thank you! :-) One small point of clarification -- do I have to put brackets {} around the music that a \withMusicProperty sta

Re: Setting the value of a music property

2010-07-25 Thread Neil Puttock
On 25 July 2010 20:49, Joseph Wakeling wrote: > I don't know how that typo got into my email, but it is _not_ what I > have in my Lilypond input file.  This is: > >   naturalizeMusic = >   #(define-music-function (parser location m) >      (ly:music?) >      (naturalize m (ly:music-property m 'na

Re: Setting the value of a music property

2010-07-25 Thread Joseph Wakeling
On 07/25/2010 09:49 PM, Joseph Wakeling wrote: > I don't know how that typo got into my email, but it is _not_ what I > have in my Lilypond input file. For reference, I've attached a complete .ly file. naturalizeMusic = #(define-music-function (parser location m) (ly:music?) (naturalize m (

Re: Setting the value of a music property

2010-07-25 Thread Joseph Wakeling
On 07/25/2010 08:49 PM, Neil Puttock wrote: > This function has an arg called `m', but you're trying to access a > property from `music'. This doesn't cause an `unbound variable' error > since you have the following identifier (whose music has no > 'naturalize-style setting): I don't know how tha

Re: Setting the value of a music property

2010-07-25 Thread Neil Puttock
On 25 July 2010 13:22, Joseph Wakeling wrote: >    naturalizeMusic = >    #(define-music-function (parser location m) >       (ly:music?) >       (naturalize m (ly:music-property music 'naturalize-style))) This function has an arg called `m', but you're trying to access a property from `music'.

Setting the value of a music property

2010-07-25 Thread Joseph Wakeling
Dear everyone, A possibly dumb question -- I'm having some difficulty working out how to set the value of a given music property. Here's a little piece of Lilypond Scheme adapted from the naturalizeMusic.ly snippet: naturalizeMusic = #(define-music-function (parser location m) (ly