Re: Adding a root note next to the key signature (like a single note Ambitus)
Am 05.07.22 um 23:39 schrieb Lukas-Fabian Moser: Hi Viktor, Am 05.07.22 um 20:17 schrieb Viktor Mastoridis: For educational purposes, I would like to see whether it's possible to add a small note head after the key signature? Like a single Ambitus note, really. Why would I do it? For example, I would like to add a (small) D note to a G-Major key signature, suggesting that, despite the F# key indicating G-major or E-minor scale, this piece is in D-Myxolydian mode. Maybe something like this? ... probably cleaner not to re-define key, but record the current tonic in the KeySignature grob using an engraver. \version "2.23.10" tonic_notehead_engraver = # (lambda (ctx) (make-engraver (acknowledgers ((key-signature-interface engraver grob source-engraver) (if (eq? (grob::name grob) 'KeySignature) (ly:grob-set-nested-property! grob '(details tonic) (ly:context-property ctx 'tonic))) notehead_key_signature = # (lambda (grob) (let* ((key-sig (ly:key-signature-interface::print grob)) (notehead (grob-interpret-markup grob (markup #:tiny #:musicglyph "noteheads.s2"))) (notehead-parens (parenthesize-stencil notehead 0.1 0.3 0 0.1)) (tonic (assq-ref (ly:grob-property grob 'details) 'tonic)) (tonic-position (+ (ly:pitch-steps tonic) (ly:grob-property grob 'c0-position))) (adjusted-tonic-position (- (modulo (+ tonic-position 3) 7) 3))) (ly:stencil-combine-at-edge key-sig X RIGHT (ly:stencil-translate-axis notehead-parens (/ adjusted-tonic-position 2) Y) 0.5))) \layout { \context { \Staff \consists #tonic_notehead_engraver \override KeySignature.stencil = #notehead_key_signature } } { \key d \mixolydian a'1 \key a \mixolydian 1 \key g \mixolydian 1 \key g \dorian 1 \key c \minor 1 \clef bass d1 \break 1 }
Re: Lilypond not generating PDF
On 7/4/22 11:06, Jean Abou Samra wrote: Do you volunteer to go update the installation instructions for the new binaries (https://gitlab.com/lilypond/lilypond/-/issues/6310) and test them on Linux + macOS + Windows? That would be very welcome (no irony intended). Well, saying that actually gave me the motivation to do it :-) It doesn't solve this particular problem, though.
Re: error handling
On 7/5/22 01:10, Thomas Morley wrote: Am Di., 5. Juli 2022 um 00:34 Uhr schrieb Jean Abou Samra : I just detected I can't compile my code with 2.22. any more, due to the internal changes in \repeat volta. Ofcourse it could have been any other change as well. Should I code for both lily-versions, just to get helpful error messages? Well, no, thanks. We have a real problem here. You are a master of understatement. Does it help to use master, not byte-compiled? Could check myself, to tired now, though. Cheers, Harm By the way: as a workaround, you can put your code in a .scm file and load it with ly:load. Then run LilyPond with GUILE_AUTO_COMPILE=1.
Error message using AikenHeads with NullVoice
I have a collection of SATB hymns that I would like to engrave using shape notes. The Lilypond files are all structured the same, as seen below—treble clef with music and a NullVoice for aligning lyrics, then the lyrics, then the bass clef. % \version "2.22" \language “english" % included from another file \layout { \context { \Staff \aikenHeads } } \score { << \new Staff << % music here \new NullVoice = "melody" { e'8 fs'8 } >> % \new Lyrics \lyricsto "melody" { Ly -- rics } % bass clef here >> \layout {} } % The command to use aikenHeads comes from a separate style file that gets included for each hymn. But there is an unfortunate interaction between aikenHeads and NullVoice: Lilypond outputs the following error message: programming error: must have stem dir for note head continuing, cross fingers And it outputs a lot of these messages. I need to find a way to stop Lilypond from outputting this error. Any kind of quick fix or hack would be sufficient. One thought I had would be to re-enable regular note heads for the NullVoice: \new NullVoice = "melody" \with { \unset shapeNoteStyles } { e'8 fs'8 } But I couldn’t come up with anything that worked. Any help or ideas would be greatly appreciated. David F.
Re: Looking for the proper term to search for... like a... prelude? maybe?
On Tue, Jul 5, 2022 at 8:47 PM William wrote: Kevin, if you don’t mind, I’m interested what you mean by the first system > ending with a partial measure and the second system including vocals > beginning with a partial measure? If you mean to break in the middle of one > continuous measure, you could do this without partials via. \bar “” \break > I'm on vacation and continuing with LilyPond in my down hours. So, I haven't been reading e-mail as quickly as normal. You've interpreted what I meant exactly, but I managed to figure out that adding a \bar was required. I had the \break but that wasn't enough.
Re: Looking for the proper term to search for... like a... prelude? maybe?
On Tue, Jul 5, 2022 at 10:07 PM Andrew Bernard wrote: > Hi Kevin, > > For an eight bar intro you would normally leave the vocal line staff and > use full bar rests. This actually makes it easier for the vocalist, and > if you were making parts you would have to do this anyway. I would not > try to hide the intro staff in this case. > I'm merely transcribing what I see on paper as accurately as I can. Since it didn't show any vocal line until the ninth measure (immediately after a break) it seemed like the "right" thing to do. % \new Staff \with { \RemoveAllEmptyStaves } % did the trick (along with the afore-mentioned "\bar" and "\break' at the end of the "short" measure at the end of the piano "solo" introduction and before the partial measure where the voice starts. Frenched usually refers to omitting whole empty systems and is used to > make symphonic scores more compact. Just omitting a staff for a few bars > is not generally thought of as Frenching, technically speaking. > Someone else brought up "French". I'd never heard of it til it was mentioned in a response but it's good to know the terms, even if I'm not doing symphonic stuff, just simple folk melodies and occasionally acoustic rock.
Re: Error message using AikenHeads with NullVoice
On Wed 06 Jul 2022 at 11:56:52 (-0600), David F. wrote: > [ … ] > The command to use aikenHeads comes from a separate style file that gets > included for each hymn. But there is an unfortunate interaction between > aikenHeads and NullVoice: Lilypond outputs the following error message: > > programming error: must have stem dir for note head > continuing, cross fingers > > And it outputs a lot of these messages. I need to find a way to stop > Lilypond from outputting this error. Any kind of quick fix or hack would be > sufficient. $ lilypond source-file.ly |& tee /tmp/complete-errors | grep -v 'programming error: must have stem dir for note head' | grep -v 'continuing, cross fingers' Is this hackish enough? The unfiltered errors are available for consultation in /tmp/complete-errors. I would need sed rather than grep to filter out the second line only when preceded by this particular first line. Cheers, David.
Re: grace note (first note) in a measure that follows an end of a repeat volta displays weirdly
On Tue 05 Jul 2022 at 23:56:36 (-0700), Kenneth Wolcott wrote: > On Tue, Jul 5, 2022 at 11:43 PM Hans Aikema wrote: > > On 6 Jul 2022, at 07:25, Kenneth Wolcott wrote: > > > However, the first measure that follows a repeat section (without > > > alternatives) there is a slashed grace note that Lilypond displays in > > > a measure all by itself, despite my attempts to place a grace note > > > with a skip at the same location in a different (unspecified) voice. > > > > > > Is this problem resolved by specifying voices? > > > > > > What am I doing wrong here? > > > > See > > https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns > > > > section 'known issues and warnings'. It deals with exactly your issue. You > > need to have a grace skip in the other stave. The example has only one voice in each staff, and it probably ought to mention that the same method should be applied to all voices. So the answer is that every Voice must have its own grace note or skip. > Thank you. I thought I had done that :-( I had placed the grace > note with the skip in lh_two, but apparently it had no effect Any voice that doesn't contain the grace duration will draw another barline in the wrong place. In your case, lh_one still lacked it. > I placed a << {} \\ {} >> construct in the lh_one bar 10 containing > the grace note with the skip and it works. Adding more structure overcomplicates it. All you need in lh_one is: \grace s8 a4\rest 2 q4 | % m10 similar to rh_two. > Wow, intricate little bug, eh? Guess it might have worked if I had > used specified voices AND the grace skip(s). Completeness and consistency. Cheers, David.
Re: grace note (first note) in a measure that follows an end of a repeat volta displays weirdly
Hi David; Thank you for the elaboration, I think I will finally get this! Thanks, Ken On Wed, Jul 6, 2022 at 11:41 AM David Wright wrote: > > On Tue 05 Jul 2022 at 23:56:36 (-0700), Kenneth Wolcott wrote: > > On Tue, Jul 5, 2022 at 11:43 PM Hans Aikema wrote: > > > On 6 Jul 2022, at 07:25, Kenneth Wolcott wrote: > > > > However, the first measure that follows a repeat section (without > > > > alternatives) there is a slashed grace note that Lilypond displays in > > > > a measure all by itself, despite my attempts to place a grace note > > > > with a skip at the same location in a different (unspecified) voice. > > > > > > > > Is this problem resolved by specifying voices? > > > > > > > > What am I doing wrong here? > > > > > > See > > > https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns > > > > > > section 'known issues and warnings'. It deals with exactly your issue. > > > You need to have a grace skip in the other stave. > > The example has only one voice in each staff, and it probably ought > to mention that the same method should be applied to all voices. > > So the answer is that every Voice must have its own grace note or skip. > > > Thank you. I thought I had done that :-( I had placed the grace > > note with the skip in lh_two, but apparently it had no effect > > Any voice that doesn't contain the grace duration will draw another > barline in the wrong place. In your case, lh_one still lacked it. > > > I placed a << {} \\ {} >> construct in the lh_one bar 10 containing > > the grace note with the skip and it works. > > Adding more structure overcomplicates it. All you need in lh_one is: > > \grace s8 a4\rest 2 q4 | % m10 > > similar to rh_two. > > > Wow, intricate little bug, eh? Guess it might have worked if I had > > used specified voices AND the grace skip(s). > > Completeness and consistency. > > Cheers, > David.
Re: Looking for the proper term to search for... like a... prelude? maybe?
On 7/5/22 16:03, Kevin Cole wrote: But your answer makes more sense to me and is what I really want to go with. (The introduction starts with a "\partial" and ends with an incomplete measure also. Then, when the vocals start it's another "\partial".) I just have no idea what the syntax for starting a new staff "late" is. This? \version "2.23.10" \new Voice = voice { \partial 8 c'8 c'1 1 1 1 1 1 1 2.. \break << { 8 1 1 } \new Lyrics \lyricsto voice { foo bar baz } >> } Note that you no longer need \bar "" with \break in 2.23.10. You should add \bar "" in 2.22. Best, Jean
Re: Error message using AikenHeads with NullVoice
On 7/6/22 19:56, David F. wrote: I have a collection of SATB hymns that I would like to engrave using shape notes. The Lilypond files are all structured the same, as seen below—treble clef with music and a NullVoice for aligning lyrics, then the lyrics, then the bass clef. % \version "2.22" \language “english" % included from another file \layout { \context { \Staff \aikenHeads } } \score { << \new Staff << % music here \new NullVoice = "melody" { e'8 fs'8 } >> % \new Lyrics \lyricsto "melody" { Ly -- rics } % bass clef here >> \layout {} } % The command to use aikenHeads comes from a separate style file that gets included for each hymn. But there is an unfortunate interaction between aikenHeads and NullVoice: Lilypond outputs the following error message: programming error: must have stem dir for note head continuing, cross fingers And it outputs a lot of these messages. I need to find a way to stop Lilypond from outputting this error. Any kind of quick fix or hack would be sufficient. One thought I had would be to re-enable regular note heads for the NullVoice: \new NullVoice = "melody" \with { \unset shapeNoteStyles } { e'8 fs'8 } But I couldn’t come up with anything that worked. Any help or ideas would be greatly appreciated. How about changing \Staff into \Voice? \layout { \context { \Voice \aikenHeads } } That way, it won't affect those NullVoice contexts. Best, Jean
Re: Error message using AikenHeads with NullVoice
> On Jul 6, 2022, at 1:20 PM, Jean Abou Samra wrote: > > How about changing \Staff into \Voice? > > \layout { > \context { > \Voice > \aikenHeads > } > } > > That way, it won't affect those NullVoice contexts. > > Best, > Jean > Perfect. That does exactly what I wanted. Thanks! David F.
Orchestral works good practice
Good morning to everyone, I am preparing a large orchestral work. In my writing style, each instrument often has two voices in its staff, for various reason (for example, each clarinet can handle two voices when playing multiphonics trills with threshold tones, or other techniques), but in some other cases instruments couple have the same notes, or both tacet. I read that, in these cases, \partCombine is not suitable. Are there strategies for these kind of engraving needs? Thank you Rip_mus