lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : little scheme problem (ly-> xml )


From: bigcab
Subject: Re : little scheme problem (ly-> xml )
Date: Thu, 28 Jul 2011 14:08:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10

Le 28/07/2011 13:36, address@hidden a écrit :
Send lilypond-devel mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/lilypond-devel
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-devel digest..."


Today's Topics:

    1. Re: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
       (Reinhold Kainhofer)
    2. Re: Fixes error for tuplet bracket direction calculation when
       tuplets  contain rests. (issue4668045) (address@hidden)
    3. RE: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
       (James Lowe)
    4. little scheme problem (convert ly ->  xml) (bigcab)
    5. Re: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
       (address@hidden)
    6. Re: Moves tuplet numbers outside staff with their brackets.
       (issue4639075) (address@hidden)
    7. Re: little scheme problem (convert ly ->  xml) (Jan Nieuwenhuizen)
    8. Re: little scheme problem (convert ly ->  xml) (David Kastrup)
    9. Re: review process not working (Reinhold Kainhofer)
   10. Re: review process not working (David Kastrup)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Jul 2011 09:16:28 +0200
From: Reinhold Kainhofer<address@hidden>
To: Colin Campbell<address@hidden>, Devel<address@hidden>
Subject: Re: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
Message-ID:<address@hidden>
Content-Type: text/plain; charset=utf-8

On Do., 28. Jul. 2011 04:04:21 CEST, Colin Campbell<address@hidden>  wrote:
Countdown done, but still open/not marked fixed:
?  From Wednesday July 27
Issue 732: Alignment problems when vertically stacking horizontally centered
stencils.
Issue 1111: Allow manual directions on dynamics to break alignment spanner
automatically
?Issue 1433: \breakDynamicSpan breaks with \break ("bounds of spanner are 
invalid")
?Issue 1259: DynamicTextSpanner #'style = #'none doesn't work over \break

The list of patches still not dealt with is rather alarming: is it
because devels are on holiday,
Those four patches quoted above are mine, and I'm currently at vacation at home 
with my parents, so I simply don't find enough time to deal with them right 
now. I'll fix and close them in the next few days.
Cheers,
Reinhold



------------------------------

Message: 2
Date: Thu, 28 Jul 2011 07:59:06 +0000
From: address@hidden
To: address@hidden, address@hidden, address@hidden,
        address@hidden, address@hidden, address@hidden
Cc: address@hidden, address@hidden
Subject: Re: Fixes error for tuplet bracket direction calculation when
        tuplets contain rests. (issue4668045)
Message-ID:<address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Pushed as eed6f105c0b478572ec2b8fa93e1f96c0c5869ba.

Cheers,
MS

http://codereview.appspot.com/4668045/



------------------------------

Message: 3
Date: Thu, 28 Jul 2011 08:07:08 +0000
From: James Lowe<address@hidden>
To: Reinhold Kainhofer<address@hidden>, Colin Campbell
        <address@hidden>, Devel<address@hidden>
Subject: RE: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
Message-ID:
        <address@hidden>
        
Content-Type: text/plain; charset="utf-8"

Hello,

)-----Original Message-----
)From: address@hidden
)[mailto:address@hidden On
)Behalf Of Reinhold Kainhofer
)Sent: 28 July 2011 08:16
)To: Colin Campbell; Devel
)Subject: Re: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
)
)On Do., 28. Jul. 2011 04:04:21 CEST, Colin Campbell<address@hidden>
)wrote:
)>  Countdown done, but still open/not marked fixed:
)>?  From Wednesday July 27
)>  Issue 732: Alignment problems when vertically stacking horizontally
)>centered  stencils.
)>  Issue 1111: Allow manual directions on dynamics to break alignment
)>spanner  automatically
)>?Issue 1433: \breakDynamicSpan breaks with \break ("bounds of spanner
)>are invalid")
)>?Issue 1259: DynamicTextSpanner #'style = #'none doesn't work over
)>\break
)>
)>  The list of patches still not dealt with is rather alarming: is it
)>  because devels are on holiday,
)
)Those four patches quoted above are mine, and I'm currently at vacation
)at home with my parents, so I simply don't find enough time to deal with
)them right now. I'll fix and close them in the next few days.
)Cheers,
)Reinhold
)
---

I also keep half an eye on Rietveld issues being updated in the emails and 
Trackers not - as the patches are on Rietveld it is more than likely a dev will 
do one but forget the other. So I often step in and cut/paste the relevant 
comment on the Rietveld and update the Tracker.

Until we get a single place to put issues and Patches I can't see this really 
changing and as has been said before, it is more important to keep the Devs 
slaving^H^H^H^H^H^H^H working away fixing and improving LP than worrying *too* 
much about the admin.

James
PA to Mike Solomon

------------------------------

Message: 4
Date: Thu, 28 Jul 2011 10:11:31 +0200
From: bigcab<address@hidden>
To: address@hidden
Subject: little scheme problem (convert ly ->  xml)
Message-ID:<address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,


As you know , I have started coding the ly->  xml in scheme,
but  as i want to make the code easier to read, I started to create a list
of callback to retrieve information for example
so I wrote this (for example):

;; once you retrived the good object you just have to extract its value
;; functions to retrieve the value of duration/step/octave
(define function-value-list
          (('duration      . ((lambda(x) (ly:duration-log x))))
          ('step           . ((lambda(x) (ly:pitch-notename x))))
          ('test           . ((lambda(x) (begin (display "salut :")
(display x) (display ".\n")))))
          ('octave         . ((lambda(x) (ly:pitch-octave x))))))

;; return false if value is not found
(define (get_value music name )
      (if (assq name function-value-list)
          (let (fun (car(assq name function-value-list)))
              (fun music))
          (#f)))

however , it does not seem to work , because is always says Wrong type
to apply: duration
even though I never called the function yet... if i am executing it
inside a lilypond file

i get this Unbound variable: function-value-list

so I begin to think it is impossible to create a list containing, is it ?

if so, i will have to create each function one by one, so it would be
longer and more difficult to edit ...



Thanks very much



------------------------------

Message: 5
Date: Thu, 28 Jul 2011 10:15:39 +0200
From: "address@hidden"<address@hidden>
To: James Lowe<address@hidden>
Cc: Devel<address@hidden>
Subject: Re: PATCH: 48-Hour countdown to 20:00 MDT Friday July 29
Message-ID:<address@hidden>
Content-Type: text/plain; charset=us-ascii

On Jul 28, 2011, at 10:07 AM, James Lowe wrote:

PA to Mike Solomon
:)
Even with my new virtual box, I am sometimes forgetting to take certain steps 
to get a clean baseline (i.e. forgetting to commit changes before deleting a 
branch, which leaves a set of files in my new branch, which then gets compiled 
with a patch, etc.).  That has gotten better in the past few days, but I still 
make mistakes (like the slur stuff).  Your regtest and admin help is very 
appreciated!

Cheers,
MS




------------------------------

Message: 6
Date: Thu, 28 Jul 2011 08:29:49 +0000
From: address@hidden
To: address@hidden, address@hidden, address@hidden,
        address@hidden
Cc: address@hidden, address@hidden
Subject: Re: Moves tuplet numbers outside staff with their brackets.
        (issue4639075)
Message-ID:<address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Pushed as 72210831b0366cb7c1f7009ba99a56538d68a7e5.

Cheers,
MS

http://codereview.appspot.com/4639075/



------------------------------

Message: 7
Date: Thu, 28 Jul 2011 10:32:41 +0200
From: Jan Nieuwenhuizen<address@hidden>
To: bigcab<address@hidden>
Cc: address@hidden
Subject: Re: little scheme problem (convert ly ->  xml)
Message-ID:<address@hidden>
Content-Type: text/plain; charset=utf-8

bigcab writes:

(define function-value-list
         (('duration      . ((lambda(x) (ly:duration-log x))))
What are you trying to achieve by doing (lambda (x) (foo x))?

         ('step           . ((lambda(x) (ly:pitch-notename x))))
         ('test           . ((lambda(x) (begin (display "salut :")
(display x) (display ".\n")))))
         ('octave         . ((lambda(x) (ly:pitch-octave x))))))
You probably want something like

    (define function-value-list
       `((duration . (,ly:duration-log))
         (step . (,ly:pitch-notename))
         (test . (,lambda (x) (begin (display "salut: ") ...)))
         ...))


Jan.

I just want to be able to retrieve my procedure from the list and be able to call it, however , I still get this error

i did this:

(define function-value-list
        '((duration      . ( ,ly:duration-log ))
        (step           . (,ly:pitch-notename ))
        (octave         . (,ly:pitch-octave ))
        (test           . (,display ))))

(define fun (cdr(assq 'test function-value-list)))
(fun "cab")

I get an error with it :  Wrong type to apply: ((unquote display))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]