Re: use variable out side procedure

2020-05-29 Thread Freeman Gilmore
On Fri, May 29, 2020 at 4:19 PM Ralf Mattes wrote: > > Sorry if I allow myself to comment as a lurker on this list > > Am Freitag, 29. Mai 2020 21:26 CEST, Aaron Hill > schrieb: > > > On 2020-05-29 6:49 am, Freeman Gilmore wrote: > > > I guess i need a text/course book in scheme that expla

Re: use variable out side procedure

2020-05-29 Thread Freeman Gilmore
Thank you Aaron: I asked a simple question because all the ways I tried to make it work failed; and there was a simple solution, which many would know. If it is in the LilyPond manuals or guide manual, I would not know how to find it even if it were there. You can not learn scheme from those m

Re: use variable out side procedure

2020-05-29 Thread Valentin Villenave
On 5/29/20, Ralf Mattes wrote: > No, no, no! While all the books you mention are very good books (even so > very special) they are really bad books for smeone trying to learn Scheme to > get > along with Lilypond. Well, to each their own I guess. Getting some useful basics in programming has ne

Re: use variable out side procedure

2020-05-29 Thread Ralf Mattes
Sorry if I allow myself to comment as a lurker on this list Am Freitag, 29. Mai 2020 21:26 CEST, Aaron Hill schrieb: > On 2020-05-29 6:49 am, Freeman Gilmore wrote: > > I guess i need a text/course book in scheme that explained little > > things like that. That was simple, thank you, ƒg

Re: use variable out side procedure

2020-05-29 Thread Aaron Hill
On 2020-05-29 6:49 am, Freeman Gilmore wrote: I guess i need a text/course book in scheme that explained little things like that. That was simple, thank you, ƒg Might I recommend the following: - "The Little Schemer" [1] Daniel P. Friedman, Matthias Fell

Re: use variable out side procedure

2020-05-29 Thread Freeman Gilmore
I guess i need a text/course book in scheme that explained little things like that. That was simple, thank you, ƒg On Fri, May 29, 2020 at 9:37 AM Valentin Villenave wrote: > > On 5/29/20, Freeman Gilmore wrote: > > But how do i get Z (or x) out side so i can use the variable? for example: >

Re: use variable out side procedure

2020-05-29 Thread Valentin Villenave
On 5/29/20, Freeman Gilmore wrote: > But how do i get Z (or x) out side so i can use the variable? for example: > #(display Z) You need to define it at the top-level; then you can change its value using set!: \version "2.20.0" #(use-modules (ice-9 regex)) #(define Z '()) j = #(define-vo

use variable out side procedure

2020-05-29 Thread Freeman Gilmore
\version "2.20.0" #(use-modules (ice-9 regex) j = #(define-void-function (x) (string>?) (define Z x) (display Z))%works \j "-3 +8 -6+1-8" But how do i get Z (or x) out side so i can use the variable? for example: #(display Z) Thank you, ƒg