Re: Markup variables how-to

2025-08-01 Thread Timothy Lanfear
Perhaps you are looking for the \verbatim-file markup command. On 01/08/2025 04:26, Lucas Cavalcanti wrote: If possible, I'd like to add upon James's question: is it possible to markup include a text file? Such as to import an file before the \score environment. Em sex., 1 de ago. de 2025, 00

Re: Markup variables how-to

2025-07-31 Thread James Harkins
On Fri, 01 Aug 2025 11:20:10 +0800 James Harkins wrote --- > I realize this is a stupid question, but I've searched the manual and I don't > see a quick example of how to use variables for markup. So I'm stabbing in > the dark and nothing is working. Sorry for noise... I see now that th

Re: Markup variables how-to

2025-07-31 Thread Lucas Cavalcanti
If possible, I'd like to add upon James's question: is it possible to markup include a text file? Such as to import an file before the \score environment. Em sex., 1 de ago. de 2025, 00:21, James Harkins escreveu: > I realize this is a stupid question, but I've searched the manual and I > don't

Re: Markup alignment question

2025-06-17 Thread Mats Bengtsson
On 2025-06-16 11:00, Valentin Petzel wrote: >> ... which has the advantage that long texts can have page breaks, This made me curious, is there any way to force a page break within a markup (or markup list)? I know that \pageBrea

Re: Markup alignment question

2025-06-16 Thread Werner LEMBERG
>> > Should we change this to a public function? >> >> I think this might prove very useful. [...] > > Very nice! Indeed. Tina, do you have time and energy to submit a Merge Request, i.e., adding the necessary documentation strings, updating the `changes.tely` file, and probably adding exampl

Re: Markup alignment question

2025-06-16 Thread Thomas Morley
Am Mo., 16. Juni 2025 um 11:01 Uhr schrieb Valentin Petzel : > > Hello Werner, > > > Should we change this to a public function? > > > > > > Werner > > I think this might prove very useful. Essentially if we define > > %%% > #(define-markup-list-command (space-lines layout props mlist) (markup-

Re: Markup alignment question

2025-06-16 Thread Thomas Morley
Am Mo., 16. Juni 2025 um 07:05 Uhr schrieb Werner LEMBERG : > > > > `wordwrap-string-internal` is one of only three > > markup-(list)-commands flagged "internal" and thus not documented, > > but it _is_ a full blown, ready-to-use command. > > Should we change this to a public function? > > > We

Re: Markup alignment question

2025-06-16 Thread Valentin Petzel
Hello Werner, > Should we change this to a public function? > > > Werner I think this might prove very useful. Essentially if we define %%% #(define-markup-list-command (space-lines layout props mlist) (markup-list?) #:properties ((baseline-skip 4.5)) (space-lines baseline-skip (inte

Re: Markup alignment question

2025-06-15 Thread Werner LEMBERG
> `wordwrap-string-internal` is one of only three > markup-(list)-commands flagged "internal" and thus not documented, > but it _is_ a full blown, ready-to-use command. Should we change this to a public function? Werner

Re: Markup alignment question

2025-06-15 Thread Thomas Morley
Am So., 15. Juni 2025 um 21:34 Uhr schrieb Valentin Petzel : > > Hi RipMus, > > > Would it be possible to right-align the subtitle text, broken into two > > lines, so that the second line (the one ending with 2025) is aligned to the > > right margin? > > Yes, by modifying the `\justify-string` comm

Re: Markup alignment question

2025-06-15 Thread Valentin Petzel
Hi RipMus, > Would it be possible to right-align the subtitle text, broken into two > lines, so that the second line (the one ending with 2025) is aligned to the > right margin? Yes, by modifying the `\justify-string` command to allow for justification: %%% %%% \version "2.24.4" #(define-markup

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" >> \number ♮ >> \markup \ornament { \number ♭ \

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 > \markup \ornament \number ♭ > \mu

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

2024-06-22 Thread Werner LEMBERG
> The documentation clearly states: > > > >Arguments are distinguished according to their type: >• a markup, corresponding to type predicate ‘markup?’; >• a list of markups, corresponding to type

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: ((#) > (#)) > baz: 1 > ``` > > as expected

Re: markup

2024-06-06 Thread ming tsang
PS forgot to include the output pdf. On Thu, Jun 6, 2024 at 5:12 PM ming tsang wrote: > Dear Valentin, > > The "%\rouded-box" is a misplaced typo. Once I delete the \rounded-box > trom the code you sent me, it works A-ok. Your code answers my two > questions. > I might try to put a rounded-box

Re: markup

2024-06-06 Thread ming tsang
Dear Valentin, The "%\rouded-box" is a misplaced typo. Once I delete the \rounded-box trom the code you sent me, it works A-ok. Your code answers my two questions. I might 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 mea

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:51 MESZ schrieb ming tsang: > Dear Lilypo

Re: markup for circular bowing

2024-02-29 Thread Trevor Bača
Hi Orm, More examples here: https://github.com/trevorbaca/baca/blob/main/baca/scm/baca-circle-bow-markups.ily HTH, Trevor. On Wed, Feb 14, 2024 at 4:59 AM Orm Finnendahl < orm.finnend...@selma.hfmdk-frankfurt.de> wrote: > Hi, > > I'd like to make a sign for circular bowing like in the attach

Re: markup for circular bowing

2024-02-14 Thread Thomas Richter
Hi Orm, maybe the smufl compliant ekmelos font is useful for you. It also defines some Unicode glyphs like circle and arc arrows. The following (similar to Pierre's pr

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
On Wed, Feb 14, 2024 at 2:59 AM Orm Finnendahl < orm.finnend...@selma.hfmdk-frankfurt.de> 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 d

Re: markup for circular bowing

2024-02-14 Thread Pierre Perol-Schneider
Hi Aaron, Nice! Personally I never mix path drawings and graphical command since the result is not consistant. E.g. { \magnifyStaff #2 c''1^\circular-bow } Cheers, Pierre Le mer. 14 févr. 2024 à 12:13, Aaron Hill a écrit : > On 2024-02-14 1:59 am, Orm Finnendahl wrote: > > Hi, > > > > I'd like

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 commands (or scheme code

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 C 5.242 5

Re: markup on ambitus?

2023-10-21 Thread Graham King
Thanks Michael, that looks very promising.  (And I would not have thought of using the Balloon engraver) -- Graham

Re: markup on ambitus?

2023-10-21 Thread Michael Werner
Hi Graham, On Sat, Oct 21, 2023 at 9:48 AM Graham King wrote: > In the following MWE, is it possible to put a small markup above each > ambitus to signify the voice to which the ambitus belongs? > > I'm just failing to see where to attach ^\markup { foo } > I couldn't find a place to directly a

Re: \markup text outside Lyrics - how?

2023-10-03 Thread Michael Gerdau
Why not use text marks, http://lilypond.org/doc/v2.25/Documentation/notation/text-marks ? They are intended exactly for textual indications that should appear at the top of each system, i.e. above the lyrics in your case. Because I wasn't aware of their existence :) They work just nicely ...

Re: \markup text outside Lyrics - how?

2023-10-02 Thread Mats Bengtsson
Why not use text marks, http://lilypond.org/doc/v2.25/Documentation/notation/text-marks ? They are intended exactly for textual indications that should appear at the top of each system, i.e. above the lyrics in your case.    /Mats On 2023-10-02

Re: \markup text outside Lyrics - how?

2023-10-02 Thread Michael Gerdau
[moving instructional text above notes and outside of lyrics] you could create a Dynamics context before the staff containing the markup. Thanks Valentin, that works like a charm :) Kind regards, Michael -- Michael Gerdau email: m...@qata.de GPG-keys available on request or at public

Re: \markup text outside Lyrics - how?

2023-09-28 Thread Valentin Petzel
Hello Michael, you could create a Dynamics context before the staff containing the markup. Cheers, Valentin Am Donnerstag, 28. September 2023, 19:54:22 CEST schrieb Michael Gerdau: > Dear lilyponders, > > I would like to have directional text outside of lyrics. I've been > trying to use \markup

Re: Markup block that "interrupts" the header?

2023-08-23 Thread Michael Werner
Hi Joseph, On Mon, Aug 21, 2023 at 8:08 PM Joseph Srednicki wrote: > Hello: > > When coding organ pieces, I want the registration to appear following the > header. > > In the following example, I inserted the registration in a markup block > before the score block. When Lilypond renders the musi

Re: Markup block that "interrupts" the header?

2023-08-22 Thread Knute Snortum
You could "fake" the opus by putting it in markup instead of the header (see attached). -- Knute Snortum On Mon, Aug 21, 2023 at 5:08 PM Joseph Srednicki wrote: > Hello: > > When coding organ pieces, I want the registration to appear following the > header. > > In the following example, I ins

Re: markup accidentals for a microtonal system

2023-08-13 Thread Thomas Richter
Hello Nike, following your submission I extended Ekmelily to support now arbitrary markup (not only glyphs from an external font); see www.ekmelic-music.org/en/extra/ekmelily.htm (version 3.11). Maybe this is a solution for you. It defines

Re: markup accidentals for a microtonal system

2023-08-13 Thread Gregory Evans
Hi Nike, I believe this could work. First you would assign glyph values to your accidentals arbitrarily, ensuring you use no duplicate glyph. Then you could use something like the following function to swap the glyphs out for your markups. alt-accidentals = #(lambda (grob) (let* ( (sz

Re: Markup with text or text in dynamics font

2023-05-30 Thread Jean Abou Samra
(sorry, typoed the list address) Le mardi 30 mai 2023 à 18:14 +0200, Jean Abou Samra a écrit : > (Adding back the list) > Le mardi 30 mai 2023 à 09:09 -0700, Ralph Palmer a écrit : > > Jean - > > I did get your messages. I took a quick look and felt confused and slightly > > overwhelmed. I'm goin

Re: Markup with text or text in dynamics font

2023-05-30 Thread Jean ABOU SAMRA
Ralph, I'm currently running LilyPond 2.24.0 and Frescobaldi 3.2 (still having > problems figuring out how to install 3.3) under Linux/Ubuntu 22.04.2 LTS. > > > I'm a bit puzzled here because I tried to help you on https://groups.google.com/g/frescobaldi/c/gKehyaVmAxo?pli=1 and https://lists.gn

Re: Markup with text or text in dynamics font

2023-05-29 Thread Paul Hodges
In markup, you can use \dynamic to use the dynamics characters.  However, only a small part of the alphabet is provided, as it is normally only used for actual dynamics; what you want is not normal practice, and would come out looking like the attached image. Paul From: Ralph Palmer T

Re: Markup text simplification

2023-04-20 Thread Mark Probert
Thanks, Jean. I read that section over a few times and completely missed the implication of \etc Gratefully! -mark. On 21 Apr 2023 at 16:27:58, Jean Abou Samra wrote: > Le jeudi 20 avril 2023 à 22:56 -0700, Mark Probert a écrit : > > Hi. > > I the score I’m currently working on littered wit

Re: Markup text simplification

2023-04-20 Thread Jean Abou Samra
Le jeudi 20 avril 2023 à 22:56 -0700, Mark Probert a écrit : > Hi. > > I the score I’m currently working on littered with expressions like > >   fis2 r4 f4^\markup { \italic \smaller “schaftlich" } | > > Is there a way to write a substitution macro that means I could write > >   >   fis2 r4 f4

Re: Markup in the middle of a spanner

2023-04-07 Thread David Nalesnik
On Fri, Apr 7, 2023 at 7:26 AM David Nalesnik wrote: > Hi Andrew, > > On Fri, Apr 7, 2023 at 7:23 AM Andrew Bernard > wrote: > >> Ah, that's the one I now remember. >> >> Could this go into OLL? >> >> Andrew >> > > Sure, if you like! It might need some adjusting for 2.24 - not sure. > > David >

Re: Markup in the middle of a spanner

2023-04-07 Thread David Nalesnik
Hi Andrew, On Fri, Apr 7, 2023 at 7:23 AM Andrew Bernard wrote: > Ah, that's the one I now remember. > > Could this go into OLL? > > Andrew > Sure, if you like! It might need some adjusting for 2.24 - not sure. David

Re: Markup in the middle of a spanner

2023-04-07 Thread Andrew Bernard
Ah, that's the one I now remember. Could this go into OLL? Andrew On 7/04/2023 10:21 pm, David Nalesnik wrote: Hi Rip_mus, On 7/04/2023 4:18 pm, Rip _Mus wrote: > do you know any technique to place a markup right in the middle (X > axis) of a DurationLine Grob? (or also a textsp

Re: Markup in the middle of a spanner

2023-04-07 Thread David Nalesnik
Hi Rip_mus, > > On 7/04/2023 4:18 pm, Rip _Mus wrote: > > do you know any technique to place a markup right in the middle (X > > axis) of a DurationLine Grob? (or also a textspanner). > > This will handle TextSpanners: https://github.com/davidnalesnik/lilypond-text-spanner-inner-texts Best, Dav

Re: Markup in the middle of a spanner

2023-04-06 Thread Andrew Bernard
Others will shortly come in with a formal Scheme solution but I just use markup text with a whiteout background and manually offset it to be in the middle of the spanner. No good when things shift, but does the job. I thought there used to be a technique for this in the Lilypond Snippet Reposi

Re: Markup command \beam

2022-08-16 Thread Andrew Bernard
Thanks Jean. I thought it was a bit odd. Andrew

Re: Markup command \beam

2022-08-16 Thread Jean Abou Samra
Le 16/08/2022 à 13:09, Andrew Bernard a écrit : How is \beam intended to be used in markup? Can it replace the beaming of notes? I would not imagine - so I am unsure what this command is for. It seems to me that \beam kind of misnamed due to a quirk of history. In old times, it was the way to

Re: Markup in ChordNames context

2022-08-13 Thread Thomas Morley
Am Sa., 13. Aug. 2022 um 07:47 Uhr schrieb Jean Abou Samra : > > Le 13/08/2022 à 01:02, Peter Chubb a écrit : > > Hi, > > Sometimes in vocal+ukulele music I want to indicate that a > > particular chord uses an alternate fingering. I'd like to add > > an asterisk and a footnote wi

Re: Markup in ChordNames context

2022-08-12 Thread Jean Abou Samra
Le 13/08/2022 à 01:02, Peter Chubb a écrit : Hi, Sometimes in vocal+ukulele music I want to indicate that a particular chord uses an alternate fingering. I'd like to add an asterisk and a footnote with fret diagram for these cases. But the obvious \cho

Re: Markup command trouble

2022-07-25 Thread Simon Albrecht
Hi David, On 25/07/2022 16:35, David Kastrup wrote: You probably meant \markup spanish = \markup \italic \etc which defines a markup command. The way you wrote it, \spanish is just a scheme function that happens to return the internals of a markup command definition. I did mean that. Strang

Re: Markup command trouble

2022-07-25 Thread David Kastrup
Simon Albrecht writes: > Dear list, > > I wanted to define a markup command for easy switchable styling of > text and ran into an issue which seems hard to understand: > > > \version "2.23.9" > > spanish = \markup\italic \etc > > \markup \column { >   \spanish \justify { test } > } >

Re: Markup command in wrapped text

2022-05-31 Thread David Kastrup
"John Schlomann" writes: > Thank you, Jean. I'm not sure where I got tripped up. Perhaps I need a > brain transplant. I hear that the Wizard of Oz does things like that. -- David Kastrup

RE: Markup command in wrapped text

2022-05-31 Thread John Schlomann
Thank you, Jean. I'm not sure where I got tripped up. Perhaps I need a brain transplant. John -Original Message- From: Jean Abou Samra Sent: Tuesday, May 31, 2022 4:43 PM To: John Schlomann ; lilypond-user@gnu.org Subject: Re: Markup command in wrapped text Le 31/05/2022 à 23:36,

RE: Markup command in wrapped text

2022-05-31 Thread John Schlomann
age- From: David Kastrup Sent: Tuesday, May 31, 2022 4:42 PM To: John Schlomann Cc: lilypond-user@gnu.org Subject: Re: Markup command in wrapped text "John Schlomann" writes: > How can I define a block of wordwrap (or justified) text that includes > commands such as \italic or

Re: Markup command in wrapped text

2022-05-31 Thread Jean Abou Samra
Le 31/05/2022 à 23:36, John Schlomann a écrit : How can I define a block of wordwrap (or justified) text that includes commands such as \italic or \bold? I’ve done some searching and tried various things, all to no avail. Like this? \version "2.22.2" \markup \wordwrap {   Lorem ipsum d

Re: Markup command in wrapped text

2022-05-31 Thread David Kastrup
"John Schlomann" writes: > How can I define a block of wordwrap (or justified) text that includes > commands such as \italic or \bold? I've done some searching and tried > various things, all to no avail. Huh. \markup \wordwrap { This is a text with \italic italic words in it and then I put som

Re: Markup problem

2022-05-30 Thread Ralph Palmer
Thanks, Valentin and David Kastrup! I used a poor example, but Valentin's mention of \wordwrap-string let me solve the problem. All the best, Ralph On Mon, May 30, 2022 at 11:26 AM Valentin Petzel wrote: > Hello Ralph, > > Lilypond does have word wrapping and justification, but it does not hav

Re: Markup problem

2022-05-30 Thread David Kastrup
David Kastrup writes: > Ralph Palmer writes: > >> Greetings - >> >> I appreciate the work everyone on this list does to help others. >> >> I'm trying to insert a paragraph of text below a score. I thought I used to >> be able to do that, but when I use the format I used to use, it doesn't >> wor

Re: Markup problem

2022-05-30 Thread Valentin Petzel
Hello Ralph, Lilypond does have word wrapping and justification, but it does not have hyphenation. So Lilypond will only break between markups (or if using wordwrap-string at whitespaces of the single string argument). Cheers, Valentin Am Montag, 30. Mai 2022, 19:34:31 CEST schrieb Ralph Palme

Re: Markup problem

2022-05-30 Thread David Kastrup
Ralph Palmer writes: > Greetings - > > I appreciate the work everyone on this list does to help others. > > I'm trying to insert a paragraph of text below a score. I thought I used to > be able to do that, but when I use the format I used to use, it doesn't > work. I'm attaching the .ly and the .

Re: Markup problem

2022-02-13 Thread David Kastrup
Rip _Mus writes: > Good morning\evening to everyone, > attached a little problem of mine, please let me understand (and thanks a > lot to all users that helped me with the stencil definition, maybe I forgot > to answer!): > > why, after the score, the second markup goes directly on the other page

Re: Markup problem

2022-02-13 Thread Rip _Mus
Thank you! I would like to avoid lilypond-book, because I only need to manage performance notes which, if they are extended, need to be spread over several pages automatically. The snippet works well! Rip_Mus Il giorno dom 13 feb 2022 alle ore 11:48 Lukas-Fabian Moser ha scritto: > Hi, > > Am 1

Re: Markup problem

2022-02-13 Thread Michael Gerdau
Am 13.02.2022 um 11:35 schrieb Rip _Mus: Good morning\evening to everyone, attached a little problem of mine, please let me understand (and thanks a lot to all users that helped me with the stencil definition, maybe I forgot to answer!): why, after the score, the second markup goes directly o

Re: Markup problem

2022-02-13 Thread Lukas-Fabian Moser
Hi, Am 13.02.22 um 11:35 schrieb Rip _Mus: Good morning\evening to everyone, attached a little problem of mine, please let me understand (and thanks a lot to all users that helped me with the stencil definition, maybe I forgot to answer!): why, after the score, the second markup goes directl

Re: Markup functions and punctuation in lyrics

2021-11-06 Thread Fr. Samuel Springuel
I’ve done some work to clean up my code and also modified the interface to be fairly intuitive and non-intrusive. Hopefully I’ll have some time this week to integrate this into my project, but if anyone sees anything that could be improved, I’d love to hear about it. ✝✝

Re: Markup functions and punctuation in lyrics

2021-11-04 Thread Fr. Samuel Springuel
On Nov 2, 2021, at 11:26 PM, Aaron Hill wrote: > > Okay, would text replacement be viable as opposed to writing a bunch of > individual functions? That does sound nice. There would need to be some helper functions to handle the formatting issue that Jean pointed out, but I can get that mostly

Re: Markup functions and punctuation in lyrics

2021-11-03 Thread Jean Abou Samra
Le 03/11/2021 à 04:26, Aaron Hill a écrit : Okay, would text replacement be viable as opposed to writing a bunch of individual functions? feminine = #'(("man/woman" . "woman")    ("his/her" . "her")    ("he/she" . "she")) \markup \replace \feminine {   The man/woman, tightly clutching

Re: Markup functions and punctuation in lyrics

2021-11-02 Thread Aaron Hill
On 2021-11-02 2:56 pm, R. Padraic Springuel wrote: On Nov 2, 2021, at 1:00 PM, Aaron Hill wrote: Not sure if this was already suggested, but could you use something like this to concatenate arbitrary markup? I think that what you’re suggesting is in the spirit of what David was suggesting,

Re: Markup functions and punctuation in lyrics

2021-11-02 Thread R. Padraic Springuel
On Nov 2, 2021, at 1:00 PM, Aaron Hill wrote: > > Not sure if this was already suggested, but could you use something like this > to concatenate arbitrary markup? I think that what you’re suggesting is in the spirit of what David was suggesting, but I’m trying to reduce the input overhead at t

Re: Markup functions and punctuation in lyrics

2021-11-02 Thread Jean Abou Samra
Le 02/11/2021 à 16:23, R. Padraic Springuel a écrit : On Oct 31, 2021, at 6:02 PM, David Kastrup wrote: If the ugliness of juxtaposition is ok, you may use things like \,\man for concatenating stuff, too. What about event functions? Can a command which does the concatenation be written as

Re: Markup functions and punctuation in lyrics

2021-11-02 Thread Aaron Hill
On 2021-11-02 8:23 am, R. Padraic Springuel wrote: On Oct 31, 2021, at 6:02 PM, David Kastrup wrote: If the ugliness of juxtaposition is ok, you may use things like \,\man for concatenating stuff, too. Not sure if this was already suggested, but could you use something like this to concate

Re: Markup functions and punctuation in lyrics

2021-11-02 Thread R. Padraic Springuel
> On Oct 31, 2021, at 6:02 PM, David Kastrup wrote: > > If the ugliness of juxtaposition is ok, you may use things like > > \,\man > > for concatenating stuff, too. What about event functions? Can a command which does the concatenation be written as an event function so that the juxtaposit

Re: Markup functions and punctuation in lyrics

2021-10-31 Thread David Kastrup
"R. Padraic Springuel" writes: >> On Oct 18, 2021, at 5:57 PM, David Kastrup wrote: >> >> I'd lean towards defining \man like in the question and a function \maN >> that takes the following markup and concatenates it. That's viciously >> unclever but sometimes not having to worry whether the c

Re: Markup functions and punctuation in lyrics

2021-10-31 Thread R. Padraic Springuel
> On Oct 18, 2021, at 5:57 PM, David Kastrup wrote: > > I'd lean towards defining \man like in the question and a function \maN > that takes the following markup and concatenates it. That's viciously > unclever but sometimes not having to worry whether the computer gets > everything right is its

Re: Markup with long notes spacing

2021-10-25 Thread Erika Pirnes
What Aaron suggested seemed to work with the passage similar to the previous rit-a tempo example, but the stretching 8-notes problem arises elsewhere, like in the example below. \version "2.18.2" pocoaccel = \markup { \italic "poco accel." } common = { \override TextScript.extra-spacing-widt

Re: Markup with long notes spacing

2021-10-24 Thread Aaron Hill
On 2021-10-24 2:44 pm, Erika Pirnes wrote: Again, the issue is that using textLengthOn works well with score, but in the individual parts either the short notes get stretched weirdly (if I use textLengthOn with those) or markups above long notes are positioned on top of each other (if I don't use

Re: Markup with long notes spacing

2021-10-24 Thread Erika Pirnes
Actually, it seems that my previous solution with "hideNotes" and rests leads to collisions as well, and it also shifts down any dynamic markings below the staff, which is not a desirable effect. I'm grateful for any suggestions on how to solve the problem. Again, the issue is that using textLe

Re: Markup with long notes spacing

2021-10-24 Thread Erika Pirnes
I changed Paul's solution with "hideNotes" to use rests instead of notes, to avoid the warning for clashing note columns. Aaron's solution works well for the score, but my problem came up when I tried to write the individual parts. The updated example below illustrates the problem and my solutio

Re: Markup with long notes spacing

2021-10-24 Thread Aaron Hill
On 2021-10-24 10:56 am, Erika Pirnes wrote: I thought "textLenghtOn" would solve my problems but it seemingly just moves them somewhere else, here the other part (see first measure of the example). I also tried experimenting with "SpacingSpanner.base-shortest-duration" but it doesn't solve the pr

Re: Markup with long notes spacing

2021-10-24 Thread Erika Pirnes
Sure, using "hideNotes" to obtain better spacing is a cheat, but it works better than anything I tried. (I actually tried a similar thing but with spacer rests which did not produce the wanted result.) Thanks! Erika

Re: Markup with long notes spacing

2021-10-24 Thread Paul Hodges
It may be a cheat, but in that sort of situation I just add invisible notes to put the space where necessary. In your example I removed the TextLength directives and changed your "othernotes" to: othernotes = \relative c'{ e8 f g a g2 << c2 \\ { \hideNotes a8 a a a } >> b2 } The hidden quavers

Re: Markup functions and punctuation in lyrics

2021-10-18 Thread David Kastrup
Jean Abou Samra writes: > Le 18/10/2021 à 21:22, R. Padraic Springuel a écrit : >> I’m using some functions to allow me to select words in the lyrics >> of some hymns in a systematic way so that the same hymn can be used >> referring to one or more persons (and in some cases, either a man or >> a

Re: Markup functions and punctuation in lyrics

2021-10-18 Thread Jean Abou Samra
Le 18/10/2021 à 21:22, R. Padraic Springuel a écrit : I’m using some functions to allow me to select words in the lyrics of some hymns in a systematic way so that the same hymn can be used referring to one or more persons (and in some cases, either a man or a woman). These functions work just

Re: Markup in a variable

2021-04-29 Thread David Kastrup
Mark Probert writes: > You wrote: >> >> You have an extra pair of braces around your \markup. Consider: >> >> -- Aaron Hill > > Doh! Many thanks. Absolutely see it now It's an inviting fallacy to consider braces { } as just grouping, just like Scheme beginners tend to be tripped up by the eff

Re: Markup in a variable

2021-04-28 Thread Mark Probert
You wrote: > > You have an extra pair of braces around your \markup. Consider: > > -- Aaron Hill Doh! Many thanks. Absolutely see it now .. m.

Re: Markup in a variable

2021-04-28 Thread Aaron Hill
On 2021-04-28 10:43 pm, Mark Probert wrote: Hi, all. I'm getting myself confused. I have an include file -- foo.ily -- and I want to define different instrument names for later use, like altoSax = { \markup { \fontsize #-2 { Alto Saxophone \concat { E { \raise #0.5 \teeny \flat } tenorS

Re: markup-command boxing the real printed ink?

2021-04-21 Thread Valentin Petzel
> We don't need the actual dimensions I think, just the min/max of > horizontal and vertical skylines, respectively. Well yes, that’s what I mean by that. signature.asc Description: This is a digitally signed message part.

Re: markup-command boxing the real printed ink?

2021-04-21 Thread David Kastrup
Valentin Petzel writes: > Ah, I’m sorry, I might have misinterpretet what with-outline does. I thought > it just creates a stencil that prints a markup, but specifies the skylines of > a different markup. Sure. But the skylines don't fall from the sky. At least not in a manner that would not

Re: markup-command boxing the real printed ink?

2021-04-21 Thread Valentin Petzel
Ah, I’m sorry, I might have misinterpretet what with-outline does. I thought it just creates a stencil that prints a markup, but specifies the skylines of a different markup. So basically we would need a cc hook that creates a new Lazy_skyline_pair and calls interpret_stencil_for_skyline on tha

Re: markup-command boxing the real printed ink?

2021-04-21 Thread David Kastrup
Valentin Petzel writes: > Hm, I might have misunderstood Harm, I thought he was looking for a way to > actually determine the printed area of an arbitrary stencil. > > Still, I expect that this functionality cannot be easily used here due to > design and order of it. That's why I wrote that I

Re: markup-command boxing the real printed ink?

2021-04-21 Thread Valentin Petzel
Hm, I might have misunderstood Harm, I thought he was looking for a way to actually determine the printed area of an arbitrary stencil. Still, I expect that this functionality cannot be easily used here due to design and order of it. signature.asc Description: This is a digitally signed message

Re: markup-command boxing the real printed ink?

2021-04-20 Thread David Kastrup
Valentin Petzel writes: > Hm, you’re right. But if you replace this by something directly drawn with > PostScript commands, you’ll see that Lilypond does not have any idea about > what’s there. About what's *there*. Namely in images drawn by *user-written* PostScript code. > So I guess Lilyp

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Valentin Petzel
Hm, you’re right. But if you replace this by something directly drawn with PostScript commands, you’ll see that Lilypond does not have any idea about what’s there. So I guess Lilypond is able to handle stencil it knows very well. And yes, Skylines are a concept of Lilypond, but Lilypond does no

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Jean Abou Samra
Le 20/04/2021 à 16:59, Valentin Petzel a écrit : Hello David, That is a very different thing. with-outline simply tells the outputter to use a different stencil for calculating the skylines of a stencil. The problem here is that Lilypond relies on the stencil basically telling it’s extent. The

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Valentin Petzel
Hello David, That is a very different thing. with-outline simply tells the outputter to use a different stencil for calculating the skylines of a stencil. The problem here is that Lilypond relies on the stencil basically telling it’s extent. The problem Harm has is that this extent might be sma

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Thomas Morley
Am Di., 20. Apr. 2021 um 16:39 Uhr schrieb Thomas Morley : > > Am Di., 20. Apr. 2021 um 15:45 Uhr schrieb David Kastrup : > > > > Valentin Petzel writes: > > > > > Hello Harm, > > > > > > This is probably quite hard to do. Basically the problem here is that > > > Lilypond does not in fact know the

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Thomas Morley
Am Di., 20. Apr. 2021 um 15:45 Uhr schrieb David Kastrup : > > Valentin Petzel writes: > > > Hello Harm, > > > > This is probably quite hard to do. Basically the problem here is that > > Lilypond does not in fact know the actual extent of the stencil. So to > > get that you’d somehow need to draw

Re: markup-command boxing the real printed ink?

2021-04-20 Thread David Kastrup
Valentin Petzel writes: > Hello Harm, > > This is probably quite hard to do. Basically the problem here is that > Lilypond does not in fact know the actual extent of the stencil. So to > get that you’d somehow need to draw the stencil. So eighter you’d need > to implement a custom drawing routine

Re: markup-command boxing the real printed ink?

2021-04-20 Thread Valentin Petzel
Hello Harm, This is probably quite hard to do. Basically the problem here is that Lilypond does not in fact know the actual extent of the stencil. So to get that you’d somehow need to draw the stencil. So eighter you’d need to implement a custom drawing routine for "drawing" stencils within Lil

RE: Markup in scheme

2020-11-01 Thread John Schlomann
Thank you, Martin and Harm. You gave me the understanding I needed. John > -Original Message- > From: Thomas Morley [mailto:thomasmorle...@gmail.com] > Sent: Saturday, October 31, 2020 1:47 PM > To: John Schlomann > Cc: lilypond-user > Subject: Re: Markup in scheme &g

  1   2   3   4   5   6   >