[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Hairpin.minimum-length gives wrong output
From:       Peter Toye <lilypond () ptoye ! com>
Date:       2019-10-31 9:35:42
Message-ID: 1105531725.20191031093542 () ptoye ! com
[Download RAW message or body]

Thanks, that works brilliantly. It's a bit of a kludge, but will do for now.

I don't see why the original didn't work, and I think it's a bug, so will report it \
there.

Best regards,

Peter
mailto:lilypond@ptoye.com
www.ptoye.com

-------------------------
Wednesday, October 30, 2019, 4:06:31 PM, Phil Holmes wrote:


Try s8\sf\> s8-\hide\p s4 | s2 2 2 2 2 2 2 2 2 2 2 2

--
Phil Holmes
 
 

----- Original Message -----
From: Peter Toye
To: Phil Holmes; lilypond-user@gnu.org
Sent: Wednesday, October 30, 2019 3:51 PM
Subject: Re: Hairpin.minimum-length gives wrong output

Sorry, a typo. Both lines should have \! rather than \p. What I want is the first \
quaver sf and the hairpin to finish before the next quaver, so that the 3rd quaver is \
at the same dynamic  as the 2nd one.

Here's a better MWV

\version "2.19.52"
\language "english"
{
  <<
    \new Staff {
      \time 2/4
      \clef "treble"
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4\break
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4\break
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4\break
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
    }
    \new Dynamics {
      s8\sf\> s8\! s4 | s2 2 2 2 2 2 2 2 2 2 2 2
      s8\sf\> s8\p s4 | s2 2 2 2 2 2 2 2 2 2 2 2
      \override Hairpin.minimum-length = #10
      s8\sf\> s8\! s4 | s2 2 2 2 2 2 2 2 2 2 2 2
      s8\sf\> s8\p s4 | s2 2 2 2 2 2 2 2 2 2
    }
  >>
}

Line 1 has the hairpin too late at both the start and endpoints. Line 2 has a warning \
that the hairpin is too small. Line 3 has the end of the hairpin too late. Line 4 is \
fine.

Best regards,

Peter
mailto:lilypond@ptoye.com
www.ptoye.com

-------------------------
Wednesday, October 30, 2019, 3:24:52 PM, Phil Holmes wrote:


Not quite sure of the output you want here.  Your 2 lines of your example aren't the \
same since the top line has a piano dynamic on it and the lower line doesn't.  Is the \
first quaver supposed to have the sf immediately below it?  If so, where do you \
expect the p dynamic to be?  If it's below the second quaver, all lily can try to do \
is space the quavers to fit in the minimum length of your hairpin, which it does.

--
Phil Holmes
 
 

----- Original Message -----
From: Peter Toye
To: lilypond-user@gnu.org
Sent: Wednesday, October 30, 2019 3:14 PM
Subject: Hairpin.minimum-length gives wrong output

This minimal criminal seems to give  wrong output. I want to make sure that the \
hairpin lasts for exactly one quaver (1/8 note). The first line gives a warning \
message that the hairpin is too short. The second line adjusts the length of the \
hairpin but it's now too long.

To try it out you may need to modify the number of notes depending on the paper size.

\version "2.19.52"

\language "english"

{
  <<
    \new Staff {
      \time 2/4
      \clef "treble"
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4\break
      c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
    }
    \new Dynamics {
      s8\sf\> s8\p s4 | s2 2 2 2 2 2 2 2 2 2 2 2
       \override Hairpin.minimum-length = #5
      s8\sf\> s8\! s4 | s2 2 2 2 2 2 2 2 2 2
    }
  >>
}
 
Regards,

Peter
mailto:lilypond@ptoye.com
www.ptoye.com


[Attachment #3 (text/html)]

<html><head><title>Re: Hairpin.minimum-length gives wrong output</title>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; \
IE=EDGE" /> </head>
<body>
<span style=" font-family:'Arial'; font-size: 9pt;">Thanks, that works brilliantly. \
It's a bit of a kludge, but will do for now.<br> <br>
I don't see why the original didn't work, and I think it's a bug, so will report it \
there.<br> <br>
Best regards,<br>
<br>
Peter<br>
</span><a style=" font-family:'arial'; font-size: 9pt;" \
href="mailto:lilypond@ptoye.com">mailto:lilypond@ptoye.com</a><br> <a style=" \
font-family:'arial'; font-size: 9pt;" \
href="http://www.ptoye.com">www.ptoye.com</a><br> <br>
<span style=" font-family:'Arial'; font-size: 9pt;">-------------------------<br>
Wednesday, October 30, 2019, 4:06:31 PM, Phil Holmes wrote:<br>
<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2 \
bgcolor="#ffffff"> <tr>
<td  width=3 bgcolor= #0000ff><br>
</td>
<td ><span style=" font-family:'arial'; font-size: 9pt;">Try s8\sf\&gt; s8-\hide\p s4 \
| s2 2 2 2 2 2 2 2 2 2 2 2<br> <br>
--<br>
Phil Holmes<br>
&nbsp;<br>
&nbsp;<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=3 bgcolor= #3200ff><br>
</td>
<td ><span style=" font-family:'arial'; font-size: 10pt;">----- Original Message \
-----<br> <b>From:</b>&nbsp;</span><a style=" font-family:'arial'; font-size: 10pt;" \
href="mailto:lilypond@ptoye.com">Peter Toye</a><br> <span style=" \
font-family:'arial'; font-size: 10pt;"><b>To:</b>&nbsp;</span><a style=" \
font-family:'arial'; font-size: 10pt;" href="mailto:mail@philholmes.net">Phil \
Holmes</a><span style=" font-family:'arial'; font-size: 10pt;">; </span><a style=" \
font-family:'arial'; font-size: 10pt;" \
href="mailto:lilypond-user@gnu.org">lilypond-user@gnu.org</a><br> <span style=" \
font-family:'arial'; font-size: 10pt;"><b>Sent:</b>&nbsp;Wednesday, October 30, 2019 \
3:51 PM<br> <b>Subject:</b>&nbsp;Re: Hairpin.minimum-length gives wrong output<br>
<br>
<span style=" font-size: 9pt;">Sorry, a typo. Both lines should have \! rather than \
\p. What I want is the first quaver sf and the hairpin to finish before the next \
quaver, so that the 3rd quaver is at the same dynamic &nbsp;as the 2nd one.<br> <br>
Here's a better MWV<br>
<br>
<span style=" font-family:'courier new'; font-size: 10pt;">\version "2.19.52"<br>
\language "english"<br>
{<br>
&nbsp; &lt;&lt;<br>
&nbsp; &nbsp; \new Staff {<br>
&nbsp; &nbsp; &nbsp; \time 2/4<br>
&nbsp; &nbsp; &nbsp; \clef "treble"<br>
&nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4\break<br> &nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4 4\break<br> &nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4 4 4\break<br> &nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4 4 4 4 4 4<br> &nbsp; &nbsp; }<br>
&nbsp; &nbsp; \new Dynamics {<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\! s4 | s2 2 2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\p s4 | s2 2 2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; &nbsp; \override Hairpin.minimum-length = #10<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\! s4 | s2 2 2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\p s4 | s2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; }<br>
&nbsp; &gt;&gt;<br>
}<br>
<br>
<span style=" font-family:'arial'; font-size: 9pt;">Line 1 has the hairpin too late \
at both the start and endpoints. Line 2 has a warning that the hairpin is too small. \
Line 3 has the end of the hairpin too late. Line 4 is fine.<br> <br>
Best regards,<br>
<br>
Peter<br>
</span></span></span></span><a style=" font-family:'arial'; font-size: 9pt;" \
href="mailto:lilypond@ptoye.com">mailto:lilypond@ptoye.com</a><br> <a style=" \
font-family:'arial'; font-size: 9pt;" \
href="http://www.ptoye.com">www.ptoye.com</a><br> <br>
<span style=" font-family:'arial'; font-size: 9pt;">-------------------------<br>
Wednesday, October 30, 2019, 3:24:52 PM, Phil Holmes wrote:<br>
<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2 \
bgcolor="#ffffff"> <tr>
<td  width=4 bgcolor= #0000ff><br>
</td>
<td ><span style=" font-family:'arial'; font-size: 9pt;">Not quite sure of the output \
you want here. &nbsp;Your 2 lines of your example aren't the same since the top line \
has a piano dynamic on it and the lower line doesn't. &nbsp;Is the first quaver \
supposed to have the sf immediately below it? &nbsp;If so, where do you expect the p \
dynamic to be? &nbsp;If it's below the second quaver, all lily can try to do is space \
the quavers to fit in the minimum length of your hairpin, which it does.<br> <br>
--<br>
Phil Holmes<br>
&nbsp;<br>
&nbsp;<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=5 bgcolor= #3200ff><br>
</td>
<td ><span style=" font-family:'arial'; font-size: 10pt;">----- Original Message \
-----<br> <b>From:</b>&nbsp;</span><a style=" font-family:'arial'; font-size: 10pt;" \
href="mailto:lilypond@ptoye.com">Peter Toye</a><br> <span style=" \
font-family:'arial'; font-size: 10pt;"><b>To:</b>&nbsp;</span><a style=" \
font-family:'arial'; font-size: 10pt;" \
href="mailto:lilypond-user@gnu.org">lilypond-user@gnu.org</a><br> <span style=" \
font-family:'arial'; font-size: 10pt;"><b>Sent:</b>&nbsp;Wednesday, October 30, 2019 \
3:14 PM<br> <b>Subject:</b>&nbsp;Hairpin.minimum-length gives wrong output<br>
<br>
<span style=" font-size: 9pt;">This minimal criminal seems to give &nbsp;wrong \
output. I want to make sure that the hairpin lasts for exactly one quaver (1/8 note). \
The first line gives a warning message that the hairpin is too short. The second line \
adjusts the length of the hairpin but it's now too long.<br> <br>
To try it out you may need to modify the number of notes depending on the paper \
size.<br> <br>
<span style=" font-family:'courier new'; font-size: 10pt;">\version "2.19.52"<br>
<br>
\language "english"<br>
<br>
{<br>
&nbsp; &lt;&lt;<br>
&nbsp; &nbsp; \new Staff {<br>
&nbsp; &nbsp; &nbsp; \time 2/4<br>
&nbsp; &nbsp; &nbsp; \clef "treble"<br>
&nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4\break<br> &nbsp; &nbsp; &nbsp; c''8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 \
4 4 4 4<br> &nbsp; &nbsp; }<br>
&nbsp; &nbsp; \new Dynamics {<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\p s4 | s2 2 2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; &nbsp; &nbsp;\override Hairpin.minimum-length = #5<br>
&nbsp; &nbsp; &nbsp; s8\sf\&gt; s8\! s4 | s2 2 2 2 2 2 2 2 2 2<br>
&nbsp; &nbsp; }<br>
&nbsp; &gt;&gt;<br>
}<br>
<span style=" font-family:'arial'; font-size: 9pt;">&nbsp;<br>
Regards,<br>
<br>
Peter<br>
</span></span></span></span><a style=" font-family:'arial'; font-size: 9pt;" \
href="mailto:lilypond@ptoye.com">mailto:lilypond@ptoye.com</a><br> <a style=" \
font-family:'arial'; font-size: 9pt;" \
href="http://www.ptoye.com">www.ptoye.com</a></td> </tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic