multiple dynamics contexts

2017-02-08 Thread Mason Hock
I like the way that a dynamics context organizes content below the staff,
and I would like to simultaneously handle content above the staff
similarly. I find that simply creating a dynamics context before the staff

<<
  \new Dynamics {
% content above staff
  }
  \new Staff {
 % music
  }
>>

works as expected, but when I try to use two dynamics contexts for content
above and below the staff,

<<
  \new Dynamics {
% content above staff
  }
  \new Staff {
 % music
  }
  \new Dynamics {
% content below staff
  }
>>

there is too much space between the staff and the content below it.

Is there a way of using multiple dynamics contexts for one staff and/or a
better way of achieving the results I'm going for?

Thanks,

Mason
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread Urs Liska
Hi John,


Am 09.02.2017 um 07:41 schrieb Werner LEMBERG:
>> Ok, you can see the most current version of my design on
>> http://jmroper.com/lilypond

Thanks for putting this up, it's very helpful to have it that way.
Of course you will probably get 20 different opinions from 15 users and
developers, but from my side I'd say this is definitely something we can
build upon.
Probably it will look "old-fashioned" in three or seven years, but
that's the point of separating website from documentation - it will be
much easier to reuse the Markdown content for a completely different
website then than it is to make substantial changes *now*.

> Thanks.  First, some comments regarding the layout.
>
> . I like the sans-serif font more that you've used in the previous
>   version.  Please restore it.

I don't have an opinion about the font itself, but I noticed that the
overall site design with that rather modern font is on some contrast
with the style of the music examples. I wouldn't use such a Futura-like
font in LIlyPond scores (at least with the default notation font)
either, so it might make sense to reconsider the font from that perspective.

>
> . At the top, I get something like the attached image (using Chrome),
>   regardless of the magnification.  This looks bad.  Isn't it possible
>   to have the button size changed dynamically?

Just for the record: With Firefox on Linux there's *no* problem.

>
>> I am keeping the source for the website in
>> https://github.com/johnroper100/LilyPond-Web-Redesign
> . Where are the instructions how the web pages are created?

Here: https://github.com/johnroper100/Blended

> . The layout of your repository is confusing me.  Right now, the
>   contents and the templates are completely intermixed, without any
>   clean separation.

I don't think that's true. There are some "bleed-overs" that should be
addressed, but there is the concept of separation ...

>
>   Looking at `templates/home_page.html' – which I guess is the source
>   template for the top-level web page – I see an ordinary HTML file
>   `home_page.html'.  

On the Blended page it says that the optional home_page.html can be used
(to have a different entry page), so this is a one-time "template" where
it's not technically necessary to separate template from content.

However, I'd strongly suggest to make that home_page use templates and
retrieve its content from a separate content file. I don't know if
that's built into Blender or only into the concrete implementation of
this website mockup. Probably Blender *would* be able to use templating
for this as well. If that's true I'd say it is not much of an issue
right now.

> Is this really the file that should be edited?  I
>   would have expected something like a `content/home_page.md' file.
>   Similarly, why is there an `content/examples.html' file and not an
>   `content/examples.md' file (or something similar in a higher-level
>   markup language)?

Idem. From what I see this should be easily achievable. If it is not you
should consider updating the engine because really all content should go
into a "content" folder where *everything* that the website authors
might want to touch can be found.

The third part of that is the nav1.html.
I *assume* it should be possible to make this dynamic as well. Of course
the navigational structure will change much less often than the, content
but still it should be accessible for editing the usual way. I *suggest*
using something like a nav.json in the contents or in a new "meta" folder.

>
> Please improve that, otherwise I can't evaluate your workflow at
> all...

I think that's too bold a statement, but yes, there is stuff to be improved.

In any case, thank you for the work so far.

Urs

>
>
> Werner
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread Werner LEMBERG

> Ok, you can see the most current version of my design on
> http://jmroper.com/lilypond

Thanks.  First, some comments regarding the layout.

. I like the sans-serif font more that you've used in the previous
  version.  Please restore it.

. At the top, I get something like the attached image (using Chrome),
  regardless of the magnification.  This looks bad.  Isn't it possible
  to have the button size changed dynamically?

> I am keeping the source for the website in
> https://github.com/johnroper100/LilyPond-Web-Redesign

. Where are the instructions how the web pages are created?

. The layout of your repository is confusing me.  Right now, the
  contents and the templates are completely intermixed, without any
  clean separation.

  Looking at `templates/home_page.html' – which I guess is the source
  template for the top-level web page – I see an ordinary HTML file
  `home_page.html'.  Is this really the file that should be edited?  I
  would have expected something like a `content/home_page.md' file.
  Similarly, why is there an `content/examples.html' file and not an
  `content/examples.md' file (or something similar in a higher-level
  markup language)?

Please improve that, otherwise I can't evaluate your workflow at
all...


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread Shane Brandes
The opening page is over 50% header vertically. The rest of the pages seem
decently proportioned. The 1px grey lines around the music examples might
be nicer not present at all.
Did I ever mention how much sans serif in block text is irritating. Yes I
was going to make a suggestion for a nice newer serif font, but I can't for
the life of me remember what it is.

Shane

On Wed, Feb 8, 2017 at 8:02 PM, John Roper  wrote:

> Ok, I changed the image to something that made more sense. What do you
> guys think about everything else?
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread John Roper
Ok, I changed the image to something that made more sense. What do you guys
think about everything else?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread David Kastrup
David Kastrup  writes:

> John Roper  writes:
>
>>>
>>> >> John, can you set up
>>> >>
>>> >>   http://jmroper.com/lilypond/
>>> >>
>>> >> with `blended' together with a README so that we can inspect the
>>> >> source code, CSS, etc., and the necessary steps to create it?  I
>>> >> think only a direct comparison can answer our questions.
>>>
>>
>> Ok, you can see the most current version of my design on
>> http://jmroper.com/lilypond
>
> Orchestra violinists are not really available in mirrored versions.

You mirrored the original photograph from
.  All the violins
are the wrong way round.  You cannot reverse a violin like that: it's
not symmetrical mechanically and acoustically.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread Simon Albrecht

On 09.02.2017 00:11, John Roper wrote:
Ok, you can see the most current version of my design on 
http://jmroper.com/lilypond


Of course there would be much to do on the details (e.g. I also don’t 
much fancy the title image with the violinist), but since this is about 
the design, I’ve got to say: I like it, and if it’s possible to 
integrate this sensibly with the documentation system (on which 
technical aspect I can’t comment), I’d love for LilyPond to have such a 
website.


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread David Kastrup
John Roper  writes:

>>
>> >> John, can you set up
>> >>
>> >>   http://jmroper.com/lilypond/
>> >>
>> >> with `blended' together with a README so that we can inspect the
>> >> source code, CSS, etc., and the necessary steps to create it?  I
>> >> think only a direct comparison can answer our questions.
>>
>
> Ok, you can see the most current version of my design on
> http://jmroper.com/lilypond

Orchestra violinists are not really available in mirrored versions.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New LilyPond website

2017-02-08 Thread John Roper
>
> >> John, can you set up
> >>
> >>   http://jmroper.com/lilypond/
> >>
> >> with `blended' together with a README so that we can inspect the
> >> source code, CSS, etc., and the necessary steps to create it?  I
> >> think only a direct comparison can answer our questions.
>

Ok, you can see the most current version of my design on
http://jmroper.com/lilypond

I am keeping the source for the website in
https://github.com/johnroper100/LilyPond-Web-Redesign
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread David Kastrup
arlin  writes:

> Thank yu for the reply.
>
> I'm transcribing renaissance music, which was barless, but I want barlines
> to appear between the staves, i.e. mensurstriche layout. The snippet I
> quoted is at
> http://lilypond.org/doc/v2.18/Documentation/notation/working-with-ancient-music_002d_002dscenarios-and-solutions
>
> But it doesn't work.  What I'd really like is a snippet that will produce
> the result shown on that page.

Your best bet is to consult the documentation corresponding to your
version of LilyPond.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread arlin
Thank you, Joram.  The version was the issue.  It works now.

Thank you, thank you, thank you.


-Arlin



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/hide-staff-BarLine-fails-tp199864p199868.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


hide staff.BarLine fails

2017-02-08 Thread arlin
I am trying to produce a score with barlines between the staves.  The manual
provides this snip, but I get an "unknown escaped string: '\hide'" when I
compile it.  Thanks in advance for any help.

global = {
  \hide Staff.BarLine
  s1 s
  % the final bar line is not interrupted
  \undo \hide Staff.BarLine
  \bar "|."
}
\new StaffGroup \relative c'' {
  <<
\new Staff { << \global { c1 c } >> }
\new Staff { << \global { c c } >> }
  >>
}





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/hide-staff-BarLine-fails-tp199864.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread arlin
Thank yu for the reply.

I'm transcribing renaissance music, which was barless, but I want barlines
to appear between the staves, i.e. mensurstriche layout. The snippet I
quoted is at
http://lilypond.org/doc/v2.18/Documentation/notation/working-with-ancient-music_002d_002dscenarios-and-solutions

But it doesn't work.  What I'd really like is a snippet that will produce
the result shown on that page.


-Arlin



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/hide-staff-BarLine-fails-tp199864p199866.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread SoundsFromSound
Noeck wrote
> 
>> \override BarLine #'stencil = ##f
> 
> This is just the same as
>   \omit BarLine
> and it won't work, because you need the right context "Staff":
>   \omit Staff.BarLine
> or equivalent (also working with older versions):
>   \override Staff.BarLine #'stencil = ##f

Sorry for any confusion, but you echoed my point exactly - which was that
contexts are important to consider. :)
i.e. Staff, etc.


Good idea about the version fix, I didn't even think of that. I've been on
2.19.x for so long now! Glad it was an easy fix!




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/hide-staff-BarLine-fails-tp199864p199870.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Problem: Marks having the same vertical spacing

2017-02-08 Thread Stefano Troncaro
Hello everyone, I have been unable to understand the cause of the following
behavior, meaning I currently lack a solution.

I moved the Mark_Engraver to the Dynamic context, so that in the chamber
music score I'm working with I could put a Dynamic context both above the
piano and above all the other instruments. Then I stored all the contents
for this Dynamic staff (consisting of tempo indications and different text
spanners) in a variable so that I would only have to write them once.
Example code in the end of this message.

The problem with this approach is that I get inconsistent vertical spacing
(see attached images for examples).

How can I correct this?

One thing I tried that helped somewhat is using the function
ly:music-deep-copy instead of just using the variable. This makes it so
that most of the time the vertical spacing is fine, but there are
exceptions like the ones in the images I provided that I don't know how to
solve.

Thank you in advance.

Example code follows (lilypond version 2.19.52)

My layout block:
\layout {
  \context {
\PianoStaff
connectArpeggios = ##t
\accidentalStyle piano
  }
  \context {
\Staff
\consists "Staff_collecting_engraver"
printKeyCancellation = ##f
\accidentalStyle modern
  }
  \context {
\Dynamics
\consists "Staff_collecting_engraver"
\consists "Mark_engraver"
\consists "Metronome_mark_engraver"
\override RehearsalMark #'self-alignment-X = #LEFT
  }
  \context {
\Score
\remove "Staff_collecting_engraver"
\remove "Mark_engraver"
\remove "Metronome_mark_engraver"
\override DynamicTextSpanner.style = #'none
\override DynamicLineSpanner.staff-padding = #4
\override TextScript.staff-padding = #1
\override TextSpanner.to-barline = ##t
\numericTimeSignature
\mergeDifferentlyDottedOn
tieWaitForNote = ##t
harmonicDots = ##t
  }
}

My score block:
movCFullScore = \new Score {
  <<
\new GrandStaff <<
  \new Dynamics = "ScoreCelloTempo" \with {
fontSize = #(magnification->font-size 0.7142)
} {
#(ly:music-deep-copy #{ \movCInputTempo #})
  }
  \new Staff = "ScoreCelloStaff" \with {
\magnifyStaff #5/7 } {
\movCInputCello
  }
>>
\new PianoStaff <<
  \new Dynamics = "ScorePianoTempo" {
#(ly:music-deep-copy #{ \movCInputTempo #})
  }
  \new Staff = "ScorePianoRHStaff" {
\movCInputPianoRH
  }
  \new Dynamics = "ScorePianoDyn" {
\movCInputPianoDyn
  }
  \new Staff = "ScorePianoLHStaff" {
\movCInputPianoLH
  }
  \new Dynamics = "ScorePianoPed" {
\movCInputPianoPed
  }
>>
  >>
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread Noeck
Hi Arlin,

which version do you use? You should use the manual that fits your
LilyPond version. \hide and \omit have been introduced around 2.19
(others can be more precise) and your error sounds like you use an older
version than required for this. If you need to use the old version, you
need to set the stencil to false (see below).

If I run your snippet with LilyPond 2.19.50, it does what's expected:
the barlines are hidden except the last one.
You could also add
  \hide Score.SpanBar
and undo it later to remove the bar line between staves.


> \override BarLine #'stencil = ##f

This is just the same as
  \omit BarLine
and it won't work, because you need the right context "Staff":
  \omit Staff.BarLine
or equivalent (also working with older versions):
  \override Staff.BarLine #'stencil = ##f


Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide staff.BarLine fails

2017-02-08 Thread SoundsFromSound
arlin wrote
> I am trying to produce a score with barlines between the staves.  The
> manual provides this snip, but I get an "unknown escaped string: '\hide'"
> when I compile it.  Thanks in advance for any help.
> 
> global = {
>   \hide Staff.BarLine
>   s1 s
>   % the final bar line is not interrupted
>   \undo \hide Staff.BarLine
>   \bar "|."
> }
> \new StaffGroup \relative c'' {
>   <<
> \new Staff { << \global { c1 c } >> }
> \new Staff { << \global { c c } >> }
>   >>
> }


Hello Arlin,

A few things. First, remember that \hide makes objects transparent, would
you perhaps want \omit instead?

Also, remember too that contexts are important to consider.

i.e.

\override BarLine #'stencil = ##f


So,

1) Do you want to remove certain barlines or
2) Do you want to remove all barlines?





-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/hide-staff-BarLine-fails-tp199864p199865.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user