Re: \include in scheme functions

2022-02-27 Thread Jean Abou Samra
Le 27/02/2022 à 09:50, Pierre-Yves Saumont a écrit : Hi, The Lilypond documentation says that any lilypond code can be use in a Scheme function by enclosing it in a #{ ...  #} block, but it seems \include doesn't work in this case. I am building a program to handle multiple Big Band

\include in scheme functions

2022-02-27 Thread Pierre-Yves Saumont
Hi, The Lilypond documentation says that any lilypond code can be use in a Scheme function by enclosing it in a #{ ... #} block, but it seems \include doesn't work in this case. I am building a program to handle multiple Big Band scores. I need to extract parts for each instrument (16 to 22)

Re: Ly Scheme functions reference

2022-02-05 Thread Rip _Mus
WOW! This seems wonderful! Thank you very much! Il sab 5 feb 2022, 20:30 Jean Abou Samra ha scritto: > > > Le 5 févr. 2022 à 20:10, Rip _Mus a > écrit : > > > > Good evening everyone, > > do you know if there is a complete reference (perhaps with tutoria

Re: Ly Scheme functions reference

2022-02-05 Thread Jean Abou Samra
> Le 5 févr. 2022 à 20:10, Rip _Mus a écrit : > > Good evening everyone, > do you know if there is a complete reference (perhaps with tutorials) of the > use of the Scheme functions? > In the Lilypond reference, from time to time, some functions are explained, &g

Ly Scheme functions reference

2022-02-05 Thread Rip _Mus
Good evening everyone, do you know if there is a complete reference (perhaps with tutorials) of the use of the Scheme functions? In the Lilypond reference, from time to time, some functions are explained, but it seems to me that a precise reference of each Scheme function is missing. I know

Re: newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
ng list on the thread for visibility.) > > To get the benefits of LilyPond's Scheme functions, you would need to > use one of the define-*-function family. Since it is our intention here > not to return any value, we use the void function. > > If you do not need any parameters, you

Re: newbie: help with Scheme functions

2020-10-18 Thread Aaron Hill
On 2020-10-18 1:38 pm, Dave Seidel wrote: Very cool, thanks! I'm curious -- could aBook and aBookPart have been written as a lambda, or is it cleaner to use a void function? (Re-adding the mailing list on the thread for visibility.) To get the benefits of LilyPond's Scheme functions, you

Re: newbie: help with Scheme functions

2020-10-18 Thread Aaron Hill
On 2020-10-18 7:52 am, Dave Seidel wrote: Having articulated the question, I figured out that apparently one can't return a \bookpart from a Scheme function, but it's ok to return a \score, so I am restructuring my code. You cannot return a \book or \bookpart but you can do this:

Re: newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
Having articulated the question, I figured out that apparently one can't return a \bookpart from a Scheme function, but it's ok to return a \score, so I am restructuring my code. On Sun, Oct 18, 2020 at 10:28 AM Dave Seidel wrote: > Hi, > > I have a multi-section piece, with a master .ly file

newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
Hi, I have a multi-section piece, with a master .ly file that uses \include for each of the sections of the piece. Each included file more or less follows the pattern of the string quartet template that ships with Lilypond: a series of macros, one per voice, followed by a \bookpart section that

Re: Optional arguments for scheme functions

2020-04-26 Thread David Kastrup
Aaron Hill writes: > On 2020-04-26 10:01 am, David Kastrup wrote: >> Predicates used in argument parsing have to be "primary" in that they >> have to deliver a result for anything thrown at them. >> positive? only delivers results for numbers but throws an error for >> anything else. > > Would

Re: Optional arguments for scheme functions

2020-04-26 Thread Aaron Hill
On 2020-04-26 10:01 am, David Kastrup wrote: Predicates used in argument parsing have to be "primary" in that they have to deliver a result for anything thrown at them. positive? only delivers results for numbers but throws an error for anything else. Would there be harm in redefining an R5RS

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 1:01 PM, David Kastrup wrote: > > Predicates used in argument parsing have to be "primary" in that they > have to deliver a result for anything thrown at them. > Can that be noted in the docs

Re: Optional arguments for scheme functions

2020-04-26 Thread David Kastrup
"Fr. Samuel Springuel" writes: >> On 26 Apr, 2020, at 4:30 AM, Thomas Morley wrote: >> >> I've no clue why positive? fails here. >> Though, for integers >= 0 we have the index? predicate, which works in >> your function. > > Well, I’m glad I’m not the only one baffled. And the index?

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 4:30 AM, Thomas Morley wrote: > > I've no clue why positive? fails here. > Though, for integers >= 0 we have the index? predicate, which works in > your function. Well, I’m glad I’m not the only one baffled. And the index? predicate does seem to work. > On 26 Apr,

Re: Optional arguments for scheme functions

2020-04-26 Thread Lukas-Fabian Moser
Am 26.04.20 um 10:30 schrieb Thomas Morley: However, when I swap integer? for positive? (to reflect the fact that only a positive integer should be acceptable) it breaks, telling me the argument at position 1 is of the wrong type (it’s music, not a positive number). Why doesn’t scheme’s

Re: Optional arguments for scheme functions

2020-04-26 Thread Thomas Morley
Am So., 26. Apr. 2020 um 02:35 Uhr schrieb Fr. Samuel Springuel : > > I’m trying to write a music function in scheme in which the first argument is > optional and have run into something that confuses me: > > The following works: > > \version "2.19.84" > > recite = #(define-music-function (times

Optional arguments for scheme functions

2020-04-25 Thread Fr. Samuel Springuel
I’m trying to write a music function in scheme in which the first argument is optional and have run into something that confuses me: The following works: \version "2.19.84" recite = #(define-music-function (times note) ((integer? 1) ly:music?) #{ \repeat unfold #times {

Re: How to correctly use scheme functions and/or math in define-music-function?

2019-08-05 Thread Matt Huber
Ugh, it does, in fact. I totally missed it in the manual somehow, but you have to include "articulate.ly" and use the \articulate command to make it work. Thanks! ~Matt On Mon, Aug 5, 2019 at 12:45 PM Simon Albrecht wrote: > Hi Matt, > > before I dive into your music functions: doesn’t > >

Re: How to correctly use scheme functions and/or math in define-music-function?

2019-08-05 Thread Simon Albrecht
Hi Matt, before I dive into your music functions: doesn’t \version "2.19.83" { sn4 4:64 8: 8 } do what you want? This is covered in NR (Notation Reference) 1.4.2.b. I haven’t tried it’s MIDI playback, but since it’s a synonym for the \repeat tremolo 16 sn64 notation, there shouldn’t be a

How to correctly use scheme functions and/or math in define-music-function?

2019-08-04 Thread Matt Huber
What I want to do: Percussion music has rolls, and while there are many references to typesetting them, I haven't found good references to how to get them to playback in a \midi {} block. My fantasy ideal is to have a "\roll" event so I could do something like this: sn4 sn4\roll sn4 sn4 and have

Re: Three questions about Scheme functions

2018-11-01 Thread Thomas Morley
Am Mo., 29. Okt. 2018 um 15:30 Uhr schrieb Jérôme Plût : > > I have a few questions about using Scheme to build Lilypond data. > > 1. I have some Scheme code that builds custom articulations (more > precisely, it attaches metadata to NoteEvents, and the only way I found > to make this possible is

A few questions about Scheme functions

2018-10-29 Thread Jérôme Plût
I have a few questions about using Scheme to build Lilypond data. 1. I have some Scheme code that builds custom articulations (more precisely, it attaches metadata to NoteEvents, and the only way I found to make this possible is via putting it in a custom, invisible articulation, but let's not

A few questions about Scheme functions

2018-10-29 Thread Jérôme Plût
I have a few questions about using Scheme to build Lilypond data. 1. I have some Scheme code that builds custom articulations (more precisely, it attaches metadata to NoteEvents, and the only way I found to make this possible is via putting it in a custom, invisible articulation, but let's not

Three questions about Scheme functions

2018-10-29 Thread Jérôme Plût
I have a few questions about using Scheme to build Lilypond data. 1. I have some Scheme code that builds custom articulations (more precisely, it attaches metadata to NoteEvents, and the only way I found to make this possible is via putting it in a custom, invisible articulation, but let's not

openLilyLib (was: Need help creating Scheme functions to automate includes of many scores in a project)

2018-06-27 Thread Urs Liska
such functions available it has become increasingly clear that it is a tremendous advantage being able to build functionality on top of existing functionality. This is true on the low level of Scheme functions but also on the package level: The edition-engraver is an extremely powerful t

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-26 16:02, Karlin High wrote: On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? I had not, though that

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Karlin High
On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? -- Karlin High Missouri, USA

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-25 22:42, Urs Liska wrote: Also, not directly. But you can make it happen. Basically you have to define some variable in the top-level file, say #(define is-main-file #t). Then you can check in the included file for #(if (defined? is-main-file) That was the general idea I was

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread David Kastrup
Nah writes: > Thanks. That gives me a good starting point. Will it work in a > procedure? Something like: > createLessons = #(make-scheme-function ( ... )) > > Can I assume the infinite loop to be caused by the ".ly" suffix being > the same as the suffix of the main file? If I use ".ily" suffix

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Nah
Thanks. That gives me a good starting point. Will it work in a procedure? Something like: createLessons = #(make-scheme-function ( ... )) Can I assume the infinite loop to be caused by the ".ly" suffix being the same as the suffix of the main file? If I use ".ily" suffix for all the scores

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 25.06.2018 um 21:19 schrieb Nah: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something like a snippet

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 26.06.2018 um 01:25 schrieb Aaron Hill: On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Vaughan McAlley
On 26 June 2018 at 05:19, Nah wrote: > I have a project with 100+ scores, each in their own file. I tried to create > a Scheme function to \include each of them. After searching the archive, I > got the general idea of why my solution isn't working. However, I didn't > find something like a

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Aaron Hill
On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread David Kastrup
Nah writes: > I have a project with 100+ scores, each in their own file. I tried to > create a Scheme function to \include each of them. After searching the > archive, I got the general idea of why my solution isn't > working. However, I didn't find something like a snippet that I could > coax

Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Nah
I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something like a snippet that I could coax into what I want. I

Re: documenting public Scheme functions

2015-04-07 Thread Gilles THIBAULT
Le mardi 7 avril 2015, 06:12:12 Pierre Perol-Schneider a écrit : Hi David, Simply thank you very, very much!! +1 It works also with Lilypond 2.18.2 -- Gilles ___ lilypond-user mailing list lilypond-user@gnu.org

Re: documenting public Scheme functions

2015-04-07 Thread Thomas Morley
2015-04-07 23:40 GMT+02:00 Gilles THIBAULT gilles.thiba...@free.fr: Le mardi 7 avril 2015, 06:12:12 Pierre Perol-Schneider a écrit : Hi David, Simply thank you very, very much!! +1 Great! thanks, Harm ___ lilypond-user mailing list

Re: documenting public Scheme functions

2015-04-07 Thread Paul Morris
This is fantastic, thanks David! -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/documenting-public-Scheme-functions-tp174145p174189.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing

documenting public Scheme functions

2015-04-06 Thread David Nalesnik
Hi list, Here's something which I think will be useful to Schemers. Public functions written in Scheme aren't documented (except in the source). (The list of Scheme functions in the Internals Reference consists of functions defined in C++ which are available in Scheme.) The attached

Re: documenting public Scheme functions

2015-04-06 Thread David Nalesnik
On Mon, Apr 6, 2015 at 6:53 PM, David Nalesnik david.nales...@gmail.com wrote: Also, pure-unpure-containers ... unpure-pure... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: documenting public Scheme functions

2015-04-06 Thread David Nalesnik
On Mon, Apr 6, 2015 at 6:53 PM, David Nalesnik david.nales...@gmail.com wrote: Hi list, Here's something which I think will be useful to Schemers. Public functions written in Scheme aren't documented (except in the source). (The list of Scheme functions in the Internals Reference consists

Re: documenting public Scheme functions

2015-04-06 Thread Pierre Perol-Schneider
functions written in Scheme aren't documented (except in the source). (The list of Scheme functions in the Internals Reference consists of functions defined in C++ which are available in Scheme.) The attached will produce a list of all such functions, giving useful information including

Re: Scheme functions with #:

2015-03-12 Thread Andrew Bernard
Large thanks! I would never have found this. Now I also see that #: terms are guile keyword syntax. Andrew On 13 March 2015 at 10:52:49, David Nalesnik (david.nales...@gmail.com) wrote: Try here: http://lilypond.org/doc/v2.19/Documentation/extending/markup-construction-in-scheme --David 

Re: Scheme functions with #:

2015-03-12 Thread David Nalesnik
Hi Andrew, On Thu, Mar 12, 2015 at 6:50 PM, Andrew Bernard andrew.bern...@gmail.com wrote: In some Scheme code I find functions prefaced with #:, such as #:roman, #:translate, and so on. What is this syntax? How does one find where such items are defined? Maybe I am no longer any good at

Scheme functions with #:

2015-03-12 Thread Andrew Bernard
In some Scheme code I find functions prefaced with #:, such as #:roman, #:translate, and so on. What is this syntax? How does one find where such items are defined? Maybe I am no longer any good at finding things, but I have looked everywhere. Andrew

Re: Where are Lilypond Scheme functions documented?

2015-01-30 Thread David Nalesnik
On Fri, Jan 30, 2015 at 3:11 PM, Urs Liska u...@openlilylib.org wrote: Am 30.01.2015 um 22:06 schrieb David Nalesnik: [...] what we find at http://lilypond.org/doc/v2.18/Documentation/internals/scheme-functions: *Function:* *ly:music-property** mus sym val* Return the value

Re: Where are Lilypond Scheme functions documented?

2015-01-30 Thread David Nalesnik
On Fri, Jan 30, 2015 at 2:27 PM, Peter Gentry peter.gen...@sunscales.co.uk wrote: Date: Thu, 29 Jan 2015 22:16:12 +0100 From: and...@andis59.se and...@andis59.se To: lilypond-user lilypond-user@gnu.org Subject: Where are Lilypond Scheme functions documented? Message-ID: 54caa31c.1060

Re: Where are Lilypond Scheme functions documented?

2015-01-30 Thread Urs Liska
mailto:and...@andis59.se To: lilypond-user lilypond-user@gnu.org mailto:lilypond-user@gnu.org Subject: Where are Lilypond Scheme functions documented? Message-ID: 54caa31c.1060...@andis59.se mailto:54caa31c.1060...@andis59.se Content-Type: text/plain; charset=utf-8; format=flowed

Where are Lilypond Scheme functions documented?

2015-01-30 Thread Peter Gentry
Date: Thu, 29 Jan 2015 22:16:12 +0100 From: and...@andis59.se and...@andis59.se To: lilypond-user lilypond-user@gnu.org Subject: Where are Lilypond Scheme functions documented? Message-ID: 54caa31c.1060...@andis59.se Content-Type: text/plain; charset=utf-8; format=flowed Have a look at music

Re: Where are Lilypond Scheme functions documented?

2015-01-29 Thread Urs Liska
but it didn't output the notes I wanted. The problem has to do with that my function doesn't handle chords (Thank you Pierre). But I wonder about where I can find documentation on functions like: ly:music-property ly:music-set-property! ... The Scheme functions that are Lilypond related

Where are Lilypond Scheme functions documented?

2015-01-29 Thread and...@andis59.se
. The problem has to do with that my function doesn't handle chords (Thank you Pierre). But I wonder about where I can find documentation on functions like: ly:music-property ly:music-set-property! ... The Scheme functions that are Lilypond related. -- English isn't my first language. So any error

Re: Where are Lilypond Scheme functions documented?

2015-01-29 Thread and...@andis59.se
On 2015-01-29 22:18, Urs Liska wrote: Am 29.01.2015 um 22:16 schrieb and...@andis59.se: But I wonder about where I can find documentation on functions like: ly:music-property ly:music-set-property! ... The Scheme functions that are Lilypond related. They are here: http://lilypond.org/doc

Re: converting decimal numbers into rational in scheme functions

2013-09-18 Thread Janek Warchoł
2013/9/18 Thomas Morley thomasmorle...@gmail.com: 2013/9/18 David Kastrup d...@gnu.org: (1 32) tries to call 1 with 32 as its argument. Just write #(ly:make-moment 1/32) and be done. If you really, really don't remember how LilyPond represents fractions and you really, really want to use

converting decimal numbers into rational in scheme functions

2013-09-17 Thread Janek Warchoł
Hi, i have a function that takes a moment as the argument: foo = #(define-music-function (parser location mom) (ly:moment?) #{ \override Score.SpacingSpanner.base-shortest-duration = #mom #}) \new Staff { \foo #(ly:make-moment 1 50) c'4 d' e' f' } Now, i would like to be able

Re: converting decimal numbers into rational in scheme functions

2013-09-17 Thread David Kastrup
Janek Warchoł janek.lilyp...@gmail.com writes: Hi, i have a function that takes a moment as the argument: foo = #(define-music-function (parser location mom) (ly:moment?) #{ \override Score.SpacingSpanner.base-shortest-duration = #mom #}) \new Staff { \foo

Re: converting decimal numbers into rational in scheme functions

2013-09-17 Thread Janek Warchoł
2013/9/18 David Kastrup d...@gnu.org: Janek Warchoł janek.lilyp...@gmail.com writes: Now, i would like to be able to supply a decimal number and have it converted to a rational number (i.e. a fraction, which can be easily converted to a moment) How did you search? It's right in the GUILE

Re: converting decimal numbers into rational in scheme functions

2013-09-17 Thread David Kastrup
Janek Warchoł janek.lilyp...@gmail.com writes: 2013/9/18 David Kastrup d...@gnu.org: Janek Warchoł janek.lilyp...@gmail.com writes: Now, i would like to be able to supply a decimal number and have it converted to a rational number (i.e. a fraction, which can be easily converted to a moment)

Re: converting decimal numbers into rational in scheme functions

2013-09-17 Thread Thomas Morley
2013/9/18 David Kastrup d...@gnu.org: Janek Warchoł janek.lilyp...@gmail.com writes: 2013/9/18 David Kastrup d...@gnu.org: Janek Warchoł janek.lilyp...@gmail.com writes: Now, i would like to be able to supply a decimal number and have it converted to a rational number (i.e. a fraction, which

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Phil Holmes
: Sunday, August 18, 2013 9:46 PM Subject: Re: maintaining advanced power-user Scheme functions After some thinking, i came to the conclusion that LSR should be redesigned. Fristly, it should be a git repository, to make collaboration easy - when something's a git repository, i have a habit

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek Warchoł After some thinking, i came to the conclusion that LSR should be redesigned. Fristly, it should be a git repository, to make collaboration easy - when something's a git repository, i have a habit of

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Urs Liska
One thing I'd definitely support about this is making LSR somewhat version independent to allow one to have snippets requiring new lily versions. Maybe providing several lily versions (not necessarily _all_ of course) and use an appropriate one to compile the snippets. This would also allow us

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Urs Liska
One thing I'd definitely support about this is making LSR somewhat version independent to allow one to have snippets requiring new lily versions. Maybe providing several lily versions (not necessarily _all_ of course) and use an appropriate one to compile the snippets. This would also allow us

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Phil Holmes
Team lilypond-de...@gnu.org Sent: Monday, August 19, 2013 11:02 AM Subject: Re: maintaining advanced power-user Scheme functions 2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek After some thinking, i came to the conclusion that LSR should be redesigned

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Phil Holmes
- From: Urs Liska To: Janek Warchoł ; Phil Holmes Cc: LilyPond Developmet Team ; Thomas Morley ; David Nalesnik ; lilypond-user Sent: Monday, August 19, 2013 11:21 AM Subject: Re: maintaining advanced power-user Scheme functions One thing I'd definitely support about this is making LSR

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Urs Liska
david.nales...@gmail.com; LilyPond Developmet Team lilypond-de...@gnu.org Sent: Monday, August 19, 2013 11:02 AM Subject: Re: maintaining advanced power-user Scheme functions 2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek After some thinking, i came

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Urs Liska u...@openlilylib.org: PS: I'd also second the idea of hosting lilypond on a more accessible server (if that doesn't imply complicated side-effects). It is so easy to create a fork and open a pull request, I'm sure such a step would increase the number of contributions by

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Urs Liska
mailto:david.nales...@gmail.com ; lilypond-user mailto:lilypond-user@gnu.org *Sent:* Monday, August 19, 2013 11:21 AM *Subject:* Re: maintaining advanced power-user Scheme functions One thing I'd definitely support about this is making LSR somewhat version independent to allow one

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread David Kastrup
Urs Liska u...@openlilylib.org writes: Version control _can_ be useful for a collection like the LSR. Think of providing snippets for more than one LilyPond version. If I'm using 2.16 I will download a different snippet than for 2.17.24 ... But that's not what version control is for. Version

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Werner LEMBERG
Well, one question may be whether git could be an alternate interface into the LSR. In a limited manner, it already is (snippets migrate back from LilyPond git repository into the LSR). Actually, I like the idea of using git for the LSR *as the storage*. Experienced cann access it directly,

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Urs Liska
David Kastrup d...@gnu.org schrieb: Urs Liska u...@openlilylib.org writes: Version control _can_ be useful for a collection like the LSR. Think of providing snippets for more than one LilyPond version. If I'm using 2.16 I will download a different snippet than for 2.17.24 ... But that's

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Werner LEMBERG w...@gnu.org: Well, one question may be whether git could be an alternate interface into the LSR. In a limited manner, it already is (snippets migrate back from LilyPond git repository into the LSR). Actually, I like the idea of using git for the LSR *as the

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
Hi, some things were already answered by other people 2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek Warchoł A valid concern, but i have a counterargument: there is a web interface for git that allows you to copy-and-paste code directly in, or

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Phil Holmes
Team lilypond-de...@gnu.org Sent: Monday, August 19, 2013 3:17 PM Subject: Re: maintaining advanced power-user Scheme functions Hi, some things were already answered by other people 2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek Warchol A valid concern

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 David Kastrup d...@gnu.org: Urs Liska u...@openlilylib.org writes: Version control _can_ be useful for a collection like the LSR. Think of providing snippets for more than one LilyPond version. If I'm using 2.16 I will download a different snippet than for 2.17.24 ... But that's

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Janek Warchoł janek.lilyp...@gmail.com: 2013/8/19 David Kastrup d...@gnu.org: Urs Liska u...@openlilylib.org writes: Version control _can_ be useful for a collection like the LSR. Think of providing snippets for more than one LilyPond version. If I'm using 2.16 I will download a

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread David Kastrup
Urs Liska u...@openlilylib.org writes: David Kastrup d...@gnu.org schrieb: Urs Liska u...@openlilylib.org writes: Version control _can_ be useful for a collection like the LSR. Think of providing snippets for more than one LilyPond version. If I'm using 2.16 I will download a different

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek Warchoł janek.lilyp...@gmail.com 2013/8/19 Phil Holmes m...@philholmes.net: However, my other opposition to git for this purpose is that it's intended as a Version Control system, which is completely

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Phil Holmes
2013/8/19 Phil Holmes m...@philholmes.net: This will be my last post on this. - Original Message - From: Janek Warchol janek.lilyp...@gmail.com 2013/8/19 Phil Holmes m...@philholmes.net: However, my other opposition to git for this purpose is that it's intended as a Version

Re: maintaining advanced power-user Scheme functions

2013-08-19 Thread Janek Warchoł
2013/8/19 Phil Holmes m...@philholmes.net: - Original Message - From: Janek Warchol What you said would be true if the snippets were so simple that they never change. But they do change. Hardly ever. I maintain the current LSR and the changes are so infrequent I often forget to

Re: maintaining advanced power-user Scheme functions

2013-08-18 Thread Janek Warchoł
Hi, 2013/8/17 Janek Warchoł janek.lilyp...@gmail.com: 2013/8/14 Thomas Morley thomasmorle...@gmail.com: The right place for them would be the LSR, _if_ the LSR would be able to compile them and not use a LilyPond-version far too old for many of my ideas. There were some insinuations on the

Re: maintaining advanced power-user Scheme functions

2013-08-16 Thread Janek Warchoł
Hi, 2013/8/14 Thomas Morley thomasmorle...@gmail.com: 2013/8/14 Janek Warchoł janek.lilyp...@gmail.com: Harm and David N. (and some other people) write lots of very advanced (and very helpful!) Scheme functions. These funcitons are improved over time, and there is a problem related

Re: maintaining advanced power-user Scheme functions

2013-08-15 Thread Thomas Morley
Hi Pierre, 2013/8/15 Pierre Perol-Schneider pierre.schneider.pa...@gmail.com: Hi Janek, Hi Harm, 2013/8/14 Thomas Morley thomasmorle...@gmail.com So I was annoyed by the lack of help/interest of others and I'm still pissed off. Sorry for that, I think I totaly missed this discussion. I

Re: maintaining advanced power-user Scheme functions

2013-08-14 Thread Thomas Morley
2013/8/14 Janek Warchoł janek.lilyp...@gmail.com: Hi, Harm and David N. (and some other people) write lots of very advanced (and very helpful!) Scheme functions. These funcitons are improved over time, and there is a problem related to that: it's easy to get lost in all the email threads

Re: maintaining advanced power-user Scheme functions

2013-08-14 Thread Pierre Perol-Schneider
Hi Janek, Hi Harm, 2013/8/14 Thomas Morley thomasmorle...@gmail.com So I was annoyed by the lack of help/interest of others and I'm still pissed off. Sorry for that, I think I totaly missed this discussion. Volunteers? Be sure that I'd grant support. Sure ! Maybe give me some links

doc about new scheme-functions in 2.16.

2012-08-26 Thread Stefan Thomas
Dear community, is there a document available, where one can learn more about the new scheme-extending possibilities in 2.16.? I would like to know, how one can use #{…#} for constructing chord constituents (quotation of the changes site of 2.16.). ___

Re: doc about new scheme-functions in 2.16.

2012-08-26 Thread David Kastrup
Stefan Thomas kontrapunktste...@gmail.com writes: Dear community, is there a document available, where one can learn more about the new scheme-extending possibilities in 2.16.? I would like to know, how one can use #{…#} for constructing chord constituents (quotation of the changes site of

Redefining Lilyponds internal scheme functions from my .ly file

2012-02-11 Thread Nils
Hello list, Figured Bass standalone sharps and flats are much too small and have the wrong position. I can change that in /scm/translation-functions.scm (define-public (format-bass-figure figure event context) line 147, change -2 2 to 0 0. and line 160 change 0.3 to 0.1 Since there is a patch

Re: Redefining Lilyponds internal scheme functions from my .ly file

2012-02-11 Thread Thomas Morley
Hi Nils 2012/2/12 Nils l...@nilsgey.de: Hello list, Figured Bass standalone sharps and flats are much too small and have the wrong position. I can change that in /scm/translation-functions.scm (define-public (format-bass-figure figure event context) line 147, change -2 2  to 0 0. and line

Library of scheme functions?

2006-07-04 Thread Dewdman42
I am just getting into lilypond. i am wondering if there are any collections of scheme functions out there that people have developed and shared for use within Lilypond? I have no specific thing I'm looking for. I just see that scheme functions can be written and wondering what kinds of smart

Re: Library of scheme functions?

2006-07-04 Thread Mats Bengtsson
collections of scheme functions out there that people have developed and shared for use within Lilypond? I have no specific thing I'm looking for. I just see that scheme functions can be written and wondering what kinds of smart things people have been doing with lilypond that go beyond what

Scheme functions.

2005-12-10 Thread Tobias Schlemmer
of the so called examples from lilypond/*/scm several scheme functions are not accessible from inside a .ly file: split-at-predicate (lily-library.scm) natural-chord-alteration (chord-name.scm) markup-join (markup.scm) accidental-markup (chord-name.scm) Could you

Re: newbie question on scheme functions

2004-12-31 Thread Andrea Rossato
Nicolas Sceaux wrote: Putting the sharp sign should really do it: #(define-public (note-name-italian-markup pitch) Thanks Nicolas for your kind attention. But this does not actually work. Ideed, when compiling this file: %%% \version 2.4.2 #(define-public (note-name-itamarkup pitch)

Re: newbie question on scheme functions

2004-12-31 Thread Nicolas Sceaux
Andrea Rossato [EMAIL PROTECTED] writes: I get: prova.ly:8:8: In expression (accidental-markup (ly:pitch-alteration pitch)): prova.ly:8:8: Unbound variable: accidental-markup The very same function in chord-name.scm works perfectly. I'm I missing something? Ok sorry. That's because

Re: newbie question on scheme functions

2004-12-31 Thread Andrea Rossato
Nicolas Sceaux wrote: You can do #(define-module (lily)) #(export accidental-markup) #(define-module (*anonymous-ly-0*)) at the beginning of your file, or alternatively, copy and paste the `accidental-markup' definition from scm/accidental-markup to your input file. yes, both methods work

Re: newbie question on scheme functions

2004-12-31 Thread Andrea Rossato
Nicolas Sceaux wrote: In your input file, the module in which you work is (*anonymous-ly-0*), ... %% 3) switch back to (*anonymous-ly-0*) #(define-module (*anonymous-ly-0*)) These were the missing points. Thanks a lot for you kindness. Happy new year. Andrea

Re: newbie question on scheme functions

2004-12-30 Thread Nicolas Sceaux
Andrea Rossato [EMAIL PROTECTED] writes: I'm trying to find a cleaner solution: is it possible to define that function inside a .ly file? I tried, by adding a # before the definition, but I get an error message. Putting the sharp sign should really do it: #(define-public

newbie question on scheme functions

2004-12-29 Thread Andrea Rossato
Hi there! I've recently discovered LilyPond and I'm really impressed by it! Great job! Just a newbie question. I need to be able to change the output of chords' names to the Italian ones (Do instead of C, and so on). The only viable solution I was able to find is to hack scm/chord-name.scm and