Re: Repeat segno weirdness

2023-01-16 Thread Valentin Petzel
Hello Jeff, If I were to reduce what you are doing we’d have something like this \relative c'' { R1*4 \bar "||" \repeat segno 2 { \alternative { { R1*4 } { \section \sectionLabel "Coda" } } } % Coda R1*4 } So you are basically telling

Re: Spontini-Editor 1.20 released

2023-01-16 Thread Karlin High
On Mon, Jan 16, 2023 at 6:59 AM Paolo Prete wrote: > A new release (1.20-alpha) of Spontini-Editor is available Looks very nice so far! I have it running on Windows 10, will explore further. -- Karlin High Missouri, USA

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Werner LEMBERG
> Lilypond ships with a text font as well as a music font. I agree > that I suspect that currently Lilypond's text font does not actually > define these Unicode music characters, so it falls back on the OS to > find them. Why not just add copies of Emmentaler glyphs to the > Lilypond text fonts

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Valentin Petzel
Hello Werner, I quite like this, but incorporating this into my previous code I found going down TWO steps to be optically more pleasing. This probably because the \number accidentals are designed for use with with numbers, which are slightly higher than regular text and very bold faced. So in

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Valentin Petzel
Hello Saul, I do not find this much surprising at all. Yes, Lilypond could do lots of automagic, automatically replacing such signs by the respective music font version. But it does not and rather gives you (the user) the control and the responsibility. But typesetting in Lilypond is neither

Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Werner LEMBERG
> I quite like this, but incorporating this into my previous code I > found going down TWO steps to be optically more pleasing. OK :-) > \new Staff { > \override TextScript.before-line-breaking = > #(lambda (grob) > (ly:grob-set-property! grob 'text >

Spontini-Editor 1.20 released

2023-01-16 Thread Paolo Prete
Hi, A new release (1.20-alpha) of Spontini-Editor is available at: https://github.com/paopre/Spontini/releases/tag/1.20_alfa It includes two important features: 1) The application is now _totally_ no-install. This means that you just need to unzip the downloaded release for the desired

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Kieren MacMillan
Hi Werner, > I rather suggest the following > > ``` > F = \markup { \smaller \number ♭ } > S = \markup { \smaller \number ♯ } > N = \markup { \smaller \number ♮ } > > \new Staff { > c'1^\markup \concat { B \F } > c'1^\markup \concat { C \S } > c'1^\markup \concat { D \N } > } > ``` > > If

Re: Making two functions into one

2023-01-16 Thread David Kastrup
| || | | writes: > I would like to make a function which will be responsible for two things: > > 1. Change time signature > > 2. Fill empty bar with 's8' > > I made this one, but there is a problem with point'n'click function, > so I can't click on time signature to go to correspondent place in

Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Jean Abou Samra
Le 16/01/2023 à 16:57, Kieren MacMillan a écrit : Hi all, In any case, please submit this to the LSR! I was *just* going to look at this to see if it could be improved viz-a-viz Jean’s suggestion that callbacks using after-line-breaking are often better done with grob-transformer. [Yes, I

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread David Wright
On Sun 15 Jan 2023 at 22:52:50 (-0800), Saul Tobin wrote: > Lilypond ships with a text font as well as a music font. I agree that I > suspect that currently Lilypond's text font does not actually define these > Unicode music characters, so it falls back on the OS to find them. Why not > just add

Re: Making two functions into one

2023-01-16 Thread Jean Abou Samra
Le 16/01/2023 à 15:12, | || | | a écrit : So I thought about delete one nested (list) and try it: nd =  #(define-music-function (number) (integer?)   (make-music   'TimeSignatureMusic   'numerator   8   'denominator   8   'beat-structure   

Re: Making two functions into one

2023-01-16 Thread David Kastrup
Valentin Petzel writes: > Hello, > > not sure about that one, but this seems to work: > > \version "2.24.0" > > nd = #(define-music-function (number) (integer?) > #{ >#(time (cons number 8)) >s8 * $number > #}) LilyPond syntax expressions, like in #{

Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Kieren MacMillan
Hi all, > In any case, please submit this to the LSR! I was *just* going to look at this to see if it could be improved viz-a-viz Jean’s suggestion that callbacks using after-line-breaking are often better done with grob-transformer. [Yes, I know this is *before*-line-breaking…] If so, that

Re: Spontini-Editor 1.20 released

2023-01-16 Thread Paolo Prete
Il lun 16 gen 2023, 19:04 Knute Snortum ha scritto: > On Mon, Jan 16, 2023 at 4:59 AM Paolo Prete wrote: > > > > Hi, > > > > A new release (1.20-alpha) of Spontini-Editor is available at: > > > > https://github.com/paopre/Spontini/releases/tag/1.20_alfa > > > > It includes two important

Re: Unicode accidentals vs. Markup accidentals,Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Mark Knoop
At 12:51 on 16 Jan 2023, Werner LEMBERG wrote: >> \new Staff { >> \override TextScript.before-line-breaking = >> #(lambda (grob) >> (ly:grob-set-property! grob 'text >> (markup #:replace >> `(("♭" . ,#{ \markup{ \tflat} #})

Making two functions into one

2023-01-16 Thread | || | |
Hi, I would like to make a function which will be responsible for two things: 1. Change time signature 2. Fill empty bar with 's8' I made this one, but there is a problem with point'n'click function, so I can't click on time signature to go to correspondent place in code: \version "2.24.0"

Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Werner LEMBERG
>>> Is there a possibility to register this or a similar function globally >>> so that all markup strings can use it? > > It is the same mechanism, and add-text-replacements! answers > Werner’s question. Thanks. I only did a quick index search for 'replace' in the NR, and there was no hit.

Re: Spontini-Editor 1.20 released

2023-01-16 Thread Knute Snortum
On Mon, Jan 16, 2023 at 4:59 AM Paolo Prete wrote: > > Hi, > > A new release (1.20-alpha) of Spontini-Editor is available at: > > https://github.com/paopre/Spontini/releases/tag/1.20_alfa > > It includes two important features: > > 1) The application is now _totally_ no-install. Not quite for

Re: Unicode accidentals vs. Markup accidentals, Re: Unicode accidentals vs. Markup accidentals

2023-01-16 Thread Jean Abou Samra
> Le 16 janv. 2023 à 15:07, Mark Knoop a écrit : > >  > At 12:51 on 16 Jan 2023, Werner LEMBERG wrote: >>> \new Staff { >>> \override TextScript.before-line-breaking = >>> #(lambda (grob) >>> (ly:grob-set-property! grob 'text >>>(markup #:replace >>>

Re: Repeat segno weirdness

2023-01-16 Thread Jeff Kopmanis
Your first assessment solved the problem...it was all in how I looked at what I was trying to accomplish. The example in the wiki/docs implied that I needed the \volta statements, and that the first alternate was where the bulk of the song was supposed to be. Thanks, Valentin! On Mon, Jan 16,

Re: Spontini-Editor 1.20 released

2023-01-16 Thread Paolo Prete
Thanks for your feedback! BTW: the editor is ready to be used as an alternative to LilyBin, which is currently down and not updated, I always hope that in some way we can obtain free hosting and storage for it... On Mon, Jan 16, 2023 at 2:59 PM Karlin High wrote: > On Mon, Jan 16, 2023 at 6:59

Re: Making two functions into one

2023-01-16 Thread Valentin Petzel
Hello, not sure about that one, but this seems to work: \version "2.24.0" nd = #(define-music-function (number) (integer?) #{ #(time (cons number 8)) s8 * $number #}) \score { \new Staff { \nd 8 \nd 7 } } Cheers, Valentin Am Montag,

Re: Making two functions into one

2023-01-16 Thread Jean Abou Samra
Le 16/01/2023 à 22:58, David Kastrup a écrit : From the Lilypond-Extending manual: 1.2.1 LilyPond Scheme syntax The Guile interpreter is part of LilyPond, which means that Scheme can be included in LilyPond input files. There are several methods for including

Re: Making two functions into one

2023-01-16 Thread | || | |
Thank you Valentin, That was simpler than I thought. Of curse I tried first with lily code blocks, but have been struggling with  \time #number/8 (which doesn't work because it needs pair but gets int). Would you like to short explain difference between usage of $ and # or point me to place

Re: Making two functions into one

2023-01-16 Thread David Kastrup
Jean Abou Samra writes: > There is also > > https://extending-lilypond.readthedocs.io/en/latest/lily-and-scheme.html#hash-vs-dollar > > (This is an instance where the official extending manual seems > much too technical and example-less to me ...) Well, as developer I tend to write up basic

Re: Making two functions into one

2023-01-16 Thread David Kastrup
| || | | writes: > Thank you Valentin, > > That was simpler than I thought. Of curse I tried first with lily code > blocks, but have been struggling with > >  \time #number/8 (which doesn't work because it needs pair but gets > int). It gets an undefined symbol called number/8 . What you could