Re: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
Hi Kevin,

thanks for your advise. I have found that in fact I have to adjust the
line-width file by file. Most of the times when a file has multiple lines
lilypond-book works fine, the problem arises when I have single lines which
lilypond doesn't split in two lines but which are too full to be placed
within the line-width.

Maybe it would be nice to have a function by which to fix the total-width of
a line, including brackets and instrument names.

Thank you,
Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170915.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Line-width and Lilypond-book

2015-01-23 Thread Kevin Barry
On Fri, Jan 23, 2015 at 2:34 PM, Jayaratna jayara...@gmail.com wrote:

 I'd simply like it to be as large as the textwidth. I have had a good
 result
 by manually inserting a slightly shorter line-width (2mm less than the
 textwidth) in the paper block.


There is currently no way to fix the width of a lilypond score: lilypond
considers a `line' to begin with the line that starts a system, so anything
that is to the /left/ of that, such as the system start bracket, the
instrument name, or bar numbers will make the actual line-width longer than
you have specified. Fixing the paper width doesn't solve the problem
either: if the left margin and indent are both 0, lilypond will put stuff
off the page to the left (or, in the case of eps-backend images, make the
image wider than the paper=width).

The workaround I use is either to use a shorter line-width (or
paper-width), or to add a little left-margin, but the value you need to use
varies depending on the staff-size and on what lies outside of it, so you
just have to experiment every time and check how wide the images are. It's
tedious, and also the reason I stopped using lilypond-book (now I just
create the score images separately and include them manually).

I don't know if this is considered a bug (but I think it should be, or at
least a much-needed enhancement). As an example, consider the following
minimal example:

\version 2.18.2


\paper {

  left-margin = 0

  indent = 0

}

\new Staff \with { instrumentName = CAN'T SEE ME } {

  c

}


hth,

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


Re: Get string number from TabStaff note

2015-01-23 Thread and...@andis59.se

On 2015-01-23 23:53, Thomas Morley wrote:

2015-01-23 23:03 GMT+01:00 Thomas Morley thomasmorle...@gmail.com:

2015-01-21 15:54 GMT+01:00 and...@andis59.se and...@andis59.se:

Is it possible to know which string a note is placed on in a TabStaff.




Or maybe something at the lines of

\version 2.18.0

boo =
#(define-music-function (parser location mus)(ly:music?)
(music-map
   (lambda (m)
(let ((strgnr '()))
 (if (music-is-of-type? m 'note-event)
 (begin
   (for-each
 (lambda (e)
  (if (music-is-of-type? e 'string-number-event)
  (begin
;(display (ly:music-property e 'string-number))
(set! strgnr (ly:music-property e 'string-number))
e)
  e))
   (ly:music-property m 'articulations))
   (begin
 ;(display strgnr)
 (if (= strgnr 6)
 #{ \transpose c cis, $m #}
 m)
  ))
 m)))
mus))

m =
\relative c, {
   e f g
   \boo
   a\6 b c
   d e f
   g\4 a
   b c d
   e f g
}


  \new Staff { \clef G_8 \m }
  \new TabStaff \m




Cheers,
   Harm


Hello Harm,

This second version is exactly what I needed

Now I will try to understand how it works also...

Thank you VERY much!

// Anders



--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

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


Re: Get string number from TabStaff note

2015-01-23 Thread Thomas Morley
2015-01-23 23:57 GMT+01:00 and...@andis59.se and...@andis59.se:
 On 2015-01-23 23:53, Thomas Morley wrote:

 2015-01-23 23:03 GMT+01:00 Thomas Morley thomasmorle...@gmail.com:

 2015-01-21 15:54 GMT+01:00 and...@andis59.se and...@andis59.se:

 Is it possible to know which string a note is placed on in a TabStaff.


 Or maybe something at the lines of

 \version 2.18.0

 boo =
 #(define-music-function (parser location mus)(ly:music?)
 (music-map
(lambda (m)
 (let ((strgnr '()))
  (if (music-is-of-type? m 'note-event)
  (begin
(for-each
  (lambda (e)
   (if (music-is-of-type? e 'string-number-event)
   (begin
 ;(display (ly:music-property e 'string-number))
 (set! strgnr (ly:music-property e 'string-number))
 e)
   e))
(ly:music-property m 'articulations))
(begin
  ;(display strgnr)
  (if (= strgnr 6)
  #{ \transpose c cis, $m #}
  m)
   ))
  m)))
 mus))

 m =
 \relative c, {
e f g
\boo
a\6 b c
d e f
g\4 a
b c d
e f g
 }

 
   \new Staff { \clef G_8 \m }
   \new TabStaff \m



 Cheers,
Harm


 Hello Harm,

 This second version is exactly what I needed

 Now I will try to understand how it works also...

 Thank you VERY much!

 // Anders




Please note, it's only a sketch giving some hints, _not_ a proper coding!
I've currently not the time to do it thoroughly ...

Cheers,
  Harm

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


Re: Get string number from TabStaff note

2015-01-23 Thread Thomas Morley
2015-01-21 15:54 GMT+01:00 and...@andis59.se and...@andis59.se:
 Is it possible to know which string a note is placed on in a TabStaff.

 E.g.

 %% Start
 \version 2.19.15

 melody = { c'4 }

 \score {
   
 \new Staff { \melody }
 \new TabStaff { \melody }
   
 }
 %% End

 Here the note c'4 is placed on the second string of the TabStaff.
 Since I want to do different things (\transpose) depending on which string
 the note is on, I need to know the string number and I need to know it
 before it is printed on the TabStaff ( I want to transpose the note
 differently depending on which string it is on)


 Is this possible?


Hi,

is the following of some help?

\version 2.18.0

\new TabStaff
\relative c, {
  \override TabNoteHead.before-line-breaking =
  #(lambda (grob)
(format #t \nI'm on string No. ~a
  (truncate (abs (- (/ (ly:grob-property grob 'staff-position) 2) 4)
  e f g
  a b c
  d e f
  g\4 a
  b c d
  e f g
}



HTH,
  Harm

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


Re: Get string number from TabStaff note

2015-01-23 Thread Thomas Morley
2015-01-23 23:03 GMT+01:00 Thomas Morley thomasmorle...@gmail.com:
 2015-01-21 15:54 GMT+01:00 and...@andis59.se and...@andis59.se:
 Is it possible to know which string a note is placed on in a TabStaff.

 E.g.

 %% Start
 \version 2.19.15

 melody = { c'4 }

 \score {
   
 \new Staff { \melody }
 \new TabStaff { \melody }
   
 }
 %% End

 Here the note c'4 is placed on the second string of the TabStaff.
 Since I want to do different things (\transpose) depending on which string
 the note is on, I need to know the string number and I need to know it
 before it is printed on the TabStaff ( I want to transpose the note
 differently depending on which string it is on)


 Is this possible?


 Hi,

 is the following of some help?

 \version 2.18.0

 \new TabStaff
 \relative c, {
   \override TabNoteHead.before-line-breaking =
   #(lambda (grob)
 (format #t \nI'm on string No. ~a
   (truncate (abs (- (/ (ly:grob-property grob 'staff-position) 2) 4)
   e f g
   a b c
   d e f
   g\4 a
   b c d
   e f g
 }



 HTH,
   Harm

Or maybe something at the lines of

\version 2.18.0

boo =
#(define-music-function (parser location mus)(ly:music?)
(music-map
  (lambda (m)
   (let ((strgnr '()))
(if (music-is-of-type? m 'note-event)
(begin
  (for-each
(lambda (e)
 (if (music-is-of-type? e 'string-number-event)
 (begin
   ;(display (ly:music-property e 'string-number))
   (set! strgnr (ly:music-property e 'string-number))
   e)
 e))
  (ly:music-property m 'articulations))
  (begin
;(display strgnr)
(if (= strgnr 6)
#{ \transpose c cis, $m #}
m)
 ))
m)))
   mus))

m =
\relative c, {
  e f g
  \boo
  a\6 b c
  d e f
  g\4 a
  b c d
  e f g
}


 \new Staff { \clef G_8 \m }
 \new TabStaff \m


Cheers,
  Harm

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


Re: Pitched trill glissando

2015-01-23 Thread David Stephen Grant
I've just seen I overlooked your message, Harm.
Thank you both, and for the upload to the LSR!
Best,
David

On 23 January 2015 at 13:18, Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com wrote:

 Added to the LSR : http://lsr.di.unimi.it/LSR/Item?id=972

 Cheers,
 Piere

 2015-01-23 11:19 GMT+01:00 Pierre Perol-Schneider 
 pierre.schneider.pa...@gmail.com:

 Oups, grace's note head looks a little too big.
 So here again:

 \version 2.19.13

 parentGrace = #(define-music-function (parser loc myGrace ) (ly:music?)
 #{
   \once \override NoteHead.X-offset = #-.5
   \once \omit Staff.Flag
   \once \omit Staff.Stem
   \once \override ParenthesesItem.font-size = #-1
   \once \override NoteHead.font-size = #-4
   \once \override ParenthesesItem.stencil = #(lambda (grob)
(let* ((acc (ly:grob-object (ly:grob-parent grob Y)
 'accidental-grob))
   (dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))
  (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob
 'elements acc))
  (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob
 'elements dot))
  (parentheses-item::print grob)))
   \parenthesize $myGrace
 #})

 {
   \clef altovarC
   \pitchedTrill c2\startTrillSpan
-\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.75
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #.8
   \glissando ~ des
   \grace {  \parentGrace d8 }
   c8\stopTrillSpan r8
 }

 Cheers,
 Pierre


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


Re: Pitched trill glissando

2015-01-23 Thread Pierre Perol-Schneider
Hi David,

my first idea was to change the grace note head stencil but, for some
reason, I cannot change the ledger lin length:

parentGrace = {
  \once\omit Flag
  \once\omit Stem
  \once\omit Accidental
  \once\override NoteHead.stencil = #(lambda (grob)
  (grob-interpret-markup grob
#{
  \markup\concat\fontsize #-1  {
\musicglyph
#accidentals.leftparen
\hspace #.3
\musicglyph #accidentals.natural
\hspace #.2
\musicglyph #noteheads.s2
\hspace #.2
\musicglyph
#accidentals.rightparen
  }
#}
))
}

{
  \clef altovarC
  %{
\once \override Glissando.minimum-length = #10
\once \override Glissando.springs-and-rods =
#ly:spanner::set-spacing-rods
\once \override Glissando.bound-details.left.Y = #-3.25
\once \override Glissando.bound-details.right.Y = #-2.75
\once \override Glissando.bound-details.left.padding = #3.5
\once \override Glissando.bound-details.right.padding = #.8
  %}
  \pitchedTrill c2\startTrillSpan
  %% shorter syntax:
  %-\tweak minimum-length #8 % = for a similar note to note distance
  -\tweak minimum-length #10
  -\tweak springs-and-rods #ly:spanner::set-spacing-rods
  -\tweak bound-details.left.Y #-3.25
  -\tweak bound-details.right.Y #-2.75
  -\tweak bound-details.left.padding #3.5
  -\tweak bound-details.right.padding #.8
  \glissando ~ des
  \parentGrace
  \grace { d8 }
  c8\stopTrillSpan r8
}

So I finally change my mind for grace's accidental :

parentAccidental = {
  \once\omit Flag
  \once\omit Stem
  \once\override NoteHead.X-offset = #-.5
  \once\override Accidental.extra-offset = #'(1.9 . 0)
  \once\override Accidental.stencil = #(lambda (grob)
  (grob-interpret-markup grob
#{
  \markup\concat  {
\musicglyph
#accidentals.leftparen
\hspace #.3
\musicglyph #accidentals.natural
\hspace #1.4
\musicglyph
#accidentals.rightparen
  }
#}
))
}

{
  \clef altovarC
  \pitchedTrill c2\startTrillSpan
  -\tweak minimum-length #10
  -\tweak springs-and-rods #ly:spanner::set-spacing-rods
  -\tweak bound-details.left.Y #-3.25
  -\tweak bound-details.right.Y #-2.85
  -\tweak bound-details.left.padding #3.5
  -\tweak bound-details.right.padding #-1.6
  \glissando ~ des
  \parentAccidental
  \grace { d8 }
  c8\stopTrillSpan r8
}

I bet that some more elegant solutions exist but I don't see any right now.

HTH,
Pierre


2015-01-23 8:01 GMT+01:00 David Stephen Grant da...@davidgrant.no:

 Hi list,
 I'm trying to create a pitched trill where the parenthesized note glisses
 to a new note.
 I've got quite close to the notation I'm after, but I can't find a way to
 parenthesize the goal note the same way as the pitchedTrill. \parenthesize
 doesn't seem to include the accidental, and is in a different style to
 pitchedTrill. Any ideas?
 Thanks!
 Best,
 David

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


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


Re: Line-width and Lilypond-book

2015-01-23 Thread Federico Bruni
2015-01-23 10:47 GMT+01:00 Jayaratna jayara...@gmail.com:

 \documentclass[a4paper]{article}
 \begin{document}

 Dummy text, dummy text...

 \noindent \lilypondfile{exemple01.ly}

 \end{document}



I think that the indent should be an option of \lilypondfile, as explained
in the doc:

\lilypondfile[options,go,here]{filename}

so:

\lilypondfile[noindent]{example01.ly}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Pitched trill glissando

2015-01-23 Thread Pierre Perol-Schneider
Added to the LSR : http://lsr.di.unimi.it/LSR/Item?id=972

Cheers,
Piere

2015-01-23 11:19 GMT+01:00 Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com:

 Oups, grace's note head looks a little too big.
 So here again:

 \version 2.19.13

 parentGrace = #(define-music-function (parser loc myGrace ) (ly:music?)
 #{
   \once \override NoteHead.X-offset = #-.5
   \once \omit Staff.Flag
   \once \omit Staff.Stem
   \once \override ParenthesesItem.font-size = #-1
   \once \override NoteHead.font-size = #-4
   \once \override ParenthesesItem.stencil = #(lambda (grob)
(let* ((acc (ly:grob-object (ly:grob-parent grob Y)
 'accidental-grob))
   (dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))
  (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob
 'elements acc))
  (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob
 'elements dot))
  (parentheses-item::print grob)))
   \parenthesize $myGrace
 #})

 {
   \clef altovarC
   \pitchedTrill c2\startTrillSpan
-\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.75
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #.8
   \glissando ~ des
   \grace {  \parentGrace d8 }
   c8\stopTrillSpan r8
 }

 Cheers,
 Pierre


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


Re: Custom DrumStaff

2015-01-23 Thread Marc Hohl

Am 23.01.2015 um 05:52 schrieb Kevin Tough:

I just tried your example and Lilypond produced the following error
messaages. Could it be due to my version of 2.18.2?


I think so. Standalone lenghts were introduced later and should work 
with 2.19.x.


HTH,

Marc


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


Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
Dear Lilypondians,

I am stuck with a linewidth problem in Lilypond-book. Here is a minimal
example of my latex file:

\documentclass[a4paper]{article}
\begin{document}

Dummy text, dummy text...

\noindent \lilypondfile{exemple01.ly}

\end{document}

And my esemple01.ly:
\version 2.18.2
\score { \new Staff \relative c'' {
  \clef violin \key f \major
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d
  a4 bes c d a bes c d

}

}


I use 
lilypond-book --latex-program=pdflatex --leftpadding=0 latexfile.lytex
and then 
pdflatex latexfile.tex

I get this:

http://lilypond.1069038.n5.nabble.com/file/n170880/2015-01-23-104544_1920x1080_scrot.png
 

Where's the problem?

Thank you,
Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Pitched trill glissando

2015-01-23 Thread Thomas Morley
2015-01-23 8:01 GMT+01:00 David Stephen Grant da...@davidgrant.no:
 Hi list,
 I'm trying to create a pitched trill where the parenthesized note glisses to
 a new note.
 I've got quite close to the notation I'm after, but I can't find a way to
 parenthesize the goal note the same way as the pitchedTrill. \parenthesize
 doesn't seem to include the accidental, and is in a different style to
 pitchedTrill. Any ideas?
 Thanks!
 Best,
 David



Hi,

have a look in
https://code.google.com/p/lilypond/issues/detail?id=155

Cheers,
  Harm

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


Re: Pitched trill glissando

2015-01-23 Thread David Stephen Grant
Thanks Pierre,
This seems to work perfectly in the score I'm working on.
All the best,
David

On 23 January 2015 at 10:26, Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com wrote:

 Hi David,

 my first idea was to change the grace note head stencil but, for some
 reason, I cannot change the ledger lin length:

 parentGrace = {
   \once\omit Flag
   \once\omit Stem
   \once\omit Accidental
   \once\override NoteHead.stencil = #(lambda (grob)
   (grob-interpret-markup grob
 #{
   \markup\concat\fontsize #-1  {
 \musicglyph
 #accidentals.leftparen
 \hspace #.3
 \musicglyph #accidentals.natural
 \hspace #.2
 \musicglyph #noteheads.s2
 \hspace #.2
 \musicglyph
 #accidentals.rightparen
   }
 #}
 ))
 }

 {
   \clef altovarC
   %{
 \once \override Glissando.minimum-length = #10
 \once \override Glissando.springs-and-rods =
 #ly:spanner::set-spacing-rods
 \once \override Glissando.bound-details.left.Y = #-3.25
 \once \override Glissando.bound-details.right.Y = #-2.75
 \once \override Glissando.bound-details.left.padding = #3.5
 \once \override Glissando.bound-details.right.padding = #.8
   %}
   \pitchedTrill c2\startTrillSpan
   %% shorter syntax:
   %-\tweak minimum-length #8 % = for a similar note to note distance
   -\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.75
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #.8
   \glissando ~ des
   \parentGrace
   \grace { d8 }
   c8\stopTrillSpan r8
 }

 So I finally change my mind for grace's accidental :

 parentAccidental = {
   \once\omit Flag
   \once\omit Stem
   \once\override NoteHead.X-offset = #-.5
   \once\override Accidental.extra-offset = #'(1.9 . 0)
   \once\override Accidental.stencil = #(lambda (grob)
   (grob-interpret-markup grob
 #{
   \markup\concat  {
 \musicglyph
 #accidentals.leftparen
 \hspace #.3
 \musicglyph #accidentals.natural
 \hspace #1.4
 \musicglyph
 #accidentals.rightparen
   }
 #}
 ))
 }

 {
   \clef altovarC
   \pitchedTrill c2\startTrillSpan
   -\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.85
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #-1.6
   \glissando ~ des
   \parentAccidental
   \grace { d8 }
   c8\stopTrillSpan r8
 }

 I bet that some more elegant solutions exist but I don't see any right now.

 HTH,
 Pierre


 2015-01-23 8:01 GMT+01:00 David Stephen Grant da...@davidgrant.no:

 Hi list,
 I'm trying to create a pitched trill where the parenthesized note glisses
 to a new note.
 I've got quite close to the notation I'm after, but I can't find a way to
 parenthesize the goal note the same way as the pitchedTrill. \parenthesize
 doesn't seem to include the accidental, and is in a different style to
 pitchedTrill. Any ideas?
 Thanks!
 Best,
 David

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


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


Re: Pitched trill glissando

2015-01-23 Thread Pierre Perol-Schneider
Oups, grace's note head looks a little too big.
So here again:

\version 2.19.13

parentGrace = #(define-music-function (parser loc myGrace ) (ly:music?)
#{
  \once \override NoteHead.X-offset = #-.5
  \once \omit Staff.Flag
  \once \omit Staff.Stem
  \once \override ParenthesesItem.font-size = #-1
  \once \override NoteHead.font-size = #-4
  \once \override ParenthesesItem.stencil = #(lambda (grob)
   (let* ((acc (ly:grob-object (ly:grob-parent grob Y)
'accidental-grob))
  (dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))
 (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob
'elements acc))
 (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob
'elements dot))
 (parentheses-item::print grob)))
  \parenthesize $myGrace
#})

{
  \clef altovarC
  \pitchedTrill c2\startTrillSpan
   -\tweak minimum-length #10
  -\tweak springs-and-rods #ly:spanner::set-spacing-rods
  -\tweak bound-details.left.Y #-3.25
  -\tweak bound-details.right.Y #-2.75
  -\tweak bound-details.left.padding #3.5
  -\tweak bound-details.right.padding #.8
  \glissando ~ des
  \grace {  \parentGrace d8 }
  c8\stopTrillSpan r8
}

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


Re: Pitched trill glissando

2015-01-23 Thread Pierre Perol-Schneider
David,

did you notice Harm's pointed the elegant way I was looking for ?
Addapted to your code it goes :

\version 2.19.13

parentGrace = #(define-music-function (parser loc myGrace ) (ly:music?)
#{
  \once \override NoteHead.X-offset = #-.5
  \once \omit Staff.Flag
  \once \omit Staff.Stem
  \once \override ParenthesesItem.font-size = #-1
  \once \override ParenthesesItem.stencil = #(lambda (grob)
   (let* ((acc (ly:grob-object (ly:grob-parent grob Y)
'accidental-grob))
  (dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))
 (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob
'elements acc))
 (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob
'elements dot))
 (parentheses-item::print grob)))
  \parenthesize $myGrace
#})

{
  \clef altovarC
  \pitchedTrill c2\startTrillSpan
   -\tweak minimum-length #10
  -\tweak springs-and-rods #ly:spanner::set-spacing-rods
  -\tweak bound-details.left.Y #-3.25
  -\tweak bound-details.right.Y #-2.75
  -\tweak bound-details.left.padding #3.5
  -\tweak bound-details.right.padding #.8
  \glissando ~ des
  \grace {  \parentGrace d8 }
  c8\stopTrillSpan r8
}

Thank you Harm ;)
Cheers,
Pierre

2015-01-23 10:55 GMT+01:00 David Stephen Grant da...@davidgrant.no:

 Thanks Pierre,
 This seems to work perfectly in the score I'm working on.
 All the best,
 David

 On 23 January 2015 at 10:26, Pierre Perol-Schneider 
 pierre.schneider.pa...@gmail.com wrote:

 Hi David,

 my first idea was to change the grace note head stencil but, for some
 reason, I cannot change the ledger lin length:

 parentGrace = {
   \once\omit Flag
   \once\omit Stem
   \once\omit Accidental
   \once\override NoteHead.stencil = #(lambda (grob)
   (grob-interpret-markup grob
 #{
   \markup\concat\fontsize #-1  {
 \musicglyph
 #accidentals.leftparen
 \hspace #.3
 \musicglyph #accidentals.natural
 \hspace #.2
 \musicglyph #noteheads.s2
 \hspace #.2
 \musicglyph
 #accidentals.rightparen
   }
 #}
 ))
 }

 {
   \clef altovarC
   %{
 \once \override Glissando.minimum-length = #10
 \once \override Glissando.springs-and-rods =
 #ly:spanner::set-spacing-rods
 \once \override Glissando.bound-details.left.Y = #-3.25
 \once \override Glissando.bound-details.right.Y = #-2.75
 \once \override Glissando.bound-details.left.padding = #3.5
 \once \override Glissando.bound-details.right.padding = #.8
   %}
   \pitchedTrill c2\startTrillSpan
   %% shorter syntax:
   %-\tweak minimum-length #8 % = for a similar note to note distance
   -\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.75
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #.8
   \glissando ~ des
   \parentGrace
   \grace { d8 }
   c8\stopTrillSpan r8
 }

 So I finally change my mind for grace's accidental :

 parentAccidental = {
   \once\omit Flag
   \once\omit Stem
   \once\override NoteHead.X-offset = #-.5
   \once\override Accidental.extra-offset = #'(1.9 . 0)
   \once\override Accidental.stencil = #(lambda (grob)
   (grob-interpret-markup grob
 #{
   \markup\concat  {
 \musicglyph
 #accidentals.leftparen
 \hspace #.3
 \musicglyph #accidentals.natural
 \hspace #1.4
 \musicglyph
 #accidentals.rightparen
   }
 #}
 ))
 }

 {
   \clef altovarC
   \pitchedTrill c2\startTrillSpan
   -\tweak minimum-length #10
   -\tweak springs-and-rods #ly:spanner::set-spacing-rods
   -\tweak bound-details.left.Y #-3.25
   -\tweak bound-details.right.Y #-2.85
   -\tweak bound-details.left.padding #3.5
   -\tweak bound-details.right.padding #-1.6
   \glissando ~ des
   \parentAccidental
   \grace { d8 }
   c8\stopTrillSpan r8
 }

 I bet that some more elegant solutions exist but I don't see any right
 now.

 HTH,
 Pierre


 2015-01-23 8:01 GMT+01:00 David Stephen Grant da...@davidgrant.no:

 Hi list,
 I'm trying to create a pitched trill where the parenthesized note
 glisses to a new note.
 I've got quite close to the notation I'm after, but I can't find a way
 to 

Re: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
\documentclass[a4paper]{article}

\begin{document}

Dummy text, dummy text...

\lilypondfile[noindent]{esempioprova01.ly}

\end{document}

and

\documentclass[a4paper]{article}

\begin{document}

Dummy text, dummy text...

\lilypondfile{esempioprova01.ly}

\end{document}

give exactly the same result. I'm more worried about the right margin than
about the indent, though.

A



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170890.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Custom DrumStaff

2015-01-23 Thread Cynthia Karl

 On Jan 22, 2015, at 10:52 PM, Kevin Tough ke...@toughlife.org wrote:
 
 I just tried your example and Lilypond produced the following error
 messaages. Could it be due to my version of 2.18.2?
 
 Parsing...
 TwoInstruments.ly:14:16: error: syntax error, unexpected UNSIGNED
  r8\p bol8 r8
   8% 4
 TwoInstruments.ly:26:10: error: syntax error, unexpected UNSIGNED
  boh8\p
 8 r8 8 % 1
 TwoInstruments.ly:33:1: error: errors found, ignoring music
 expression

Yes, I get those errors with version 2.18.2, but not with 2.19.15.  Do Release 
Notes for the various releases exist?  That would show, e.g. all differences 
between v.2.19.15 and v.1.18.2 or between v.2.19.15 and v.2.19.14?  Or between 
the current stable versionj and the current developmental version?
 
 On Thu, 2015-01-22 at 22:19 -0600, Cynthia Karl wrote:
 On Jan 22, 2015, at 6:06 PM, Rutger Hofman rut...@cs.vu.nl wrote:
 
 On 01/23/2015 12:28 AM, Cynthia Karl wrote:
 I'm trying to duplicate the behavior shown in the next two images:
 
 The major things wrong with this output are:
 
* the rests should be centered on their line, not above it
* there should be a full-measure rest on the lower line of measure 5
* the 8th rest in beat 2 of measure 4 of upperMusic has disappeared, 
 presumable consumed by the corresponding quarter rest in lower music at 
 that time.
* I get the warning:  30: 5: warning: cannot resolve rest collision: 
 rest direction not set
 4
r4  % 4
 
 Can anyone give me a hint or two?  Is a DrumStaff the wrong approach? ( 
 Maybe a couple of RhythmicStaffs would be better?)
 
 Using version 2.19.15.
 
 The rest positions are correct when you use \voiceOne for the upper line in 
 stead of \stemUp, and \voiceTwo for the lower line in stead of \stemDown. 
 Sadly, for full-measure rests in the upper line the result is incorrect. 
 These must be positioned with \oneVoice.
 
 HTH
 
 I think that's going to help a lot. Thanks.


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


Re: Line-width and Lilypond-book

2015-01-23 Thread Federico Bruni
2015-01-23 14:17 GMT+01:00 Jayaratna jayara...@gmail.com:

 give exactly the same result. I'm more worried about the right margin than
 about the indent, though.



how do you want it to look like?
perhaps:

\noindent
Dummy text, dummy text...

???

see attached pdf


book.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Line-width and Lilypond-book

2015-01-23 Thread Jayaratna
I'd simply like it to be as large as the textwidth. I have had a good result
by manually inserting a slightly shorter line-width (2mm less than the
textwidth) in the paper block.

A



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Line-width-and-Lilypond-book-tp170880p170894.html
Sent from the User mailing list archive at Nabble.com.

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


Re: ANN: Frescobaldi 2.17.2

2015-01-23 Thread Ralph Palmer
On Mon, Jan 19, 2015 at 5:54 PM, Wilbert Berendsen wbs...@xs4all.nl wrote:

 Dear friends,

 Frescobaldi 2.17.2 has been released, with source code for Linux
 and any other platform, and packages for MS Windows and Mac OS X.
 Download via: http://frescobaldi.org/download .



 Next release will be 2.18.0 and that will be the first release that
 supports both Python2 and Python3.

 Enjoy!
 Wilbert and the Frescobaldi Team.


I am amazed and grateful for Frescobaldi and the time and effort Wilbert
and the Frescobaldi Team put into the program.

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user