Re: Error while trying to put a Text above a notehead

2020-06-03 Thread Valentin Villenave
On 6/2/20, Robin Bannister wrote: > Well, you could define your own markup command(s). > Have a look at /scm/define-markup-commands.scm for examples, > including \abs-fontsize. Well, for once, there’s even some documentation about it! http://lilypond.org/doc/v2.21/Documentation/extending/new-mark

Re: Absolute font-size for TextScript

2020-06-03 Thread Paolo Prete
On Wed, Jun 3, 2020 at 12:01 AM Aaron Hill wrote: > > As is tradition, I am almost certainly over-engineering here. However, > would the following approach be of any use: > > > \version "2.20.0" > > transformText = > #(define-music-function >(grob-path proc) >((key-list? 'TextScript

Making Lilypond faster

2020-06-03 Thread Paolo Prete
Hello, after using 2.19.84 for a while, it seems to me that it is quite faster than the previous one (2.19.83). 1) Now I wonder if there are some later versions (or git snapshots) even faster: do you have any feedback about this? 2) Also: is there a way to optimize (when compiling a snapshot) th

Re: Making Lilypond faster

2020-06-03 Thread Thomas Morley
Am Mi., 3. Juni 2020 um 12:33 Uhr schrieb Paolo Prete : > > Hello, > > after using 2.19.84 for a while, it seems to me that it is quite faster than > the previous one (2.19.83). > > 1) Now I wonder if there are some later versions (or git snapshots) even > faster: do you have any feedback about t

A weird spacing problem

2020-06-03 Thread Robert Blackstone
Dear all, I’m vainly struggling with a weird spacing problem that I’ve never seen before: the dot belonging to, for instance, c’2. is widely separated from the note itself. (See screenshot). In this section the horizontal note spacing is also rather capricious. ( \time 3/4 for the entire piece

Re: A weird spacing problem

2020-06-03 Thread Valentin Villenave
On 6/3/20, Robert Blackstone wrote: > I’m vainly struggling with a weird spacing problem Hi Robert, Unless you post some code, it’s gonna be difficult to help you. You should first double check your source files in case there’s some \override affecting the DotColumn object somewhere? Cheers, --

Re: Making Lilypond faster

2020-06-03 Thread Paolo Prete
> > > Hi Paolo, > > The suggestion to focus on guile-3 makes no sense at the moment, > because it is not broadly in the distros, afaict. > > > Hello Harm, what about this? http://lilypond.1069038.n5.nabble.com/guile-3-0-and-LilyPond-here-input-regression-context-defaultchild-cycle-ly-fails-td227

Re: Making Lilypond faster

2020-06-03 Thread Valentin Villenave
On 6/3/20, Paolo Prete wrote: > Did you succeed (or someone else) in compiling with guile-3, meanwhile ? > If so, did you see some improvement in speed? No, for now guile 2.0 has become nearly as reliable as 1.8 but there remains a noticeable performance drop; building LilyPond with guile 2.2 is

list of strings from a string

2020-06-03 Thread Freeman Gilmore
\version "2.20.0" #(define Z '()) j = #(define-void-function % Starting form here. (x) (string>?) (set! Z x )) \j "-3 A -6 1 -B" #(define Y (string-split Z #\sp )) #(display Y) #(newline) % Gives me this: (-3 A -6 1 -B), string-split => list, I do want a list but %

Adding metronome click track to MIDI

2020-06-03 Thread Francesco Petrogalli
Hi all, I need to add a metronome click sound to the MIDI generated with lilypond, to allow people sync up a record-from-home session. A quick web search didn't bring up anything that I could have used. Is there a special midi instrument I could use for that? Francesco

Re: list of strings from a string

2020-06-03 Thread David Kastrup
Freeman Gilmore writes: > \version "2.20.0" > > #(define Z '()) > > j = #(define-void-function % Starting form here. > (x) > (string>?) > (set! Z x )) > > \j "-3 A -6 1 -B" > > #(define Y (string-split Z #\sp )) > #(display Y) #(newline) > > % Gives me this: (-3 A -6 1 -

Re: Adding metronome click track to MIDI

2020-06-03 Thread Robin Bannister
Francesco Petrogalli wrote: I need to add a metronome click sound to the MIDI generated with lilypond, to allow people sync up a record-from-home session. Here is a clock ticking: {wbh4 trim4 wbl4 trim4} Cheers, Robin

Re: list of strings from a string

2020-06-03 Thread Valentin Villenave
On 6/3/20, Freeman Gilmore wrote: > % Gives me this: (-3 A -6 1 -B), Well, it _is_ a list of strings, as you can verify by adding: #(display (map string? Y)) Or you can use #(write Y) instead of (display Y), which will print the double quotes. > % I need: ("-3" "A" "-6" "1" "-B"), how do

showLastLength

2020-06-03 Thread David Sumbler
I have never used 'showLastLength' or 'showFirstLength' until today. I inserted a line such as showLastLength = R1*5 exactly as shown in NR3.4.2, immediately before the first (and only) \score { } section. But every time I try to compile the file I get: syntax error, unexpected S

Re: Adding metronome click track to MIDI

2020-06-03 Thread Valentin Villenave
On 6/3/20, Francesco Petrogalli wrote: > Is there a special midi instrument I could use for that? Not that I know. BTW, here’s a quick-and-dirty way of adding a click track, in case you might find it useful: %% addTicks = #(define-music-function (m) (ly:music?) #{ << $m \new Dev

Re: showLastLength

2020-06-03 Thread Valentin Villenave
On 6/3/20, David Sumbler wrote: > I have never used 'showLastLength' or 'showFirstLength' until today. > I inserted a line such as > showLastLength = R1*5 > exactly as shown in NR3.4.2, immediately before the first (and only) > \score { } section. Are you sure there isn’t an unclosed block

Re: showLastLength

2020-06-03 Thread David Kastrup
David Sumbler writes: > I have never used 'showLastLength' or 'showFirstLength' until today. > > I inserted a line such as > showLastLength = R1*5 > exactly as shown in NR3.4.2, immediately before the first (and only) > \score { } section. > > But every time I try to compile the file I get:

Re: showLastLength

2020-06-03 Thread Valentin Villenave
On 6/3/20, David Kastrup wrote: > Once you stop assuming that the manual writers are incompetent > […] it should be obvious that Hmm, since we’re on -user, let’s not antagonize people coming here asking for advice, perhaps? :-) https://en.wikipedia.org/wiki/Wikipedia:Assume_good_faith The OP may

Re: showLastLength

2020-06-03 Thread David Sumbler
On Wed, 2020-06-03 at 18:19 +0200, David Kastrup wrote: > David Sumbler writes: > > > I have never used 'showLastLength' or 'showFirstLength' until > > today. > > > > I inserted a line such as > > showLastLength = R1*5 > > exactly as shown in NR3.4.2, immediately before the first (and > >

Re: A weird spacing problem

2020-06-03 Thread Robert Blackstone
Hi Valentin, Thanks for your interest in my problemThe piece, as you can see in the screenshot, is a piano score with two voices in each staff and occasionally a third voice by << { } \\ { } >> or \partcombine.I triple-checked my source code, first by hiding successively each voice, and see what

RE: A weird spacing problem

2020-06-03 Thread Mark Stephen Mrotek
Robert, When I set piano four part I let Lilypond do all the work. I have taken the liberty of recoding the section using four-part voicing. Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Robert Blackstone Sent: Wednesday, June 3, 202

Re: A weird spacing problem

2020-06-03 Thread Thomas Morley
Am Mi., 3. Juni 2020 um 19:27 Uhr schrieb Robert Blackstone : > > Hi Valentin, > > Thanks for your interest in my problem > > The piece, as you can see in the screenshot, is a piano score with two voices > in each staff and occasionally a third voice by << { } \\ { } >> or > \partcombine. > I tri

Re: A weird spacing problem

2020-06-03 Thread Valentin Villenave
On 6/3/20, Robert Blackstone wrote: > Overall there are several instances where I needed "\once \override > NoteColumn #'force-hshift = #x" , and a few "\once\override > NoteColumn.X-offset = #x”. Ouch. That’s pretty brutal. May I ask why you felt the need to use all these? This alters drastic

Re: A weird spacing problem

2020-06-03 Thread Valentin Villenave
On 6/3/20, Mark Stephen Mrotek wrote: > When I set piano four part I let Lilypond do all the work. Hear hear! (Even for more than four parts, btw.) > I have taken the liberty of recoding the section using four-part voicing. Yeah, so did I! That sure was tempting wasn’t it? :-) Cheers, -- V.

Re: A weird spacing problem

2020-06-03 Thread Gregory Hollands
Robert, For what it's worth, the following code runs without spacing issues on 2.18.2 Note that I commented out one of the overrides. -Greg % \version "2.18.2" PartPOneVoiceOne = { \clef "treble" \key c \major \time 3/4 fis'8) c''8\rest \override NoteColumn #'force-hshift = #-2.5 fis'!2|

Re: list of strings from a string

2020-06-03 Thread Freeman Gilmore
David and Valentin Thank you. I did not know about #(write ...). I will switch to write from now on. On Wed, Jun 3, 2020 at 11:41 AM Valentin Villenave wrote: > > On 6/3/20, Freeman Gilmore wrote: > > % Gives me this: (-3 A -6 1 -B), > > Well, it _is_ a list of strings, as you can veri

two lv ties on merged notehead

2020-06-03 Thread Michael Winter via LilyPond user discussion
It seems that when a notehead is merged in two voices no matter what you do you, lilypond only adds on lv tie. Is there a way to force 2 lv ties? <<{ d,4\laissezVibrer ^ \markup{ 0.0 }  } \new Voice { \voiceTwo d,4\laissezVibrer  }>> Thanks in advance. -Michael

Re: list of strings from a string

2020-06-03 Thread David Kastrup
Valentin Villenave writes: > On 6/3/20, Freeman Gilmore wrote: >> % Gives me this: (-3 A -6 1 -B), > > Well, it _is_ a list of strings, as you can verify by adding: > > #(display (map string? Y)) > > Or you can use > #(write Y) > instead of (display Y), which will print the double quotes. >

Re: list of strings from a string

2020-06-03 Thread Freeman Gilmore
> Also it will not backslash-escape quote marks or newlines or, well, > backslashes. If you want a rendition that can be read back by Scheme, > «write» really is the saner option. > > -- > David KastrupThank you that is good to know. It is working fine for me > now, thanks, ƒg

Re: two lv ties on merged notehead

2020-06-03 Thread Owen Lamb
Hi Michael, Looks like LilyPond prints both lv ties, but they end up at exactly the same spot. The ^ and _ prefixes let you specify direction for most anything, including \laissezVibrer, so you could do this to separate them: \new Staff { << { d,4 ^\laissezVibrer ^\markup{ 0.0 } }

Re: Adding metronome click track to MIDI

2020-06-03 Thread Francesco Petrogalli
Robin, Valentin, thank you both for your help. I have created a solution based on your examples. I hope you don't mind the copy and paste + tweak exercise, as I am assuming that you are happy for me to give a CC BY SA 4.0 license to code that is based on the examples you have published in the mail

Re: Adding metronome click track to MIDI

2020-06-03 Thread Valentin Villenave
On 6/4/20, Francesco Petrogalli wrote: > thank you both for your help. I have created a solution based on your > examples. I hope you don't mind the copy and paste + tweak exercise, Hey, that’s what the list is for! Also, I’ve uploaded a copy of my own function onto http://lsr.di.unimi.it/LSR/It

Re: When (in seconds) does each page begin?

2020-06-03 Thread Matt Wallis
On 02/06/2020 11:30, Thomas Morley wrote: Am Di., 2. Juni 2020 um 10:19 Uhr schrieb Valentin Villenave : On 5/30/20, Matt Wallis wrote: But I'd still like to know how to find out when a page of a score begins Well, there is something to be done with the 'page-number and 'rank-on-page properti