Re: Score overruns page. Bug or something I did?

2024-02-06 Thread Jakob Pedersen

Hello!

An easy fix, and that makes perfect sense. In other words, it /was/ 
something I did! :)


Thank you Jean and Kieren for your prompt responses.

Best wishes,
Jakob

On 06.02.2024 23.48, Jean Abou Samra wrote:


It's not a bug —  by default, LilyPond forbids line breaks on a bar 
line when there are notes straddling on that bar line. You can change 
this with


|\layout { \context { \Voice \remove Forbid_line_break_engraver } } |

Best,

Jean



Re: [large/complex projects] where should transpositions go?

2024-02-06 Thread Martin Neubauer

Hi Kieren,

I'm somewhat late to the party, and hadn't looked to thoroughly at your 
example code, either, but I'd like to nevertheless share my take on one 
specific point:

3. Compare the voicing of m3 in the SATB and SA voicings: mm1-2 are different, 
but m3 is the same. How can I do this kind of thing with the least amount of 
code duplication? I don’t believe quoted music can be transposed directly 
(i.e., you need to create a second, pre-transposed, quotation); I can’t see how 
to inject a transposition (e.g., using the Edition-Engraver) into a specific 
part of a score/variable; I really don’t want to have to break every variable 
into multiple subvariables to handle every difference between voicings (nor do 
I want to have complete duplicates, one per voicing!); etc.


For quite a long time now I'm relying heavily on openlilylib's 
auto-transpose module. In my experience it does play nicely together with 
the edition-engraver. One caveat is its abuse of the \transposition 
command, which might throw things off if you need midi output. But I don't 
do midi, so I wouldn't know...


Attached is a silly little example I whacked together to make sure I 
wasn't going to tell some nonsense.


All the best,
Martin

--
Wer mit dem gestern hier Vorgestellten hinreichend Erhellendes erfahren hat und 
auf den Geschmack gekommen ist, kann heute in den Wellenlängen des unserem Auge 
zugänglichen Bereiches der Elektromagnetischen Strahlung Pythagoräische Tripel 
suchen und einem Farbberater als Warteraumtapezierung vorschlagen.\version "2.25.12"

\include "oll-core/package.ily"

\loadModule oll-misc.pitch.auto-transpose
\loadPackage notation-fonts
\loadPackage edition-engraver

\addEdition test

\consistToContexts #edition-engraver Score.Staff.Voice

\editionMod test 6 0/4 trans.pose.Voice \transposition bes

\layout {
  \context {
\Score
\editionID ##f trans
%edition-engraver-log = ##t
  }
  \context {
\Voice
%edition-engraver-log = ##t
  }
}

\new Staff \with {
  \editionID pose
  \autoTranspose
} {
  \repeat unfold 10 {
c'1
  }
  \fine
}

Re: Score overruns page. Bug or something I did?

2024-02-06 Thread Jean Abou Samra
It's not a bug —  by default, LilyPond forbids line breaks on a bar line when 
there are notes straddling on that bar line. You can change this with


```
\layout {
  \context {
\Voice
\remove Forbid_line_break_engraver
  }
}
```

Best,

Jean




signature.asc
Description: This is a digitally signed message part


Re: Score overruns page. Bug or something I did?

2024-02-06 Thread Jakob Pedersen
Well, yes and no. The original ignores barlines here and there. Bars 
25-27 in T1 have 12 beats total, they are just distributed oddly against 
the 2/2 time.


/Jakob

On 06.02.2024 22.59, Kieren MacMillan wrote:

Hi Jakob,

In m25, T1 has 5 beats. Is that correct?

– Kieren


Re: Score overruns page. Bug or something I did?

2024-02-06 Thread Kieren MacMillan
Hi Jakob,

In m25, T1 has 5 beats. Is that correct?

– Kieren


Re: Ancient vocal music lyrics extenders

2024-02-06 Thread Jakob Pedersen

Thank you very much for this!

I've never fiddled with \scaleDuration but that's an easy hack, and I 
only need to use it 10-12 places in the score in total, so not a lot of 
work :)


Best wishes,
Jakob

On 05.02.2024 23.56, Hans Aikema wrote:



On 5 Feb 2024, at 20:29, Jakob Pedersen via LilyPond user discussion 
 wrote:


Hello all,

I've been trying to replicate a score from CPDL.



The font is terrible, the notes are weirdly shaped. I really don't 
like it. I wonder what software made it. Also, why two hyphens in 
that short a space?


(I'm wondering which software was used to make it in the first place.)

I've produced this so far:



I've used a variable with \set Staff.measureBarType = "-span|" to do 
the /mensurstriche/ at appropriate places.


MWE is at the bottom of this email.

I wonder about the lyrics extenders, though. My questions are:

1) I assume extending an extender already there is fairly easy, 
although I don't know how. I tried the lyrics.extender property, but 
I'm not sure how to use it correctly. I was thinking it might be 
possible to have all three lyrics extender lines end at the same 
point near the bar line like in the original.
2) Is it possible to add a lyrics extender line to lyrics like the O 
attached to the breve in the top line, even if it isn't actually a 
melisma? And if so, is it possible to force to extend as far as the 
other three lyrics extender lines re my first question.


Jakob,

You can trick lilypond into extending the extender to (almost) 
end-of-measure by adding a (hidden) extra note towards the end of the 
measure. Using \scaleDurations you make  that the total length of the 
shown+hidden music still fit within the measure.
You’ll need to add the additional extender in the lyrics as well, as 
the hidden note is still accounted for in the note-to-lyric binding:


\version "2.25.12"

global = {
   \key d \major
   \time 2/2
}

BarOn = { \set Staff.measureBarType = "-span|" }
BarOff = { \set Staff.measureBarType = "|" }

\score { <<
   \new StaffGroup <<
 \new Staff \relative c' { \global \BarOn \scaleDurations 2047/2048 
b'\breve \hide \scaleDurations 1/2048 b\breve \BarOff cis1 | b }
 \addlyrics { O __ _ sa -- crum, }

 \new Staff \relative c' { \global \BarOn e2 g2. fis8 e \BarOff fis4 
\scaleDurations 255/256 g \hide \scaleDurations 1/1024 g1 | a1 g }
 \addlyrics { O __ _ _ _ _ _ _ sa -- crum, }

 \new Staff \relative c' { \global \clef "treble_8" \BarOn b2 e2. d8 
\BarOff cis \scaleDurations 511/512 d2 \hide \scaleDurations 1/1024 d1 | e1 e }
 \addlyrics { O __ _ _ _ _ _ sa -- crum, }

 \new Staff \relative c { \global \clef bass e1 \scaleDurations 1023/1024  
b' \hide \scaleDurations 1/1024 b | a e }
 \addlyrics { O __ _ _ sa -- crum, }
   >>
>>

}





Re: performance marks

2024-02-06 Thread Curt McDowell

Thank you, Valentin. It took me a couple hours to convert some
PostScript in one of my big projects to native \path commands, mainly
because the PostScript needed to draw outside the page margins, but I
got it done! I haven't tried it in SVG yet.

https://www.fishlet.com/wp-content/uploads/2018/09/LeCheminDeFer.pdf

Cheers,
Curt

On 2/3/24 16:18, Valentin Petzel wrote:

rather than postscript you should probably use the high level path command.
This will work with other outputs than just SVG.

So instead of

\markup\postscript #"0.17 setlinewidth -1.50 1.25 moveto 0 1.0 rlineto stroke"

do

\markup\path #0.17 #'((moveto -1.5 1.25) (rlineto 0 1))

Cheers,
Valentin