Re: Avoiding errors in custom title markup

2025-01-31 Thread Fr. Samuel Springuel
I have the following code for use with headers which might not be defined for some pieces: #(define-markup-command (when-property layout props symbol markp) (symbol? markup?) (if (chain-assoc-get symbol props) (interpret-markup layout props markp) empty-stencil)) Then in

Avoiding errors in custom title markup

2025-01-31 Thread YTG 1234
Hi all, In order to emulate the appearance of some editions, I want to set the instrument name at the top left of the first page, instead of below the titles. I have code that works; I just override bookTitleMarkup and add: %%% \fill-line {   { \large \underline \fromproperty #'header:instr

Re: Programmatically sized markup?

2024-11-10 Thread Alex Harker
Thanks Werner Alex > On 10 Nov 2024, at 05:55, Werner LEMBERG wrote: > > >> Ah - it would appear that there is a typo on the doc page, which >> refers to make-center-markup (which doesn’t exist) but >> make-center-column-markup does. > > https://gitlab.com/l

Re: Programmatically sized markup?

2024-11-09 Thread Werner LEMBERG
> Ah - it would appear that there is a typo on the doc page, which > refers to make-center-markup (which doesn’t exist) but > make-center-column-markup does. https://gitlab.com/lilypond/lilypond/-/merge_requests/2488 Werner

Re: Programmatically sized markup?

2024-11-09 Thread Alex Harker
Thanks Robin, I think it should probably be centre-column (as in make-centre-column-markup) and it’s just a doc mistake. Good to know this can also be used for custom markup. Thanks Alex > On 9 Nov 2024, at 22:46, Robin Bannister wrote: > > Alex Harker wrote: > >> I’m r

Re: Programmatically sized markup?

2024-11-09 Thread Robin Bannister
Alex Harker wrote: I’m read the below from here: https://lilypond.org/doc/v2.24/Documentation/extending/markup-construction-in-scheme “The markup-list argument of commands such as #:line, #:center, and #:column cannot be a variable or the result of a function call. (markup #:line (function

Re: Programmatically sized markup?

2024-11-09 Thread Alex Harker
Ah - it would appear that there is a typo on the doc page, which refers to make-center-markup (which doesn’t exist) but make-center-column-markup does. Once I figured that I out I was able to fix this myself. Sorry for the noise. A. > On 9 Nov 2024, at 17:25, Alex Harker wrote: > &

Programmatically sized markup?

2024-11-09 Thread Alex Harker
Hi All, I’m trying to generate some text markup programmatically that ends of as a markup-list (or a centre-column). I don’t really have a very good grasp on either markup in scheme or the relevant macros, but I have something that compiles and generates something. However, it generates a

Re: v-position of \note in \markup

2024-10-19 Thread Mats Bengtsson
Hi I am using a tempo markup like this  \bold \smaller "Animato (" \tiny \note {4} #1 \smaller"= 132)" } The "note"

Re: v-position of \note in \markup

2024-10-19 Thread Knute Snortum
On Sat, Oct 19, 2024 at 3:03 AM Sebastian Menge wrote: > Hi > > I am using a tempo markup like this > > \bold \smaller "Animato (" \tiny \note {4} #1 \smaller"= 132)" } > > The "note" seems to me too low - it seems to be below the baseline of th

v-position of \note in \markup

2024-10-19 Thread Sebastian Menge
Hi I am using a tempo markup like this \bold \smaller "Animato (" \tiny \note {4} #1 \smaller"= 132)" } The "note" seems to me too low - it seems to be below the baseline of the text. I'd expect it roughly to be at the height of the lower half of an "e

Re: Vertical re-order of text markup

2024-10-14 Thread Helge Kruse
Original Message From: Cameron Hall [mailto:camerongh...@cox.net] Sent: Sunday, October 13, 2024 at 7:49 PM To: Helge Kruse Cc: lilypond-user@gnu.org Subject: Vertical re-order of text markup That is controlled by the "outside-staff-priority" property. The default

Re: Vertical re-order of text markup

2024-10-13 Thread Cameron Hall
shown in the PNG. I found a Lilypond code that does it halfway. But > the annotation of the note C should be below the other text snippets. > How can the vertical order be changed? > > \version "2.20.0" > > \score { >   \relative c' { >     \melisma &

Vertical re-order of text markup

2024-10-13 Thread Helge Kruse
ion of the note C should be below the other text snippets. How can the vertical order be changed? \version "2.20.0" \score {   \relative c' {     \melisma     \omit Score.BarLine     c4 - \markup{C\super{1} (Mein Freund Molli)}     a' - \markup{A\super{1} (ich)}     s1

Re: chordnames chordmode and markup

2024-09-30 Thread Xavier Scheuer
On Mon, 30 Sept 2024 at 01:13, Walt North wrote: > > Is it possible in someway to get some sort of markup behavior in chordmode? They are cases where I want to add a remark for the rhythm guitar player for one reason or another for some chords. > > Simple minded example below. For

chordnames chordmode and markup

2024-09-29 Thread Walt North
Is it possible in someway to get some sort of markup behavior in chordmode?  They are cases where I want to add a remark for the rhythm guitar player for one reason or another for some chords. Simple minded example below.  For a staff note I can add text. But lilypond throws an error when I

Text markup length and bar spacing

2024-09-17 Thread Lib Lists
Hi everybody, I'm trying to find the right option to make sure that the bar spacing follows the length of a text markup. See this example: if it's one bar long it works, if 2 or more it doesn't. \version "2.25.19" \score { << \new StaffGroup <<

Re: Mensural notation in a \markup command

2024-09-14 Thread Dimitri Sykias
Thank you very much! > On 15 Sep 2024, at 12:56 AM, Kieren MacMillan > wrote: > > Hi Dimitri, > >> How can I achieve this in LilyPond? > > Here’s one option: > > \version "2.25.11" > > \markup \concat { > \general-align #Y #0 \musi

Re: Mensural notation in a \markup command

2024-09-14 Thread Kieren MacMillan
Hi Dimitri, > How can I achieve this in LilyPond? Here’s one option: \version "2.25.11" \markup \concat { \general-align #Y #0 \musicglyph #"timesig.mensural94" \general-align #Y #0 " = " \general-align #Y #0 \fontsize #-2 \override #'(baseline-skip

Re: Mensural notation in a \markup command

2024-09-14 Thread Graham King
On Sat, 2024-09-14 at 03:50 +0300, Dimitri Sykias wrote: > I would like to insert the following mensural symbols using the > \markup command in LilyPond. > > > > In LaTeX, this can be done easily with a command like: > \lilyGlyph[raise=0.6, scale=2]{timesig.mensural94} = &

Mensural notation in a \markup command

2024-09-13 Thread Dimitri Sykias
I would like to insert the following mensural symbols using the \markup command in LilyPond. In LaTeX, this can be done easily with a command like: \lilyGlyph[raise=0.6, scale=2]{timesig.mensural94} = \lilyTimeSignature{9}{2}. How can I achieve this in LilyPond? Thanks!

Re: Change size of note object in markup

2024-08-29 Thread Lukas-Fabian Moser
Hi Fennel, Am 30.08.24 um 01:53 schrieb Fennel: I have a note object in markup, like so: |\version "2.24.4" \markup { "blah blah" \note {2} #1 "blah blah" } | I’d like the note to be a bit smaller relative to the text. How do I do this? Believe it or not:

Change size of note object in markup

2024-08-29 Thread Fennel
I have a note object in markup, like so: \version "2.24.4" \markup { "blah blah" \note {2} #1 "blah blah" } I’d like the note to be a bit smaller relative to the text. How do I do this? Fennel ​

Re: Graphical markup between objects?

2024-07-29 Thread Fennel
Hi all, Fixed the fork objects such that they correctly render the apex of the fork halfway on the part of the two fingerings. Check it out! -Fennel On Tuesday, June 25th, 2024 at 12:34 PM, Fennel wrote: > Thanks. As far as the "fork" style is concerned, Aaron, your example is > great! Learn

Re: Graphical markup between objects?

2024-06-25 Thread Fennel
Thanks. As far as the "fork" style is concerned, Aaron, your example is great! Learning a lot :) It seems like it would be great if the stencil that you've made could be wrapped into the style property, as that's what Lilypond seems to want the user-settable property. The [documentation page](

Re: Graphical markup between objects?

2024-06-23 Thread Thomas Morley
Am So., 23. Juni 2024 um 19:48 Uhr schrieb Fennel : > > > Wondering if it's possible to override the behavior of the glide line such > that the glide will draw to the next fingering regardless of what the second > number is. > > - Fennel It's not possible. Think of chords with multiple fingering

Re: Graphical markup between objects?

2024-06-23 Thread Fennel
Wondering if it's possible to override the behavior of the glide line such that the glide will draw to the next fingering regardless of what the second number is. - Fennel On Thursday, May 30th, 2024 at 12:28 AM, Werner LEMBERG wrote: > > > > I was looking for something like "shift line"

Re: markup function accepting either markup or markup list as argument

2024-06-22 Thread Werner LEMBERG
>> I want to write a user-friendly markup command that can accept either >> a markup or a markup list as arguments. Example: >> >> ``` >> % \ornament >> \markup \ornament \number ♭ >> \musicglyph "scripts.turn" >>

Re: markup function accepting either markup or markup list as argument

2024-06-22 Thread David Kastrup
Werner LEMBERG writes: >> The real question is what you actually are trying to achieve here. > > I want to write a user-friendly markup command that can accept either > a markup or a markup list as arguments. Example: > > ``` > % \ornament >

Re: markup function accepting either markup or markup list as argument

2024-06-22 Thread Werner LEMBERG
> The documentation clearly states: > > <http://lilypond.org/doc/v2.25/Documentation/extending/markup-command-definition-syntax> > >Arguments are distinguished according to their type: >• a markup, corresponding to type predicate ‘markup?’; >• a list o

Re: markup function accepting either markup or markup list as argument

2024-06-21 Thread David Kastrup
Werner LEMBERG writes: > Folks, > > > I would like to write a markup function that can either accept a > markup or a markup list as an argument. You mean, a markup command. > The code below works fine, reporting > > ``` > bar: (#) > baz: 1 > bar: ((#) &

markup function accepting either markup or markup list as argument

2024-06-21 Thread Werner LEMBERG
Folks, I would like to write a markup function that can either accept a markup or a markup list as an argument. The code below works fine, reporting ``` bar: (#) baz: 1 bar: ((#) (#)) baz: 1 ``` as expected. (The `baz` argument is inserted in the demo code to avoid interference with

Re: Adjust line spacing in markup column for fingerings

2024-06-21 Thread Vaughan McAlley
On Fri, 21 Jun 2024 at 11:09, Curt McDowell wrote: > baseline-skip seems to do the job: > > > > Found here: LilyPond snippets: Tweaks and overrides > > > Regards, > Curt > > On 6/20/2024 5:00 PM, Fennel wrote: > > Hi al

Re: Adjust line spacing in markup column for fingerings

2024-06-20 Thread Curt McDowell
baseline-skip seems to do the job: || Found here: LilyPond snippets: Tweaks and overrides Regards, Curt On 6/20/2024 5:00 PM, Fennel wrote: Hi all, Getting this behavior when trying to put fingerings in column form

Adjust line spacing in markup column for fingerings

2024-06-20 Thread Fennel
Hi all, Getting this behavior when trying to put fingerings in column format on chords: \version "2.24.3" \relative c'' { \set fingeringOrientations = #'(left) } I’d like the 1 to be much closer to the 2. Does anyone know the correct property to adjust to make this happen / where in the docs

Re: accessing markup properties via \tweak?

2024-06-20 Thread Werner LEMBERG
>> Ah, yes, I forgot that it is possible to extend the `props` alist. >> Thanks a lot! > > This is not exactly extending the probs, but passing additional > parameters in details. Yep, I answered too quickly and was too lazy to correct myself :-) > It would be great to generally have a grob pr

Re: accessing markup properties via \tweak?

2024-06-20 Thread Valentin Petzel
> > Ah, yes, I forgot that it is possible to extend the `props` alist. > Thanks a lot! > > > Werner This is not exactly extending the probs, but passing additional parameters in details. It would be great to generally have a grob property like grob.default-properties or something, and add

Re: accessing markup properties via \tweak?

2024-06-20 Thread David Kastrup
Werner LEMBERG writes: > Hello David, > > >>> is it possible to access markup properties like `baseline-skip` via >>> \tweak? >> >> Have you tried? > > Well, yes, but ... > >> Check out the following example where I just add a few lines in

Re: accessing markup properties via \tweak?

2024-06-20 Thread Werner LEMBERG
>> In the example below, I want to set the markup property `bar` as a >> tweak to influence `\foo`. > > you could of course do something like > > %%% > #(define-markup-command (foo-markup layout props) () >#:properties ((bar #f) (details '())) >

Re: accessing markup properties via \tweak?

2024-06-20 Thread Werner LEMBERG
Hello David, >> is it possible to access markup properties like `baseline-skip` via >> \tweak? > > Have you tried? Well, yes, but ... > Check out the following example where I just add a few lines in > front of what you wrote: ... it didn't occur to me to

Re: accessing markup properties via \tweak?

2024-06-20 Thread Valentin Petzel
Am Donnerstag, 20. Juni 2024, 07:02:48 MESZ schrieb Werner LEMBERG: > Folks, > > > is it possible to access markup properties like `baseline-skip` via > \tweak? It is often necessary to define a markup command that gets in > turn wrapped into a music function, and for such si

Re: accessing markup properties via \tweak?

2024-06-19 Thread David Kastrup
Werner LEMBERG writes: > Folks, > > > is it possible to access markup properties like `baseline-skip` via > \tweak? Have you tried? If it is a grob property... > In the example below, I want to set the markup property `bar` as a > tweak to influence `\foo`. Check out

accessing markup properties via \tweak?

2024-06-19 Thread Werner LEMBERG
Folks, is it possible to access markup properties like `baseline-skip` via \tweak? It is often necessary to define a markup command that gets in turn wrapped into a music function, and for such situations a tweak-like command would be quite handy. In the example below, I want to set the

Re: color text in markup

2024-06-10 Thread Виноградов Юрий
d that you teach me how to do this. As the specificity of my set will often meet with such phenomenon as, "red first letter of a syllable". Please!That's a fairly big ask to the members on the mailing list. Technically, you have been shown all the basic techniques of \markup commands t

Re: color text in markup

2024-06-10 Thread Виноградов Юрий
Okey.Юрий Виноградов21:13, 10 июня 2024 г., Aaron Hill :On 2024-06-10 11:11 am, Aaron Hill wrote:Oops. I attached the wrong image. Sorry about that.-- Aaron Hill

Re: color text in markup

2024-06-10 Thread Aaron Hill
On 2024-06-10 11:11 am, Aaron Hill wrote: Oops. I attached the wrong image. Sorry about that. -- Aaron Hill

Re: color text in markup

2024-06-10 Thread Aaron Hill
big ask to the members on the mailing list. Technically, you have been shown all the basic techniques of \markup commands to be able to do this. To make a reference to school, we are not going to do your homework. Now, if you have a specific question along with code you have written as reference, w

Re: color text in markup

2024-06-10 Thread Werner LEMBERG
> I really need to be able to make the first syllable of a word, the > beginning of a sentence of a song or a romance or a psalm in red or > any other color for my next sets of notes. It is very much requested > that you teach me how to do this. As the specificity of my set will > often meet with

Re: color text in markup

2024-06-10 Thread David Wright
ur help. But you could not suggest the same solution but for the text > in \lyricmode section.\markup … can perfectly > well be used for lyrics. class="f55bbb4eeef208e8wmi-sign">-- David Kastrup /> Open the Notation Reference, turn to the index, and look up "markup,

Re: color text in markup

2024-06-10 Thread Виноградов Юрий
...@yandex.ru> writes: I'm grateful for your help. But you could not suggest the same solution but for the text in \lyricmode section.\markup … can perfectly well be used for lyrics.-- David Kastrup

Re: color text in markup

2024-06-10 Thread David Kastrup
Виноградов Юрий writes: > I'm grateful for your help. But you could not suggest the same > solution but for the text in \lyricmode section. \markup … can perfectly well be used for lyrics. -- David Kastrup

Re: color text in markup

2024-06-10 Thread Виноградов Юрий
I'm grateful for your help. But you could not suggest the same solution but for the text in \lyricmode section.Юрий Виноградов07:16, 10 июня 2024 г., Werner LEMBERG : Tell me how to make the first letter in the \markup department red.   d4^\markup { "Tell me how to make" } d4Try``

Re: color text in markup

2024-06-09 Thread Werner LEMBERG
> Tell me how to make the first letter in the \markup department red. > > d4^\markup { "Tell me how to make" } d4 Try ``` { d'4^\markup \concat { \with-color #red T ell " me how to make" } d'4 } ``` Werner

Fwd: color text in markup

2024-06-09 Thread Виноградов Юрий
Hi. Tell me how to make the first letter in the \markup department red.  d4^\markup {  "Tell me how to make" } d4  С уважением,Виноградов Юрий.

Re: markup

2024-06-06 Thread ming tsang
ght try to put a rounded-box on the two markups. > > On Thu, Jun 6, 2024 at 4:26 PM Valentin Petzel wrote: > >> Hello, >> >> Do you mean something like this: >> >> \version "2.24.3" >> \markup\line { >> \circle" 1. "

Re: markup

2024-06-06 Thread ming tsang
o, > > Do you mean something like this: > > \version "2.24.3" > \markup\line { > \circle" 1. " > \box \override #'(line-width . 40) \fill-line { "\t\musicglyh \tlsr?" } % > \rounded-box > } > \markup \vspace #0.75 > > Cheers, &g

Re: markup

2024-06-06 Thread Valentin Petzel
Hello, Do you mean something like this: \version "2.24.3" \markup\line { \circle" 1. " \box \override #'(line-width . 40) \fill-line { "\t\musicglyh \tlsr?" } % \rounded-box } \markup \vspace #0.75 Cheers, Valentin Am Donnerstag, 6. Juni 2024, 23:16

markup

2024-06-06 Thread ming tsang
Dear Lilyponders, I have two markups printed in two lines. questions: 1.. How to print the two markups side-by-side on one line 2.. How to shorten the fill-line or have an arg to determine the width. Here is the lily markup code: \version "2.24.3" \markup\circle" 1. " \markup \

Re: Get Width and Height of markup

2024-06-05 Thread Valentin Petzel
Hello William, the problem here is that a markup may depend on the context it is rendered in. For example if you change font size or even font for Staff.InstrumentName then the dimensions of the stencil will change. You can of course render the markup using some "default" settings,

Get Width and Height of markup

2024-06-04 Thread William Rehwinkel via LilyPond user discussion
Dear list, In the following example, I am wondering how I can find the measurements of the dimensions, specifically the width, of a markup object. This is so I can automatically indent the first line by the length of the instrumentName. Thanks, -William % \version

Re: wordwrap on argument of markup function

2024-06-03 Thread Simon Albrecht
Thanks for elaborating! I forgot to hit Reply All when I replied to Jean, excuse me. On 02.06.24 10:10, Ya Gloops wrote: #(define-markup-command (freely layout props width-param text) (number? markup-list?)    "Format text for one bar of 'width-param' quarter notes’ length

Re: wordwrap on argument of markup function

2024-06-02 Thread Ya Gloops
#(define-markup-command (freely layout props width-param text) (number? markup-list?)   "Format text for one bar of 'width-param' quarter notes’ length"   (interpret-markup layout props                     #{\markup\box \line { \override #`(line-width . ,width-para

Re: wordwrap on argument of markup function

2024-06-01 Thread Jean Abou Samra
> (define-markup-command (freely layout props width-param text) (number? > markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the c

wordwrap on argument of markup function

2024-06-01 Thread Simon Albrecht
Hello kind community folk, how do I make \wordwrap act correctly on the argument to this markup function? And why does \line not make \box act on the markup as a whole, as it is said to do? Best, Simon \version "2.25.14" #(define-markup-command (freely layout props width-

Re: Graphical markup between objects?

2024-05-29 Thread Werner LEMBERG
> I was looking for something like "shift line" or "line between > fingerings", the latter of which seems to point to the correct page. https://gitlab.com/lilypond/lilypond/-/merge_requests/2357 Werner

Re: Graphical markup between objects?

2024-05-29 Thread Aaron Hill
ar "." \set fingeringOrientations = #'(down) \makeGlide f' f' 4 \makeGlide f' e' 4 \makeGlide f' d' 4 \makeGlide f' c' 4 \makeGlide f' b 4 \bar "|." } \paper { #(set-paper-size "ledger") indent = 0

Re: Graphical markup between objects?

2024-05-29 Thread Fennel
I was looking for something like "shift line" or "line between fingerings", the latter of which seems to point to the correct page. -fennel

Re: Graphical markup between objects?

2024-05-28 Thread Werner LEMBERG
> > Before you go create something yourself, have you looked at what > > LilyPond supports [1]? There are built-in options to change the > > style of the FingerGlideSpanner. Your "V"-bend shape probably > > could be added as a new style. > > This is exactly what I was looking for! I was unaware

Re: Graphical markup between objects?

2024-05-28 Thread Fennel
Ooh ooh ooh! This is exactly what I was looking for! I was unaware that this existed; I would have never thought to look for glide. Thank you -fennel

Re: Graphical markup between objects?

2024-05-28 Thread Aaron Hill
On 2024-05-28 10:43 am, Fennel wrote: I would like to draw lines between fingerings to indicate shifts, pivots, etc. on an unfretted string instrument. Say I have something like the following: \version "2.24.3" \relative c' { c4-1 d-2 } Before you go create something yourself, have you l

Re: Graphical markup between objects?

2024-05-28 Thread Fennel
> etc. on an unfretted string instrument. >> Say I have something like the following: >> \version "2.24.3" >> \relative c' { >> c4-1 d-2 >> } >> >> I would like to produce something similar to the following: >> >> I know that thi

Re: Graphical markup between objects?

2024-05-28 Thread Kieren MacMillan
produce something similar to the following: > > I know that this is achievable using markup and \draw-line as specified here, > but as changes are made to my project and the spacing between notes changes, > I’d have to go back and manually tweak all of the coordinates for all of the

Graphical markup between objects?

2024-05-28 Thread Fennel
ow that this is achievable using markup and \draw-line as specified [here](https://lilypond.org/doc/v2.23/Documentation/notation/graphic), but as changes are made to my project and the spacing between notes changes, I’d have to go back and manually tweak all of the coordinates for all of th

Re: Disable all padding and collision around markup

2024-05-19 Thread William Rehwinkel via LilyPond user discussion
This is perfect, thanks so much for your responses everybody. -William On 5/19/24 10:56, Kieren MacMillan wrote: Hi Knute, There are ways to "disable the padding" (a.k.a. have the spacing engine ignore the TextScript). However, it might be just as easy — or maybe even easier? — to simply twea

Re: Disable all padding and collision around markup

2024-05-19 Thread Kieren MacMillan
Hi Knute, >> There are ways to "disable the padding" (a.k.a. have the spacing engine >> ignore the TextScript). However, it might be just as easy — or maybe >> even easier? — to simply tweak the X-offset and Y-offset rather than >> using extra-offset: > The extra-offset happens late in the rend

Re: Disable all padding and collision around markup

2024-05-19 Thread Knute Snortum
On Sun, May 19, 2024 at 4:22 AM wrote: > Hi William, > > > In the following example, I use a section label and a TextScript on a > > note. I offset the markup text so that it appears inside the staff, but > > it still makes the section text higher up. I would like to kn

Re: Disable all padding and collision around markup

2024-05-19 Thread kieren
Hi William, In the following example, I use a section label and a TextScript on a note. I offset the markup text so that it appears inside the staff, but it still makes the section text higher up. I would like to know if it is possible to disable this padding around the TextScript, so that

Disable all padding and collision around markup

2024-05-18 Thread William Rehwinkel via LilyPond user discussion
Dear list, In the following example, I use a section label and a TextScript on a note. I offset the markup text so that it appears inside the staff, but it still makes the section text higher up. I would like to know if it is possible to disable this padding around the TextScript, so that the

Re: Getting a function to accept a string or a markup

2024-05-11 Thread Lukas-Fabian Moser
begins on the last note of a line, and the attached string is long, it can extend right to the edge of the page (see picture attached). What would be good is to be able to say \sim \markup \left-column { "Vln 1," "Vln 2" } if needed. Otherwise I could have it require a

Getting a function to accept a string or a markup

2024-05-09 Thread Vaughan McAlley
long, it can extend right to the edge of the page (see picture attached). What would be good is to be able to say \sim \markup \left-column { "Vln 1," "Vln 2" } if needed. Otherwise I could have it require a markup and get it to concatenate within the function, but my Scheme

Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
Thanks for the tip, Valentin, great to know about this. On Sat, May 4, 2024 at 3:22 AM Valentin Petzel wrote: > Hello Alec, > > note that since 2.24 we have a neat markup function > \with-string-transformer, > which is called whenever a string is found, and does a lot of the lo

Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
A-ha! That makes sense and works great, thanks David. On Sat, May 4, 2024 at 1:54 AM David Kastrup wrote: > Alec Bartsch writes: > > > I'm attempting to write a markup command that, in addition to other > > formatting, strips a trailing # or b character off the end of th

Re: Trouble with concat in a markup command

2024-05-04 Thread Valentin Petzel
Hello Alec, note that since 2.24 we have a neat markup function \with-string-transformer, which is called whenever a string is found, and does a lot of the logic for you (such as making sure this is called upon a string, not a complex markup: \markup \with-string-transformer #(lambda

Re: Trouble with concat in a markup command

2024-05-04 Thread David Kastrup
Alec Bartsch writes: > I'm attempting to write a markup command that, in addition to other > formatting, strips a trailing # or b character off the end of the text > argument and replaces it with the appropriate accidental markup. I think > I'm super-close but stuck on

Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
I'm attempting to write a markup command that, in addition to other formatting, strips a trailing # or b character off the end of the text argument and replaces it with the appropriate accidental markup. I think I'm super-close but stuck on the proper syntax for passing a markup list to

Re: Conditional markup? UP|DOWN

2024-05-01 Thread Pierre-Luc Gauthier
l a écrit : > On 2024-04-29 7:50 am, Pierre-Luc Gauthier wrote: > > Can a markup command introspect its direction ? > > > > Is it possible to set in a markup command some conditionals (not paper > > related) ? > > > > \version "2.25.15" &g

Re: Conditional markup? UP|DOWN

2024-04-29 Thread Aaron Hill
On 2024-04-29 7:50 am, Pierre-Luc Gauthier wrote: Can a markup command introspect its direction ? Is it possible to set in a markup command some conditionals (not paper related) ? \version "2.25.15" #(define-markup-command (conditionalMrkp layout props) () (interpret-markup la

Conditional markup? UP|DOWN

2024-04-29 Thread Pierre-Luc Gauthier
Can a markup command introspect its direction ? Is it possible to set in a markup command some conditionals (not paper related) ? \version "2.25.15" #(define-markup-command (conditionalMrkp layout props) () (interpret-markup layout props #{ \markup {

Re: Capturing out-of-music markup for music braille

2024-03-29 Thread Maurits Lamers via LilyPond user discussion
Thanks so much for thinking along. In the current setup that would still require users to change their Lilypond code. Your example did give me an idea though: if there would be something like $currentscore, the problem of getting access to the score header would be solved... cheers Maurits O

Re: Capturing out-of-music markup for music braille

2024-03-28 Thread Timothy Lanfear
On 27/03/2024 22:03, Maurits Lamers wrote: Hi Timothy, Thanks so much for your answer! With $defaultheader I can indeed get the main/global header fields in the initialize stage of the engraver, which is already a very important step. I looked up where $defaultheader is defined, and tried top

Re: Capturing out-of-music markup for music braille

2024-03-27 Thread Maurits Lamers via LilyPond user discussion
urits Op 27-03-2024 om 18:07 schreef Timothy Lanfear: On 26/03/2024 14:01, Maurits Lamers via LilyPond user discussion wrote: - is there a way to get a listener or callback of some kind to capture out-of-music markup? - is there a way to get access to the global headers and / or score header

Re: Capturing out-of-music markup for music braille

2024-03-27 Thread Timothy Lanfear
On 26/03/2024 14:01, Maurits Lamers via LilyPond user discussion wrote: - is there a way to get a listener or callback of some kind to capture out-of-music markup? - is there a way to get access to the global headers and / or score headers (in case of score specific headers)? - is there

Capturing out-of-music markup for music braille

2024-03-26 Thread Maurits Lamers via LilyPond user discussion
not complete yet, I think that the listener interface will be sufficient for all music related information I would still need to add. For a proper braille output though it is important to also be able to include the headers, as well as other non-music related markup. One specific use case is a

Re: markup for circular bowing

2024-02-29 Thread Trevor Bača
r bowing like in the attached > png. The example was done using an epsfile, but unfortunately that > doesn't export to svg, which I need. So it should be done using > lilypond's builtin markup commands (or scheme code). Can someone point > me to examples to do circular arcs with

Re: markup for circular bowing

2024-02-14 Thread Thomas Richter
/msg00095.html> proposal) uses the path from ekmelos.svg of the Clockwise gapped circle arrow (U+27F3) which is maybe more appropriate than the stringsScrapeCircularClockwise glyph (U+EE88) in smufl. \version "2.24.0" #(define-markup-command (circular-bowing layout props) ()  

Re: markup for circular bowing

2024-02-14 Thread Orm Finnendahl
Hi Carl, Pierre, Aaron, thanks so much for all your help, amazing! Am Mittwoch, den 14. Februar 2024 um 09:10:59 Uhr (-0700) schrieb Carl Sorensen: > > Is this supposed to be the same thing as circular scrape in chop bowing? > If so, SMUFL has a glyph defined: > > https://w3c.github.io/smufl/l

Re: markup for circular bowing

2024-02-14 Thread Carl Sorensen
, which I need. So it should be done using > lilypond's builtin markup commands (or scheme code). Can someone point > me to examples to do circular arcs with attached arrows (can also be > scheme code)? Is this supposed to be the same thing as circular scrape in chop bow

Re: markup for circular bowing

2024-02-14 Thread Pierre Perol-Schneider
, > > > > I'd like to make a sign for circular bowing like in the attached > > png. The example was done using an epsfile, but unfortunately that > > doesn't export to svg, which I need. So it should be done using > > lilypond's builtin markup comma

Re: markup for circular bowing

2024-02-14 Thread Aaron Hill
On 2024-02-14 1:59 am, Orm Finnendahl wrote: Hi, I'd like to make a sign for circular bowing like in the attached png. The example was done using an epsfile, but unfortunately that doesn't export to svg, which I need. So it should be done using lilypond's builtin markup comm

Re: markup for circular bowing

2024-02-14 Thread Pierre Perol-Schneider
Hi Orm, How about: \version "2.25.10" #(define-markup-command (circBow layout props)() (interpret-markup layout props (markup (#:stencil (make-path-stencil '(M 0 3.188 C -0.012 5.133 1.613 6.133 2.996 6.199 C 4.379 6.27 4.547 5.891 5.242 5.43

  1   2   3   4   5   6   7   8   9   10   >