Re: Viewing PDF output

2020-01-31 Thread David Kastrup
Michael Gerdau  writes:

> [breaking in the middle of music with no "proper" bars]
>> I think this might actually be the issue.  Because I'm trying to create a
>> Schenker graph, there are no bar lines in what I've coded.  So, Lilypond
>> may not be able to segment the length appropriately, leading to the content
>> continuing off the page.
>> 
>> If that's correct, how do I tell Lilypond to make breaks according to the
>> page constraints while still visually keeping to what a Schenker graph is
>> supposed to look like?
>
> You simply insert '\bar ""' (w/o the apostrophs) in the music
> effectively telling LP it is ok to break here (because you create an
> empty barline).
>
> When you you have several systems in your akkolade you have to make
> sure the \bar "" happen at the same time in all systems.
>
>> But if that's the case, how do I equalize the amount of space
>> each note head takes (everything should be the same, regardless of length)?
>
> That's a different question and not easily answered in one
> sentence. You have read the Notation Manual on horizontal spacing and
> the many options available to influence that?

There is also the option to write

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

to allow line breaks anywhere.

-- 
David Kastrup



Re: Viewing PDF output

2020-01-31 Thread Michael Gerdau
[breaking in the middle of music with no "proper" bars]
> I think this might actually be the issue.  Because I'm trying to create a
> Schenker graph, there are no bar lines in what I've coded.  So, Lilypond
> may not be able to segment the length appropriately, leading to the content
> continuing off the page.
> 
> If that's correct, how do I tell Lilypond to make breaks according to the
> page constraints while still visually keeping to what a Schenker graph is
> supposed to look like?

You simply insert '\bar ""' (w/o the apostrophs) in the music effectively 
telling LP it is ok to break here (because you create an empty barline).

When you you have several systems in your akkolade you have to make sure the 
\bar "" happen at the same time in all systems.

> But if that's the case, how do I equalize the amount of space
> each note head takes (everything should be the same, regardless of length)?

That's a different question and not easily answered in one sentence. You have 
read the Notation Manual on horizontal spacing and the many options available 
to influence that?

Kind regards,
Michael
-- 
Michael Gerdau email: m...@qata.de
GPG-keys available on request or at public keyserver



Re: Viewing PDF output

2020-01-30 Thread Kevin Barry
On Thu, Jan 30, 2020 at 10:17:20PM -0500, Michael Finton wrote:
> If that's correct, how do I tell Lilypond to make breaks according to the
> page constraints while still visually keeping to what a Schenker graph is
> supposed to look like?  Is it as simple as just making the bar lines
> transparent?  But if that's the case, how do I equalize the amount of space
> each note head takes (everything should be the same, regardless of length)?

If you make the barlines transparent they will still occupy some space,
and they will only occur every few beats anyway, which probably isn't
the most suitable for Schenker graphs. What you need to do is insert
\bar "" at suitable points where the music can have a line break. For a
Schenker graph this could be after almost every note, so when I have
done them myself in the past in LilyPond I had a separate voice full of
empty space and \bar "". The below example shows what I mean:

breaks = {
  \repeat unfold 128 { s8 \bar "" }
}

\score {
  \new Staff <<
\breaks
\cadenzaOn
\repeat unfold 128 b8
  >>
}

By putting a potential break after every note, one allows LilyPond to
make the best choices about how to break the music up. (But of course
you can always manually put the \bar "" in places you think it will work
best.)

Kevin



Re: Viewing PDF output

2020-01-30 Thread Michael Finton
Good evening gents,

Thanks for the suggestions:

What about a file like that:

{ \repeat unfold 128 c'4 }


This worked perfectly!  I think we can rule out an issue with my pdf reader.

Another user replied privately and suggested a slight modification of what
Urs suggested:

  And try this, with an additional rogue quaver at the beginning:
  { c'8 \repeat unfold 128 c'4 }
  Lilypond cannot break this anywhere, and the output runs off the
page.

This recreated the issue exactly.

In his note, this user also mentioned:

 Lilypond breaks music between systems automatically, of course. And
 it can do so generally only at bar lines. But this relies on note
 lengths also breaking at bar lines, of course - which in proper music
 they always do.

I think this might actually be the issue.  Because I'm trying to create a
Schenker graph, there are no bar lines in what I've coded.  So, Lilypond
may not be able to segment the length appropriately, leading to the content
continuing off the page.

If that's correct, how do I tell Lilypond to make breaks according to the
page constraints while still visually keeping to what a Schenker graph is
supposed to look like?  Is it as simple as just making the bar lines
transparent?  But if that's the case, how do I equalize the amount of space
each note head takes (everything should be the same, regardless of length)?

Mike


On Thu, Jan 30, 2020 at 2:49 AM Urs Liska  wrote:

> Am Donnerstag, den 30.01.2020, 02:39 -0500 schrieb Michael Finton:
>
> Urs and Abraham,
>
> First, thank you for the warm welcome :)  I appreciate your speedy replies.
>
> Full disclosure:  I've only been using Lilypond for around three weeks.
> Long story short, I wanted to try and input / print out a copy of a
> Schenkerian analysis that I had done on manuscript decades  ago, and
> decided to try and teach myself the language.  What on earth could possibly
> go wrong?!
>
>
> LOL
>
>
> I unfortunately haven't created other files and so honestly don't know the
> source of the difficulties I'm having.  However, the description that you
> provided, Urs, is exactly what I'm experiencing.  It wouldn't surprise me
> if the issues are related to the \layout section and the values I've
> entered.
>
> I'm happy to upload the PDF output as well as the source code - I just
> wanted to confirm that I wasn't breaking any rules before I did so.  And if
> it's ok for me to go ahead and do that, please, be gentle :)  It's
> definitely a work in progress.
>
>
> You don't break *our* rules by posting LilyPond sources here, that's what
> we usually require. You should just think of any possible copyright of the
> material itself before posting.
>
> Generally one should provide a MWE (minimal working example exposing the
> problem), but I assume in your case that's the issue - if you could strip
> the issue down to an MWE you'd probably have solved it by yourself.
>
> PDF or PNG should only be added if they are *needed* to show an issue, and
> if they are rather small.
>
> HTH
> Urs
>
>
>
> Mike
>
> On Thu, Jan 30, 2020 at 2:17 AM Urs Liska  wrote:
>
> Am Mittwoch, den 29.01.2020, 20:48 -0700 schrieb Abraham Lee:
>
> Hey, Michael!
>
> As the saying goes, “Welcome to the ‘Pond!”
>
> On Wed, Jan 29, 2020 at 7:45 PM Michael Finton <
> michaelfin...@alumni.iu.edu> wrote:
>
> Hi all,
>
> I looked through the archives, but didn’t see this issue addressed. My
> apologies if I somehow missed it.
>
> I am relatively new to Lilypond. Everything I have coded seems to have
> been rendered successfully in my pdf reader. However, the horizontal width
> of the reader is constrained, such that only 3/4 of what has been coded
> shows in the pdf window.
>
> Is this a Lilypond issue?  That is, is there language I can use in my file
> that will render everything in my pdf?  Or is this instead an issue with my
> pdf reader (I’ve tried adjusting every setting I can think of, without any
> success).
>
>
> Hard to say exactly what the problem or solution is without seeing a
> sample (both input file and output pdf) of what you’ve tried. Would you
> mind supplying something that we can use to diagnose the situation? There’s
> a lot of very knowledgeable folks on this list. So, hopefully we can get to
> the bottom of this quickly so you can enjoy the fruits of your labor.
>
>
> That's totally true, we need more information.
> Is this with *every* score you produce? The first suspicion is that you
> introduced some errors that prevent LilyPond from breaking lines, which
> typically leads to the music "running off the page".
>
> What about a file like that:
>
> { \repeat unfold 128 c'4 }
>
> ?
>
> HTH
> Urs
>
>
> Best,
> Abraham
>
>


Re: Viewing PDF output

2020-01-29 Thread Urs Liska
Am Donnerstag, den 30.01.2020, 02:39 -0500 schrieb Michael Finton:
> Urs and Abraham,
> First, thank you for the warm welcome :)  I appreciate your
> speedy replies.
> 
> Full disclosure:  I've only been using Lilypond for around three
> weeks. Long story short, I wanted to try and input / print out a copy
> of a Schenkerian analysis that I had done on manuscript decades  ago,
> and decided to try and teach myself the language.  What on earth
> could possibly go wrong?! 

LOL
> I unfortunately haven't created other files and so honestly don't
> know the source of the difficulties I'm having.  However, the
> description that you provided, Urs, is exactly what I'm
> experiencing.  It wouldn't surprise me if the issues are related to
> the \layout section and the values I've entered.
> 
> I'm happy to upload the PDF output as well as the source code - I
> just wanted to confirm that I wasn't breaking any rules before I did
> so.  And if it's ok for me to go ahead and do that, please, be gentle
> :)  It's definitely a work in progress.

You don't break *our* rules by posting LilyPond sources here, that's
what we usually require. You should just think of any possible
copyright of the material itself before posting.
Generally one should provide a MWE (minimal working example exposing
the problem), but I assume in your case that's the issue - if you could
strip the issue down to an MWE you'd probably have solved it by
yourself.
PDF or PNG should only be added if they are *needed* to show an issue,
and if they are rather small.
HTHUrs

> Mike
> On Thu, Jan 30, 2020 at 2:17 AM Urs Liska 
> wrote:
> > Am Mittwoch, den 29.01.2020, 20:48 -0700 schrieb Abraham Lee:
> > > Hey, Michael!
> > > 
> > > As the saying goes, “Welcome to the ‘Pond!” 
> > > 
> > > On Wed, Jan 29, 2020 at 7:45 PM Michael Finton <
> > > michaelfin...@alumni.iu.edu> wrote:
> > > > Hi all, 
> > > > 
> > > > 
> > > > 
> > > > I looked through the archives, but didn’t see this issue
> > > > addressed. My apologies if I somehow missed it. 
> > > > 
> > > > 
> > > > 
> > > > I am relatively new to Lilypond. Everything I have coded seems
> > > > to have been rendered successfully in my pdf reader. However,
> > > > the horizontal width of the reader is constrained, such that
> > > > only 3/4 of what has been coded shows in the pdf window. 
> > > > 
> > > > 
> > > > 
> > > > Is this a Lilypond issue?  That is, is there language I can use
> > > > in my file that will render everything in my pdf?  Or is this
> > > > instead an issue with my pdf reader (I’ve tried adjusting every
> > > > setting I can think of, without any success).
> > > 
> > > Hard to say exactly what the problem or solution is without
> > > seeing a sample (both input file and output pdf) of what you’ve
> > > tried. Would you mind supplying something that we can use to
> > > diagnose the situation? There’s a lot of very knowledgeable folks
> > > on this list. So, hopefully we can get to the bottom of this
> > > quickly so you can enjoy the fruits of your labor.
> > 
> > That's totally true, we need more information.Is this with *every*
> > score you produce? The first suspicion is that you introduced some
> > errors that prevent LilyPond from breaking lines, which typically
> > leads to the music "running off the page".
> > What about a file like that:
> > { \repeat unfold 128 c'4 }
> > ?
> > HTHUrs
> > > Best,
> > > Abraham


Re: Viewing PDF output

2020-01-29 Thread Michael Finton
Urs and Abraham,

First, thank you for the warm welcome :)  I appreciate your speedy replies.

Full disclosure:  I've only been using Lilypond for around three weeks.
Long story short, I wanted to try and input / print out a copy of a
Schenkerian analysis that I had done on manuscript decades  ago, and
decided to try and teach myself the language.  What on earth could possibly
go wrong?!

I unfortunately haven't created other files and so honestly don't know the
source of the difficulties I'm having.  However, the description that you
provided, Urs, is exactly what I'm experiencing.  It wouldn't surprise me
if the issues are related to the \layout section and the values I've
entered.

I'm happy to upload the PDF output as well as the source code - I just
wanted to confirm that I wasn't breaking any rules before I did so.  And if
it's ok for me to go ahead and do that, please, be gentle :)  It's
definitely a work in progress.

Mike

On Thu, Jan 30, 2020 at 2:17 AM Urs Liska  wrote:

> Am Mittwoch, den 29.01.2020, 20:48 -0700 schrieb Abraham Lee:
>
> Hey, Michael!
>
> As the saying goes, “Welcome to the ‘Pond!”
>
> On Wed, Jan 29, 2020 at 7:45 PM Michael Finton <
> michaelfin...@alumni.iu.edu> wrote:
>
> Hi all,
>
> I looked through the archives, but didn’t see this issue addressed. My
> apologies if I somehow missed it.
>
> I am relatively new to Lilypond. Everything I have coded seems to have
> been rendered successfully in my pdf reader. However, the horizontal width
> of the reader is constrained, such that only 3/4 of what has been coded
> shows in the pdf window.
>
> Is this a Lilypond issue?  That is, is there language I can use in my file
> that will render everything in my pdf?  Or is this instead an issue with my
> pdf reader (I’ve tried adjusting every setting I can think of, without any
> success).
>
>
> Hard to say exactly what the problem or solution is without seeing a
> sample (both input file and output pdf) of what you’ve tried. Would you
> mind supplying something that we can use to diagnose the situation? There’s
> a lot of very knowledgeable folks on this list. So, hopefully we can get to
> the bottom of this quickly so you can enjoy the fruits of your labor.
>
>
> That's totally true, we need more information.
> Is this with *every* score you produce? The first suspicion is that you
> introduced some errors that prevent LilyPond from breaking lines, which
> typically leads to the music "running off the page".
>
> What about a file like that:
>
> { \repeat unfold 128 c'4 }
>
> ?
>
> HTH
> Urs
>
>
> Best,
> Abraham
>
>


Re: Viewing PDF output

2020-01-29 Thread Urs Liska
Am Mittwoch, den 29.01.2020, 20:48 -0700 schrieb Abraham Lee:
> Hey, Michael!
> 
> As the saying goes, “Welcome to the ‘Pond!” 
> 
> On Wed, Jan 29, 2020 at 7:45 PM Michael Finton <
> michaelfin...@alumni.iu.edu> wrote:
> > Hi all, 
> > 
> > 
> > 
> > I looked through the archives, but didn’t see this issue addressed.
> > My apologies if I somehow missed it. 
> > 
> > 
> > 
> > I am relatively new to Lilypond. Everything I have coded seems to
> > have been rendered successfully in my pdf reader. However, the
> > horizontal width of the reader is constrained, such that only 3/4
> > of what has been coded shows in the pdf window. 
> > 
> > 
> > 
> > Is this a Lilypond issue?  That is, is there language I can use in
> > my file that will render everything in my pdf?  Or is this instead
> > an issue with my pdf reader (I’ve tried adjusting every setting I
> > can think of, without any success).
> 
> Hard to say exactly what the problem or solution is without seeing a
> sample (both input file and output pdf) of what you’ve tried. Would
> you mind supplying something that we can use to diagnose the
> situation? There’s a lot of very knowledgeable folks on this list.
> So, hopefully we can get to the bottom of this quickly so you can
> enjoy the fruits of your labor.

That's totally true, we need more information.Is this with *every*
score you produce? The first suspicion is that you introduced some
errors that prevent LilyPond from breaking lines, which typically leads
to the music "running off the page".
What about a file like that:
{ \repeat unfold 128 c'4 }
?
HTHUrs
> Best,
> Abraham


Re: Viewing PDF output

2020-01-29 Thread Abraham Lee
Hey, Michael!

As the saying goes, “Welcome to the ‘Pond!”

On Wed, Jan 29, 2020 at 7:45 PM Michael Finton 
wrote:

> Hi all,
>
> I looked through the archives, but didn’t see this issue addressed. My
> apologies if I somehow missed it.
>
> I am relatively new to Lilypond. Everything I have coded seems to have
> been rendered successfully in my pdf reader. However, the horizontal width
> of the reader is constrained, such that only 3/4 of what has been coded
> shows in the pdf window.
>
> Is this a Lilypond issue?  That is, is there language I can use in my file
> that will render everything in my pdf?  Or is this instead an issue with my
> pdf reader (I’ve tried adjusting every setting I can think of, without any
> success).


Hard to say exactly what the problem or solution is without seeing a sample
(both input file and output pdf) of what you’ve tried. Would you mind
supplying something that we can use to diagnose the situation? There’s a
lot of very knowledgeable folks on this list. So, hopefully we can get to
the bottom of this quickly so you can enjoy the fruits of your labor.

Best,
Abraham