Re: No string for pitch #

2009-11-18 Thread Trevor Daniels


David Kastrup wrote Wednesday, November 18, 2009 7:21 AM



Jesús Guillermo Andrade  writes:



So far, I've been able list most chord shapes, but I keep getting
errors in the form of:

advertencia: No string for pitch # (given frets ())

What does these mean? I have read many of the .scm source files 
and I

still cannot understand.


Sounds like Lilypond is running out of strings for the given 
chords.

Just a wild guess.


Indeed it is.  Check your octaves are correct.
A note is probably in a too-low octave.

Trevor




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


Re: Indent only one system, replace long extender with dashes

2009-11-18 Thread Alexander Kobel

Hi, Frederick,


my e-mail from yesterday night was rejected; some server on it's way is 
currently blacklisted by SpamCop.

Hope it works this time,

Alexander

P.S.:
Still no idea about indenting the system, other than starting a new 
score at this place... :-(



Alexander Kobel wrote:

Frederick Dennis wrote:

Dear All,
\version "2.12.2"
How do you indent just one system?


Hi, Frederick,

perhaps I'm just tired, but no idea right now for this one.


Also, the section is voices singing: "Ah".
I used a hidden slur to get an extender


...which is not what you should do. Have a look at \melisma and 
\melismaEnd.



but would rather have a line of dashes
as the extenders look ugly to my mind.
How do I replace a long extender with
a row of dashes?


Look at the attached file. You might want to play around with all the 
properties of the lyric-hyphen-interface (see 
http://lilypond.org/doc/v2.13/Documentation/internals/lyric_002dhyphen_002dinterface#lyric_002dhyphen_002dinterface), 
since those are not set by default for LyricExtenders. I also added a 
little offset in X-direction - if you also think the extender is too 
short without this override, you could also try a hidden note as the 
last one in the melisma, but for me this looks worse since it corrupts 
the overall spacing. Your mileage may vary, though.



Cheers,
Alexander
mel = { c4\melisma d e f8 g\melismaEnd | \break c1 }
% with hidden note: (instead of the third override)
% mel = { c4\melisma d e f8[ g8*1/2] \hideNotes g\unHideNotes \melismaEnd | \break c1 }
lyr = \lyricmode {
	\once \override Lyrics . LyricExtender #'stencil = #ly:lyric-hyphen::print
	\once \override Lyrics . LyricExtender #'dash-period = #2.5
	\once \override Lyrics . LyricExtender #'extra-offset = #'(2 . 0)
	long-melisma __ next-syllable
}

\score {
	<<
		\new Staff \new Voice = "mel" \mel
		\new Lyrics \lyricsto "mel" \lyr
	>>
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: small blank space just after clef/time signs for example

2009-11-18 Thread Robin Bannister

MonAmiPierrot wrote:

I also would like to be given the possibility to put the blank space
between different examples from the same musical context



For big gaps you can use \stopStaff and \startStaff and put
suitable spacer rests in between.


For small gaps you could try misusing the BreathingSign:

|   severStaff = {
| \once \override BreathingSign #'text =
|   \markup \whiteout \with-dimensions #'(0 . 1) #'(-4.5 . 0.5) \null
| \breathe
|   }

where the 1 is saying how wide the gap should be.
To use this right at the beginning you need to precede it with
a small spacer rest like s8.


There is an tempo example at NR 5.1.5 Style Sheets
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Style-sheets#Style-sheets
which has the indication over the clef.
But positioning with #'extra-offset may cause problems.

An easy way to put text above the clef is
to have a RehearsalMark before the music starts.
|\mark \markup "Allegro"


Cheers,
Robin 




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


RE: small blank space just after clef/time signs for example

2009-11-18 Thread Piero Faustini

thanks, very useful.But for \stopStaff and \startStaff it won't work at the 
beginning, with a "s" invisible pause. Is there some "invisible" symbol I can 
use too cause some spacing? This would be useful also if I don't use "partial" 
measures at the beginning. 
Cheers,Piero
> From: r...@dataway.ch
> To: pierofaust...@hotmail.com; lilypond-user@gnu.org
> Subject: Re: small blank space just after clef/time signs for example
> Date: Wed, 18 Nov 2009 13:22:32 +0100
> 
> MonAmiPierrot wrote:
> > I also would like to be given the possibility to put the blank space
> > between different examples from the same musical context
> 
> 
> For big gaps you can use \stopStaff and \startStaff and put
> suitable spacer rests in between.
> 
> 
> For small gaps you could try misusing the BreathingSign:
> 
> |   severStaff = {
> | \once \override BreathingSign #'text =
> |   \markup \whiteout \with-dimensions #'(0 . 1) #'(-4.5 . 0.5) \null
> | \breathe
> |   }
> 
> where the 1 is saying how wide the gap should be.
> To use this right at the beginning you need to precede it with
> a small spacer rest like s8.
> 
> 
> There is an tempo example at NR 5.1.5 Style Sheets
> http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Style-sheets#Style-sheets
> which has the indication over the clef.
> But positioning with #'extra-offset may cause problems.
> 
> An easy way to put text above the clef is
> to have a RehearsalMark before the music starts.
> |\mark \markup "Allegro"
> 
> 
> Cheers,
> Robin 
> 
  
_
Messenger su ogni PC, prova la Web Bar!
http://www.messenger.it/___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: small blank space just after clef/time signs for example

2009-11-18 Thread Alexander Kobel

MonAmiPierrot wrote:

[...]
So, I need to put a small blank space (blank blank, without the staff) just
after theclef/key/time symbols, just to give the Idea that the key/time
environment beginnes earlier, and this is just an excerpt.


Hi, Piero,

I guess you want something like
  \once \override Staff . TimeSignature #'space-alist = #'((first-note 
extra-space . 5))

which is also available at least for clefs, key signatures and barlines.


HTH,
Alexander


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


Re: small blank space just after clef/time signs for example

2009-11-18 Thread Robin Bannister
MonAmiPierrot wrote: 
 But for \stopStaff and \startStaff it won't work at the beginning 
 with a "s" invisible pause. 


It seems OK to me (with 2.12.1) but maybe you want it effective even earlier.  
For that (and the \partial question) you could try using  
|  \grace s1  
to get the music started.  (Lilypond may not like this.) 



Alternatively, use a variable-length severStaff: 

|severStaff = #(define-music-function (parser location width) (number?) 
|#{\once \override BreathingSign #'text = \markup 
|\whiteout \with-dimensions #(cons 0 $width) #'(-4.5 . 0.5) \null

|  \breathe
|#})


Cheers,
Robin


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


RE: small blank space just after clef/time signs for example

2009-11-18 Thread Piero Faustini


> It seems OK to me (with 2.12.1) but maybe you want it effective even earlier. 
>  
> For that (and the \partial question) you could try using  
> |  \grace s1  
> to get the music started.  (Lilypond may not like this.) 
> 
, it seems not, at least for MIDI.
  
_
Facile, veloce, sicuro: scarica Internet Explorer 8 per MSN
http://www.microsoft.com/italy/windows/internet-explorer/msn.aspx___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Beginner's questions

2009-11-18 Thread Pierre RUEL

Hello,
I'm just beginning with Lilypond (after some years of practice with 
other notation softwares). In fact I've produced some PC programmed 
music and wan't to use Lilypond as an interface between VBA produced 
.txt code and music.
I have a huge .ly file of more than 400 A4 pages and the .log window 
lists a relatively small number of various errors but indefinitely 
repeated. And I have some difficulty to understand the .log 
observations. For instance, the .log stops at (sorry I'm of french 
mother thongue and use "italiano.ly"):


and the analysis of the soft says:
"syntax error, unexpected STRING, expecting > or DRUM_PITCH or 
MUSIC_FUNCTION or NOTENAME_PITCH"

<
 do''2 reb''2>
Could anybody explain  what is that "guilty" STRING ?

I don't understand either why a > is expected here.

Additional precision: I've a "relative c''" at the beginning and I 
shouldn't write '' after the notes (I believe). In fact I get the same 
errors with or without the '' after the notes themselves.

Thant you for any explanation.
Friendly regards
Pierre


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


Re: Beginner's questions

2009-11-18 Thread David Bobroff

I think that the likely problem is that you should change:



to:

2

You have specified a chord and the time values for chords takes place 
after the chord.


-David


Pierre RUEL wrote:

Hello,
I'm just beginning with Lilypond (after some years of practice with 
other notation softwares). In fact I've produced some PC programmed 
music and wan't to use Lilypond as an interface between VBA produced 
.txt code and music.
I have a huge .ly file of more than 400 A4 pages and the .log window 
lists a relatively small number of various errors but indefinitely 
repeated. And I have some difficulty to understand the .log 
observations. For instance, the .log stops at (sorry I'm of french 
mother thongue and use "italiano.ly"):


and the analysis of the soft says:
"syntax error, unexpected STRING, expecting > or DRUM_PITCH or 
MUSIC_FUNCTION or NOTENAME_PITCH"

<
 do''2 reb''2>
Could anybody explain  what is that "guilty" STRING ?

I don't understand either why a > is expected here.

Additional precision: I've a "relative c''" at the beginning and I 
shouldn't write '' after the notes (I believe). In fact I get the same 
errors with or without the '' after the notes themselves.

Thant you for any explanation.
Friendly regards
Pierre


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





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


Re: Beginner's questions

2009-11-18 Thread David Kastrup
Pierre RUEL  writes:

> Hello,
> I'm just beginning with Lilypond (after some years of practice with
> other notation softwares). In fact I've produced some PC programmed
> music and wan't to use Lilypond as an interface between VBA produced
> .txt code and music.
> I have a huge .ly file of more than 400 A4 pages and the .log window
> lists a relatively small number of various errors but indefinitely
> repeated. And I have some difficulty to understand the .log
> observations. For instance, the .log stops at (sorry I'm of french
> mother thongue and use "italiano.ly"):
> 
> and the analysis of the soft says:
> "syntax error, unexpected STRING, expecting > or DRUM_PITCH or
> MUSIC_FUNCTION or NOTENAME_PITCH"
> <
>  do''2 reb''2>
> Could anybody explain  what is that "guilty" STRING ?

Apparently do.  Seems like you don't use italiano.ly after all.

> I don't understand either why a > is expected here.
>
> Additional precision: I've a "relative c''" at the beginning

Which would not work if you _did_ use italiano.ly.

-- 
David Kastrup



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


Re: Beginner's questions

2009-11-18 Thread James E. Bailey


On 18.11.2009, at 18:36, David Kastrup wrote:


Pierre RUEL  writes:


Hello,
…



and the analysis of the soft says:
"syntax error, unexpected STRING, expecting > or DRUM_PITCH or
MUSIC_FUNCTION or NOTENAME_PITCH"
<
 do''2 reb''2>
Could anybody explain  what is that "guilty" STRING ?


Apparently do.  Seems like you don't use italiano.ly after all.


Translation. You need to add \include "italiano.ly" to your input file.




James E. Bailey



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


Re: Beginner's questions

2009-11-18 Thread Trevor Daniels


David Kastrup wrote Wednesday, November 18, 2009 5:36 PM



Pierre RUEL  writes:


and the analysis of the soft says:
"syntax error, unexpected STRING, expecting > or DRUM_PITCH or
MUSIC_FUNCTION or NOTENAME_PITCH"
<
 do''2 reb''2>
Could anybody explain  what is that "guilty" STRING ?


Apparently do.  Seems like you don't use italiano.ly after all.


No, the problem is the durations inside the chord.
There should be a single duration outside the chord.

Trevor




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


Are these results possible with LilyPond?

2009-11-18 Thread Benedikt Hager
Hello all!

For the transcription of Beethoven sketches I need some features beyond the 
mainstream, that perhaps are represented best by a scan of a handwritten 
transcription.

I don't know if it's possible to attach images in the mailinglist, so I loaded 
it in my public Dropbox folder: 
http://dl.dropbox.com/u/363435/transcription.jpg (If this method is not 
appreciated pls just tell me.)

The boxed elements are the most common necessities.

I would be very grateful if you could

a) tell me which of the desired elements are basically achievable with -- from 
your point of view -- reasonable effort and
b) perhaps could name the related commands *just in case* you have some of them 
present. (I'm not asking anyone to do my job of reading the manual.)


A: Bracketed clefs, time signatures and key signatures at the beginning of a 
staf or piece.
B, D, E: Bracketed elements of almost any kind within a staf.
C, F: Struck through elements of any kind

Thanks a lot!

Benedikt Hager


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


Re: Are these results possible with LilyPond?

2009-11-18 Thread Kieren MacMillan

Hi Benedikt,

The LSR is your friend!  =)

A: Bracketed clefs, time signatures and key signatures at the  
beginning of a staf or piece.

B, D, E: Bracketed elements of almost any kind within a staf.





C, F: Struck through elements of any kind


You might want to box the element



and then change the box stencil to have a diagonal "strikethrough".  
This will be more effort than the first, I fear.


Good luck!
Kieren.


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


Re: Beginner's questions

2009-11-18 Thread Valentin Villenave
On Wed, Nov 18, 2009 at 6:23 PM, Pierre RUEL  wrote:
> I'm just beginning with Lilypond (after some years of practice with other
> notation softwares). In fact I've produced some PC programmed music and
> wan't to use Lilypond as an interface between VBA produced .txt code and
> music.

Greetings,

on an unrelated note: in case you speak French, you might be
interested in subscribing to our French-speaking LilyPond mailing
list:
http://lists.gnu.org/mailman/listinfo/lilypond-user-fr
(assuming you haven't already).

Cheers,
Valentin


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


TextSpanner terminates too early

2009-11-18 Thread Nick Payne
Following example shows a problem I have in a score with multiple voices 
where I want the TextSpanner for a barre to be two bars long. Because 
the actual notes in the two bars are split between the voices, I have 
the \stopTextSpan on the silent eighth note at the end of bar two in 
voiceOne, but it is terminating as if I had it on the B flat at the 
start of the bar. In fact there is no difference in the output between 
having the \stopTextSpan on the B flat or s8. Why is this?


%
\version "2.13.7"

barre = #(define-music-function (parser location fretnum dirn shorten 
adjBreak adjEnd)

   (string? number? pair? number? number?)
#{
   \once \override TextSpanner #'bound-details #'left #'text =
   \markup { \small { \concat { "C" "." $fretnum " " } } }
   \once \override TextSpanner #'style = #'line
   \once \override TextSpanner #'font-shape = #'upright
   \once \override TextSpanner #'direction = #$dirn
   \once \override TextSpanner #'bound-details #'right #'text = \markup 
{ \draw-line #(cons 0 (/ $dirn -1)) }
   \once \override TextSpanner #'bound-details #'left 
#'stencil-align-dir-y = #CENTER
   \once \override TextSpanner #'bound-details #'left #'padding = #(car 
$shorten)
   \once \override TextSpanner #'bound-details #'right #'padding = 
#(cdr $shorten)
   \once \override TextSpanner #'bound-details #'right-broken #'padding 
= #$adjEnd
   \once \override TextSpanner #'bound-details #'left-broken #'X = 
#$adjBreak

   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
   \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
#})

\relative c' {
   \time 5/8
   \new Staff
   <<
   \new Voice = "first"
   { \voiceOne   
   \barre "6" #UP #'(-0.5 . -1) #5 #1 bes8\startTextSpan f' aes d_( 
e) |

   bes'4 s4 s8\stopTextSpan |
   }
   \new Voice= "second"
   { \voiceTwo
   s2 s8 |
   bes f e aes, e' |
   }
   >>
}
%


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


Re: TextSpanner terminates too early

2009-11-18 Thread Trevor Bača
On Wed, Nov 18, 2009 at 3:39 PM, Nick Payne wrote:

> Following example shows a problem I have in a score with multiple voices
> where I want the TextSpanner for a barre to be two bars long. Because the
> actual notes in the two bars are split between the voices, I have the
> \stopTextSpan on the silent eighth note at the end of bar two in voiceOne,
> but it is terminating as if I had it on the B flat at the start of the bar.
> In fact there is no difference in the output between having the
> \stopTextSpan on the B flat or s8. Why is this?
>
> %
> \version "2.13.7"
>
> barre = #(define-music-function (parser location fretnum dirn shorten
> adjBreak adjEnd)
>   (string? number? pair? number? number?)
> #{
>   \once \override TextSpanner #'bound-details #'left #'text =
>   \markup { \small { \concat { "C" "." $fretnum " " } } }
>   \once \override TextSpanner #'style = #'line
>   \once \override TextSpanner #'font-shape = #'upright
>   \once \override TextSpanner #'direction = #$dirn
>   \once \override TextSpanner #'bound-details #'right #'text = \markup {
> \draw-line #(cons 0 (/ $dirn -1)) }
>   \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y
> = #CENTER
>   \once \override TextSpanner #'bound-details #'left #'padding = #(car
> $shorten)
>   \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
> $shorten)
>   \once \override TextSpanner #'bound-details #'right-broken #'padding =
> #$adjEnd
>   \once \override TextSpanner #'bound-details #'left-broken #'X =
> #$adjBreak
>   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
>   \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
> #})
>
> \relative c' {
>   \time 5/8
>   \new Staff
>   <<
>   \new Voice = "first"
>   { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1 bes8\startTextSpan
> f' aes d_( e) |
>   bes'4 s4 s8\stopTextSpan |
>   }
>   \new Voice= "second"
>   { \voiceTwo
>   s2 s8 |
>   bes f e aes, e' |
>   }
>   >>
> }
> %
>
>

Hi Nick,

I can't explain what's going on exactly, but transparent rests fix this one
nicely:


%
\version "2.13.7"

barre = #(define-music-function (parser location fretnum dirn shorten
adjBreak adjEnd)
  (string? number? pair? number? number?)
#{
  \once \override TextSpanner #'bound-details #'left #'text =
  \markup { \small { \concat { "C" "." $fretnum " " } } }
  \once \override TextSpanner #'style = #'line
  \once \override TextSpanner #'font-shape = #'upright
  \once \override TextSpanner #'direction = #$dirn
  \once \override TextSpanner #'bound-details #'right #'text = \markup {
\draw-line #(cons 0 (/ $dirn -1)) }
  \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#CENTER
  \once \override TextSpanner #'bound-details #'left #'padding = #(car
$shorten)
  \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
$shorten)
  \once \override TextSpanner #'bound-details #'right-broken #'padding =
#$adjEnd
  \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak
  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
#})

\relative c' {
  \time 5/8
  \new Staff
  <<
  \new Voice = "first"
  { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1 bes8\startTextSpan
f' aes d_( e) |
  bes'4
  \override Rest #'transparent = ##t
  r4 r8\stopTextSpan
  \revert Rest #'transparent
  |
  }
  \new Voice= "second"
  { \voiceTwo
  s2 s8 |
  bes f e aes, e' |
  }
  >>
}
%


Intuitively I always imagine skips as meaning "don't do any engraving work
here." I don't know if that's actually an (or the) intended meaning skips or
not, but it helps me remember that are a very few -- but important -- gotcha
differences between skips and (transparent) rests, this situation with the
spanners being one of them.

HTH,

Trevor.







-- 
Trevor Bača
trevorb...@gmail.com
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: TextSpanner terminates too early

2009-11-18 Thread Nick Payne

Trevor Bača wrote:



On Wed, Nov 18, 2009 at 3:39 PM, Nick Payne 
mailto:nick.pa...@internode.on.net>> wrote:


Following example shows a problem I have in a score with multiple
voices where I want the TextSpanner for a barre to be two bars
long. Because the actual notes in the two bars are split between
the voices, I have the \stopTextSpan on the silent eighth note at
the end of bar two in voiceOne, but it is terminating as if I had
it on the B flat at the start of the bar. In fact there is no
difference in the output between having the \stopTextSpan on the B
flat or s8. Why is this?

%
\version "2.13.7"

barre = #(define-music-function (parser location fretnum dirn
shorten adjBreak adjEnd)
  (string? number? pair? number? number?)
#{
  \once \override TextSpanner #'bound-details #'left #'text =
  \markup { \small { \concat { "C" "." $fretnum " " } } }
  \once \override TextSpanner #'style = #'line
  \once \override TextSpanner #'font-shape = #'upright
  \once \override TextSpanner #'direction = #$dirn
  \once \override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #(cons 0 (/ $dirn -1)) }
  \once \override TextSpanner #'bound-details #'left
#'stencil-align-dir-y = #CENTER
  \once \override TextSpanner #'bound-details #'left #'padding =
#(car $shorten)
  \once \override TextSpanner #'bound-details #'right #'padding =
#(cdr $shorten)
  \once \override TextSpanner #'bound-details #'right-broken
#'padding = #$adjEnd
  \once \override TextSpanner #'bound-details #'left-broken #'X =
#$adjBreak
  \once \override TextSpanner #'bound-details #'left-broken #'text
= ##f
  \once \override TextSpanner #'bound-details #'right-broken
#'text = ##f
#})

\relative c' {
  \time 5/8
  \new Staff
  <<
  \new Voice = "first"
  { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1
bes8\startTextSpan f' aes d_( e) |
  bes'4 s4 s8\stopTextSpan |
  }
  \new Voice= "second"
  { \voiceTwo
  s2 s8 |
  bes f e aes, e' |
  }
  >>
}
%



Hi Nick,

I can't explain what's going on exactly, but transparent rests fix 
this one nicely:



%
\version "2.13.7"

barre = #(define-music-function (parser location fretnum dirn shorten 
adjBreak adjEnd)

  (string? number? pair? number? number?)
#{
  \once \override TextSpanner #'bound-details #'left #'text =
  \markup { \small { \concat { "C" "." $fretnum " " } } }
  \once \override TextSpanner #'style = #'line
  \once \override TextSpanner #'font-shape = #'upright
  \once \override TextSpanner #'direction = #$dirn
  \once \override TextSpanner #'bound-details #'right #'text = \markup 
{ \draw-line #(cons 0 (/ $dirn -1)) }
  \once \override TextSpanner #'bound-details #'left 
#'stencil-align-dir-y = #CENTER
  \once \override TextSpanner #'bound-details #'left #'padding = #(car 
$shorten)
  \once \override TextSpanner #'bound-details #'right #'padding = 
#(cdr $shorten)
  \once \override TextSpanner #'bound-details #'right-broken #'padding 
= #$adjEnd
  \once \override TextSpanner #'bound-details #'left-broken #'X = 
#$adjBreak

  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
#})

\relative c' {
  \time 5/8
  \new Staff
  <<
  \new Voice = "first"
  { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1 
bes8\startTextSpan f' aes d_( e) |

  bes'4
  \override Rest #'transparent = ##t
  r4 r8\stopTextSpan
  \revert Rest #'transparent
  |
  }
  \new Voice= "second"
  { \voiceTwo
  s2 s8 |
  bes f e aes, e' |
  }
  >>
}
%


Intuitively I always imagine skips as meaning "don't do any engraving 
work here." I don't know if that's actually an (or the) intended 
meaning skips or not, but it helps me remember that are a very few -- 
but important -- gotcha differences between skips and (transparent) 
rests, this situation with the spanners being one of them.
Wow, that was quick. Thanks, it does fix the problem. However, I went 
back and checked some other scores I have engraved, and in some of them 
I have used the same construction of TextSpanner sometimes starting and 
sometimes finishing on a spacing note, and there it does work correctly.


Nick


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


Re: TextSpanner terminates too early

2009-11-18 Thread Trevor Bača
On Wed, Nov 18, 2009 at 4:06 PM, Nick Payne wrote:

> Trevor Bača wrote:
>
>
>>
>> On Wed, Nov 18, 2009 at 3:39 PM, Nick Payne 
>> > nick.pa...@internode.on.net>> wrote:
>>
>>Following example shows a problem I have in a score with multiple
>>voices where I want the TextSpanner for a barre to be two bars
>>long. Because the actual notes in the two bars are split between
>>the voices, I have the \stopTextSpan on the silent eighth note at
>>the end of bar two in voiceOne, but it is terminating as if I had
>>it on the B flat at the start of the bar. In fact there is no
>>difference in the output between having the \stopTextSpan on the B
>>flat or s8. Why is this?
>>
>>%
>>\version "2.13.7"
>>
>>barre = #(define-music-function (parser location fretnum dirn
>>shorten adjBreak adjEnd)
>>  (string? number? pair? number? number?)
>>#{
>>  \once \override TextSpanner #'bound-details #'left #'text =
>>  \markup { \small { \concat { "C" "." $fretnum " " } } }
>>  \once \override TextSpanner #'style = #'line
>>  \once \override TextSpanner #'font-shape = #'upright
>>  \once \override TextSpanner #'direction = #$dirn
>>  \once \override TextSpanner #'bound-details #'right #'text =
>>\markup { \draw-line #(cons 0 (/ $dirn -1)) }
>>  \once \override TextSpanner #'bound-details #'left
>>#'stencil-align-dir-y = #CENTER
>>  \once \override TextSpanner #'bound-details #'left #'padding =
>>#(car $shorten)
>>  \once \override TextSpanner #'bound-details #'right #'padding =
>>#(cdr $shorten)
>>  \once \override TextSpanner #'bound-details #'right-broken
>>#'padding = #$adjEnd
>>  \once \override TextSpanner #'bound-details #'left-broken #'X =
>>#$adjBreak
>>  \once \override TextSpanner #'bound-details #'left-broken #'text
>>= ##f
>>  \once \override TextSpanner #'bound-details #'right-broken
>>#'text = ##f
>>#})
>>
>>\relative c' {
>>  \time 5/8
>>  \new Staff
>>  <<
>>  \new Voice = "first"
>>  { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1
>>bes8\startTextSpan f' aes d_( e) |
>>  bes'4 s4 s8\stopTextSpan |
>>  }
>>  \new Voice= "second"
>>  { \voiceTwo
>>  s2 s8 |
>>  bes f e aes, e' |
>>  }
>>  >>
>>}
>>%
>>
>>
>>
>> Hi Nick,
>>
>> I can't explain what's going on exactly, but transparent rests fix this
>> one nicely:
>>
>>
>> %
>> \version "2.13.7"
>>
>> barre = #(define-music-function (parser location fretnum dirn shorten
>> adjBreak adjEnd)
>>  (string? number? pair? number? number?)
>> #{
>>  \once \override TextSpanner #'bound-details #'left #'text =
>>  \markup { \small { \concat { "C" "." $fretnum " " } } }
>>  \once \override TextSpanner #'style = #'line
>>  \once \override TextSpanner #'font-shape = #'upright
>>  \once \override TextSpanner #'direction = #$dirn
>>  \once \override TextSpanner #'bound-details #'right #'text = \markup {
>> \draw-line #(cons 0 (/ $dirn -1)) }
>>  \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y
>> = #CENTER
>>  \once \override TextSpanner #'bound-details #'left #'padding = #(car
>> $shorten)
>>  \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
>> $shorten)
>>  \once \override TextSpanner #'bound-details #'right-broken #'padding =
>> #$adjEnd
>>  \once \override TextSpanner #'bound-details #'left-broken #'X =
>> #$adjBreak
>>  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
>>  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
>> #})
>>
>> \relative c' {
>>  \time 5/8
>>  \new Staff
>>  <<
>>  \new Voice = "first"
>>  { \voiceOne \barre "6" #UP #'(-0.5 . -1) #5 #1 bes8\startTextSpan
>> f' aes d_( e) |
>>  bes'4
>>  \override Rest #'transparent = ##t
>>  r4 r8\stopTextSpan
>>  \revert Rest #'transparent
>>  |
>>  }
>>  \new Voice= "second"
>>  { \voiceTwo
>>  s2 s8 |
>>  bes f e aes, e' |
>>  }
>>  >>
>> }
>> %
>>
>>
>> Intuitively I always imagine skips as meaning "don't do any engraving work
>> here." I don't know if that's actually an (or the) intended meaning skips or
>> not, but it helps me remember that are a very few -- but important -- gotcha
>> differences between skips and (transparent) rests, this situation with the
>> spanners being one of them.
>>
> Wow, that was quick. Thanks, it does fix the problem. However, I went back
> and checked some other scores I have engraved, and in some of them I have
> used the same construction of TextSpanner sometimes starting and sometimes
> finishing on a spacing note, and there it does work correctly.
>


Is it possible that, in those ot

Problems with jail mode

2009-11-18 Thread Bertalan Fodor

Hi, I set up a separate filesystem, running lilypond in jail mode.
My problem is that the last step, the PDF creation fails:
gs   -dSAFER  -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89  
-dCompatibilityLevel=1.4  -dNOPAUSE -dBATCH -r1200  -sDEVICE=pdfwrite 
-sOutputFile="./test.pdf" -c .setpdfwrite -f "test.ps"' failed (32512)


But if I call this command with
sudo chroot /mnt/lilyloop gs   -dSAFER  -dDEVICEWIDTHPOINTS=595.28 
-dDEVICEHEIGHTPOINTS=841.89  -dCompatibilityLevel=1.4  -dNOPAUSE -dBATCH 
-r1200  -sDEVICE=pdfwrite -sOutputFile="./test.pdf" -c .setpdfwrite -f 
"test.ps"


that is, in a separate chroot, this creates the PDF.

Do you have any idea what is that 32512 error?

Thanks,

Bert


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


Re: Are these results possible with LilyPond?

2009-11-18 Thread Reinhold Kainhofer
Am Mittwoch, 18. November 2009 20:01:23 schrieb Kieren MacMillan:
> Hi Benedikt,
> 
> The LSR is your friend!  =)

The URL is 
http://lsr.dsi.unimi.it/

> > A: Bracketed clefs, time signatures and key signatures at the
> > beginning of a staf or piece.
> > B, D, E: Bracketed elements of almost any kind within a staf.
> 
> 

Yes, that can be used to bracketify note, rests, articulations, etc.
http://lsr.dsi.unimi.it/LSR/Item?id=564

(It's better to give the link to /LSR/Item rathern than /LSR/Snippet, since 
the former will show the image of the result...)

Other bracketing functions for other types of objects:
-) time signature in brackets:
http://lsr.dsi.unimi.it/LSR/Item?id=169
-) clefs and key signatures in brackets:
http://lsr.dsi.unimi.it/LSR/Item?id=647

-) dynamic marks in parentheses (simply replace ( and ) by [ and ] to get
square brackets instead):
http://lsr.dsi.unimi.it/LSR/Item?id=382
-) brackets around whole passages of music
http://lsr.dsi.unimi.it/LSR/Item?id=377
-) brackets in markup:
http://lsr.dsi.unimi.it/LSR/Item?id=252


Bracketifying dots (in dotted notes and dotted rests) can be done similarly to 
clefs/key/time signature. Unfortunately, though, the brackets are not properly 
aligned and have the wrong height (since the dot's stencil seems to have 
suboptimal stencil extents...), so the following snippet needs some more love 
to make it really usable in professional scores:

dotBracketed = {
  \once\override Dots #'stencil = #(lambda (grob) (bracketify-stencil
 (ly:dots::print grob) Y 0.1 0.1 0 ))
}
\relative c'' {
  \time 12/8
  c4. r4. \dotBracketed c4. \dotBracketed r4.
}


I think that we should probably collect such functions for critical editions 
in a critical-edition.ily include file, so they are available in the standard 
lilypond distribution.


> > C, F: Struck through elements of any kind
> 
> You might want to box the element
> 
> 
> 
> and then change the box stencil to have a diagonal "strikethrough".
> This will be more effort than the first, I fear.

If you only want to strike through one grob (graphical object), then you can 
define your own function (like the make-stencil-boxer or bracketify-stencil), 
which simply combines the given stencil with your own created strike-through-
line.

However, I suppose that in most cases, you don't want to strike through only 
one graphical object (one note head or one stem or one dot or one rest or one 
accidental), but rather a whole group. This problem is harder, and I'm 
currently not aware of a solution to this problem. (Another complication is 
that the striken notes should not count towards the measure length / time 
signature!)

So, in your example, 
A is solved, 
B needs some more tweaking (but is easily possible), 
C is hard and probably needs some ugly hacks rather than an elegant solution
D is solved,
F is solved

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org


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


Re: Problems with jail mode

2009-11-18 Thread Valentin Villenave
2009/11/18 Bertalan Fodor :
> that is, in a separate chroot, this creates the PDF.

Doesn't jail mode *have* to be executed as sudo in a chroot
environment? Quoting the AU:
"As we already mentioned, it must be also run with superuser
privileges (which, of course, it will lose immediately), possibly
using sudo. "

So, I'm not sure it's a bug...

Cheers,
Valentin


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


Re: Problems with jail mode

2009-11-18 Thread Bertalan Fodor

Yes, i already do that. The ps file is created, only ghostscript tells this 
cryptic message. Strace didn't help to find out.

  Original message  
From: Valentin Villenave 
Sent: 18 Nov 2009 23:33 -08:00
To: Bertalan Fodor 
Cc: lilypond-user Mailinglist 
Subject: Re: Problems with jail mode

2009/11/18 Bertalan Fodor :
> that is, in a separate chroot, this creates the PDF.

Doesn't jail mode *have* to be executed as sudo in a chroot
environment? Quoting the AU:
"As we already mentioned, it must be also run with superuser
privileges (which, of course, it will lose immediately), possibly
using sudo. "

So, I'm not sure it's a bug...

Cheers,
Valentin





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


Re: Problems with jail mode

2009-11-18 Thread Valentin Villenave
On Thu, Nov 19, 2009 at 8:39 AM, Bertalan Fodor  wrote:
>
> Yes, i already do that. The ps file is created, only ghostscript tells this 
> cryptic message. Strace didn't help to find out.

Interesting. What if you don't invoke lilypond using sudo, but su?
Does this still happen?
(e.g. using `sudo bash' and then invoking lilypond, if your system
doesn't support a proper root account -- I *hate* sudo)

Valentin


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


Re: Chords with tie: a bug?

2009-11-18 Thread Valentin Villenave
On Tue, Nov 17, 2009 at 11:06 PM, Mats Bengtsson
 wrote:
> I just tried with version 2.10, where {  ~  
>  }
> gives ties between the f for both pairs of chords, whereas 2.12 and 2.13
> draw the tie below both chords. Seems like a regression bug compared to
> 2.10!

Yes indeed. Added as http://code.google.com/p/lilypond/issues/detail?id=904

Cheers,
Valentin


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