Re: beam subdivision problem
>> The Alain and Rachmaninov only have one fewer beam, so the beam >> count between the groups is not appropriate for the lengths of the >> subdivided groups, according to the Gould rules. Personally, I >> think the Gould rules are correct, but two of the music publishers >> in your example do not agree with me. And they should probably >> have MUCH more credibility than I do. > > I think this is a typical case where the modern rules are “better” > in that they allow for even more clarity in all situations, even if > they are even more complex than these. And the rules followed in > those Alain and Rachmaninov examples were good for the time and > internally consistent; they don’t have any advantages per se over > the modern rules, except that those composers used them to convey > their ideas and changing the graphical appearance of the music will > cause some change in how the musician perceives it. Alain and > Rachmaninov didn’t have need for more thorough subdivision. > > Reger did: in his op. 73, even the first edition of 1904 already uses > the full tool set of subdivision, over wide areas of the piece > (starting, in this first edition, on the third page of > music). https://imslp.org/wiki/File:Reger-op73.pdf I had a quick look at the piece, and I couldn't find something non-standard (in the LilyPond sense), contrary to the examples I gave in another e-mail. Maybe I missed something, so please post images of unusual subdivisions not covered with what LilyPond offers. Werner
Song: multiple verses and refrain
I am having difficulty layout satisfactorily a song that has 3 verses and a refrain. The refrain comes on a separate line from the verses. It looks unsightly, and wastes space on the page. Neither NR nor LM seem to address this case. I attach my MWE. But here is the .ly: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \new Lyrics \chorusWords } } } \layout { } } >>> MWE.pdf Description: Adobe PDF document \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \new Lyrics \chorusWords } } } \layout { } }
Re: Song: multiple verses and refrain
On 7/8/24 09:37, Raphael Mankin wrote: I am having difficulty layout satisfactorily a song that has 3 verses and a refrain. The refrain comes on a separate line from the verses. It looks unsightly, and wastes space on the page. Neither NR nor LM seem to address this case. I don’t remember where in the docs (or elsewhere) I got this, but I always do: \new Lyrics \lyricsto "melody" { \verseOne \chorus } \new Lyrics \lyricsto "melody" { \verseTwo } \new Lyrics \lyricsto "melody" { \verseThree } That way the chorus follows on the same line as verse 1. You can’t just unfold this... but I typically have enough other variations between print and MIDI that I put the lyrics together by hand for that: \new Lyrics \lyricsto "melody" { \verseOne \chorus \verseTwo \chorus \verseThree \chorus } ~crism -- Chris Maden, text nerd & chanteyman http://crism.maden.org/ > http://music.maden.org/ > Слава Україні! Героям слава!
Re: Song: multiple verses and refrain
Yes, that works, thank you. Not as elegant a solution as I would like, in that it mixes verse with refrain, but it works. On 08/07/2024 14:46, Christopher R. Maden wrote: On 7/8/24 09:37, Raphael Mankin wrote: I am having difficulty layout satisfactorily a song that has 3 verses and a refrain. The refrain comes on a separate line from the verses. It looks unsightly, and wastes space on the page. Neither NR nor LM seem to address this case. I don’t remember where in the docs (or elsewhere) I got this, but I always do: \new Lyrics \lyricsto "melody" { \verseOne \chorus } \new Lyrics \lyricsto "melody" { \verseTwo } \new Lyrics \lyricsto "melody" { \verseThree } That way the chorus follows on the same line as verse 1. You can’t just unfold this... but I typically have enough other variations between print and MIDI that I put the lyrics together by hand for that: \new Lyrics \lyricsto "melody" { \verseOne \chorus \verseTwo \chorus \verseThree \chorus } ~crism -- https://saturday-october-seven.com/
Re: Song: multiple verses and refrain
Am 08.07.24 um 15:51 schrieb Raphael Mankin: Yes, that works, thank you. Not as elegant a solution as I would like, in that it mixes verse with refrain, but it works. You can use \set stanza = "1. " at the beginning of the lyrics, and for the chorus either the same or something like ^\markup{Chorus} within the notes. Hraban
Workaround for \grace + \tuplet bug
Hi all I came across a bug with grace music containing tuplets and I haven't filed the report yet, because I'm waiting to be added to the bug list to provide the report there. However, I'm looking for a workaround for this problem. Here is the report: ``` % Grace note music containing tuplets cannot contain other music after the % first tuplet. (The result is a segfault.) % Note: this compiles normally on at least "2.24.3" \version "2.25.18" music_that_does_not_work = \relative c'' { a4 b c \grace { \tuplet 3/2 { a16 b c } g32 a } d4 } music_that_works = \relative c'' { a4 b c \grace { g32 a \tuplet 3/2 { a16 b c } } d4 } \score { { % uncomment the following to get a segfault: % \music_that_does_not_work \bar "||" \music_that_works } } ``` This is only a problem in version 2.25.x, but I'm specifically using that version to gain access to guile 3, so downgrading to 2.24.x doesn't work for my situation. Does this sound like low hanging fruit? Is there a workaround maybe? Thanks! Tom
Re: Workaround for \grace + \tuplet bug
I just realized that guile 3 is available for 2.24.x, so that's the workaround. I'll still file the bug, though, for v2.25 in the proper channel. Thanks Tom On Mon, Jul 8, 2024 at 11:40 AM Tom Brennan wrote: > Hi all > > I came across a bug with grace music containing tuplets and I haven't > filed the report yet, because I'm waiting to be added to the bug list to > provide the report there. > > However, I'm looking for a workaround for this problem. Here is the report: > > ``` > % Grace note music containing tuplets cannot contain other music after the > % first tuplet. (The result is a segfault.) > % Note: this compiles normally on at least "2.24.3" > \version "2.25.18" > > music_that_does_not_work = \relative c'' { > a4 b c > \grace { > \tuplet 3/2 { a16 b c } > g32 a > } > d4 > } > > music_that_works = \relative c'' { > a4 b c > \grace { > g32 a > \tuplet 3/2 { a16 b c } > } > d4 > } > > \score { > { > % uncomment the following to get a segfault: > % \music_that_does_not_work > \bar "||" > \music_that_works > } > } > ``` > > This is only a problem in version 2.25.x, but I'm specifically using that > version to gain access to guile 3, so downgrading to 2.24.x doesn't work > for my situation. > > Does this sound like low hanging fruit? Is there a workaround maybe? > > Thanks! > Tom >
Changing from percussion clef to treble clef
Hi, I am trying to write a percussion part with a mix of untuned and tuned percussion, however, when I switch from percussion clef back to G clef, all the notes subsequently are shown as the same pitch (b), see screenshot below, the final bar is supposed to be as follows: \clef G \relative c { a16->\f ^\markup "Glockenspiel" g-> f8-> d-> } Any advice on how to get the notation table back to the default would be appreciated. Regards, Richard.
Re: Changing from percussion clef to treble clef
Dear Richard, If I do something like the following, using a regular Staff instead of RhythmicStaff and using "percussion" staff (it acts like alto clef), I can write different notes. Is this something like what you were hoping to do? Sorry, I don't know the entire context of the problem you were having. If this isn't correct, could you send us a minimum code example which shows the problem? Thanks, -William % -- \version "2.25.16" \new Staff \with {\clef percussion } \compressMMRests \relative c' { R1 | \time 3/4 R2.*2 | \time 4/4 R1 | r2 r8 g8 r4 | R1*3 | \time 2/4 R2*3 \clef G \relative c'' { a16->\f ^\markup "Glockenspiel" g-> f8-> d-> } % relative c'' instead of c? } % -- On 7/8/24 14:03, Richard Cookson wrote: Hi, I am trying to write a percussion part with a mix of untuned and tuned percussion, however, when I switch from percussion clef back to G clef, all the notes subsequently are shown as the same pitch (b), see screenshot below, the final bar is supposed to be as follows: \clef G \relative c { a16->\f ^\markup "Glockenspiel" g-> f8-> d-> } Any advice on how to get the notation table back to the default would be appreciated. Regards, Richard. -- William Rehwinkel (any pronouns) Juilliard School '26 - Oberlin Conservatory '24 will...@williamrehwinkel.net - https://williamrehwinkel.net PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt OpenPGP_signature.asc Description: OpenPGP digital signature
Re: Song: multiple verses and refrain
On 2024-07-08 15:37, Raphael Mankin wrote: I am having difficulty layout satisfactorily a song that has 3 verses and a refrain. The refrain comes on a separate line from the verses. It looks unsightly, and wastes space on the page. Neither NR nor LM seem to address this case. I attach my MWE. But here is the .ly: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \new Lyrics \chorusWords } } } \layout { } } >>> An alternative to the already proposed solutions is to name the Lyrics context that you want to keep, and then reuse it for the refrain: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \context Lyrics = mainlyrics \chorusWords } } } \layout { } } /Mats
music glyph in text
I have been looking for a way to use music glyphs in inline text, specifically in a lilypond-book document. I want to write "the note should be Bb and not C#" but I want to use a flat and a sharp and not a lower case 'b' and an octothorpe (#). TIA, David
Re: Song: multiple verses and refrain
On 08/07/2024 19:53, Mats Bengtsson wrote: On 2024-07-08 15:37, Raphael Mankin wrote: I am having difficulty layout satisfactorily a song that has 3 verses and a refrain. The refrain comes on a separate line from the verses. It looks unsightly, and wastes space on the page. Neither NR nor LM seem to address this case. I attach my MWE. But here is the .ly: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \new Lyrics \chorusWords } } } \layout { } } >>> An alternative to the already proposed solutions is to name the Lyrics context that you want to keep, and then reuse it for the refrain: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \context Lyrics = mainlyrics \chorusWords } } } \layout { } } /Mats Now that is much neater, but can it be modified for the case where the refrain precedes the verse, e.g. Satie's "Je Te Veux"? Maybe these tricks should go into the docs.
Re: Changing from percussion clef to treble clef
From: lilypond-user-bounces+carl.d.sorensen=gmail@gnu.org on behalf of Richard Cookson Date: Monday, July 8, 2024 at 12:05 PM To: lilypond-user@gnu.org Subject: Changing from percussion clef to treble clef Hi, I am trying to write a percussion part with a mix of untuned and tuned percussion, however, when I switch from percussion clef back to G clef, all the notes subsequently are shown as the same pitch (b), see screenshot below, the final bar is supposed to be as follows: \clef G \relative c { a16->\f ^\markup "Glockenspiel" g-> f8-> d-> } [cid:ii_1909383f3509d4716c51] Any advice on how to get the notation table back to the default would be appreciated. Regards, Richard, Please share your code so we know what you have done. That way we’ll be able to better help you. See https://lilypond.org/tiny-examples.html for suggestions on how to best do this. Thanks, Carl
Re: music glyph in text
Dear David, Personally, I prefer to use the Unicode symbols U+266D (♭) and U+266F (♯) (as well as U+266E ♮) when writing flats and sharps because they are more likely to be stylized according to the text font you are using. When I'm writing a text document or a bit of text in a lilypond score I do this. Thanks, -William On 7/8/24 15:30, bobr...@centrum.is wrote: I have been looking for a way to use music glyphs in inline text, specifically in a lilypond-book document. I want to write "the note should be Bb and not C#" but I want to use a flat and a sharp and not a lower case 'b' and an octothorpe (#). TIA, David -- William Rehwinkel (any pronouns) Juilliard School '26 - Oberlin Conservatory '24 will...@williamrehwinkel.net - https://williamrehwinkel.net PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt OpenPGP_signature.asc Description: OpenPGP digital signature
Re: music glyph in text
On Mon, 8 Jul 2024 at 21:31, bobr...@centrum.is wrote: > > I have been looking for a way to use music glyphs in inline text, specifically in a lilypond-book document. I want to write "the note should be Bb and not C#" but I want to use a flat and a sharp and not a lower case 'b' and an octothorpe (#). Hello, There are many possibilities. Use a font that supports MUSIC FLAT SIGN or MUSIC SHARP SIGN unicode character. https://www.fileformat.info/info/unicode/char/266d/fontsupport.htm https://www.fileformat.info/info/unicode/char/266f/fontsupport.htm Use MusiXTEX https://ctan.org/pkg/musixtex Use the lilyglyphs package (must be compiled with LuaLATEX or XELATEX) https://ctan.org/pkg/lilyglyphs Use the musicography package (similar to lilyglyphs but for pdflatex) https://ctan.org/pkg/musicography Kind regards, Xavier
scheme: formula instead of value
Dear LilyPonders, in an \override statement, I want to use the result of a mathematical computation instead of a simple value: % -- \version "2.24.3" \markup { % \override #'(baseline-skip . 2) % works \override #'(baseline-skip . (* 0.5 4.0)) % does not work \column { 1 2 3 } } % -- This causes an error: Fehler: Guile signaled an error for the expression beginning here # (let ((book-handler (if (defined? 'default-toplevel-book-handler) In procedure ly:stencil-stack: Wrong type argument in position 6 (expecting number): (* 0.5 4.0) Is this really impossible or am I missing something? Cheers, Klaus
Re: scheme: formula instead of value
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, > > in an \override statement, I want to use the result of a mathematical > computation instead of a simple value: > > % -- > \version "2.24.3" > \markup { >% \override #'(baseline-skip . 2) % works >\override #'(baseline-skip . (* 0.5 4.0)) % does not work >\column { 1 2 3 } > } > % -- > > This causes an error: > Fehler: Guile signaled an error for the expression beginning here > # > (let ((book-handler (if (defined? 'default-toplevel-book-handler) > In procedure ly:stencil-stack: Wrong type argument in position 6 (expecting > number): (* 0.5 4.0) > > Is this really impossible or am I missing something? > > Cheers, > Klaus signature.asc Description: This is a digitally signed message part.
Re: scheme: formula instead of value
From: lilypond-user-bounces+carl.d.sorensen=gmail@gnu.org on behalf of K. Blum Date: Monday, July 8, 2024 at 2:40 PM To: lilypond-user@gnu.org , benbigno...@gmx.de Subject: scheme: formula instead of value Dear LilyPonders, in an \override statement, I want to use the result of a mathematical computation instead of a simple value: % -- \version "2.24.3" \markup { % \override #'(baseline-skip . 2) % works \override #'(baseline-skip . (* 0.5 4.0)) % does not work \column { 1 2 3 } } % -- This causes an error: Fehler: Guile signaled an error for the expression beginning here # (let ((book-handler (if (defined? 'default-toplevel-book-handler) In procedure ly:stencil-stack: Wrong type argument in position 6 (expecting number): (* 0.5 4.0) Is this really impossible or am I missing something? Because your list is quoted, the calculation isn’t done. Try \override #`(baseline-skip . ,(* 0.5 4.0)) Or \override #(cons ‘baseline-skip (* 0.5 4.0)) Cheers, Klaus
Re: Song: multiple verses and refrain
On 2024-07-08 21:40, Raphael Mankin wrote: An alternative to the already proposed solutions is to name the Lyrics context that you want to keep, and then reuse it for the refrain: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \context Lyrics = mainlyrics \chorusWords } } } \layout { } } /Mats Now that is much neater, but can it be modified for the case where the refrain precedes the verse, e.g. Satie's "Je Te Veux"? Maybe these tricks should go into the docs. The general principle of naming and resuming contexts is described in https://lilypond.org/doc/v2.24/Documentation/notation/creating-and-referencing-contexts and some additional bells and whistles are brought up in https://lilypond.org/doc/v2.24/Documentation/notation/keeping-contexts-alive Here's a modified version of the above example with the refrain coming before the verses. \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \new Lyrics = mainlyrics \chorusWords \repeat volta 3 { << \context Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> } } } \layout { } } /Mats
Re: Song: multiple verses and refrain
On 08/07/2024 22:12, Mats Bengtsson wrote: On 2024-07-08 21:40, Raphael Mankin wrote: An alternative to the already proposed solutions is to name the Lyrics context that you want to keep, and then reuse it for the refrain: \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \repeat volta 3 { << \new Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> \context Lyrics = mainlyrics \chorusWords } } } \layout { } } /Mats Now that is much neater, but can it be modified for the case where the refrain precedes the verse, e.g. Satie's "Je Te Veux"? Maybe these tricks should go into the docs. The general principle of naming and resuming contexts is described in https://lilypond.org/doc/v2.24/Documentation/notation/creating-and-referencing-contexts and some additional bells and whistles are brought up in https://lilypond.org/doc/v2.24/Documentation/notation/keeping-contexts-alive Here's a modified version of the above example with the refrain coming before the verses. \version "2.24.3" melody = { \relative c' \repeat volta 3 { a b c d e f g a } } verseA = \lyricmode { This is verse one } verseB = \lyricmode { This is verse two } verseC = \lyricmode { This is verse three } chorusWords = \lyricmode { This is the chorus } \score { \new Staff { \melody \addlyrics { \new Lyrics = mainlyrics \chorusWords \repeat volta 3 { << \context Lyrics = mainlyrics \verseA \new Lyrics \verseB \new Lyrics \verseC >> } } } \layout { } } /Mats That is great, thanks. I have not yet got my head around context naming. Clearly I shall have to do some more reading.
Re: scheme: formula instead of value
Hi Valentin, hi Carl, yes, that does the trick. That quoting science is what causes me headaches all the time... ;-) Thanks for your immediate answers. Cheers, Klaus Am 08.07.2024 um 22:47 schrieb 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
Re: scheme: formula instead of value
"K. Blum" writes: > Hi Valentin, hi Carl, > > yes, that does the trick. > That quoting science is what causes me headaches all the time... ;-) It's not really science. You just have to accept that LISP/Scheme does not have a programming language syntax. It has a data representation syntax (specifically suited for representing lists). And it represents programs in the form of data. It also represents data in the form of data. The only difference is that the former is getting evaluated after input, and quoting stops evaluation. -- David Kastrup