Re: wider bars

2025-07-05 Thread Valentin Petzel
Hello Stefan, you could try to use `\markLengthOn` as explained here: https://lilypond.org/doc/v2.25/Documentation/learning/the-textlengthon-command[1] Cheers, Tina [1] https://lilypond.org/doc/v2.25/Documentation/learning/the-textlengthon-command signature.asc Description: This is a

Re: Frescobaldi Linux Mint install issue… again

2025-07-02 Thread Valentin Petzel
Hi Simon, > ~$ ls -l /usr/local/share/alsa/alsa.conf > ls: cannot access '/usr/local/share/alsa/alsa.conf': No such file or > directory your alsa.conf is most likely in `/usr/share/alsa/alsa.conf`. `/usr/local` is typically used for stuff not coming from the standard software management of your

Re: Frescobaldi Linux Mint install issue… again

2025-06-25 Thread Valentin Petzel
> Hi everyone, Hi Simon, > = > ~$ frescobaldi > qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to > load the Qt xcb platform plugin. > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even > though it was found. > This applicatio

Re: Lyrics: vertically stacking alternative words

2025-06-24 Thread Valentin Petzel
Hi Fred, > I would have preferred the latter, but it doesn’t seem possible to attach > punctuation to a vcenter construction without playing merry hob with the > spacing and alignment – but I suspect that I’ll be the only one to notice. It is not too hard. You probably want to keep the lines righ

Re: Grob transformers

2025-06-19 Thread Valentin Petzel
> Well, lambdas are an *essential* feature of Scheme and unavoidable if > you want to do deeper modifications in LilyPond. In other words, they > *are* a requirement in some circumstances and can't be avoided. Not *necessarily*, you can actually replace lambda expressions by `(define (...) ...)`

Grob transformers

2025-06-19 Thread Valentin Petzel
Hello Pondmates! In Lilypond we have this wonderful but weird sugar function `grob- transformer`. While this thing is nice it is also a bit awkward. For one thing it requires specification of *what* is transformed (for else it does not know that information. For another thing it adds a lot of sc

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 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: Getting custom property from context in music function

2025-06-12 Thread Valentin Petzel
Hello Steven, > Hi, > > I'm trying to create a script to automate certain things (setting > instrument name, default clef, transposition) based on a custom property > 'instrument' that is set when creating a new staff. I'm having trouble > retrieving that property when generating the music for th

Re: \improvisationOn on \TabStaff with \tabFullNotation renders detached note heads on 2.24.4 Linux

2025-05-29 Thread Valentin Petzel
Hello Viktor, > When I type: > > ... > > I get detached note heads (see attachment). > > Please help. The reason for this is that TabNoteHeads defaults to a stem attachment point that is centered and a bit below the head. So you just need to change the stem attachment point: %%% \version "

Re: Frescobaldi editing window

2025-05-27 Thread Valentin Petzel
Hello Ralph, > Greetings, and thanks for all your help! > > I'm using Frescobaldi. Somehow, I moved the score off the normal > Frescobaldi screen, and now I can't figure out how to get it back. My > normal setup has been for a split screen with three parts: my coding on the > left above the LilyP

Re: Connect final bar line in ChoirStaff

2025-05-19 Thread Valentin Petzel
Hi Helge, hi Kieren, > 1. \consists Span_bar_engraver to the ChoirStaff (not the Staff!) > 2. \omit it right off the top > 3. \undo the \omit just before the final barline alternatively consist Span_bar_engraver to ChoirStaff, default Staff.BarLine.allow-span-bar = ##f and override Staff.BarLine

Re: Is it possible to get consistent leading in lyrics?

2025-05-15 Thread Valentin Petzel
Hello Fred, > Does LilyPond use the concept of a baseline? in fact in some sense Lilypond is doing exactly that. The distance between two Lyrics contexts is goverened by VerticalAxisGroup.nonstaff-nonstaff-spacing of the upper context. Thi spacing itself is an alist of #'((basic-dist

Re: Tex editor compiling .lytex

2025-05-14 Thread Valentin Petzel
Hello Lucas, > The compiler throws errors of "The score doesn't contain any music", even > using the "nofragment" argument of the package's call. judging by the log file > /bin/sh: -c: line 1: unexpected EOF while looking for matching `"' the lilypond command executed leads to unmatching quotes

Re: Tex editor compiling .lytex

2025-05-11 Thread Valentin Petzel
> Hello! I'm starting a task that requires LaTeX, so I've decided to use the > lilypond-book. I've managed to successfully use the command and compile all > examples shown in the learning material. Now, I've found myself in a tricky > spot: I'd like to use a Tex editor directly on the .lytex file t

Re: Help Needed: Aligning Bar Widths in Multi-Measure Systems

2025-05-06 Thread Valentin Petzel
Hi Kieren, hi Peter, > Here’s the output on my end (v2.25.24, which may be the difference?): The issue here is that `proportionalNotationDuration` is expected to be a moment on 2.24, so this should be proportionalNotationDuration = #(ly:make-moment 1/16) Cheers, Tina signature.asc Description

Re: RFC: Mechanism for splitting/joining autobeams

2025-05-06 Thread Valentin Petzel
Hi Lukas, > Example: If for some reason, the manuscript I'm copying has exceptional > beams of 4+2+2 instead of the usual 4+4 as in the second bar of > from Scarlatti's Partimenti (and I want to reproduce that beaming > faithfully), I have do to: > > c8 c' b a e[ e'] cis'[ d'] If this beaming is

Re: Selective ambitus in staff context

2025-05-04 Thread Valentin Petzel
Hello Oliver, > is there a way to include some voices into the calculation of the ambitus > engraver for an entire staff whilst excluding others, be it named or throw away > voices? you could use a custom context for selecting the voices: %%% \layout { \context { \name "AmbitusContainer"

Re: Extending markupWithHeaders from LSR 467

2025-04-30 Thread Valentin Petzel
Hello David, > But there’s got to be a way to access these properties, right? Or is the \book > (\bookpart, \score) context just not available? I think the book header is not available at time of markup evaluation. What is available is the paper-block via layout. So what we could do is %%% #(

Re: NoteColumn.horizontal-shift not working

2025-04-25 Thread Valentin Petzel
Hello Robert, > Why NoteColumn.horizontal-shift is not working here as usual? If you look here https://lilypond.org/doc/v2.24/Documentation/internals/ note_002dcolumn_002dinterface[1] you will see that `horizontahl-shift` is used only to determine the direction to shift and which note to shif

Re: Help Request: Overlaying Custom Text (e.g., Roman Numerals) Near Chord Names

2025-04-24 Thread Valentin Petzel
Hello Peter, > 🧩 The Key Challenge > • I want to insert each label directly in sync with the chord symbol. > • Ideally, I’d like to overlay a semi-transparent, large, colored text > (e.g., in red at 50% opacity). > • The chord symbol should remain fully visible and untouched, and the > overlay sho

Re: sustainOff moved horizontally

2025-04-24 Thread Valentin Petzel
Hi Robert, > I want to move a \sustainOff horizontally but cannot find the way The problem here is that `\sustainOff` is a so called post event, that is, a music event that is written after a note and then attached to this note. Else this would need to be a music function, so instead of

Re: Lilypond DDSB Oboarding.

2025-04-15 Thread Valentin Petzel
Hi Rajapreet, > Thanks. Is there any privacy policy? There is not, as no data is collected. signature.asc Description: This is a digitally signed message part.

Re: Lilypond DDSB Oboarding.

2025-04-14 Thread Valentin Petzel
d standards or frameworks (e.g. SOC1, SOC2, > MFIPPA, BILL 194, GDPR, CCPA, COPPA, etc.)? Not relevant, since no data is collected. I hope this has helped you answer your questions. Kind regards, Valentin Petzel signature.asc Description: This is a digitally signed message part.

Re: Inquiry: Adding Lyrics Below ChordGrid Without Melody Staves

2025-04-14 Thread Valentin Petzel
Hello Peter, hello Knute, > Thank you so much, Knute, for this excellent suggestion! > > Using Devnull to host the melody and align lyrics without displaying the > actual notes is exactly the kind of solution I was hoping for. This setup > gives me the clean, rhythm-aware chord grid layout I want

Re: Aleatoric section: how to desync vertical alignment and barlines?

2025-04-14 Thread Valentin Petzel
Hello James, not sure what you want to see exactly, but maybe using something like this could do the trick: %%% #(define-markup-command (box-outline layout props arg) (markup?) #:properties ((thickness 1) (font-size 0) (box-padding 0.2)) (let* ((th (* (ly:ou

Re: Notes en lyrics left justified

2025-03-21 Thread Valentin Petzel
Hello Ad, what you want is \paper { ragged-right = ##t } the issue with this is that it will shorten the staff. So use \layout { \context { \Staff \override StaffSymbol.width = #(lambda (grob) (ly:output-def-lookup (ly:grob-layout grob) 'line-width)) } } to enforce the st

Re: Chord Symbols below the staff

2025-03-20 Thread Valentin Petzel
Hello Steve, > I'm having an issue with most of the chord symbols (except for the No > Chord) being displayed below the staff line. Obviously I've messed > something up but I have not been able to figure it out. If someone could > please take a look and point me in the right direction, I would a

Re: BalloonText help

2025-02-21 Thread Valentin Petzel
Hello all, > Hello, > > Use \balloonGrobText before a note or -\balloonText after a note within > chords. > Here you use the latter but not within a chord. > > You could write > 4 > > Or > \balloonGrobText #'NoteHead #'(-2 . -2) \markup {\bold "crotchet in > original"} c4 > > Kind regards,

Re: Docs unclear, fonts, v. 2.24

2025-02-15 Thread Valentin Petzel
Hello David, I agree that documentation is a bit sparse in some parts, and I do think that the design of having to tell the font tree the current scale to be a bit weird (as far as I see this was necessary as using set-global-staff-size would directly adjust scale of the fonts. But note that t

Re: \set Score.proportionalNotationDuration warning on LilyPond 2.25.23

2025-02-09 Thread Valentin Petzel
Hello Paolo, > Given that, as Valentin noted, a new property has been introduced that > allows code to be compiled with the old function, what is the point of > exposing it to the user if it then corresponds to an API break? > If it had been treated as a deprecated property I could have simply ign

Re: Oly says "No CAIRO backend"

2025-02-09 Thread Valentin Petzel
Hello Raphael, > I have raised a bug report at Ubuntu. This is not going to get you anywhere I’m afraid. The feature missing is not a bug, but an active decision to not include an experimental feature. Even if you were to convince the Debian maintainers that this feature is so crucial it has t

Re: \set Score.proportionalNotationDuration warning on LilyPond 2.25.23

2025-02-08 Thread Valentin Petzel
Hello Saul, > The deprecated > properties provide a way for convert-ly to modify code so it still compiles > without requiring automatic conversions applied to potentially arbitrary > Scheme code. The deprecated syntax is in fact automatically converted. I just don’t get how adding a new propert

Re: \set Score.proportionalNotationDuration warning on LilyPond 2.25.23

2025-02-08 Thread Valentin Petzel
Hello Saul, > I don't want to speak for Dan, but I believe the objective is to get user > code moved over to actually using exact rationals rather than moments for > these properties, not just to allow the use of exact rationals in addition > to moments. This is not what I talked about. My point

Re: \set Score.proportionalNotationDuration warning on LilyPond 2.25.23

2025-02-08 Thread Valentin Petzel
Hello Paolo, > Why has forward compatibility not been ensured for this function? The relevant merge request is this one: https://gitlab.com/lilypond/lilypond/-/merge_requests/2546 As you can see this one also introduces a compatibilty property `proportionalNotationDurationAsMoment` and a conve

Re: \set Score.proportionalNotationDuration warning on LilyPond 2.25.23

2025-02-08 Thread Valentin Petzel
Hello Paolo, > Is there a way to make this snippet compatible with all LilyPond > versions starting from 2.19.84? You could do something like this ``` requireVersion = #(define-scheme-function (version then else) (string? scheme? scheme?) (define (list< x y) (if (null? x) #f

Re: Oly says "No CAIRO backend"

2025-02-08 Thread Valentin Petzel
Hello Raphael, > I am on Xubuntu 24.04. Which Cairo package am I missing? I suppose you are using the system package for Lilypond? The cairo backend is still experimental, so the Debian maintainers might have configured the build to not use cairo. Try using the binary releases from the Lily

Re: Positioning a "Fine" mark

2025-02-08 Thread Valentin Petzel
Hello David, > How can I reposition the word "Fine" at the end of a piece? In the > particular case I want to alter, I wish "Fine" to appear above the > staff, not below it. try this: ``` { 1 \override Score.JumpScript.direction = #UP \fine 1 } ``` Cheers, Valentin signature.asc Descr

Re: Linux OS

2025-02-03 Thread Valentin Petzel
Hello Brian, > Hello. I downloaded Lilypond 2.24.4 and Frescobaldi 3.3.0 onto My Mac > Monterey OS system and had frustrating results. I plan to get a > laptop with a Linux OS and wondered if someone could advise a LInux > distro that has these packages or something similar. > > Thanks, > > Br

Re: Analysis brackets above AND below the staff

2025-02-02 Thread Valentin Petzel
Hi Ivan, > I imagine, somewhere I need to add something like this command: > > \override HorizontalBracket.direction = #UP > > but I cannot figure out exactly what command should be used and where. \override changes the defaults of the context, so all grobs created at the same time will h

Re: Increase pace after \break

2025-02-02 Thread Valentin Petzel
Hi, > It would be ideal if I could shorten the staff before the \break > using something like ragged-right = ##t maybe something like this: ``` { 4 4 4 4 | 4 4 4 4 | \noBreak \cadenzaOn\stopStaff \textLengthOn s-\markup\hspace #25 \textLengthOff \startStaff \cadenzaOff \break 4 4

Re: Align lyrics under the stem, not the notehead

2025-01-30 Thread Valentin Petzel
Hello Stu, Am Donnerstag, 30. Jänner 2025, 18:13:42 Mitteleuropäische Normalzeit schrieben Sie: > I processed the content and the result doesn't have the sticking under the stems > of the notes. > > The first bar is slightly to the left of the stem, and the second bar is to the > right of the

Re: Align lyrics under the stem, not the notehead

2025-01-29 Thread Valentin Petzel
Hello Stu, > I sometimes add sticking to drum scores to assist readers by showing the > preferred hand for each stroke. > > I'm aware of the ability to change the horizontal position of lyrics > using '\override LyricText.self-alignment-X'. > > When I use '= #LEFT', the lyric is under the notehe

Re: key and/or time signature at end of line

2025-01-28 Thread Valentin Petzel
> It is the default behavior, lilypond compresses the whole line. You can > see it in the example below. I'm still confused about what the question > is, but perhaps a handwritten example or scan from another score would help. An even more obvious example: ``` { \repeat unfold 32 { 8 \noBreak

Re: How can I dock the log-window in Frescobaldi?

2025-01-27 Thread Valentin Petzel
Hi Ben > After a clean install on Linux/Fedora, Frescobaldi shows on the left > side the editor window and below that window, the log window. > By accident, I undocked the log window. And now, when engraving a score > the log is shown in a pop-up window. > > How can I restore the original view, i

Re: Usings tag to optionally hide the staff yet still retain lyric alignment

2025-01-26 Thread Valentin Petzel
Hello Walt, > Here is a MWE. Not quite minimal ... > The next desired results should look the same except that only chords > and lyrics are to be shown (don't blame me - that's what they want the > rhythm guys). > > So my though was to use tag for the staff notes. And then use NullVoice > to a

Re: Adding a slur to a turn

2025-01-25 Thread Valentin Petzel
Hello David, > turnsh = { \once \set suggestAccidentals = ##t > \once \override AccidentalSuggestion.font-size = -3 > \once \override AccidentalSuggestion.script-priority = -1 > \once \override AccidentalSuggestion.avoid-slur = #'inside > \once \hideNotes } > > { f''8-.-> d'-> \after 4. {

Re: \applyContext and \override in a layout block: override value not visible at the score beginning

2025-01-18 Thread Valentin Petzel
Hello David, > Neither surprising nor an edge case. I would say it is quite surprising for most users, and definitely an edge case. It is essentially a case of `\applyContext` silently behaving differently when the Voice context was not created yet. And even you are getting this wrong: > That

Re: Convert chord mode into multi-voice mode

2025-01-01 Thread Valentin Petzel
Hello Frédéric, hello all, > I would use a little perl or python script to do this, not lilypond. > This is just the sort of work that perl was intended for - munging text > files. That is fine for Linux/Mac users, on Windows it may be more > problematical. I don't touch Windows, so although I k

Re: TabStaff. Connect arpeggios.

2024-12-26 Thread Valentin Petzel
Hello, Neither Staff nor TabStaff will connect Arpeggios. In your example it looks like that since the arpeggio line aligns perfectly to normal staff line spacing, making the arpeggios overlap perfectly. You can see that these are in fact two separate arpeggios by simply removing notes in betw

Re: how to modify `afterGraceFraction` mid-score?

2024-12-19 Thread Valentin Petzel
Hello Werner, > In full scores it is sometimes necessary to adjust the value of > `afterGraceFraction` so that it harmonizes with other notes and > rhythms. However, saying > > ``` > afterGraceFraction = > ``` > > only works at top-level according to the documentation. How can I > change this

Re: Creating ties that do not avoid note flags

2024-12-18 Thread Valentin Petzel
Hello, > In LilyPond, the default setting of ties avoids the collision between > ties and note flags. However I do not like how it looks and want to > allow ties to collide with flags, so what is the simplest way to do this? a quick way could be to tell Lilypond that the flag does not have any wi

Re: Basic Scheme Markdown Function

2024-12-07 Thread Valentin Petzel
Am Freitag, 6. Dezember 2024, 15:40:53 MEZ schrieb Steph Phillips: > Hi all, this one's probably a simple solution, but I'm a little fuzzy on > how to implement custom Scheme functions still. > > I'm working on a musical theater score, and there are lots of instrument > changes formatted like this

Re: Message: "Note: compilation failed and \version outdated"

2024-11-20 Thread Valentin Petzel
Hello, Am Dienstag, 19. November 2024, 18:05:00 MEZ schrieb Stu McKenzie via LilyPond User List: > The above is the original post that I sent. > My original score was complicated, so I came up with the post that you > replied to (with 1 error and the message). I’m well aware of that. But your or

Re: How to break a loop when using Scheme in LilyPond?

2024-11-19 Thread Valentin Petzel
Hello, > However, in Scheme, returning a value inside a loop is troublesome. I > must first break the loop and then return the value. So what is the > correct way of doing this? Scheme does not really have loops. At least not in the sense you know it from procedural languages. `for-each` is naug

Re: Message: "Note: compilation failed and \version outdated"

2024-11-19 Thread Valentin Petzel
Hello Stu, here you see two messages: One is that your file did fail to compile. The other one is a note that the version string is older than your Lilypond version, and a suggestion that this might be the cause. From your messages you are clearly compiling a 2.25.18 file with 2.25.21, so this

Re: Automatically set Hairpin.to-barline

2024-11-19 Thread Valentin Petzel
Am Dienstag, 19. November 2024, 15:22:16 MEZ schrieb Mark Knoop: > This works, but crashes with broken hairpins: Hello Mark, the issue here is not the break, but the spanner ending on a multimeasure rest, which causes in the hairpin not having a right bound. The reason for this is that the engr

Re: Automatically set Hairpin.to-barline

2024-11-19 Thread Valentin Petzel
Am Dienstag, 19. November 2024, 14:41:03 MEZ schrieb Thomas Morley: > > Though possibly this would need > > > > \override Hairpin.to-barline = > > > > #(ly:make-unpure-pure-container > > > >(lambda (grob) > > > > (let* ((right-bound (ly:spanner-bound grob RI

Re: define-void-function

2024-10-01 Thread Valentin Petzel
Am Mittwoch, 2. Oktober 2024, 00:04:17 MESZ schrieb Walt North: > title = \markup {#name} # tells the parser to interpret the following expression as scheme expression. Scheme does not really care about the symbol }, so if you enter #name} the parser will interpret the } as part of the symb

Re: define-void-function

2024-10-01 Thread Valentin Petzel
Hello Walt, the type of function tells the parser what return type it expects from a function evaluation. A music function has to return music (which means that the parser will know before evaluation that some music would be there), a scheme function any type of scheme object. A void function i

Re: Change text font size globally

2024-09-01 Thread Valentin Petzel
> > \paper { > > > > text-font-defaults = #(acons 'font-size 6 text-font-defaults) > > > > } > > > > This one has the effect of effectively prefixing any markup with > > \fontsize #6 (or whatever). It will affect a lot of stuff though. > > > It would be nice to have this at least as a snipp

Re: Change text font size globally

2024-08-27 Thread Valentin Petzel
Am Dienstag, 27. August 2024, 08:45:17 MESZ schrieb Werner LEMBERG: > Setting the default staff size is straightforward, but I no longer can > remember how to set the default text size in the 2.24.x series (and I > didn't succeed in looking it up in the `lilypond-user` archive). You can at the ver

Re: Help with scheme

2024-08-22 Thread Valentin Petzel
Hi Michael, the problematic line in question is (#t (define *use-gamba-clefs* #t)) If you use set! instead of define it will work. The problem here lies probably in the switch from guile 1.8 to guile 2. I suppose in that the context of case changed somehow to not allow definitions. Keep in mi

Re: Song with repeat and partial

2024-08-10 Thread Valentin Petzel
> I was hoping there was a neat trick that did not involve stubs. But if > that is the "traditional" way of doing things I mean, what du you want to see in the end? This sort of notation is very common in vocal music. signature.asc Description: This is a digitally signed message part.

Re: Song with repeat and partial

2024-08-09 Thread Valentin Petzel
> I have a song with an intro, several stanzas, and a refrain. Each stanza > starts on the last beat of the measure.See the attached MWE. > > Is there a neat way of avoiding having a repeat bar in the middle of a > measure while preserving the stanza numbers is their proper places? I’m a bit con

Re: Clarification on the GNU Free Documentation License (GFDL) Applicability

2024-08-08 Thread Valentin Petzel
Hello Peter, > ### My Concerns > > 1. **Scope of Source Code Disclosure**: >- According to the GFDL, if I use LilyPond and LaTeX to write a book and > sell it on Amazon, am I required to disclose the entire LaTeX source code > of the book, or just the parts that include LilyPond code? For ins

Re: Simile/Percent Repeat + Volta with Alternative

2024-08-08 Thread Valentin Petzel
Hello Lukas, the reason is that you are removing the time signature, but not the \after 4*5 before that. \after is a function that takes 3 arguments: The last one is the actual music, the middle one is what you want to put there delayed and the first one is by how much you want to delay it. So

Re: Chords above staff

2024-08-08 Thread Valentin Petzel
Hello Walt, the reason is that by default contexts will be ordered in order of creation. So your intro creates the Staff, and then your first Verse will create first a ChordNames and then a Lyrics context. You can use the alignAboveContext context property to change this default ordering: \ve

Re: Multiple fingering and glides

2024-08-07 Thread Valentin Petzel
Am Donnerstag, 1. August 2024, 22:36:40 MESZ schrieb Fennel: > Hi all, > > I'm working on a project that involves multiple fingerings for each note, > and shift lines or glides between some notes. Since lilypond will only > engrave glides between notes with the same fingering, I'm using finger 5 t

Re: Simile/Percent Repeat + Volta with Alternative

2024-08-07 Thread Valentin Petzel
Am Mittwoch, 7. August 2024, 06:53:02 MESZ schrieb Lucas Cavalcanti: > Hello. I'm migrating from Guitar Pro to Lilypond and I'm trying to > replicate something that I've always done in my scores and lead sheets: > [image: image.png] > I'm having a bit of a pickle while trying to recreate this score

Re: Alternative small note in brackets?

2024-08-04 Thread Valentin Petzel
How about this: \new Staff << {b,} \new CueVoice { \shiftOff\stemUp \override Parentheses.font-size = #2 \override Parentheses.stencils = #(lambda (grob) (list (grob-interpret-markup grob (markup #:vcenter #:center-align #:bold "[")) (grob-interpret-markup

Re: Vertically align objects of same class?

2024-08-04 Thread Valentin Petzel
Am Sonntag, 21. Juli 2024, 08:12:07 MESZ schrieb Fennel: > Valentino, > > Your function seems to not work for polyphonic passages as in the example > below. Is there a fix for the function, would using \voiceOne and \voiceTwo > explicitly for this polyphonic context make a difference? > Hello Fe

Cross-Staff stems with note collisions

2024-08-04 Thread Valentin Petzel
Hello, Cross-staff stems do currently work by simply connecting to any stem that is on the correct side and matches the positions. This often does not work out when we have shifted note columns due to collision. In such cases we’d need to do manual positioning. So I’ve written a small engraver

Re: Vertically align objects of same class?

2024-07-15 Thread Valentin Petzel
Adapting my previous code to work with spanners: % #(define (outside-staff-collecting-engraver context) (let* ((span_up #f) (span_down #f)) (make-engraver ((initialize engraver) (set! span_up (ly:engraver-make-grob engraver 'TextSpanner '())) (ly:grob-set-property! span_up

Re: Vertically align objects of same class?

2024-07-14 Thread Valentin Petzel
Hello Fennel, That will not work out easily. The horizontal bracket, meaning it is printed to encompass certain NoteColumns. But you are not even creating notes, but simply skipping. Thus there are no NoteColumns to encompass. So what you’d need to do is to replace the skips by notes: brackets

Re: Slurs across staves, reach both notes

2024-07-12 Thread Valentin Petzel
Hello William, this works out totally fine. It’s just that with that very tight spacing Lilypond’s merit algorithm cannot have the Slur go from head to head. Say if we drastically increase the demerit for distance to the edge points: %%% \score { << \new Staff = "a" { \override Slur

Re: scheme: formula instead of value

2024-07-08 Thread Valentin Petzel
Hello Klaus, as the expression is quoted it is not evaluated. Rather use quasiquoting to allow evaluation of parts of the expression: `(baseline-skip . ,(* 0.5 4.0)) (important to have ` instead of ') Cheers, Valentin Am Montag, 8. Juli 2024, 22:39:10 MESZ schrieb K. Blum: > Dear LilyPonders,

Re: French lyrics and accented characters

2024-07-04 Thread Valentin Petzel
Am Donnerstag, 4. Juli 2024, 18:52:22 MESZ schrieb Werner LEMBERG: > >> Certainly! However, this shouldn't become part of LilyPond IMHO; > >> it's opening a can of worms since all those sets are essentially > >> open-ended – "why is character 'fronz with grmpf above' not part of > >> this or that

Re: French lyrics and accented characters

2024-07-04 Thread Valentin Petzel
Am Donnerstag, 4. Juli 2024, 18:41:56 MESZ schrieb Werner LEMBERG: > > And so while I do agree that if the problem can be solved before > > Lilypond actually matter, then great. But if this does not work out > > to you, then nothings wrong with getting Lilypond to help you out. > > > Certainly!

Re: French lyrics and accented characters

2024-07-04 Thread Valentin Petzel
Am Donnerstag, 4. Juli 2024, 17:48:12 MESZ schrieb Jean Abou Samra: > Anyhow, I persist in my opinion that facilitating the input of accented > characters is best done at a level different than LilyPond. I do agree only partially. Yes, if we reduce the problem of special characters to input then

Re: French lyrics and accented characters

2024-07-03 Thread Valentin Petzel
/-/issues/6725 (we can do this on a global level, but not on a grob level). Am Mittwoch, 3. Juli 2024, 14:47:09 MESZ schrieb Valentin Petzel: > Also for Lyrics you can then do > > \score { > \new Lyrics \with { > \override LyricText.before-line-breaking = >

Re: French lyrics and accented characters

2024-07-03 Thread Valentin Petzel
ittwoch, 3. Juli 2024, 14:31:28 MESZ schrieb Valentin Petzel: > Hello, > > I’ve taken some time to create a function for decoding html-style entities. > So instead of entering > > \markup { á è ç â ... } > > you can do > > \markup\htmldecode { á è ç â ... } > &g

Re: French lyrics and accented characters

2024-07-03 Thread Valentin Petzel
Hello, I’ve taken some time to create a function for decoding html-style entities. So instead of entering \markup { á è ç â ... } you can do \markup\htmldecode { á è ç â ... } or \markup\htmldecode { "á" "è" "ç" "â" ... } or \markup\htmldecode { &:xE1; &:xE8; &:xE7; &:xE2; ... } (I’ve add

Re: syntax for \afterGrace

2024-07-01 Thread Valentin Petzel
Hello Paul, >\afterGrace ees2~\startTrillSpan ees1 { d16( ees) } correct would be ees2~\startTrillSpan \afterGrace ees1 { d16( ees) } or \afterGrace { ees2~\startTrillSpan ees1 } { d16( ees) } (note that the latter one may have weird implications depending on afterGraceFraction, e.g.: \

Re: "Lyrics" for percussion instruments (agogo bells)

2024-07-01 Thread Valentin Petzel
Hello Phil, when posting here please post a full and minimal working example. Else it is much harder for us to help you. With your definitions doing \new DrumStaff \agogo \addlyrics \words works quite fine on my end. So we’d need to know what you’re actually doing to be able to understand your

Re: Semitone mark

2024-07-01 Thread Valentin Petzel
Hello Joei, Please keep the Discussion on the list unless there is good reason not to. Lilypond has no intention of supplying implementations for each way of notating things, especially when there is no clear standard for that. But due to the amount of control Lilypond offers it is quite easy t

Re: Semitone mark

2024-07-01 Thread Valentin Petzel
Am Mittwoch, 12. Juni 2024, 09:53:51 MESZ schrieb Johannes Roeßler: > Hi Group, > > is there a way to mark one tone and semitone steps in Lilypond? Haven't > found anything on the web, > maybe I am using the wrong English terms? > > Best regards > Joei Hi Joei, Maybe checkout this: https://mus

Re: Output lilypond file with variables/functions applied?

2024-07-01 Thread Valentin Petzel
Hello Dimitri, > My use case is that I want to manually change the accidentals of some > specific pitches that were re-pitched using transpose for better > readability. It seems to me that you are trying to use enharmonics to avoid some unnatural transposed accidentals. Have a look at this snipp

Re: Vertically align objects of same class?

2024-06-27 Thread Valentin Petzel
Hello Werner, hello Fennel, > As far as I can see, LilyPond doesn't provide a 'container line' as > you imagine. I'm quite sure that this can be programmed in Scheme, > but someone™ has to do that... But maybe a different, simpler > solution can be found; let's see what other guys come up with.

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 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 situations a > tweak-l

Re: Two adjacent clefs

2024-06-10 Thread Valentin Petzel
> Thank you for this. One question: is the second clef the size of a "change > clef" ? The reason I chose LSR 792 over 956 is the size of the second clef. Yes. See for example \relative c' { %% Start with a bass clef : \clef bass %% Use a hidden grace note: \once\hideNotes\grace c64

Re: 2.25.16 D.S. al Fine

2024-06-10 Thread Valentin Petzel
> The word "segno" in Italian really just means "sign" - any sign. > English-speaking musicians may assume that it always means the specific > slashed-S sign often used for musical repeats, but even in the musical > context that assumption is not always true because of the possibility of > more tha

Re: Two adjacent clefs

2024-06-10 Thread Valentin Petzel
> and this is the rather hacky one using hidden grace notes - my > searching skills are sadly lacking evidently :( > > Richard Trust me, the other one is even more hacky ... It essentially fakes the appearance of the real clef and draws a new clef glyph into the TimeSignature grob. Did a draft

Re: Two adjacent clefs

2024-06-09 Thread Valentin Petzel
Hello Richard, usually for this I’d simply use grace notes to create a timestep separation between two clefs: { \clef bass \once\hideNotes\grace c64 \once\override Staff.Clef.X-extent = #'(1.5 . 2) \clef treble 1 } But then it would actually be quite easy to have this done properly by

Re: Regular Polygons

2024-06-08 Thread Valentin Petzel
Hello Aaron, I would think there is little actual need to specify the size as parameter. After all, you have the font-size proportion, using which you can control size by \fontsize ... You’d simply need to replace size by (magstep font-size). Alternatively if you want to match text you could i

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: 6 and 8 string tab

2024-06-06 Thread Valentin Petzel
Hello Walt, rather than switching between staves with different tunings, why not simply hide Staff lines if not required? Use \stopStaff and \startStaff to change line positions. See the appended file for details. Cheers, Valentin Am Donnerstag, 6. Juni 2024, 19:25:45 MESZ schrieb Walt North:

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, as long as

Re: Scheme help

2024-05-24 Thread Valentin Petzel
Hello Kevin, When you call a music expression like \music Lilypond will allways pass a copy of that music object. Thus some music functions assume it is safe to modify the original music object. So when you do \keepWithTag ... #music you will first remove everything tagged without v1, then eve

  1   2   3   4   5   6   7   8   >