Re: missing glissando features (bugs?)

2009-05-05 Thread Marc Hohl

Neil Puttock schrieb:

2009/5/2 Marc Hohl :
  

I have made some observations concerning \glissando:

1) accidentals are not recognised properly; I know this is in the bug list
and there are workarounds,
 see http://lists.gnu.org/archive/html/bug-lilypond/2005-08/msg00235.html



This isn't at all straightforward to fix (I had a stab at it a while
ago, and it's tricky to get the positioning correct on the right hand
side because the accidental changes the anchor point for the end of
the glissando.)

  

2) the glissando line between half steps should indicate the direction;
 e.g. a glissando line between c and c# should raise a bit and not be
parallel to the staff lines;

3) in tablature, the glissando is always indicated upwards, but it should be
drawn in respect to the fret number;
 e.g. 3/5\3, not 3/5/3;

Should (2) and (3) be considered as bugs? I have found a request from
9/2005:



Probably.

It should be quite easy to fix both problems with a callback for
'extra-dy (see below)

  

http://lists.gnu.org/archive/html/bug-lilypond/2005-09/msg00112.html

and it seems to me that this has been partly implemented
(the lines betweeen fret numbers are now sloped, so there _has_ been some
progress).

Are there any hints/workarounds to solve this problem?



>From the glissando you can get the left and right noteheads using
ly:spanner-bound, from which it's possible to retrieve the pitches. A
simple comparision of pitches should allow you to set the correct
return value for 'extra-dy.
  
Thanks for your informations. I did a lot of "git grep" in the sources, 
but I didn't find
very much about invoking ly:spanner-bound. How can I obtain the value 
for the first argument,

i.e. the  of (ly:spanner-bound  )?

For TabVoice.Glissando, you can get the staff-positions for the
bounding notes, so it's possible to apply extra-dy only for glissandos
between tab notes on the same line.

Regards,
Neil

  




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


programming error: minimise_least_squares (): Nothing to minimise

2009-05-05 Thread nick . payne
 The full error in the console is 

 programming error: minimise_least_squares (): Nothing to minimise
 This means that vertical spacing is triggered
 before line breaking
 continuing, cross fingers

 I originally asked this question a couple of weeks ago but never got
a reply. What causes this error? I have a fairly complex score where
if I override a beam position with 

 once override Beam #'positions = #'(l . r)

 then this error will appear, though the output still looks fine.
I've also found that as I add more bars, the error will disappear
again, but then reappears later on when yet more bars are added.

 I'm running 2.12.2 on Windows.

 Nick Payne
 ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: horizontal alignment suggestions

2009-05-05 Thread James E. Bailey


Am 04.05.2009 um 23:03 schrieb Neil Puttock:


2009/5/3 Kieren MacMillan :


There's likely a way to make a Scheme function which automatically
\translate-s the text the correct amount, but I don't have time to
investigate it.


Since the instrument name conveniently makes up the negative part of
the score markup's horizontal extent, the easiest workaround is to
remove it from the score's bounding box.

Regards,
Neil



Brilliant! I could never have come up with that on my own, but I am  
very grateful to you two for helping me, and for the wondeful solution!


James E. Bailey



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


Re:collision with crescendo text (-Eluze)

2009-05-05 Thread Stefan Thomas
Dear Eluze,
thanks for Your help!
It works, but it seems to be really complicated, for me at least!
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Re:collision with crescendo text (-Eluze)

2009-05-05 Thread -Eluze


kontrapunktstefan wrote:
> 
> 
> It works, but it seems to be really complicated, for me at least!
> 
hi Stefan

why don't you reply in the thread you started - now it gets difficult to
find corresponding parts!?

there is also a more simple solution - but be aware that the result will
depend on how dense the measures following on the same line are drawn and/or
how many notes are spanned:

\paper { ragged-right =##f }
{
  \clef "G_8"
  \set crescendoText = \markup { \italic { cresc. } }
  \set crescendoSpanner = #'text
  bes 2\<  des \mf r 1
  }

-- 
View this message in context: 
http://www.nabble.com/Re%3Acollision-with-crescendo-text-%28-Eluze%29-tp23394170p23394690.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Chord substitution mystery

2009-05-05 Thread Stan Mulder
I was using a chord substitution scheme submitted here by Kieren MacMillan. It
works well and I enhanced it for augmented chords. However, I'm trying to
display a plus sign as the augmented symbol and in the case of the C augmented7
chord it displays C7/#5 instead of C+7. Whereas the C aug 9 is fine, showing
C+9:

 \paper {
   ragged-last  = ##f
 }
 
 \include "english.ly"
 
 FGGChordNames =
 {
 1-\markup { \super "maj9" }
 1-\markup { \super "6(add9)" }
 1-\markup { + }
 1-\markup { +\super "7" }
 1-\markup { +\super "9" }
 }
 chExceptions = #(append (sequential-music-to-chord-exceptions 
  FGGChordNames #t) ignatzekExceptions)
 
 melody = \relative c'' {
c4 c c c c
\bar "|."
 }
 
 harmonies = \chordmode {
\set chordChanges = ##f
\set chordNameExceptions = #chExceptions
c4:maj9
c4:6.9
c4:aug
c4:aug7
c4:aug9
 }
  
 \score {
<:<
\new ChordNames {
\set chordChanges = ##t
\harmonies
}
\new Voice = "one" {
\melody
}
 >:>
 \layout { }
 \midi { }
 }




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


Re: Chord substitution mystery

2009-05-05 Thread Kieren MacMillan

Hi Stan,

I was using a chord substitution scheme submitted here by Kieren  
MacMillan.


Aw, shucks...  ;)

It works well and I enhanced it for augmented chords. However, I'm  
trying to
display a plus sign as the augmented symbol and in the case of the  
C augmented7
chord it displays C7/#5 instead of C+7. Whereas the C aug 9 is  
fine, showing C+9:


You've got an errant ' in your chord definition -- you actually want

 1-\markup { +\super "7" }

Hope this helps!
Kieren.


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


Re: Chord substitution mystery

2009-05-05 Thread Stan Mulder
Kieren MacMillan  sympatico.ca> writes:

> You've got an errant ' in your chord definition -- you actually want
> 
>   1-\markup { +\super "7" }
> 
> Hope this helps!


That does help. I guess the quote mark put that particular note in a different
octave???



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


bad spacing

2009-05-05 Thread Victor Eijkhout

This looks really bad:

harpchords = \relative c' { \time 15/8
  s2^"C" s2^"G/B" s2^"Am" s4. | s2^"Cmaj7/B" s2^"Em/G" s2^"F" s4. |
  s2^G s2^"F/A" s2^"G/B" s4. | s2^"Dm/A" s2^"Dm/F" s2 s4. |
  \repeat volta 2 {
s2^C s2^"G/B" s2^"Am" s4.^"Am/G#" | s2^"Cmaj7/G" s2^"Em" s2^F  
s4.^"Bb/F" |

s2^G s2^"F/A" s2^"G/B" s4.^"Fdim/G#" | s2^"Am" s2^F s2 s4. |
  } s2^"C"
}

\score {
\new Staff { \set Staff.instrumentName = "Harp"  \harpchords }
}

Should it look better, or am I using the wrong mechanism?

Victor.



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


Re: bad spacing

2009-05-05 Thread Patrick McCarty
(resent to the list)

On Tue, May 5, 2009 at 8:03 PM, Victor Eijkhout  wrote:
> This looks really bad:
>
> harpchords = \relative c' { \time 15/8
>  s2^"C" s2^"G/B" s2^"Am" s4. | s2^"Cmaj7/B" s2^"Em/G" s2^"F" s4. |
>  s2^G s2^"F/A" s2^"G/B" s4. | s2^"Dm/A" s2^"Dm/F" s2 s4. |
>  \repeat volta 2 {
>    s2^C s2^"G/B" s2^"Am" s4.^"Am/G#" | s2^"Cmaj7/G" s2^"Em" s2^F s4.^"Bb/F"
> |
>    s2^G s2^"F/A" s2^"G/B" s4.^"Fdim/G#" | s2^"Am" s2^F s2 s4. |
>  } s2^"C"
> }
>
> \score {
> \new Staff { \set Staff.instrumentName = "Harp"  \harpchords }
> }
>
> Should it look better, or am I using the wrong mechanism?

Your method is fine.  Since spacer rests don't take up much space on
their own, the chord names create this lattice effect so that they
don't collide with each other.

Try adding \textLengthOn at the beginning of the \relative block.
This should give the effect you are looking for.

This command is explained in the Learning Manual, chapter 4.4.3:

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Outside_002dstaff-objects#g_t_005ctextLengthOn


HTH,
Patrick


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


vertical spacing between scores

2009-05-05 Thread James E. Bailey
If I have multiple scores on a single page, how can I control the  
vertical spacing between them. Currently it's a bit larger than I'd  
like it to be.


James E. Bailey



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