Re: How to test grob color?

2023-07-18 Thread Trevor Bača
On Tue, Jul 18, 2023 at 3:58 PM Jean Abou Samra wrote: > Hi Trevor, > > In Scheme, the = function is for comparing numbers, and nothing else. For > colors, you want equal? . > > > ~ $ guile2.2 > GNU Guile 2.2.7 > Copyright (C) 1995-2019 Free Software Foundation, Inc. > > Guile comes with

Re: How to test grob color?

2023-07-18 Thread Jean Abou Samra
Hi Trevor, In Scheme, the `=` function is for comparing numbers, and nothing else. For colors, you want `equal?` . ``` ~ $ guile2.2 GNU Guile 2.2.7 Copyright (C) 1995-2019 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free

How to test grob color?

2023-07-18 Thread Trevor Bača
Hi, This tests tuplet bracket thickness (and overrides color): %%% BEGIN (works) %%% { \once \override TupletBracket.color = #(lambda (grob) (if (= 3 (ly:grob-property grob 'thickness)) red)) \tweak thickness 3 \times 2/3 { c'2 c'2 c'2 } } %%% END %%% But how to test tuplet bracket

Re: Is there a simple way to test for command line options?

2023-01-10 Thread Jean Abou Samra
Le 10/01/2023 à 19:11, Timothy Lanfear a écrit : The function ly:command-line-options returns a string with all the -d options. The backend option is set to svg when when generating svg output and absent by default. \version "2.22.0" #(let* ((options (ly:command-line-options))     (svg   

Re: Is there a simple way to test for command line options?

2023-01-10 Thread Timothy Lanfear
On 09/01/2023 23:00, Kevin Cole wrote: Is there a way, within a .ly file to conditionally include sections based on command line options? Specifically, I would like to have \paper settings go one way for "lilypond --pdf" and another way for "lilypond --svg". The function

Re: Is there a simple way to test for command line options?

2023-01-10 Thread David Zelinsky
Kevin Cole writes: > On Mon, Jan 9, 2023 at 7:07 PM Hans Aikema wrote: > >> On 10 Jan 2023, at 00:01, Kevin Cole wrote: >> >> Is there a way, within a .ly file to conditionally include sections >> based on command line options? >> >> Specifically, I would like to have \paper settings go one

Re: Is there a simple way to test for command line options?

2023-01-09 Thread Kevin Cole
On Mon, Jan 9, 2023 at 7:07 PM Hans Aikema wrote: > On 10 Jan 2023, at 00:01, Kevin Cole wrote: > > Is there a way, within a .ly file to conditionally include sections > based on command line options? > > Specifically, I would like to have \paper settings go one way for > "lilypond --pdf" and

Re: Is there a simple way to test for command line options?

2023-01-09 Thread Hans Aikema
> On 10 Jan 2023, at 00:01, Kevin Cole wrote: > > Is there a way, within a .ly file to conditionally include sections > based on command line options? > > Specifically, I would like to have \paper settings go one way for > "lilypond --pdf" and another way for "lilypond --svg". Kevin, don't

Is there a simple way to test for command line options?

2023-01-09 Thread Kevin Cole
Is there a way, within a .ly file to conditionally include sections based on command line options? Specifically, I would like to have \paper settings go one way for "lilypond --pdf" and another way for "lilypond --svg".

Re: A speed test on Apple's M1 processor

2022-09-13 Thread Jacques Menu
Hello Jonas and Jean, I send you the details privately, not to clutter this list. JM > Le 12 sept. 2022 à 08:20, Jonas Hahnfeld via LilyPond user discussion > a écrit : > > On Sun, 2022-09-11 at 11:52 +0200, Jacques Menu wrote: >> Native lilypond: >> >>

Re: A speed test on Apple's M1 processor

2022-09-12 Thread Jonas Hahnfeld via LilyPond user discussion
On Sun, 2022-09-11 at 11:52 +0200, Jacques Menu wrote: > Native lilypond: > > jacquesmenu@macmini:/Volumes/JMI_Volume/JMI_Developpement/lilypond/re > lease/binaries/lilypond/install/bin > time ./lilypond > Fischer_Suite_Sol_M_viola_II_2.23.12.ly Based on the path, did you build with the scripts

Re: A speed test on Apple's M1 processor

2022-09-11 Thread Jean Abou Samra
Hi Jacques, Le 11/09/2022 à 11:52, Jacques Menu a écrit : Hello folks, I ran this test with a 7.4Mb, 55 page score, to compare the binaries provided by lilypond.org <http://lilypond.org> and the natives ones I (finally) built locally on my 8 Gb RAM Mac Mini. The necessary libraries hav

A speed test on Apple's M1 processor

2022-09-11 Thread Jacques Menu
Hello folks, I ran this test with a 7.4Mb, 55 page score, to compare the binaries provided by lilypond.org and the natives ones I (finally) built locally on my 8 Gb RAM Mac Mini. The necessary libraries have been installed using both MacPorts and Homebrew, since not all of them are supplied

Email test - please ignore

2022-06-10 Thread Paul Hodges
Test, because of previous lost emails.  Please ignore Paul

test

2021-06-30 Thread Pierre Perol-Schneider
test

Test - please ignore this

2021-03-24 Thread robert . schmaus
Just a test if I can send this to the list now.

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread David Wright
On Thu 19 Mar 2020 at 23:19:07 (+0100), Pablo Cordal wrote: > Yes, I noticed that too. In the text "file not found" some strange > symbols appear... if that's the problem... men, I have no idea how to fix > it! That looks as if you're running a system in ISO Latin-1 but LilyPond is outputting

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Martin Tarenskeen
ha scritto: What happens if you use Lilypond 2.19.84 Why you don't suggest 2.20 (new stable)? I am slow ... I hadn't noticed 2.20 has been released already ... Thanks for the reminder :-) MT

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Pablo Cordal
Ok, finally the command line test worked perfect! (the problem was the lilypond version). With 2.20.0 I execute from the command line and I get a pdf and a midi file. Thank you all. Best regards Pablo El jue., 19 mar. 2020 a las 23:19, Pablo Cordal () escribió: > Yes, I noticed that

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Pablo Cordal
line I get an error "lilypond is not a commmand,." When I fix this I'll test with a.ly and comment the results. Cheers Pablo El jue., 19 mar. 2020 a las 22:30, Urs Liska () escribió: > Am Donnerstag, den 19.03.2020, 22:30 +0100 schrieb Pablo Cordal: > > I don't think so,

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Urs Liska
Am Donnerstag, den 19.03.2020, 22:30 +0100 schrieb Pablo Cordal: > I don't think so, because I compile a.ly from Frescobaldi with no > problem (it uses the same lilypond.exe than the command line). Now > I'm installing 2.20.0 version of lilypond, when it's ready I'll > comment the results. Is it

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Pablo Cordal
I don't think so, because I compile a.ly from Frescobaldi with no problem (it uses the same lilypond.exe than the command line). Now I'm installing 2.20.0 version of lilypond, when it's ready I'll comment the results. El jue., 19 mar. 2020 a las 22:24, Kevin Barry () escribió: > Is it possible

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Kevin Barry
Is it possible that this is some kind of 32bit vs 64bit problem? On Thu, 19 Mar 2020 at 21:06, Pablo Cordal wrote: > > No luck, with a simple a.ly I get the same error : ( > > El jue., 19 mar. 2020 a las 21:53, Federico Bruni () > escribió: >> >> >> >> Il giorno gio 19 mar 2020 alle 21:36,

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Federico Bruni
Il giorno gio 19 mar 2020 alle 21:36, Martin Tarenskeen ha scritto: On Thu, 19 Mar 2020, Pablo Cordal wrote: Hi folks, I just copied the file in C:\Users\ana and lilypond found the file, started to compile it... and returned an error. I attach image and the a.ly file. I compile the

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Martin Tarenskeen
On Thu, 19 Mar 2020, Pablo Cordal wrote: Hi folks, I just copied the file in C:\Users\ana and lilypond found the file, started to compile it... and returned an error. I attach image and the a.ly file. I compile the a.ly inside Frescobaldi with no problems. What happens if you compile a

Re: Using Frescobaldi compile functionality - first test failed

2020-03-19 Thread Francisco Vila
El 19/3/20 a las 19:07, Pablo Cordal escribió: > Hi, > > I'm doing the easy first test with this issue. I created a file a.ly > <http://a.ly> and put it in c: > > When I run the command prompt lilypond doesn't find the file (I attach > the results). > > An

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Good idea Kieren, if they approve it, I'll suggest the nomenclature you proposed. Best, P On Mon, Dec 16, 2019 at 2:03 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > After that, can we add this on the snippets repository? > > Might I suggest a nomenclature

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Ok, let's move the discussion on the dev ml, then. Cheers, P On Mon, Dec 16, 2019 at 2:07 AM Thomas Morley wrote: > Am Mo., 16. Dez. 2019 um 01:50 Uhr schrieb Paolo Prete < > paolopr...@gmail.com>: > > > > Hello Thomas, > > > > this is a bit discouraging for me, TBH. > > Hope someone could

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Thomas Morley
Am Mo., 16. Dez. 2019 um 01:50 Uhr schrieb Paolo Prete : > > Hello Thomas, > > this is a bit discouraging for me, TBH. > Hope someone could write a proper Scheme procedure, then, and port the > snippet on 2.18.2. Makes no sense to "downgrade" your code, imho. That would mean to replace nice code

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Kieren MacMillan
Hi Paolo, > After that, can we add this on the snippets repository? Might I suggest a nomenclature improvement? Since the code tunes slurs, phrasing slurs, and ties, perhaps it makes sense to change all "JSSVGSlurTuner*" names (code and file) to something like “JSSVGCurveTuner*” or similar.

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Hello Thomas, this is a bit discouraging for me, TBH. Hope someone could write a proper Scheme procedure, then, and port the snippet on 2.18.2. Best, P On Mon, Dec 16, 2019 at 12:24 AM Thomas Morley wrote: > Am Mo., 16. Dez. 2019 um 00:06 Uhr schrieb Paolo Prete < > paolopr...@gmail.com>: >

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Thomas Morley
Am Mo., 16. Dez. 2019 um 00:06 Uhr schrieb Paolo Prete : > After that, can we add this on the snippets repository? No. The LSR runs 2.18.2 and apart from other things grob-transformer is a 2.19.-feature. There's some older code of mine around printing control-points and the like, but Aaron's

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Attached to this post there's the improved version (fixed indentation and lines' max length). Note too that this version includes a function that prevents opening the default menu with the right mouse button. Can someone fix the scheme code indentation? After that, can we add this on the snippets

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Stefano Troncaro
Hi Paolo, I tried it out and it seems to be working great! This should save a lot of time. Thank you! El dom., 15 dic. 2019 a las 4:05, Werner LEMBERG () escribió: > > > At this point, here's the complete all-in-one .ly template. [...] > > It would be nice if you could format this to avoid line

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Kieren MacMillan
Hi Paolo (and everyone else who contributed to this snippet/feature), This is *so* fabulous! Thank you for the wonderful and useful tool. Best, Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Werner LEMBERG
> At this point, here's the complete all-in-one .ly template. [...] It would be nice if you could format this to avoid line lengths longer than 80 characters. As the non-HTML part of your e-mail shows, the code becomes very hard to read otherwise. Werner

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Étienne Beaulé
I wouldn't worry so much about overriding that define, as svg-end can only be used at that one spot or the output file would be corrupted. A patch that included a proper override was provided 9 years but ignored. I'll get the relevant parts of the patch up-to-date as it is proving potential.

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
At this point, here's the complete all-in-one .ly template. Much cleaner and without risks to mess the code, for the user. In addition, it has not to be patched: just open and use the generated .svg file. Hope it could be included in the snippets repo. Thanks all for your collaboration!

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
To Stefano and Elaine: really, it's better to avoid scripting on scripting on scripting, IMHO. SVG is designed to be lovely coupled with JS, and the output file should be all-inclusive. Nor HTML is required. Only Lilypond and any SVG viewer (including browsers). The override of internal stuff

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Hello Aaron, I understand that it is potentially dangerous because this is not API but we are accessing it like API. However, looking at the code, svg-end is referenced only inside its def file (framework-svg.scm), as a dummy append to the output file:

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Aaron Hill
On 2019-12-14 6:16 am, Paolo Prete wrote: However, how can I make it work for multiple pages output? Another approach would be to modify how LilyPond generates SVG output, so that the script in question is inserted just before the closing element: \version "2.19.83" svg-script =

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Stefano Troncaro
Hi Paolo, I was also having that concern. Elaine replied in a new thread with a solution for that, in which instead of adding the script to the svg files with lilypond you just use an external script. I haven't tested it yet but it seems to me like that'll be a cleaner approach, you just include

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Hi Stefano, your suggestion produces the script for every page, but it requires to manually add a property in the \paper scope. Instead, I would like to automatically set this property, and leave the user to set all the score properties (including the paper's one) without messing up the code

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Hi Stefano, your suggestion produces the script for every page, but it requires to manually add a property in the \paper scope. Instead, I would like to automatically set this property, and leave the user to set all the score properties (including the paper's one) without messing up the code

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Flaming Hakama by Elaine
> From: Stefano Troncaro > To: Paolo Prete > Cc: Aaron Hill , lilypond-user < > lilypond-user@gnu.org> > Date: Sat, 14 Dec 2019 19:13:43 -0300 > Subject: Re: A Javascript test code for modifying ties and slurs with mouse > Hi Paolo, > > Since Aaron's svg-script

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Flaming Hakama by Elaine
> From: Paolo Pr > To: Urs Liska > Cc: lilypond-user > Date: Sat, 14 Dec 2019 02:59:58 +0100 > Subject: Re: A Javascript test code for modifying ties and slurs with mouse > Thanks Urs and Elaine for your appreciation. > > Note that the same algo I wrote with (re

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Stefano Troncaro
Hi Paolo, Since Aaron's svg-script function creates an empty \markup, you can use the properties oddFooterMarkup and evenFooterMarkup of the \paper block to have your script embedded at the end of every page. Look: %%% \version "2.19.83" svg-script =

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Thanks Aaron, it did the trick. However, how can I make it work for multiple pages output? On Sat, Dec 14, 2019 at 4:26 AM Aaron Hill wrote: > On 2019-12-13 5:59 pm, Paolo Pr wrote: > > First of all, I need to add with Lilypond a tag to the svg > > file > > just before the ending tag

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-13 Thread Urs Liska
Paolo Pr >Date: Friday, December 13, 2019 at 8:38 PM >To: Carl Sorensen >Cc: Urs Liska , "lilypond-user@gnu.org" > >Subject: Re: A Javascript test code for modifying ties and slurs with >mouse > >Hello Carl, > >my script is not intended for re

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-13 Thread Carl Sorensen
From: Paolo Pr Date: Friday, December 13, 2019 at 8:38 PM To: Carl Sorensen Cc: Urs Liska , "lilypond-user@gnu.org" Subject: Re: A Javascript test code for modifying ties and slurs with mouse Hello Carl, my script is not intended for replacing the automatic handling of slurs

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-13 Thread Paolo Pr
but I would love to have us have a > collection of slurs automatically created by LilyPond along with the > revised slurs created by \shape. That would give us a test library to be > able to test improvements in the LilyPond slur code. > > > > I’ve created issue #5638 > > http

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-13 Thread Aaron Hill
On 2019-12-13 5:59 pm, Paolo Pr wrote: First of all, I need to add with Lilypond a tag to the svg file
just before the ending  tag  in the following way:

1)