Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread Jean Abou Samra
Le 04/11/2022 à 14:43, David Kastrup a écrit : Jean Abou Samra writes: P.S. The Internals Reference gives a (quite technical) explanation of make-relative: https://lilypond.org/doc/v2.23/Documentation/internals/scheme-functions That description is a bunch of incomprehensible gobbledegook

Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread Jean Abou Samra
Le 04/11/2022 à 15:20, David Kastrup a écrit : Ok, I'll give the doc text another try, but the documentation block in the manual starts with: Macro: make-relative … which is missing the input arguments from (define-syntax-rule-public (make-relative (variables ...) reference music)

Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread David Kastrup
David Kastrup writes: > Jean Abou Samra writes: > >> Le 04/11/2022 à 12:09, Jean Abou Samra a écrit : >>> Also, you will have surprises with \relative because >>> the note appears twice, with its octave marks. You >>> can use make-relative to fix that. >> >> P.S. The Internals Reference gives a

Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread David Kastrup
Jean Abou Samra writes: > Le 04/11/2022 à 12:09, Jean Abou Samra a écrit : >> Also, you will have surprises with \relative because >> the note appears twice, with its octave marks. You >> can use make-relative to fix that. > > P.S. The Internals Reference gives a (quite technical) explanation of

Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread Jean Abou Samra
Le 04/11/2022 à 12:09, Jean Abou Samra a écrit : Also, you will have surprises with \relative because the note appears twice, with its octave marks. You can use make-relative to fix that. P.S. The Internals Reference gives a (quite technical) explanation of make-relative:

Re: New hosting for Urs Liska's Scheme WIP book

2022-11-04 Thread Jean Abou Samra
Le 04/11/2022 à 00:13, Karlin High a écrit : Could a music function or something be shorthand for that? Let's see... That page is pretty ideal. Here's the general form, what it contains, and how it can be

Re: Trying to write a scheme function

2022-11-04 Thread Jean Abou Samra
Hi Valentin, Just a small correction: Le 04/11/2022 à 09:02, Valentin Petzel a écrit : For checking equality we have three basic functions: eq?, eqv? and equal?. eq? checks if we reference the same object, but fails for numbers and strings. eqv? does the same, but with numbers and strings it

Re: Trying to write a scheme function

2022-11-04 Thread Valentin Petzel
Hello David, There are two main problems with your code: c, d, e,2 are *not* valid scheme expressions. If you wrap one of these expressions in #{ ... #} like this #(display #{ c, #}) you’ll see that c, is parsed as *pitch*, while e,2 is parsed as music of type NoteEvent. These can also be