Re: Change stem direction based on position of note in staff?

2024-09-04 Thread Lukas-Fabian Moser
Hi Stefano, Am 01.09.24 um 22:29 schrieb Stefano Antonelli: On Sun, 2024-09-01 at 13:44 +0200, Lukas-Fabian Moser wrote: So you want to enter (for instance) the Cr part as a separate LilyPond voice? In this case something like 1 R1 1 R1 or even \breve \breve? (The point being is that you

Re: Change text font size globally

2024-09-03 Thread Lukas-Fabian Moser
Hi Kieren, Am 02.09.24 um 14:37 schrieb Kieren MacMillan: I’m curious… For years I’ve been using the following snippet for absolute font sizing: [... allowGrobCallback and absFontSize ...] For historians: The original seems to be https://mail.gnu.org/archive/html/lilypond-user/2013-07/msg004

Re: Change stem direction based on position of note in staff?

2024-09-01 Thread Lukas-Fabian Moser
Hi Stefano, Yes, but it gets more complicated. For example, this is something I transcribed in drumburp: Cr|X---||X---|| Hh|--x-x-x-|x-x-x-x-|--x-x-x-|x-x-x-x-| HT||||| MT||||-o--| Sn|--o---o-|--o---o-|--o---o-

Re: Change stem direction based on position of note in staff?

2024-08-31 Thread Lukas-Fabian Moser
Hi Stefano, What I want to achieve in the end are different voicings for drum notation using the same input notes. The different voicings are described here: https://www.onlinedrummer.com/blogs/drum-lessons/introduction-to-voicing-in-drum-notation From that web page is a good image showing w

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: \markup { "blah blah" \smaller \no

Re: Change stem direction based on position of note in staff?

2024-08-29 Thread Lukas-Fabian Moser
Hi Stefano, Am 30.08.24 um 04:10 schrieb Stefano Antonelli: Firstly, thanks very much for the help. This approach does not work well with polyphony as you suggest. I did give it a try. This new version implemented as an engraver does: \version "2.24.0" notehead-stemdirection-dictionary = #

Re: Change stem direction based on position of note in staff?

2024-08-29 Thread Lukas-Fabian Moser
Hi Stefano, Am 28.08.24 um 16:59 schrieb Stefano Antonelli: Would it be possible to change the stem direction of a note based on it's position on the staff? This is the easiest of your questions, since this can be done using a callback on Stem.direction: \version "2.24.0" notehead-stemdirect

Re: Change text font size globally

2024-08-27 Thread Lukas-Fabian Moser
Hi Werner, [Being bad at Scheme I also didn't succeed to define a macro `\absmarkup` that works at the top level as a substitute for `\markup`.] Any takers? I'm skeptical as to whether this is possible: \markup has the effect of switching the lexer into 'markup' state, and this is hardcoded i

Re: TupletBrackets edge thickness

2024-08-10 Thread Lukas-Fabian Moser
Hi Kieren, Left to do: We probably also should modify the extents of the resulting stencil to avoid collisions... If the thickness of the edge lines are expanded *inwards*, wouldn’t the original extent still be accurate enough to use? Yes, good idea. But then we see that for thick lines, Li

Re: TupletBrackets edge thickness

2024-08-10 Thread Lukas-Fabian Moser
Hi Kieren, hi Karim, Am 09.08.24 um 16:40 schrieb Kieren MacMillan: Just trying to find out how to manage the thickness of the edges of tupletbrackets and if this is possible (cf. screenshot). In the documentation we can adjust the thickness of the whole bracket but not just the edges. Any id

Re: Engravers, fingerings and acknowledgments

2024-07-29 Thread Lukas-Fabian Moser
Hi Luca, without having tested your code: You're using append! wrong. >From the Guile documentation: "append! is permitted, but not required, to modify the given lists to form its return." So the exclamation mark does not imply that your list gets modified in-place, but rather that you don't care

Re: need help building a Scheme function

2024-06-25 Thread Lukas-Fabian Moser
[Sorry! I wrote this two days ago on a train in one of the famous German cell connection dead zones - and then forgot to actually send it later.] Hi Kieren, The last "m" in your innermost (if ...) is unnecessary: As with the difference between "for" and "map" in plain Scheme, the return value

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
The last "m" in your innermost (if ...) is unnecessary: As with the difference between "for" and "map" in plain Scheme, the return value of the lambda function in for-some-music gets discarded ("for" functions are supposed to _do_ something, not _return_ something). No, it doesn't. It is a boole

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
Hi David, If you don't want to call upon undocumented internals of LilyPond (the (@@ (lily) ...) bit), you can just use [with-output-to-string] Wow, thanks! I hadn't encountered this possibility yet. Also thanks for pointing out the possibility of in-place modification. Lukas

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
Hi Kieren, for-some-music does not return music. It works on music in-place. So the last thing in your music function must not be for-some-music but rather the music that you have been working on. So… %%% SNIPPET BEGINS adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitc

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, Am 21.06.24 um 20:25 schrieb Kieren MacMillan: Hi all, Thank you for the rapid-iteration non-isochronous Scheme class! :) Before I do the next step, is this optimal at this point? %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, I’m a little confused that the output of %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? ly:music?) (music-map (lambda (m) (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m) musi

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, Am 21.06.24 um 16:39 schrieb Kieren MacMillan: %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:music? ly:music? ly:music?) (ly:message "Pitch is: ~a" (ly:pitch-notename (ly:music-property pitchIn 'pitch))) music) mel

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

2024-05-11 Thread Lukas-Fabian Moser
Hi Vaughan, Am 10.05.24 um 07:44 schrieb Vaughan McAlley: Hi, I have a text spanner function that shows a player that they are playing in simultaneous rhythm with one or more other players. I adapted it from code I used for indicating colouration in renaissance music. It works fine, but if it b

Re: Solving espressivo problem

2024-05-11 Thread Lukas-Fabian Moser
Here’s one approach: %%% SNIPPET BEGINS \version "2.25.11" esp = \markup \lower #1 \scale #'(1.375 . 1) \musicglyph #"scripts.espr" stuff = \relative { \time 4/4 r4 b'4 a2-\tweak self-alignment-X #-1.25 _\esp ~ a2 b4 4( c1)-\tweak self-alignment-X #-0.5 _\esp b2-\tw

Re: \after … \beforeLast?

2024-05-02 Thread Lukas-Fabian Moser
Maybe one addition: fromEnd = #(define-music-function (delta ev mus) (ly:duration? ly:music? ly:music?) (_i "Add music @var{ev} with a distance of @var{delta} before the end of @var{ev} is usually a post-event.") #{ \context Bottom << { \skip $(make-duratio

Re: \after … \beforeLast?

2024-05-02 Thread Lukas-Fabian Moser
Hi Pierre-Luc, Am 02.05.24 um 17:02 schrieb Pierre-Luc Gauthier: Rambling here : So, I *love* the simplicity and elegance of the \after command and I am using it pretty much everywhere. { <>( <>\< \after 2 \> \after 16*15 ) \after 16*15 \! \repeat unfold 8 {e''16 d''} | } an

Re: Bend

2024-04-21 Thread Lukas-Fabian Moser
Hi Brian, if you know \bendBefore, you're probably referring to the semi-finished improved bendAfter/bendBefore pair that I reposted recently. This supports an arbitrary contour for the bend line by giving a list of tone relations. See the examples that come with it. I'll not be at my computer fo

Re: score with dynamic beats

2024-04-13 Thread Lukas-Fabian Moser
Hi, Am 12.04.24 um 17:36 schrieb Kieren MacMillan: Hi Raphael, I note that in one solution one uses \remove and in the other \omit to achieve the same thing. Is there any prospect of moving to a situation where only one operator is used to achieve a result, possibly by having a preferred a

Re: sheet music

2024-04-13 Thread Lukas-Fabian Moser
Hi Michael, Do you mean the keyboard ostinato motiv? Chords an lyrics you should easily find on the internet. Anyway, here's the keyboard motiv. Might have to be transposed. Thanks for transcribing the keyboard line! Just one suggestion: While avoiding ces and fes might seem to simplify the n

Re: Glissandos into Note

2024-04-13 Thread Lukas-Fabian Moser via LilyPond user discussion
e seems to be that now, bends also avoid Dots. See the attached version. Lukas Am 13.04.24 um 10:58 schrieb Benjamin Tordoff: Hi Greg, the conversation on this list back in Dec'22 and Jan'23 ended up with Lukas-Fabian Moser sending me the attached script and example. I was able to use

Re: Get name of music object

2024-04-02 Thread Lukas-Fabian Moser
Hi Morten, Am 02.04.24 um 10:56 schrieb Morten Lemvigh: Music objects are created with a name and some properties: make-music name music-properties I know how to get the properties from a music object - but how about the name? I cannot figure out how to get the name from a music object. It is

Re: Can't compile Lilypond files

2024-03-24 Thread Lukas-Fabian Moser
Hi David, David Sumbler schrieb am So., 24. März 2024, 21:29: > I am running xubuntu 22.04. When I last used Lilypond (November 2023) I > was probably running a recent version of Ubuntu Unity. But my /home folder > has not changed significantly, and Lilypond 2.24.1, downloaded from > lilypond

Re: Time measurement

2024-03-14 Thread Lukas-Fabian Moser
Hi, Am 14.03.24 um 17:27 schrieb Kieren MacMillan: Hi Matthew, Is there any easy way to find out the time in seconds from the start of a score to a specified point, corresponding to the timing of the MIDI output? I can count measures and do math on the tempo, but that's less than ideal in the

Re: Alternate bars in different time signatures

2024-02-02 Thread Lukas-Fabian Moser
Am 02.02.24 um 01:35 schrieb Leo Correia de Verdier: If you want to avoid some of the jiggery pokery you could do something like: \version "2.25.12" #(define ((time-alternate-time upa downa upb downb) grob) (grob-interpret-markup grob (markup

Re: Numérotation des versets

2024-01-27 Thread Lukas-Fabian Moser
Hi Silvain, Am 27.01.24 um 11:12 schrieb Silvain Dupertuis: /Sorry for my question in French on an English-speaking forum... here is an Englsh version/ Hello, Is there a way to automatically repeat the verse numbers on each line when it is defined by \set stanza = "1." without repeating this

Re: { } not sounding right.

2024-01-19 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Werner, hi Pierre-Luc, Am 19.01.24 um 08:43 schrieb Werner LEMBERG: Try this with and without the \new Voice commented. \version "2.25.12" \language "english" \score { %\new Voice << {bf bqf bf} {g gqs g} >> \layout {} \midi {} } Obviously you would need to listen

Re: zero-duration s to hold marks

2024-01-12 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Raphael, Am 12.01.24 um 13:32 schrieb Raphael Mankin: I agree that 0 as a denominator would seem to indicate an infinite duration, and allow the rest of your argument. However <> still seems unintuitive. I agree that <> isn't obvious. But in a complex language like LilyPond, there's alway

Re: Transpose from major to minor key

2024-01-12 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Matthew, Am 12.01.24 um 00:29 schrieb msk...@ansuz.sooke.bc.ca: You need to remember lilypond thinks in terms of pitch, not note names. Unlike some (most?) other music software. So "\transpose g e" says "transpose EVERY note up A TONE". I'm not sure it's quite right to say that Lilypond thin

Re: Cut time/half-time/alle breve & 8/4 time

2024-01-12 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Stanton, I’m setting various short organ pieces from an old Peters edition, mostly to prevent my aging brain from forgetting… One piece is in 8/4 time -the first measure has a whole note and 2 half notes. However, the time signature as printed is the cut time symbol. How can I reproduce t

Re: Manually control note spacing?

2024-01-05 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Robert, I'm trying to make an example showing mordent symbols with text labels. I want the note positions spaced so that the text is all on one line, with notes placed as needed to fit around it. The easiest way I can think of doing that would be to put manually sized 'gap fillers' between t

Re: Aligning offset quintuplets and triplets

2023-12-27 Thread Lukas-Fabian Moser via LilyPond user discussion
ersion. Lukas Am 27.12.23 um 09:17 schrieb Lukas-Fabian Moser: Hi Mark, Am 27.12.23 um 01:54 schrieb Mark Stephen Mrotek: Knute, In the original the first beat of the second measure is three against 2. The 5 against 3 does not start until the second beat. Unfortunately, that can't

Re: Aligning offset quintuplets and triplets

2023-12-27 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Mark, Am 27.12.23 um 01:54 schrieb Mark Stephen Mrotek: Knute, In the original the first beat of the second measure is three against 2. The 5 against 3 does not start until the second beat. Unfortunately, that can't be true, as with this interpretation, the measure is over-full. Rather,

Re: function to force accidentals on a subset of notes

2023-10-30 Thread Lukas-Fabian Moser
Hi Michael, Am 30.10.23 um 10:42 schrieb Michael Winter: But I am confused about what you said. For me, it is posting the accidental on tied notes after line breaks. No I'm confused. :-) If I do \transpose a c' \relative {   a8 gis~ gis g fis g gis a   gis1~ \break gis2 gis } in my example f

Re: function to force accidentals on a subset of notes

2023-10-28 Thread Lukas-Fabian Moser
Hi Michael, Thanks Lukas! This works but also forces the accidental on tied notes. Sorry for not getting back to you sooner. The following version registers ties and removes our auto-generated accidentals for notes in which a tie ends. (It's a bit overeager and also removes tied accidental

Re: function to force accidentals on a subset of notes

2023-10-22 Thread Lukas-Fabian Moser
Hi Michael, this is easily accomplished with an custom engraver. (I perfectly understand that the terms "easily" and "custom engraver" don't seem to go well together at first - I thought so for many years as well -, but after some getting used to it, the concept is actually quite simple and e

Re: custom replace/map of one set of pitches to another

2023-09-01 Thread Lukas-Fabian Moser
Hi Valentin, Am 01.09.23 um 00:41 schrieb Valentin Petzel: I don’t think this is a particularly good idea. Lilypond conceptually first creates data for the sementic meaning of the music (or the actual content) and have engravers turn this into graphical content. Mapping pitches to other pitches

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Lukas-Fabian Moser
Hi Michael, over time, I found that doing something like this in an engraver (as opposed to a music function) is actually much easier and conceptually clear, in spite of the seeming difficulty of the engraver syntax. The advantage of using an engraver being that you see the "actual" pitches a

Re: "Slash" in figured bass

2023-08-17 Thread Lukas-Fabian Moser
Am 17.08.23 um 13:05 schrieb Jean Abou Samra: Le jeudi 17 août 2023 à 12:28 +0200, Lukas-Fabian Moser a écrit : (The even friendlier syntax variant would require changing the lexer/parser, I think.) Why don't you just do <"/"> ? Two reasons: - I wasn't

Re: "Slash" in figured bass

2023-08-17 Thread Lukas-Fabian Moser
The slash is pronounced the best of several possibilites by C. Ph. E. Bach [...] Thanks. Please open an issue for SMuFL at https://github.com/w3c/smufl/issues so that this slash symbol gets added to the figured bass glyphs. https://github.com/w3c/smufl/issues/279

"Slash" in figured bass

2023-08-16 Thread Lukas-Fabian Moser
Folks (& especially: Dear Werner), in his "Anleitung zum Generalbasse" (and the accompanying "Practische Beyspiele") from the early 1800s, E. A. Förster uses a "slash" symbol in figured bass to denote a chord that is being described relative not to the current but to the next bass note. From

Re: s-curve slurs across staves?

2023-08-16 Thread Lukas-Fabian Moser
Hi Jin, Am 16.08.23 um 04:48 schrieb Jin Choi: Is it possible to get this style of s-curve shaped slurs across staves? It's possible, but it's not fun. \version "2.24.0" \new PianoStaff <<   \new Staff = upper {     <<   {   r8   \shape #'((0 . 0) (4 . -2) (0 . 6) (1 . 3)) Slur  

Re: Polyphonic piano writing - beam directions

2023-08-09 Thread Lukas-Fabian Moser
Am 09.08.23 um 13:34 schrieb David Kastrup: Lukas-Fabian Moser writes:   \new Staff = down \with { \clef bass } { That sentiment was part of why I chose to switch from tenor to male alto instead of bass. An easier change for sight-reading. :-) :-) All the clefs (and all the keys) are

Re: Polyphonic piano writing - beam directions

2023-08-09 Thread Lukas-Fabian Moser
Am 09.08.23 um 03:12 schrieb William Rehwinkel via LilyPond user discussion: \version "2.25.7" \new PianoStaff <<   \new Staff = "up" \relative g' { \voiceTwo g16 e c \change Staff = "do" \voiceOne g e g \change Staff = "up" \voiceTwo c e}   \new Staff = "do" \with {\clef bass } s2 >> This

Re: A query about tablature

2023-08-08 Thread Lukas-Fabian Moser
Hi David, Am 08.08.23 um 15:26 schrieb David Kastrup: As a side remark: In order to put music into a RhythmicStaff, one doesn't even have to remove the pitches, they will just be ignored. But I noticed yesterday that LilyPond does not behave very well with chords in that situation: \version "2.

Re: A query about tablature

2023-08-08 Thread Lukas-Fabian Moser
Hi Alasdair, Thank you very much - that is quite amazing! You're very welcome. But it does show what I have long suspected: that without some extra programming, Lilypond does not have a current facility to extract the rhythm from a music definition.  All of the tablatures I've seen in Lilypo

Re: Is there a Scheme macro(?) to use fretboards to generate a generic guitar strum?

2023-08-07 Thread Lukas-Fabian Moser
Hi David, arpeggiateChord = # (define-music-function (chord) (ly:music?) Just a warning: inventing unconventional formattings like this (putting # on a different line as the opening paren) carries the danger of keeping convert-ly (and syntax highlighters and syntax-sensitive editors) from recog

Re: A query about tablature

2023-08-07 Thread Lukas-Fabian Moser
Hi Alasdair, Am 07.08.23 um 07:05 schrieb Alasdair McAndrew: In fact you can just look at the snippet at https://lsr.di.unimi.it/LSR/Item?id=848 I've set mine up slightly differently, with letters between the lines, but the principle is the same.  But as you see from this snippet, you have to

Re: Is there a Scheme macro(?) to use fretboards to generate a generic guitar strum?

2023-08-05 Thread Lukas-Fabian Moser
Hi Kevin, But right now, there's nothing other than constructing it by hand each time, for every chord. I think something would be better than nothing. The problem has two parts: 1) Generate a sensible voicing for a given chord; 2) create the arpeggio. (Maybe you intended to do 1) manually any

Re: for-each?

2023-07-03 Thread Lukas-Fabian Moser
That has an awkward look. I'd rather use ``` \version "2.25.6" parts = { {c'} {d'} {e'} {f'} } group = #(define-music-function (parts) (ly:music?) #{\new StaffGroup << #@(ly:music-property parts 'elements) >>#}) \group \parts ``` Or

Re: Small note between staves as time signature

2023-05-11 Thread Lukas-Fabian Moser
Hi Jakob, The Danish book of chorales to accompany the official hymnal uses a peculiar "time signature" (which isn't really a time signature) for some hymns. It's a small note, in this case a 𝅗𝅥  but elsewhere its a compound signature like 𝅗𝅥♩, to indicate the metre. Maybe also use an actual

Re: help with Wrong type of argument

2023-05-01 Thread Lukas-Fabian Moser
Hi Michael, To say I'm no expert in Scheme is a vast understatement. However, I think I found the answer to this one. Just in order to reassure you a bit:  Basically, as I understand things, this bit:    #'((lineto 0 hgt) Accosrding to my rather vague understanding of Scheme synta

Re: Lyluatex: Font selection

2023-04-15 Thread Lukas-Fabian Moser
Hello, This bug was introduced by an attempt to fix an incompatibility with polyglossia, as this one removes proper familyname informations that are normally available from lua. @Jean Abou Samra : I’m the main author of lyluatex (I say the main one, as Urs Liska

Lyluatex: Font selection

2023-04-15 Thread Lukas-Fabian Moser
Folks, that's probably more of a Lyluatex issue, but since LilyPond's font handling is involved (and it's being changed right now and it's something I know nothing about, and we have proper font experts among us), maybe it's a good idea to discuss this also on the LilyPond side. When revivin

Re: Policy for posts from non-members

2023-02-22 Thread Lukas-Fabian Moser
Hi, Am 22.02.23 um 12:45 schrieb Andrew Bernard: Most employed people who work use email daily and countless people understand folders and filters. Well... I cordially invite you to come visit us and marvel at what one encounters when working in a thoroughly non-technical environment like, for

Re: Policy for posts from non-members

2023-02-22 Thread Lukas-Fabian Moser
Hi Jean, I've not been an admin of this list for very long, yet I'm already weary of telling people who post without being subscribed to the list that they should subscribe in order to avoid each of their messages being manually approved. I wonder what you (meaning everyone, but especially M

Re: Documentation: Should we possibly have aliases for current stable and current devel?

2023-02-13 Thread Lukas-Fabian Moser
Hi, From https://lilypond.org/help-us.html “Mailing list support: answer questions from fellow users. (This may entail helping them navigate the online documentation; in such cases it may sometimes be appropriate to point them to version-agnostic URL paths such as |/latest/|

Re: Documentation: Should we possibly have aliases for current stable and current devel?

2023-02-13 Thread Lukas-Fabian Moser
Hi Kevin, On the other hand, I strongly favor sticking with a distribution's package rather than starting every day with a "git pull". So, I'm always slightly behind the latest and greatest. Just for the record: Your description omits the (actually quite convenient) middle between the two ext

Re: `\afterGrace` and clef problem

2023-02-13 Thread Lukas-Fabian Moser
Hi Werner, Alternatively you may try to use \afterGrace to insert the \clef before the bar line, although this would probably require some manual spacing too. This doesn't work at all: `\afterGrace` doesn't accept a clef, as the image shows. afterGrace is defined as #(define-music-function (

Re: Vertical placement ChoirStaff

2023-02-08 Thread Lukas-Fabian Moser
Hi Johannes, Am 08.02.23 um 14:05 schrieb Johannes Roeßler: Hi Group, I'd like to know how I can place a staff group vertically centered on a page. I don't want to use "ragged bottom" or the system group to be stretched - just centered vertically. I hope you understand, what I'm trying to

Re: single system output in 2.24

2023-02-05 Thread Lukas-Fabian Moser
You’re right, and probably I should help with the translation. (I tried, some years ago, and gave up; AFAIR didn’t even get the workflow running...) If you're on Linux (I used to have Mint, now I'm on Ubuntu 22.10), it shouldn't be too hard to get the infrastructure running. Of course it's

Re: single system output in 2.24

2023-02-05 Thread Lukas-Fabian Moser
Hi Hraban, (BTW the German translation of the CLI documentation is outdated and thus partly wrong, and it really makes no sense that I must reconfigure my browser to access different languages.) I agree that the current situation (both the state of the German translation and the mechanism fo

Re: German notation

2023-01-30 Thread Lukas-Fabian Moser
By the way, there also exists the opposite: In (older?) scores of symphonies by Anton Bruckner, the violoncello part, if using the violin clef, is notated one octave higher than sounding. This is also common in Dvorak, for example. Strauss-Berlioz describe a precise rule for this (according

Re: German notation

2023-01-29 Thread Lukas-Fabian Moser
Am 29.01.23 um 18:20 schrieb Wol: On 29/01/2023 10:03, Mark Knoop wrote: I think Wim may be referring to the various standards of transposing the B-flat bass clarinet. - either in bass clef a major 2nd higher than sounding (as in this    Strauss excerpt) IME (I'm a trombone player) this is

Re: autobeaming over rests,Re: autobeaming over rests

2023-01-29 Thread Lukas-Fabian Moser
Am 29.01.23 um 17:36 schrieb Valentin Petzel: Hello David, in most cases definitely, but I suppose there might be some cases in say piano music where something like this would make sense. Additionally, Schenker graphs would be an obvious example where beaming over skips is useful. (But of c

Re: autobeaming over rests,Re: autobeaming over rests

2023-01-29 Thread Lukas-Fabian Moser
Am 29.01.23 um 17:54 schrieb David Kastrup: Valentin Petzel writes: Hello David, in most cases definitely, but I suppose there might be some cases in say piano music where something like this would make sense. I'd say that proportion seems low enough that providing automatisms for it is mor

Re: autobeaming over rests, Re: autobeaming over rests, Re: autobeaming over rests,Re: autobeaming over rests

2023-01-29 Thread Lukas-Fabian Moser
Hi Werner, Am 29.01.23 um 11:30 schrieb Werner LEMBERG: IMHO, there are definitely valid situations where automatic beaming over rests does make sense. this would not be hard to get done. Here’s an experimental commit: [...] Veeery nice, thanks! I only wonder what situation you envision to ad

Re: How to define a macro that expands to a percussion "pitch"?

2023-01-28 Thread Lukas-Fabian Moser
Hi Pierre-Luc, Am 28.01.23 um 14:02 schrieb Pierre-Luc Gauthier: m = \drummode { hh } Unfortunately not: This turns m into "music" including a duration. Hence, \m 8 will be interpreted as "first \m" (with its own pitch), then another one of duration 8. Compare: \version "2.24.0" m = \dru

Re: Slurs not being followed in one vocal part

2023-01-22 Thread Lukas-Fabian Moser
Hi Jon, Am 22.01.23 um 03:31 schrieb Jon Arnold: Thanks all! Separating the voices did fix the problem. I used this score a long time ago and then updated the layout, so I feel like an update several years ago must have changed the behavior, which is interesting. Compare: \version "2.24" m

Re: Completion_heads_engraver for line-ends only?

2023-01-17 Thread Lukas-Fabian Moser
I am afraid this would be exceedingly difficult technically. Engravers run way earlier than line breaking, so the only option would be to let the engraver create both notations (with notes straddling over bar lines and with tied notes), and remove one of them later, but there is a lot of code i

Re: Completion_heads_engraver for line-ends only?

2023-01-17 Thread Lukas-Fabian Moser
Hi, As a secondary question: Is there a straightforward way to avoid collisions of mensurstriche with beams? Do you have an example? Here's an extract from the de Wert, that illustrates the "problem" (lilypond 2.25.0): The way I see it, this would be a case for just accepting the crossing

Re: Conflict between articulate.ly and \accacciatura in 2.24.0

2023-01-07 Thread Lukas-Fabian Moser
Hi Gordon, Am 07.01.23 um 10:00 schrieb Gordon Bower: When I tried to recompile a piece I had written in 2.22.1 with 2.24.0, I got a mysterious error message: "Exited with return code -1073741784." Commenting out things until it would compile, I found the problem was specifically when artic

Re: \sustainOff on \alternative

2023-01-06 Thread Lukas-Fabian Moser
Could you consider upgrading to LilyPond 2.24? That's the current stable version (and my code was written for it). If that's impossible, I can sidestep the use of \after, but frankly, it's easier to help you if you provide a working example yourself. I am fairly certain David K. wrote \afte

Re: \sustainOff on \alternative

2023-01-06 Thread Lukas-Fabian Moser
Hi, I am using 2.22.2, \after 4 \sustainOff b2 r ​is useless, because of *unknown escaped string* "Useless" sounds a bit harsh. Could you consider upgrading to LilyPond 2.24? That's the current stable version (and my code was written for it). If that's impossible, I can sidestep the use of

Re: \sustainOff on \alternative

2023-01-06 Thread Lukas-Fabian Moser
Hi, Am 06.01.23 um 07:54 schrieb cc0_knight--- via LilyPond user discussion: Hi Everyone, Sorry for my english. Skip the first pedal stop(Because it's off-topic), when I write like this: \repeat volta 2 {   \sustainOn } \alternative {   { \sustainOff }   { \sustainOff } } (Please always gi

Re: \stopStaff \startStaff bug

2023-01-05 Thread Lukas-Fabian Moser
Hi Tomasz, Am 05.01.23 um 13:16 schrieb Tomasz Bauć: I also checked version without the Scheme:     \stopStaff     \repeat unfold 9 {s8}     \startStaff     \stopStaff     \repeat unfold 3 {s8}     \startStaff     \stopStaff     \repeat unfold 11 {s8}     \startStaff (Please always give compl

Re: how to alias commands?

2022-12-31 Thread Lukas-Fabian Moser
Am 31.12.22 um 13:05 schrieb David Kastrup: Quite often, one wants a shorthand for a function that actually needs an argument. This is possible using David Kastrup's ingenious \etc: My mother has developed an annoying habit of ending a lot of sentences with "und so weiter" ("and so on") even wh

Re: how to alias commands?

2022-12-31 Thread Lukas-Fabian Moser
One addition: Am 31.12.22 um 12:45 schrieb Lukas-Fabian Moser: Hi Kenneth, Am 31.12.22 um 11:26 schrieb Kenneth Flak: Is there a way to alias a command in lilypond? F.x. I would like to substite `\markup \rN` with simply `\rn`. Defining `rn` as a variable doesn't work, so what are the

Re: how to alias commands?

2022-12-31 Thread Lukas-Fabian Moser
Hi Kenneth, Am 31.12.22 um 11:26 schrieb Kenneth Flak: Is there a way to alias a command in lilypond? F.x. I would like to substite `\markup \rN` with simply `\rn`. Defining `rn` as a variable doesn't work, so what are the ways? Usually it does actually work: \version "2.24.0" something =

Re: problems with release 2.24 on iMac M1 with Ventura 13.0.1

2022-12-30 Thread Lukas-Fabian Moser
Hi Mario, Am 30.12.22 um 18:31 schrieb Mario Bolognani: overriding mensural staff is an optimal solution, but have a look in future to baroque music transcriptors, like me… So can you confirm that you actually want incipits that are not in "Renaissance" mensural style (like https://lilypond.

Re: problems with release 2.24 on iMac M1 with Ventura 13.0.1

2022-12-30 Thread Lukas-Fabian Moser
Hi Mario, Am 30.12.22 um 17:37 schrieb Mario Bolognani: Hi Lukas, this is the example where I’m using \numericTimeSignature  \new Staff <<                     \set Staff.instrumentName = \markup \center-column{""}                     \incipit { \clef soprano \key do\major\time 3/2\numericTime

Re: problems with release 2.24 on iMac M1 with Ventura 13.0.1

2022-12-30 Thread Lukas-Fabian Moser
Hi Mario, Regarding \numericTimeSignature in \incipit I’m using it with baroque music with clefs not currently in use for voice staffs, not in a mensural context. This feature was working correctly with the 2.20 version. I'm the one responsible for the change in \numericTimeSignature, and as

Re: Which timesteps are created?

2022-12-24 Thread Lukas-Fabian Moser
Am 09.11.22 um 22:07 schrieb Jean Abou Samra: Le 09/11/2022 à 19:22, Lukas-Fabian Moser a écrit : Anyway: Thanks to both of you (Jean and David); I'm a bit swamped at the moment and have to postpone further work on this, but will definitely follow the directions you gave me. I'm not

Re: extension fingerings, key sigs

2022-12-21 Thread Lukas-Fabian Moser
Hi Matthew, How do I keep the new key signature from also appearing at the end of the previous line? Also, how can I write { 1 x 2 4 } in the fingering font, adding an "x" between the notes to signify the extension between "1" and "2"? One possibility would be \version "2.24.0" \relative

Re: Changing Header Mid-Score

2022-12-11 Thread Lukas-Fabian Moser
Am 11.12.22 um 10:32 schrieb Jacques Menu: Thumbs up, Jean, this is worth being in the LPNR! If I'm not mistaken, this marvelous code could easily be generalized to provide a command (during music) which sets arbitrary variables that may be retrieved in header/footer definitions, and which

Re: Dotted rests overlaid in voices show two dots, one above the other

2022-11-27 Thread Lukas-Fabian Moser
Hi Mark, Am 27.11.22 um 04:01 schrieb Mark Mathias: Using \rest, I can place rests from each of two voices on a staff on top of each other without interference, thereby allowing use of the material from each voice in separate scores elsewhere without editing. Cf: To explicitly specify a

Re: Bar line at beginning of piece

2022-11-20 Thread Lukas-Fabian Moser
Hi Jean, Hm. \version "2.23.81" {   \once \set Timing.measureStartNow = ##t   \once \set Timing.measureBarType = "|-s"   c'1   \break   c'1 } Thank you very much - this works from 2.23.8 on, I assume because of Dan's additions. Great! I still have to read up on the bar type definition co

Bar line at beginning of piece

2022-11-20 Thread Lukas-Fabian Moser
Hi, is there an "idiomatic" way of forcing LilyPond to print a bar line "|" at the beginning of the piece other than doing the hack of adding \grace s1 \bar "|" before the music? My problem is that I need to do this programmatically with a large number of short scores. If any of those start

Re: Hide Notes but display Accidental

2022-11-17 Thread Lukas-Fabian Moser
Hi Raj, probably easiest: \version "2.22.0" \language english \header {   tagline = ##f } \score {   \new Staff \with { \omit TimeSignature } {     \set Staff.midiInstrument = "Acoustic Grand Piano"     \key c \major     \time 5/1     \clef bass     \hideNotes     \undo \hide Accidental  % <

Re: Multi-measure spacer rests

2022-11-13 Thread Lukas-Fabian Moser
Hi Jean, Alternatively, you could attach the dynamic to a so-called "empty chord". The above is equivalent to \version "2.23.80" \new Dynamics {   s1 \p   s \>   s \!   s1*6   <>\mf   s1 } I think we should advocate the "empty chord" style even more consistently (and I have a long standing

Re: Adding durations (for \after)

2022-11-11 Thread Lukas-Fabian Moser
Hi Kieren, It's one of the reasons I first suggested the "anchors" idea over 13 years ago (see https://lists.gnu.org/archive/html/lilypond-user/2009-07/msg00498.html); when I picked up the idea again (search for "addAt"), that thread eventually revealed the edition-engraver, and may have led

Re: Adding durations (for \after)

2022-11-11 Thread Lukas-Fabian Moser
Hi Joel, Am 11.11.22 um 15:37 schrieb Joel C. Salomon: But if that can be done from a Scheme function, it’s probably sufficient; no need to tamper with Lilypond grammar. To use Lucas’s example: [which was wrong, as I forgot the tied notes, sigh - but that doesn't matter.] r8 es2.-8 f2 ges8

Re: Adding durations (for \after)

2022-11-10 Thread Lukas-Fabian Moser
Well, duration-or-music? already exists and it's used by \skip. Ah, my bad, I didn't think of looking whether it might already exist. I'm surprised that such an either-/or type predicate doesn't wreak havoc with the parser. However, this makes for the slight oddity that \skip 4 ... does not s

Re: Which timesteps are created?

2022-11-09 Thread Lukas-Fabian Moser
Hi, Am 06.11.22 um 20:49 schrieb David Kastrup: Lukas-Fabian Moser writes: a) We see a timestep at the end of events even in _other_ contexts than the one the engraver lives in. b) We see a timestep at every bar boundary. Only if context property Score.skipBars is ##f . I'm interest

Re: Adding durations (for \after)

2022-11-09 Thread Lukas-Fabian Moser
Hi all, Am 09.11.22 um 16:11 schrieb David Kastrup: says: Factors may also be added by using Scheme expressions evaluating to a number or musical length like `*#(ly:music-length music)`. Is there an exam

  1   2   3   4   5   6   7   >