Re: Can I have my own custom LilyPond?

2007-07-25 Thread Tao Cumplido
Hello,

I also use my own font. I am no programmer, so I use skips with the chords 
attached as TextScript.
Maybe it would really be nice to have different Chord symbol solutions 
available since there's not standardised way to do it.
For example a major 7 chord can be written the following ways:
CM CM7 CMaj7 Cmaj7 Cj7 CΔ
and there are probably more.

I am no great fontdesigner so my font consists for most parts of glyphs from 
other fonts which come with LilyPond. So far I only use it for private purposes 
so I don't know if it's a problem to publish a chart here on the list.

But I'd like to help if I can.

regards,

Tao


 Original-Nachricht 
Datum: Tue, 24 Jul 2007 18:32:13 +0200
Von: Dominic Neumann [EMAIL PROTECTED]
An: PabloZum [EMAIL PROTECTED], lilypond-user@gnu.org
Betreff: Re: Can I have my own custom LilyPond?

 Send it to the lilypond-user list and also to the devel-list
 ([EMAIL PROTECTED]).
 
 Maybe we should at first discuss on the users list if this is a
 special way of setting chordnames and only you need it or if its
 needed by (maybe many) other users too ...
 
 
 2007/7/24, PabloZum [EMAIL PROTECTED]:
  Thank you, Dominic. I'm new here and I hadn't thought of that.
 
  I'll make a pdf with my chord-name font and its various combinations.
 Who
  should I send it to?
 
  (I'm sorry, I don't know how to thread this answer directly under yours
 at
  the forum.)
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


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


Re: How to screen-optimize stems

2007-07-25 Thread Han-Wen Nienhuys

2007/7/20, Rune Zedeler [EMAIL PROTECTED]:

Hehe, I found out there is a really simple solution of how to make stems
look nice in acroread.
In all its simplicity, add

\paper {
   blot-diameter = 2 \pt
}

:-)

Now all stems appear to have same thickness in acroread.
Unfortunately it does not work with bar-lines, though.



Oh, but you could simply add

 \override Score.BarLine #'thickness = #100

problem solved :-)


--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: file refuses to line or page break

2007-07-25 Thread Han-Wen Nienhuys

2007/7/19, Nicolas Sceaux [EMAIL PROTECTED]:


 pageBreak should include a bar check by default. Anyone for a patch?

You may want to force a line or page break in the middle of a bar, using
the \bar  trick. So we should not add a barCheck to pageBreak.


I know, but people that need such uncommon constructs can deal with
the extra warning. They are fewer than people making mistakes.

--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: Can I have my own custom LilyPond?

2007-07-25 Thread Mats Bengtsson

Quoting Tao Cumplido [EMAIL PROTECTED]:


Hello,

I also use my own font. I am no programmer, so I use skips with the 
chords attached as TextScript.


Why not write them as a lyrics line (with explicit durations on each 
syllable)? Then you don't need to type all the skips and

you will also get the chords vertically aligned.

  /Mats



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


Re: Overly thick results from markup with draw-line

2007-07-25 Thread Han-Wen Nienhuys

2007/7/24, Trevor Bača [EMAIL PROTECTED]:

Hi,

Is there a reason the nibbed output of draw-line is almost 20 times
thicker than usual (rather than just 2 times thicker like the rest of
the TextSpanner)?



This is classical typography, evidently!


;)

I think you are have found a bug; congratulations!

(fixed in .28)



%%% EX 1 %%%

\version 2.11.26

\new Staff {
   c'4 \startTextSpan
   c'4 \stopTextSpan
}

\layout {
   \context {
  \Staff
  \override TextSpanner #'bound-details #'right #'text =
 #(markup #:draw-line '(0 . -1))
  \override TextSpanner #'thickness = #2
   }
}

%%% EX 1 %%%


See attached.

Bug?


--
Trevor Bača
[EMAIL PROTECTED]

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






--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Indenting Coda System

2007-07-25 Thread Bertalan Fodor
Try to write it as a separate \score { } block.

 In printed music, I often see the coda system at the end of a piece
  on its own line and indented.
 In  Lilypond, I can place the coda symbol and break the line,
  but how do I indent the system? Can't figure it out.
 Thanks!



 ___
 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


textSpanner again.

2007-07-25 Thread Peter Terpstra
Dear Readers,

From the lilypond documentation i have this:
% Start
c1
\textSpannerDown
\override TextSpanner #'bound-details #'left #'text =
  \markup { \upright rall }
c2\startTextSpan b c\stopTextSpan a
% End

I get this error:

GNU LilyPond 2.10.25
Processing `tmp.ly'
Parsing...
tmp.ly:2:0: error: syntax error, unexpected NOTENAME_PITCH

c1
tmp.ly:4:52: error: syntax error, unexpected '='
\override TextSpanner #'bound-details #'left #'text 
=
tmp.ly:6:0: error: syntax error, unexpected NOTENAME_PITCH

c2\startTextSpan b c\stopTextSpan a
Layout output to `tmp.ps'...
Converting to `tmp.pdf'...
error: failed files: tmp.ly

~~End

Why???
And how do i solve this?

Kind Regards,

   Peter


-- 
mailto:[EMAIL PROTECTED]



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


Re: textSpanner again.

2007-07-25 Thread Martial

hi

the  syntaxe  changed in 2.11..

You use version 2.10.25

try this
%%
\version 2.10.25
{
c1
\textSpannerDown
 \override TextSpanner #'edge-text = #'(rall  . )
c2\startTextSpan b c\stopTextSpan a
}
%%%

regard


From the lilypond documentation i have this:

% Start
c1
\textSpannerDown
\override TextSpanner #'bound-details #'left #'text =
  \markup { \upright rall }
c2\startTextSpan b c\stopTextSpan a
% End



I get this error:



GNU LilyPond 2.10.25
Processing `tmp.ly'
Parsing...
tmp.ly:2:0: error: syntax error, unexpected NOTENAME_PITCH




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


Re: textSpanner again.

2007-07-25 Thread Peter Terpstra
Martial in [EMAIL PROTECTED] :

 the  syntaxe  changed in 2.11..

Ah, and wher do i find the documentation for the stable 2.10. ?
Or is there a stable version of 2.11 coming soon?
 
Thanks you very much for your answer!

P.


-- 
mailto:[EMAIL PROTECTED]



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


Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal 
brackets: volta brackets, mensural ligature brackets, analysis brackets, 
the \hbracket markup command (well, that puts a second bracket, but in 
reversed direction), measure group brackets, piano pedal brackets, 
tuplet brackets... But I couldn't force any of these things to put a 
simple horizontal (better would be a double one, but I'd be glad if I 
could get even a single) bracket above some of my notes. I also had a 
look to the LSR, but there was also nothing related to this. I also 
tried to put a textspanner with solid line, but I was unable to display 
the small vertical lines at the beginning and the end of the line (which 
is the difference between a simple line and a bracket). Can it happen 
that there is no routine in Lilypond that could display a common 
horizontal bracket?...


Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal
brackets: volta brackets, mensural ligature brackets, analysis brackets,
the \hbracket markup command (well, that puts a second bracket, but in
reversed direction), measure group brackets, piano pedal brackets,
tuplet brackets... But I couldn't force any of these things to put a
simple horizontal (better would be a double one, but I'd be glad if I
could get even a single) bracket above some of my notes. I also had a
look to the LSR, but there was also nothing related to this. I also
tried to put a textspanner with solid line, but I was unable to display
the small vertical lines at the beginning and the end of the line (which
is the difference between a simple line and a bracket). Can it happen
that there is no routine in Lilypond that could display a common
horizontal bracket?...

Thank you,
Adam


Hi Adam,

The new settings available on the TextSpanner grob are very good for
this sort of thing.

But the settings can be tricky to experiment with.

Here are two examples to get you started.


%%% SPANNERS %%%

\version 2.11.26


  \new Staff {
 \override TextSpanner #'dash-fraction = ##f
 \override TextSpanner #'bound-details #'right #'padding = #0
 \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#center
 \override TextSpanner #'bound-details #'left #'padding = #0.75
 \override TextSpanner #'bound-details #'right #'attach-dir = #right
 \override TextSpanner #'bound-details #'left #'text =
\markup { \bold 7 }
 \override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
 c'4 \startTextSpan
 c'4 \stopTextSpan

 \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#up
 \override TextSpanner #'bound-details #'left #'padding = #0
 \override TextSpanner #'bound-details #'right #'padding = #0
 \override TextSpanner #'bound-details #'left #'attach-dir = #right
 \override TextSpanner #'bound-details #'left #'text =
\markup { \draw-line #'(0 . -1) }
 c'4 \startTextSpan
 c'4 \stopTextSpan
  }

%%% SPANNERS %%%



Hope this helps.


--
Trevor Bača
[EMAIL PROTECTED]
attachment: brackets.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I 
know), and I don't really want to change it to a version under 
development unless I'd be really forced to do that. Don't you have some 
idea that works also with the stable version? (I tried both, but they 
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my 
deadline for this score is this weekend...


Thank you again,
Adam


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal
brackets: volta brackets, mensural ligature brackets, analysis brackets,
the \hbracket markup command (well, that puts a second bracket, but in
reversed direction), measure group brackets, piano pedal brackets,
tuplet brackets... But I couldn't force any of these things to put a
simple horizontal (better would be a double one, but I'd be glad if I
could get even a single) bracket above some of my notes. I also had a
look to the LSR, but there was also nothing related to this. I also
tried to put a textspanner with solid line, but I was unable to display
the small vertical lines at the beginning and the end of the line (which
is the difference between a simple line and a bracket). Can it happen
that there is no routine in Lilypond that could display a common
horizontal bracket?...

Thank you,
Adam


Hi Adam,

The new settings available on the TextSpanner grob are very good for
this sort of thing.

But the settings can be tricky to experiment with.

Here are two examples to get you started.


%%% SPANNERS %%%

\version 2.11.26


\new Staff {
\override TextSpanner #'dash-fraction = ##f
\override TextSpanner #'bound-details #'right #'padding = #0
\override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#center
\override TextSpanner #'bound-details #'left #'padding = #0.75
\override TextSpanner #'bound-details #'right #'attach-dir = #right
\override TextSpanner #'bound-details #'left #'text =
\markup { \bold 7 }
\override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
c'4 \startTextSpan
c'4 \stopTextSpan

\override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#up
\override TextSpanner #'bound-details #'left #'padding = #0
\override TextSpanner #'bound-details #'right #'padding = #0
\override TextSpanner #'bound-details #'left #'attach-dir = #right
\override TextSpanner #'bound-details #'left #'text =
\markup { \draw-line #'(0 . -1) }
c'4 \startTextSpan
c'4 \stopTextSpan
}

%%% SPANNERS %%%



Hope this helps.








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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I
know), and I don't really want to change it to a version under
development unless I'd be really forced to do that. Don't you have some
idea that works also with the stable version? (I tried both, but they
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my
deadline for this score is this weekend...

Thank you again,
Adam


Hi Adam,

If I recall correctly, the syntax for getting vertical nibs at the
edge of text spanners the old way was to override the edge-text
attribute of the grob. Something like this ...

  \override TextSpanner #'edge-text = #'(left . right)

... where you have to replace left and right with the command to
draw-line shown in the previous example.

I'm running the 2.11.x series only; can you find reference to
edge-text in the 2.10 manual?

Trevor.


--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: textSpanner again.

2007-07-25 Thread Martial

 Ah, and wher do i find the documentation for the stable 2.10. ?
 Or is there a stable version of 2.11 coming soon?

here 

http://lilypond.org/ 

it't cool isn't it ? 

follow the links Download  and Documentation at top this page 
 









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


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,


the problem is that I can't figure out how to set up the #'edge-text 
property to draw the lines (the markup doesn't accept the draw-line 
command, and it's not included in the list of valid markup commands for 
2.10.10). Now I've spent at about an hour with adopting the code that I 
got a few days ago for Bartok-pizz to make it able to draw a line (as 
the Bartok-pizz sign has a line included), with the following code:


\override TextSpanner #'edge-text = #(cons (markup #:stencil
   (ly:stencil-add
 (ly:make-stencil
   (list 'draw-line x1 x2 x3 x4 x5)
   '(x6 . x7) '(x8 . x9)
 )
 )
   )  (markup #:stencil
   (ly:stencil-add
 (ly:make-stencil
   (list 'draw-line x10 x11 x12 x13 x14)
   '(x15 . x16) '(x17 . x18)
 )
 )
   ) )


where the values x1-x18 are number parameters. The problem is, that I'm 
googleing and searching every documentation I've found, but I can't 
guess the meaning of these 18 parameters (in fact, just 9, as the other 
9 are supposed to mean the same thing).


Could anybody explain for me what these numbers mean, and how to force 
them to draw a simple vertical line which fits to the textspanner's line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using 
Lilypond a week ago or so, and I couldn't find up to now an acceptable 
reference manual for it (so, a collection of documents that contain 
every possible command with their every possible parameters and values, 
like for example the javadocs for Java). Does exist this kind of 
documentation somewhere?



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I
know), and I don't really want to change it to a version under
development unless I'd be really forced to do that. Don't you have some
idea that works also with the stable version? (I tried both, but they
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my
deadline for this score is this weekend...

Thank you again,
Adam


Hi Adam,

If I recall correctly, the syntax for getting vertical nibs at the
edge of text spanners the old way was to override the edge-text
attribute of the grob. Something like this ...

  \override TextSpanner #'edge-text = #'(left . right)

... where you have to replace left and right with the command to
draw-line shown in the previous example.

I'm running the 2.11.x series only; can you find reference to
edge-text in the 2.10 manual?

Trevor.





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


right align?

2007-07-25 Thread Peter Terpstra

Dear Readers,

\header {
title = Old dance
subtitle = \markup \tiny \italic { \right-align { From \Jane Pickerings
lute book\  } }
}

But the tekst stays in the center, what could be a solution?

Kind Regards,

   Peter

-- 
mailto:[EMAIL PROTECTED]



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


Re: right align?

2007-07-25 Thread Tao Cumplido
hi,

try the fill-line command instead of right-align:

\header {
title = Old dance
subtitle = \markup \tiny \italic { \fill-line { From \Jane Pickerings
lute book\} }
}

you just have to add an empty string which will be on the left edge of the page.

regards,

Tao

 Original-Nachricht 
Datum: Wed, 25 Jul 2007 18:10:22 +0200
Von: Peter Terpstra [EMAIL PROTECTED]
An: lilypond-user@gnu.org
Betreff: right align?

 
 Dear Readers,
 
 \header {
 title = Old dance
 subtitle = \markup \tiny \italic { \right-align { From \Jane Pickerings
 lute book\  } }
 }
 
 But the tekst stays in the center, what could be a solution?
 
 Kind Regards,
 
Peter
 
 -- 
 mailto:[EMAIL PROTECTED]
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


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


Re: vertical brackets

2007-07-25 Thread Werner LEMBERG

 From that idea, I get this ugly solution

After applying the idea to some chords I'm sorry to say that it is
usable only for the simplest cases.  As soon as there are more
accidentals it fails miserably because accidentals are either shifted
too much to the left or even disappearing (this seems to be a bug,
BTW -- look at the second and fifth chord in the image).


Werner


==


\relative {
\override Staff.Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
   { c g' es'4 es bes' ges' fis cis' a'2 } \\
 { \hideNotes d e4\arpeggio f g\arpeggio g a2\arpeggio \unHideNotes } 
\\
 { \hideNotes bes d4\arpeggio d f\arpeggio e g2\arpeggio \unHideNotes 
} 

   { \oneVoice c, g' es'4 es bes' ges' fis cis' a'2 } \\
 { \oneVoice \hideNotes d e4\arpeggio f g\arpeggio g a2\arpeggio 
\unHideNotes } \\
 { \oneVoice \hideNotes bes d4\arpeggio d f\arpeggio e g2\arpeggio 
\unHideNotes } 
}

\paper {
  ragged-right = ##t
}
inline: vbracket.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: vertical brackets

2007-07-25 Thread Werner LEMBERG

 ... or was your question how to get _two_ of them?  I would guess
 that this would be relatively easy, although you might have to move
 the Arpeggio Engraver into the Voice context instead of a Staff.

The Arpeggio Engraver is already in the Voice context, as far as I can
see...


Werner


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


Re: right align?

2007-07-25 Thread Peter Terpstra
Tao Cumplido in [EMAIL PROTECTED] :


 you just have to add an empty string which will be on the left edge of the
 page.

Thank you very much!

P.


-- 
mailto:[EMAIL PROTECTED]



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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's line?

Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far as I
 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you have some
 idea that works also with the stable version? (I tried both, but they
 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   \override TextSpanner #'edge-text = #'(left . right)

 ... where you have to replace left and right with the command to
 draw-line shown in the previous example.

 I'm running the 2.11.x series only; can you find reference to
 edge-text in the 2.10 manual?

 Trevor.




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




--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,


actually, that was the first thing I tried, but it seems to me that the 
draw-line command doesn't exist in 2.10.25 (sorry for the prior 
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't 
really make a difference, I suppose). But, after tweaking a few hours 
with the code I got for the Bartok-pizz, I succeeded! :-)


That was the code I created:

%%

simpleBracket = {
 \override TextSpanner #'edge-text = #(cons
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
 )
 \textSpannerUp
 \once \override TextSpanner #'dash-fraction = ##f
}

[...]

 \new Voice {
 \hideNotes
 \simpleBracket
 \stemDown g2.\startTextSpan \glissando e''4.\stopTextSpan
 \unHideNotes
   } {
 \simpleBracket
 g dis'2.\startTextSpan \glissando e'' his'4.\stopTextSpan
 } 

%%


(The two voices are needed because I had to put this over a chord 
glissando, and also because I needed two brackets.)


Well, doesn't look very nice (as the distance between the two brackets 
is enormous, and also because one bracket is supposed to be nested into 
the other), but works!! :-) :-) :-)


Thank you very much!
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's 
line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far as I
 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you have 
some

 idea that works also with the stable version? (I tried both, but they
 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   \override TextSpanner #'edge-text = #'(left . right)

 ... where you have to replace left and right with the command to
 draw-line shown in the previous example.

 I'm running the 2.11.x series only; can you find reference to
 edge-text in the 2.10 manual?

 Trevor.




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







___

Microtone accidentals

2007-07-25 Thread Siska Ádám

Dear Users,



I'm engraving a score that has several microtonal accidentals of 1/6 
pitches. I know that there are no 1/6-pitch accidentals in Lilypond (as 
far as I know there are only 1/4 tone accidentals), and I have a very 
short deadline for this work, so I don't think I could put this wish to 
a feature request list, but must do something by myself (as I need to 
solve the issue in a very short time).


Does anyone know how should I start with this?

As an explanation, the 1/6 pitch accidentals are actually simple 
vertical arrows, which can be standalone (that means 1/6 pitch higher or 
lower as the base pitch) or combined with sharp symbols (if this is the 
case, the obtained pitch is 1/6 higher or lower than the respective 
sharp). Theoretically there could also be arrows combined with flats, 
but they are not necessary to get the full 'palette' of 1/6 pitches (for 
example, [uparrow + g flat] would mean the same as [uparrow + f sharp]). 
Some times the standalone arrows are combined with natural symbols. I'm 
not sure if these signs are standardized or not, but composers like 
Grisey or Murail use these symbols frequently in their scores.


Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Horizontal lines and barlines

2007-07-25 Thread Siska Ádám

Hello,


does anyone know how to connect a horizontal line (better would be a 
zig-zag line with maybe an arrow at the end, like the one that exists 
for arpeggio) exactly to a (volta) barline? This is a common sign if you 
have a set of notes and want to let them repeat undetermined times by 
the player, but until a fixed point in the score.



Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: grace note leading to chord

2007-07-25 Thread Gilles THIBAULT


In a piece I am engraving with lilypond I have an acciaccatura leading to 
a

chord. The acciaccatura should actually lead to a specific note in that
chord (the highest one in my case). However, lilypond treats the chord as
one unit and doesn't allow to lead the acciaccatura to one of the chord's
notes. I found a partial solution by using \slurUp so that the slur leads 
to

the highest note but I would like the slur to go down and lead to the
highest note.
Is this possible?


Sorry : i tried a lot of things but none succedeed

I give an exemple,  it will be easier to help us :

Here, i want :  \acciaccatura b'8 c''
and lilypond do : \acciaccatura b'8 e'

%%%
\version 2.10.25

{ \acciaccatura b'8 c'' g'  e' 4 }





Gilles



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


Re: Microtone accidentals

2007-07-25 Thread Valentin Villenave

2007/7/26, Valentin Villenave [EMAIL PROTECTED]:


What about the following trick? (It looks ugly on screen, but fine when printed)


[snip]

I forgot to mention that it will only work with 2.11 (the syntax has
changed since 2.10).
Since you're running 2.10, you may have to use a few modifications
(such as accidentals.2 instead of accidentals.sharp, etc.). --
however, you'd better upgrade to 2.11.27; it's quite reliable and
better in some ways.

V.


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


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Sic transit gloria mundi.


I found it in the snipplet repository now. The problem was, that I 
hadn't search for the keyword 'line'. Here's the code:


 \textSpannerUp
 \once \override TextSpanner #'edge-text = #'(  .  )
 \once \override TextSpanner  #'edge-height = #'(1 . 1)
 \once \override TextSpanner #'dash-fraction = ##f


That was all...

Bye,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Siska Ádám wrote:

Hello,


actually, that was the first thing I tried, but it seems to me that 
the draw-line command doesn't exist in 2.10.25 (sorry for the prior 
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't 
really make a difference, I suppose). But, after tweaking a few hours 
with the code I got for the Bartok-pizz, I succeeded! :-)


That was the code I created:

%%

simpleBracket = {
 \override TextSpanner #'edge-text = #(cons
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
 )
 \textSpannerUp
 \once \override TextSpanner #'dash-fraction = ##f
}

[...]

 \new Voice {
 \hideNotes
 \simpleBracket
 \stemDown g2.\startTextSpan \glissando e''4.\stopTextSpan
 \unHideNotes
   } {
 \simpleBracket
 g dis'2.\startTextSpan \glissando e'' his'4.\stopTextSpan
 } 

%%


(The two voices are needed because I had to put this over a chord 
glissando, and also because I needed two brackets.)


Well, doesn't look very nice (as the distance between the two brackets 
is enormous, and also because one bracket is supposed to be nested 
into the other), but works!! :-) :-) :-)


Thank you very much!
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's 
line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far 
as I

 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you 
have some
 idea that works also with the stable version? (I tried both, but 
they

 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   

Re: grace note leading to chord

2007-07-25 Thread Gilles THIBAULT



In a piece I am engraving with lilypond I have an acciaccatura leading to 
a

chord. The acciaccatura should actually lead to a specific note in that
chord (the highest one in my case).


Do you mean something like that?

%%%snippet

\new Staff {
\new Voice {\slurDown \acciaccatura b'8
\hideNotes c''4}
\new Voice { e' g' c''4 }
}
%%%


Yes, i tried something like that but as you can see, the  \acciaccatura is 
very far  from the note c''.

It is because the hide note c'' is next to the c'' of  the chord.
So i tried to use :
   \override Staff.NoteCollision #'merge-differently-headed = ##t
but it didn't success because the c'' of the chord is not seen as a 
individual entity.
It exists perhaps a trick to move the acciaccatura to the right (perhaps not 
?), but i think there is a request to do for this problem with grace and 
chords.

The logic would be :
\acciaccatura b'8 { e' g' c''4 }   = \acciaccatura b'8  e'
\acciaccatura b'8 { g'  e ' c''4 }   = \acciaccatura b'8  g'
\acciaccatura b'8 { c'' e' g' 4 }   = \acciaccatura b'8  c'' ...

Gilles







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


Re: grace note leading to chord

2007-07-25 Thread Valentin Villenave

2007/7/24, jazzman [EMAIL PROTECTED]:


In a piece I am engraving with lilypond I have an acciaccatura leading to a
chord. The acciaccatura should actually lead to a specific note in that
chord (the highest one in my case).


Do you mean something like that?

%%%snippet

\new Staff {
\new Voice {\slurDown \acciaccatura b'8
\hideNotes c''4}
\new Voice { e' g' c''4 }
}
%%%

Regards,
V.Villenave


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


Re: grace note leading to chord

2007-07-25 Thread Valentin Villenave

2007/7/26, Gilles THIBAULT [EMAIL PROTECTED]:


Yes, i tried something like that but as you can see, the  \acciaccatura is
very far  from the note c''.


I wouldn't say *very* far; of course it helps if you add
\layout { ragged-right = ##t }


It is because the hide note c'' is next to the c'' of  the chord.
So i tried to use :
\override Staff.NoteCollision #'merge-differently-headed = ##t


That's too complex for me :)
I simply used the following definition, and it works:

\new Staff {
  \new Voice {\slurDown
   \acciaccatura b'8
  \hideNotes   \override NoteHead #'X-extent = #'(0.0 . 0.0)
  c''4}
  \new Voice { e' g' c''4 }
}

V.Villenave


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


Re: Microtone accidentals

2007-07-25 Thread Valentin Villenave

2007/7/25, Siska Ádám [EMAIL PROTECTED]:


As an explanation, the 1/6 pitch accidentals are actually simple
vertical arrows, which can be standalone (that means 1/6 pitch higher or
lower as the base pitch) or combined with sharp symbols (if this is the
case, the obtained pitch is 1/6 higher or lower than the respective
sharp). Theoretically there could also be arrows combined with flats,
but they are not necessary to get the full 'palette' of 1/6 pitches (for
example, [uparrow + g flat] would mean the same as [uparrow + f sharp]).
Some times the standalone arrows are combined with natural symbols. I'm
not sure if these signs are standardized or not, but composers like
Grisey or Murail use these symbols frequently in their scores.


What about the following trick? (It looks ugly on screen, but fine when printed)
It has to be adapted, of course.


%%%snippet

upp =
#(define-music-function (parser location note)   (ly:music?)
 #{ \once \override Voice.Accidental #'stencil =
  #ly:text-interface::print
\once \override Voice.Accidental #'text =
  \markup {\musicglyph #accidentals.sharp
\postscript #gsave 0.17 setlinewidth -1.4 0.5 moveto -1.4 2 lineto
   stroke grestore
gsave 0.1 setlinewidth -1.7 1.4 moveto -1.4 2.18 lineto -1.1 1.4 lineto
   stroke grestore}
$note #})

\relative {
a b d \upp gis
}

%%%

Regards,
Valentin Villenave


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


Re: No \markup in the \layout block?

2007-07-25 Thread Nicolas Sceaux
Trevor Bača [EMAIL PROTECTED] writes:

 But this causes explosions:

 %%% EX 2 %%%

 \version 2.11.26

 \new Staff {
   c'4
 }

 \layout {
   \context {
  \Staff
  \override TextSpanner #'bound-details #'right #'text = \markup { end }
   }
 }

As a workaround, you can try:

\layout {
  \context {
 \Staff
 \override TextSpanner #'bound-details #'right #'text = #(markup end)
  }
}

See 
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Markup-construction-in-Scheme.html

nicolas


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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


actually, that was the first thing I tried, but it seems to me that the
draw-line command doesn't exist in 2.10.25 (sorry for the prior
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't
really make a difference, I suppose). But, after tweaking a few hours
with the code I got for the Bartok-pizz, I succeeded! :-)


Yes; the draw-line command went bad for a couple of 2.[10, 11].x
releases; I just tested 2.11.25 and know that draw-line was definitely
*not* working in 2.11.25. However, draw-line *is definitely* working
in 2.11.26 and 2.11.27 after a bug fix from the developers. I can't
guarantee that it's the same in that 2.10.25 would be broken but that
2.10.26 and 2.10.27 would work ... but I think it's a reasonable
assmption.

Looking at the download page, it looks like 2.10.25 is the most recent
version and that 2.10.27 and 2.10.27 don't exist yet. When 2.10.26 (or
.27 or .28) becomes available, you should be able to use ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... just fine.

Alternatively, you could try downloading 2.11.27 and see if everything
compiles fine. The unstable releases tend to be relatively stable
(IMO).



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user