Re: squeezing a page

2023-07-09 Thread Tom Sgouros
Ah, you're saying that if I'd read past the "vertical spacing" and
"horizontal spacing" sections I'd have found the section titled to fit my
question and be a happier guy? Thank you for that.

And also for pointing out page-count. That does seem easiest and in fact it
worked. I always like it best when I can tell the computer, "you're a
computer, figure it out".  (And thank you to David K for that same answer,
too.)

 -Tom

On Sun, Jul 9, 2023 at 6:54 PM Jakob Pedersen  wrote:

> Hi Tom
>
> The documentation provides different methods to fit music on fewer pages:
> https://lilypond.org/doc/Documentation/notation/fitting-music-onto-fewer-pages
>
> Adding page-count = 6 to your /paper block is probably the easiest option.
>
> Best wishes,
> Jakob
>
> On 10.07.2023 00.39, Tom Sgouros wrote:
>
> Hello all:
>
> I have a piece that spans seven printed pages, and I wish it was six.
> There are just four meagre measures on that last page and I wish I could
> persuade Lilypond to squeeze one more line onto the sixth page, as it did
> on the fifth page. I've looked at some of the vertical spacing controls,
> and so far my attempts to use them seem to make things look worse. Can
> anyone share some general tips for the order of things to try to do some
> gentle squeezing?
>
> Thank you,
>
>  -Tom
>
>
>


Re: Doubling a note makes MIDI output louder

2023-07-09 Thread mskala
On Sun, 9 Jul 2023, Knute Snortum wrote:

> note out of the other hand.  This is why I suggested that the MIDI performer
> could ignore \parenthesize notes.  Would this create a pile of workarounds
> for you?

Not as long as I don't use \parenthesize.  But I think it's preferable not
to have a presentation command ("print this in parentheses") with
non-obvious semantic consequences ("don't include these notes in MIDI
output").  Parentheses can mean many different things in different pieces
of music; your situation is only one of those.  Making remove-from-MIDI
always the behaviour of parentheses, or the default unless overridden,
would create Surprises! for anyone who tries to use parentheses for some
other purpose and expects them to just be marks on the page.

Better for "don't include this in MIDI" to be a separate command instead
of a side effect of parentheses.  Less good, but pragmatic because it
doesn't require changing LilyPond, would be to use "tagging" to exclude
the unwanted notes from the version of the music used to generate MIDI.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread Knute Snortum
On Sun, Jul 9, 2023 at 7:54 AM  wrote:

> On Sun, 9 Jul 2023, David Wright wrote:
>
> > players. But that's the problem here. When two real voices happen on
> > the same note, the result doesn't sound like one louder voice, yet
> > that's the effect you get from MIDI,¹ where the "two" voices are
>
> Not on *my* MIDI synthesizer.  Two notes are two notes!  I'm inclined to
> be concerned by this because I do a lot of doubling of notes between
> different MIDI channels.  Each channel plays on a different patch, or in a
> separate monophonic recording run on the same patch, and a doubled note is
> quite different from a louder note.
>
> If LilyPond were to start automatically deleting notes because someone
> think's it's a bug for unisons to exist between MIDI tracks, it would make
> the pile of workarounds I already need to use to get decent MIDI out of
> LilyPond, that much worse.
>

Well, I didn't say it was a bug, and surely two MIDI tracks should normally
play two notes, especially if they are different instruments.  But I'm
talking about a specific piano performance technique.  When two voices
(hands) have the same note written, the pianist doesn't play the same note
with both hands.  Instead they pick a hand to play the note and leave the
note out of the other hand.  This is why I suggested that the MIDI
performer could ignore \parenthesize notes.  Would this create a pile of
workarounds for you?

--
Knute Snortum


Re: squeezing a page

2023-07-09 Thread Jakob Pedersen

Hi Tom

The documentation provides different methods to fit music on fewer 
pages: 
https://lilypond.org/doc/Documentation/notation/fitting-music-onto-fewer-pages


Adding page-count = 6 to your /paper block is probably the easiest option.

Best wishes,
Jakob

On 10.07.2023 00.39, Tom Sgouros wrote:

Hello all:

I have a piece that spans seven printed pages, and I wish it was six. 
There are just four meagre measures on that last page and I wish I 
could persuade Lilypond to squeeze one more line onto the sixth page, 
as it did on the fifth page. I've looked at some of the vertical 
spacing controls, and so far my attempts to use them seem to make 
things look worse. Can anyone share some general tips for the order of 
things to try to do some gentle squeezing?


Thank you,

 -Tom


Re: squeezing a page

2023-07-09 Thread David Kastrup
Tom Sgouros  writes:

> Hello all:
>
> I have a piece that spans seven printed pages, and I wish it was six. There
> are just four meagre measures on that last page and I wish I could persuade
> Lilypond to squeeze one more line onto the sixth page, as it did on the
> fifth page. I've looked at some of the vertical spacing controls, and so
> far my attempts to use them seem to make things look worse. Can anyone
> share some general tips for the order of things to try to do some gentle
> squeezing?

How about just telling LilyPond you want 6 pages?

\paper {
  page-count = 6
}

-- 
David Kastrup



squeezing a page

2023-07-09 Thread Tom Sgouros
Hello all:

I have a piece that spans seven printed pages, and I wish it was six. There
are just four meagre measures on that last page and I wish I could persuade
Lilypond to squeeze one more line onto the sixth page, as it did on the
fifth page. I've looked at some of the vertical spacing controls, and so
far my attempts to use them seem to make things look worse. Can anyone
share some general tips for the order of things to try to do some gentle
squeezing?

Thank you,

 -Tom


Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Wright
On Sun 09 Jul 2023 at 10:53:58 (-0400), msk...@ansuz.sooke.bc.ca wrote:
> On Sun, 9 Jul 2023, David Wright wrote:
> 
> > players. But that's the problem here. When two real voices happen on
> > the same note, the result doesn't sound like one louder voice, yet
> > that's the effect you get from MIDI,¹ where the "two" voices are
> 
> Not on *my* MIDI synthesizer.  Two notes are two notes!  I'm inclined to
> be concerned by this because I do a lot of doubling of notes between
> different MIDI channels.  Each channel plays on a different patch, or in a
> separate monophonic recording run on the same patch, and a doubled note is
> quite different from a louder note.

That may explain why you asked whether it was a problem. It is,
but perhaps only with certain devices (like the poor snipped PCs).
Even there, it could depend on the specific software involved.

> If LilyPond were to start automatically deleting notes because someone
> think's it's a bug for unisons to exist between MIDI tracks, it would make
> the pile of workarounds I already need to use to get decent MIDI out of
> LilyPond, that much worse.

That's your terminology, not mine. I have no idea what LP's actions
are when two voices play the same note, partcombined or not, nor
how difficult it would be to make LP automatically delete particular
notes upon instructions to do so.

If the problem was of sufficient importance to me, I'd attack it
in a completely different way, by postprocessing the MIDI output.

Cheers,
David.



Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Kastrup
Knute Snortum  writes:

> On Sun, Jul 9, 2023 at 6:57 AM  wrote:
>
>> On Sun, 9 Jul 2023, Knute Snortum wrote:
>>
>> > I'm not sure exactly how one would deal with this problem, other than
>> with
>> > tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a
>> way
>>
>> Is that a problem?  If these are two notes in different MIDI channels,
>> then the MIDI output is just reflecting what you wrote - two notes played
>> at once that happen to be the same pitch - and deleting one would be
>> incorrect.  If the MIDI output is really just a single "louder" note (what
>> does that mean - higher velocity?) then it implies some deliberate
>> detection of this case within LilyPond, which might reasonably be
>> adjustable.
>>
>
> In the MWE the instrument is a piano, so you wouldn't want the note to
> sound louder than the surrounding notes, because the doubled note is played
> by only one hand.

Frankly, a player who does not differentiate overlapping identical notes
in momentarily converging voices from single notes is not doing the
listener a favor.

-- 
David Kastrup



Re: Doubling a note makes MIDI output louder

2023-07-09 Thread mskala
On Sun, 9 Jul 2023, David Wright wrote:

> players. But that's the problem here. When two real voices happen on
> the same note, the result doesn't sound like one louder voice, yet
> that's the effect you get from MIDI,¹ where the "two" voices are

Not on *my* MIDI synthesizer.  Two notes are two notes!  I'm inclined to
be concerned by this because I do a lot of doubling of notes between
different MIDI channels.  Each channel plays on a different patch, or in a
separate monophonic recording run on the same patch, and a doubled note is
quite different from a louder note.

If LilyPond were to start automatically deleting notes because someone
think's it's a bug for unisons to exist between MIDI tracks, it would make
the pile of workarounds I already need to use to get decent MIDI out of
LilyPond, that much worse.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Wright
On Sun 09 Jul 2023 at 09:57:23 (-0400), msk...@ansuz.sooke.bc.ca wrote:
> On Sun, 9 Jul 2023, Knute Snortum wrote:
> 
> > I'm not sure exactly how one would deal with this problem, other than with
> > tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a way
> 
> Is that a problem?  If these are two notes in different MIDI channels,
> then the MIDI output is just reflecting what you wrote - two notes played
> at once that happen to be the same pitch - and deleting one would be
> incorrect.  If the MIDI output is really just a single "louder" note (what
> does that mean - higher velocity?) then it implies some deliberate
> detection of this case within LilyPond, which might reasonably be
> adjustable.

Back in the 1960s, I remember seeing an article pinned up in the
school music room (no social media back then) about making orchestras
more efficient. Instead of a dozen first violins, just amplify a
single player instead; the same across the strings alone could
drastically cut costs (wages, travel, stage size, etc).

Of course, it was just a joke, and everyone knows that one player
amplified does not sound anything like an ensemble of a dozen
players. But that's the problem here. When two real voices happen on
the same note, the result doesn't sound like one louder voice, yet
that's the effect you get from MIDI,¹ where the "two" voices are
being generated from the same source.

¹ My experience is limited to MIDI voices being mixed by PCs,
  not specialist equipment.

Cheers,
David.



Re: Doubling a note makes MIDI output louder

2023-07-09 Thread mskala
On Sun, 9 Jul 2023, Knute Snortum wrote:

> In the MWE the instrument is a piano, so you wouldn't want the note to sound
> louder than the surrounding notes, because the doubled note is played by
> only one hand.  But I can see this might be a problem if the two staves were
> for two voices.  Maybe you want it louder in that situation?  That's why I

LilyPond generates separate MIDI tracks, in separate channels, for the two
staves, so as far as anything playing the MIDI file is concerned, it is
not a "louder" note; it is two notes in unison.  Nothing about a standard
MIDI file indicates to the playing software that these two tracks happen
to be the right and left hands on a single instrument.

If you don't want the two notes to play at once, I think what needs to be
changed is the fact that LilyPond is generating separate tracks per stave.
You might be able to use \partcombine to collapse them into a single
track and eliminate unisons.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread Knute Snortum
On Sun, Jul 9, 2023 at 6:57 AM  wrote:

> On Sun, 9 Jul 2023, Knute Snortum wrote:
>
> > I'm not sure exactly how one would deal with this problem, other than
> with
> > tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a
> way
>
> Is that a problem?  If these are two notes in different MIDI channels,
> then the MIDI output is just reflecting what you wrote - two notes played
> at once that happen to be the same pitch - and deleting one would be
> incorrect.  If the MIDI output is really just a single "louder" note (what
> does that mean - higher velocity?) then it implies some deliberate
> detection of this case within LilyPond, which might reasonably be
> adjustable.
>

In the MWE the instrument is a piano, so you wouldn't want the note to
sound louder than the surrounding notes, because the doubled note is played
by only one hand.  But I can see this might be a problem if the two staves
were for two voices.  Maybe you want it louder in that situation?  That's
why I suggested using \parenthesize to signal that the note should be
played once.

--
Knute Snortum


Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Kastrup
Michael Gerdau  writes:

> AFAICT the note is not played louder. However it is played twice and
> then depending on your sound device that may or may not result in that
> note being louder.

When my sound device is a violin, I can testify that playing the same
note simultaneously on two different strings makes the result louder
than playing it on a single string.

-- 
David Kastrup



Re: Doubling a note makes MIDI output louder

2023-07-09 Thread mskala
On Sun, 9 Jul 2023, Knute Snortum wrote:

> I'm not sure exactly how one would deal with this problem, other than with
> tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a way

Is that a problem?  If these are two notes in different MIDI channels,
then the MIDI output is just reflecting what you wrote - two notes played
at once that happen to be the same pitch - and deleting one would be
incorrect.  If the MIDI output is really just a single "louder" note (what
does that mean - higher velocity?) then it implies some deliberate
detection of this case within LilyPond, which might reasonably be
adjustable.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread Michael Gerdau
AFAICT the note is not played louder. However it is played twice and then 
depending on your sound device that may or may not result in that note being 
louder.

Mobil gesendet

> Am 09.07.2023 um 15:46 schrieb Knute Snortum :
> 
> 
> Hi everyone.
> 
> If two voices play the same note, the MIDI output for that note is louder 
> (twice as loud?) than the surrounding notes.
> 
> %%%
> \version "2.25.6"
> 
> \score {
>   \new PianoStaff <<
> \new Staff { g'8 d' e' d' g'2 }
> \new Staff { \clef bass b8 d' c' d' b2 }
>   >>
>   \layout {}
>   \midi {}
> }
> %%%
> 
> I'm not sure exactly how one would deal with this problem, other than with 
> tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a way 
> to check internally if the same note is played by two voices not to double 
> the loudness?
> 
> --
> Knute Snortum
> 


Doubling a note makes MIDI output louder

2023-07-09 Thread Knute Snortum
Hi everyone.

If two voices play the same note, the MIDI output for that note is louder
(twice as loud?) than the surrounding notes.

%%%
\version "2.25.6"

\score {
  \new PianoStaff <<
\new Staff { g'8 d' e' d' g'2 }
\new Staff { \clef bass b8 d' c' d' b2 }
  >>
  \layout {}
  \midi {}
}
%%%

I'm not sure exactly how one would deal with this problem, other than with
tags.  Maybe \parenthesize could not produce MIDI output?  Or is there a
way to check internally if the same note is played by two voices not to
double the loudness?

--
Knute Snortum


Multi-trills

2023-07-09 Thread Gregory Evans
Hi all,
I was wondering if anyone has a technique for trills with more than one
trill pitch. I have been using custom text spanners drawn with the trill
shape and I've used some fancy tweaking on a group of after-grace notes. I
recently ran into a problem (which is not necessarily the purpose of this
question) where the placement of the after-grace notes interrupted some
other grob. Anyway I was hoping someone might have already been clever
enough to put something together where more than one trill pitch can be
added to a trill and the spanner will add an extra line for every extra
pitch. I don't know how one would access the trill pitch grobs to modify
them, which would be the ideal technique I think.

best,
greg

-- 
gregory rowland evans
http://www.gregoryrowlandevans.com
https://github.com/GregoryREvans
https://soundcloud.com/gregory-rowland-evans


Re: Engraving a triple-stop for violin

2023-07-09 Thread Jun Tamura
Thank you, Valentin and David.

I was not aware that << >> construct can be used this way.

> I do seem to remember that LilyPond did
> not deal well with it?

“1.5.1 Single voice — Simultaneous expressions” of NR says:

This can be useful if the simultaneous sections have identical rhythms, but 
attempts to attach notes with different durations to the same stem will cause 
errors.

I think that the code

\new Voice << g4 e' e''2^. >>

is attaching notes with different durations to the same stem but I do not see 
any error message.

Jun

> 2023/07/09 16:42、David Kastrup のメール:
> 
> Valentin Petzel mailto:valen...@petzel.at>> writes:
> 
>> Hello Pierre,
>> 
>> I think this should rather be
>> 
>> { <\tweak duration-log #2 g \tweak duration-log #2 e' e''>2^. }
>> 
>> Alternatively one can simply do
>> 
>> \new Voice << g4 e' e''2^. >>
>> 
>> (the \new Voice is necessary as there has been no music before this, so 
>> there 
>> does not exist a voice, and Lilypond will then create one Voice for each 
>> parallel music).
> 
> The latter is definitely the _natural_ way to enter this construct
> (single voice simultaneity) but I do seem to remember that LilyPond did
> not deal well with it?
> 
> -- 
> David Kastrup



Re: Staff switch over page break spoils vertical spacing

2023-07-09 Thread Vaughan McAlley
On Sun, 9 Jul 2023 at 13:10, Jean Abou Samra  wrote:

> Le samedi 08 juillet 2023 à 17:44 +1000, Vaughan McAlley a écrit :
>
> When a staff-switch line goes over a page break, the first system in the
> next page is stretched and may cover the next system. In the example here,
> it nearly touches, but in a full score the top system is stretched beyond
> the bottom of the page.
>
> In the wild, a system may stretch over the next system, like the attached
> picture.
>
>
>
> That smells like https://gitlab.com/lilypond/lilypond/-/issues/6551 .
>
> Admittedly, I'm embarrassed about this bug since it is a regression that I
> introduced. (Reverting the offending commit would be easy, but that commit
> fixed a bug too.) I know what needs to be done since I investigated two
> weeks ago, but unfortunately I likely won't have the time to actually
> prepare the patch in the coming week, sorry.
>
> Working around it would not exactly be straightforward either; sorry about
> that too.
>
> Best,
> Jean
>
>
Thanks Jean, it’s good to know that it is a known issue. It's not too
tricky to work around once you know the movement's final layout.

Cheers,
Vaughan

PS Thanks for all your work!


Re: Engraving a triple-stop for violin

2023-07-09 Thread Pierre Perol-Schneider
Thank you Valentin

Le dim. 9 juil. 2023 à 09:26, Valentin Petzel  a écrit :

> Hello Pierre,
>
> I think this should rather be
>
> { <\tweak duration-log #2 g \tweak duration-log #2 e' e''>2^. }
>
> Alternatively one can simply do
>
> \new Voice << g4 e' e''2^. >>
>
> (the \new Voice is necessary as there has been no music before this, so
> there
> does not exist a voice, and Lilypond will then create one Voice for each
> parallel music).
>
> Cheers,
> Valentin
>
> Am Sonntag, 9. Juli 2023, 07:07:53 CEST schrieb Pierre Perol-Schneider:
> > Hi Jun,
> > I'd do:
> >
> > { ^. }
> >
> > For some reason I couldn't find the dedicated documentation.
> > Cheers,
> > Pierre
> >
> > Le dim. 9 juil. 2023 à 06:54, Jun Tamura  a écrit :
> > > Hello!
> > >
> > > Is there a recommended practice to engrave a triple-stop for the
> violin as
> > > in the attached example - notes with different durations in a single
> > > triple-stop? The example is from the 1st violin part, bar 24, 1st
> > > movement,
> > > piano concerto no. 3 by Beethoven. This quite often appears in music
> for
> > > string instruments. I’ve looked through LSR but cannot find a good
> > > example.
> > > Your kind advice is appreciated.
> > >
> > > Jun
>
>


Re: Engraving a triple-stop for violin

2023-07-09 Thread David Kastrup
Valentin Petzel  writes:

> Hello Pierre,
>
> I think this should rather be
>
> { <\tweak duration-log #2 g \tweak duration-log #2 e' e''>2^. }
>
> Alternatively one can simply do
>
> \new Voice << g4 e' e''2^. >>
>
> (the \new Voice is necessary as there has been no music before this, so there 
> does not exist a voice, and Lilypond will then create one Voice for each 
> parallel music).

The latter is definitely the _natural_ way to enter this construct
(single voice simultaneity) but I do seem to remember that LilyPond did
not deal well with it?

-- 
David Kastrup



Re: Engraving a triple-stop for violin

2023-07-09 Thread Valentin Petzel
Hello Pierre,

I think this should rather be

{ <\tweak duration-log #2 g \tweak duration-log #2 e' e''>2^. }

Alternatively one can simply do

\new Voice << g4 e' e''2^. >>

(the \new Voice is necessary as there has been no music before this, so there 
does not exist a voice, and Lilypond will then create one Voice for each 
parallel music).

Cheers,
Valentin

Am Sonntag, 9. Juli 2023, 07:07:53 CEST schrieb Pierre Perol-Schneider:
> Hi Jun,
> I'd do:
> 
> { ^. }
> 
> For some reason I couldn't find the dedicated documentation.
> Cheers,
> Pierre
> 
> Le dim. 9 juil. 2023 à 06:54, Jun Tamura  a écrit :
> > Hello!
> > 
> > Is there a recommended practice to engrave a triple-stop for the violin as
> > in the attached example - notes with different durations in a single
> > triple-stop? The example is from the 1st violin part, bar 24, 1st
> > movement,
> > piano concerto no. 3 by Beethoven. This quite often appears in music for
> > string instruments. I’ve looked through LSR but cannot find a good
> > example.
> > Your kind advice is appreciated.
> > 
> > Jun



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


Re: Engraving a triple-stop for violin

2023-07-09 Thread Jun Tamura
Thank you, Pierre!

I’ve realized that an example is in "5.3.4 The \tweak command” in NR by 
searching “duration-log”.

Thanks again.

> 2023/07/09 14:11、Pierre Perol-Schneider 
> のメール:
> 
> PS. Added to the LSR: https://lsr.di.unimi.it/LSR/Item?id=1170
> 
> Le dim. 9 juil. 2023 à 07:07, Pierre Perol-Schneider 
> mailto:pierre.schneider.pa...@gmail.com>> 
> a écrit :
>> Hi Jun,
>> I'd do:
>> 
>> { ^. }
>> 
>> For some reason I couldn't find the dedicated documentation.
>> Cheers,
>> Pierre
>> 
>> Le dim. 9 juil. 2023 à 06:54, Jun Tamura > > a écrit :
>>> Hello!
>>> 
>>> Is there a recommended practice to engrave a triple-stop for the violin as 
>>> in the attached example - notes with different durations in a single 
>>> triple-stop? The example is from the 1st violin part, bar 24, 1st movement, 
>>> piano concerto no. 3 by Beethoven. This quite often appears in music for 
>>> string instruments. I’ve looked through LSR but cannot find a good example. 
>>> Your kind advice is appreciated.
>>> 
>>> Jun
>>>