Re: PDF portfolio of 2.19.34 docs

2015-12-30 Thread Dr Nicholas J Bailey
You can open it in Okular then save the embedded files if that helps anybody.

On Saturday 26 December 2015 17:00:52 Nick Payne wrote:
> A fully indexed portfolio of the 2.19.34 PDF docs is available at
> https://www.dropbox.com/s/fwulx0b02yf72l6/lilydoc-2.19.34.pdf?dl=0 (39Mb).
> 
> Needs Adobe Reader for the indexing to work - I haven't found a 3rd
> party PDF viewer that can use the index in PDF portfolios.
> 
> Nick
> 
> ___
> 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: Ossia with dashed span bars

2015-12-30 Thread Andrew Bernard
Dear Abraham,

Very clear and very nice. This ought to be an LSR snippet for sure.

Andrew



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


Re: Ossia with dashed span bars

2015-12-30 Thread tisimst
Ralph,


Ralph Palmer wrote
> [...] I need dashed span bars between the lower normal staff and
> the ossia staff. I've tried everthing I could think of, using the LSR and
> the Notation Reference, but no luck. I could see what I want, but with
> only
> a single bar line, in the Notation Reference, and an even better one, but
> without the staff group in the LSR
> (http://lsr.di.unimi.it/LSR/Item?id=125,
> "Inserting a temporary ossia"). I couldn't figure out how to use either
> example in my situation.
> 
> Here's my code (and I'm attaching the output "
> 
>  start snippet %%%
> 
> \version "2.19.33"
> 
> % Ossia Problem
> 
>  YAY WORKS %%
> 
> \language "english"
> 
> FourA =
> \relative c'' {
>   \key fs \minor
>   \time 4/4
> 
>   e4 e cs2 |
>   d4 d b2 |
>   cs4 cs8 b a4 d4 |
>   cs4 cs8 b a4 d |
>   cs4 e b2 |
>   \break
> 
>   % bar 6
>   b'4 b gs2 |
>   a4 a fs2 |
>   gs4 gs8 fs e4 a |
>   gs8 gs gs fs e4 a |
>   gs4 b fs2 |
> }
> 
> 
> 
> FourB =
> \relative c'' {
>   \key fs \minor
>   \time 4/4
> 
>   r2 a4 a |
>   fs2 gs4 gs |
>   e2 fs4 fs8 gs |
>   a4 e fs fs8 gs |
>   a4 e a gs8 fs |
> 
>   % bar 6
>   gs4 b e e8 ds |
>   cs2 e4 ds8 cs |
>   bs2 ds4 ds8 cs |
>   bs4 bs e8 e ds cs |
>   bs2. ds8 cs |
> }
> 
> \defineBarLine "-dashedSpan" #'("" "" "!")
> 
> FourOssia =
> \relative c''' {
>   \key fs \minor
>   \time 4/4
> 
>   s1*5
> 
>   % bar 6
>   gs4 gs gs ds8 cs |
>   b2 ds4 cs8 b |
>   a2 ds4 cs8 b |
>   a4 a~ a8 e' ds cs |
>   b2. ds8 cs |
> }
> 
> 
> \score {
>   <<
> \new GrandStaff <<
>   \new Staff << \FourA >>
>   \new Staff << \FourB >>
> >>
> \new Staff \with {
>   \remove "Time_signature_engraver"
>   fontSize = #-3
>   \override StaffSymbol.staff-space = #(magstep -3)
>   \override StaffSymbol.thickness = #(magstep -3)
>   \override VerticalAxisGroup.remove-first = ##t
> }
> << \FourOssia >>
>   >>
> 
>   \header {
> piece = "Song"
> 
>   }
>   \layout {
> \context {
>   \Staff \RemoveEmptyStaves
> }
>   }
> }
> 
> % end snippet %%%
> [...]
> I'm grateful for any help!

Here's one way to do it. Put the GrandStaff (should it be a PianoStaff?) and
the Ossia staff within a StaffGroup, setting the StaffGroup's SpanBar to
dashed "!". This will override the internal GrandStaff's SpanBar, so it has
to be reset back to solid "|". And finally, remove the StaffGroup's
System_start_delimiter_engraver to get rid of the bracket at the beginning
of each system because you don't need/want it. Here's the updated \score
code:

%<-- SNIP 

\score {
  \new StaffGroup \with {
\override SpanBar.glyph-name = #"!"
\remove System_start_delimiter_engraver
  } <<
\new GrandStaff \with {
  \override SpanBar.glyph-name = #"|"
} <<
  \new Staff << \FourA >>
  \new Staff << \FourB >>
>>
\new Staff \with {  
  \remove "Time_signature_engraver"
  fontSize = #-3
  \override StaffSymbol.staff-space = #(magstep -3)
  \override StaffSymbol.thickness = #(magstep -3)
  \override VerticalAxisGroup.remove-first = ##t  
} << \FourOssia >>
  >>
  
  \header { 
piece = "Song"

  }
  \layout { 
\context {
  \Staff \RemoveEmptyStaves   
} 
  }
}

%<-- SNIP 

HTH,
Abraham

add-dashed-spanbar-to-ossia-staff.png

  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ossia-with-dashed-span-bars-tp185371p185379.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


Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2015-12-30 Thread Kieren MacMillan
Hi Harm,

Now that my custom ottavation function isn’t overriding the stencil, how do I 
adjust all of the parameters I had set in the “bound-details” version (e.g., X, 
Y, padding, right-broken.X, etc.)?

Thanks,
Kieren.

p.s. My original function was simply extended from the example in the [current] 
docs:

Perhaps that should be changed, if it’s not the recommended method?


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Apply \editionMod to grace note

2015-12-30 Thread Kieren MacMillan
Hi Urs,

> Interestingly it didn't work addressing Voice but does so with Staff or 
> Dynamics …

I have a great deal of difficulting addressing [sub-]Voice(s) using the 
edition-engraver. Assumedly, this issue will be addressed/overcome with the 
“id” we’ve been discussing. (As a Band-Aid®, I’ve been addressing Staff or 
Score where possible, which is quite often.)

> Strangely here \once doesn't have an effect.

Hmm… no idea why that might be. (Ask J-P?)

Best,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Fine control over piano pedal end bracket position

2015-12-30 Thread David Nalesnik
Andrew,

On Wed, Dec 30, 2015 at 5:53 PM, Andrew Bernard 
wrote:

> Hi David,
>
> I am very pleased to report that the following sort of thing works just
> fine:
>
>  \alterBroken shorten-pair #'( #'(0 . 0) #'(0 . 2))
> Dynamics.PianoPedalBracket
>
>
Color me surprised that that syntax works!  I would have written

 \alterBroken shorten-pair #'((0 . 0) (0 . 2)) Dynamics.PianoPedalBracket

>
>
> I wonder if an example like this should be an LSR snippet?
>
>
That could be helpful.

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


Re: Apply \editionMod to grace note

2015-12-30 Thread Urs Liska


Am 31.12.2015 um 00:18 schrieb Kieren MacMillan:
> Hi Urs,
>
>> so: what is the incantation for ly:make-moment to address some point in a 
>> \partial ?
> In my current score,
>
> \editionMod IStoodTiptoe-score 1 #(ly:make-moment 0/4 -0/4)
>
> let me address the [single] quarter beat/moment in a \partial 4 pickup 
> measure.
>
> Hope this helps!

Yes, thank you.
Interestingly it didn't work addressing Voice but does so with Staff or
Dynamics ...

\editionMod cycle 1 #(ly:make-moment 0/4 -0/8)
(again to Staff, Score but not Voice) seems to address the eighth note
before the barline in a "\partial 4". Strangely here \once doesn't have
an effect.

Urs

> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>


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


Ossia with dashed span bars

2015-12-30 Thread Ralph Palmer
Hi, LilyPonders -

I'm running LY 2.19.33 under Win7.

I thought I had the ossia thing licked, and I'm getting close, but I'm not
quite there yet. I need dashed span bars between the lower normal staff and
the ossia staff. I've tried everthing I could think of, using the LSR and
the Notation Reference, but no luck. I could see what I want, but with only
a single bar line, in the Notation Reference, and an even better one, but
without the staff group in the LSR (http://lsr.di.unimi.it/LSR/Item?id=125,
"Inserting a temporary ossia"). I couldn't figure out how to use either
example in my situation.

Here's my code (and I'm attaching the output "

 start snippet %%%

\version "2.19.33"

% Ossia Problem

 YAY WORKS %%

\language "english"

FourA =
\relative c'' {
  \key fs \minor
  \time 4/4

  e4 e cs2 |
  d4 d b2 |
  cs4 cs8 b a4 d4 |
  cs4 cs8 b a4 d |
  cs4 e b2 |
  \break

  % bar 6
  b'4 b gs2 |
  a4 a fs2 |
  gs4 gs8 fs e4 a |
  gs8 gs gs fs e4 a |
  gs4 b fs2 |
}



FourB =
\relative c'' {
  \key fs \minor
  \time 4/4

  r2 a4 a |
  fs2 gs4 gs |
  e2 fs4 fs8 gs |
  a4 e fs fs8 gs |
  a4 e a gs8 fs |

  % bar 6
  gs4 b e e8 ds |
  cs2 e4 ds8 cs |
  bs2 ds4 ds8 cs |
  bs4 bs e8 e ds cs |
  bs2. ds8 cs |
}

\defineBarLine "-dashedSpan" #'("" "" "!")

FourOssia =
\relative c''' {
  \key fs \minor
  \time 4/4

  s1*5

  % bar 6
  gs4 gs gs ds8 cs |
  b2 ds4 cs8 b |
  a2 ds4 cs8 b |
  a4 a~ a8 e' ds cs |
  b2. ds8 cs |
}


\score {
  <<
\new GrandStaff <<
  \new Staff << \FourA >>
  \new Staff << \FourB >>
>>
\new Staff \with {
  \remove "Time_signature_engraver"
  fontSize = #-3
  \override StaffSymbol.staff-space = #(magstep -3)
  \override StaffSymbol.thickness = #(magstep -3)
  \override VerticalAxisGroup.remove-first = ##t
}
<< \FourOssia >>
  >>

  \header {
piece = "Song"

  }
  \layout {
\context {
  \Staff \RemoveEmptyStaves
}
  }
}

% end snippet %%%

I'm grateful for any help!

All the best,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com


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


Re: Fine control over piano pedal end bracket position

2015-12-30 Thread Andrew Bernard
Hi David,

I am very pleased to report that the following sort of thing works just fine:

 \alterBroken shorten-pair #'( #'(0 . 0) #'(0 . 2)) Dynamics.PianoPedalBracket


I wonder if an example like this should be an LSR snippet?

Andrew


On 30/12/2015, 12:10, "David Nalesnik"  wrote:

Possibly you could use \alterBroken here

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


Re: incorporating .pdf file into a text

2015-12-30 Thread Brian Barker

At 10:57 29/12/2015 -0500, Joseph Breton wrote:
How can I incorporate my pdf file into a word processor like 
libreoffice? My trials always produce some to me undecipherable text 
which then greatly expands to non ASCII symbols.


As has been suggested, preferably create Lilypond output in Scalable 
Vector Graphics (SVG) or Portable Network Graphics (PNG) format 
instead. (See Notation Manual 3.4.3.)


Alternatively, in your LibreOffice text (Writer) document,
o Go to Insert | Object > | OLE Object... .
o Double-click "Further objects".
o Select "Create from file" and Browse... .
o Browse to and open the PDF document file.
o Resize and reposition the graphic as necessary.

I trust this helps.

Brian Barker


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


Re: incorporating .pdf file into a text

2015-12-30 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 30/12/15 22:21, Urs Liska wrote:
> 
> 
> Am 30. Dezember 2015 22:37:06 MEZ, schrieb J Martin Rushton
> : I've just had a bit of a play
> with this using LibreOffice 4.3.7.2 under CentOS 7.2
> 
> LibreOffice can't import PDFs directly.
> 
> I opened a PDF using the document viewer and used print to file.
> 
> I generated postscript files which did would not load correctly
> into LibreOffice.
> 
> I then created SVG files.  Working with a two page score I
> eventually generated three files: One file with all (both) pages,
> and two files with one page in each.
> 
> The SVGs and PS were all opened by their respective readers and
> found to be correct.
> 
> Using LibreOffice I could insert>image>from file and select one of
> the SVGs.  The original (2 page) SVG put both pages on top of each
> other, so I then tried one page at a time which worked perfectly.
> The resulting score could be saved as ODT, exported as PDF and
> printed directly.
> 
> Therefore:
> 
> 1) Open the PDF in a reader. 2) Print to file as SVG - one page at
> a time. 3) Insert the resulting SVGs as images in your document.
> 
>> Wouldn't you rather want to create the SVG files directly from
>> LilyPond?
> 
>> Urs
> 

But the OP asked about PDFs specifically.  You are assuming (not
unreasonably on this forum) that the PDFs came from LilyPond.

> 
> On 29/12/15 15:57, Joseph Breton wrote:
 How can I incorporate my pdf file into a word processor like
  libreoffice?   My trials always produce some to me
 undecipherable text which then greatly expands to non ASCII
 symbols,
 
 
 ___
 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
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJWhGdfAAoJEAF3yXsqtyBlSAwQAI0ImWKhSK+lBrSrq/Eq0c5o
Af4oNVnjaTdDdMGI1wnp//g9ung7xgZVY26N8gY6eRtpla6yNs6qPdZZVpk+c98R
phM6biKrfouFpSNXHJbowpYQ4Q9y2NqPFf7rqSrXELoU9piAKvwq5k4mxQotkGgx
g2fXdvR0WDpiKDWtX1Jc3tTm9cXe5AtHWh7G6nF+20lbKwxrYHucaFJHp6WjwyLn
Hp1Mxu5Wxs4ce3xtwQ4iiaggM3E3jxtp7wFBZMF39YmQg/Tdm9syLkmOS2Pc7kQX
5IsYibc2VDnqKoGePtX9JCflwnJvR9dZSc4fdfypE5wAK3SQXBKpZEuS48KTQ2Jo
b8E0PRTSMWohQjwX50C8llQUVADy8ZesbagmtsSURiBjRR3ewZpbcevPW3TGO+0b
g1EWtfsERcdf8l8EggSSCnnwspV/KWrEP4DknSDLYpUE2oM3kJk/a1YTekFvn8x5
JSnNuOCCNDc6fcgDKaE3whe/3Zgv97Z+4RVM4V3AxOM7HDKm6nhmIPX5Z8LOoSLc
sDs0+uHcnyNPMk/BqknitLhKTaQWhWDZ+fwNbZ/tAp6i2KCSs9BD+qERsqxfa8gp
4arataumkc2CfahJJQHo7lYyJt18PuZ66HtO5wwDFrj0eZHuseDogAznLTl6USTR
Jttb32duxKO9BQ0dMmCs
=xaFA
-END PGP SIGNATURE-

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


Re: incorporating .pdf file into a text

2015-12-30 Thread Klaus Blum
If you want to include LilyPond snippets into a word processor, you might be
interested in the OOoLilyPond extension for OpenOffice: 
http://ooolilypond.sourceforge.net/

It calls LilyPond to compile your code into a PNG or EPS file which is
inserted into the text document. 
PNG works pretty well, but has the quality drawbacks of every bitmap format. 

The author states that EPS does not work on Windows, but that's not quite
true: 
OpenOffice cannot display or print the EPS graphics or directly export to
PDF, but printing to a suitable PDF printer will do the trick (I use FreePDF
which is a frontend to GhostScript).



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/incorporating-pdf-file-into-a-text-tp185279p185367.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: Apply \editionMod to grace note

2015-12-30 Thread Kieren MacMillan
Hi Urs,

> so: what is the incantation for ly:make-moment to address some point in a 
> \partial ?

In my current score,

\editionMod IStoodTiptoe-score 1 #(ly:make-moment 0/4 -0/4)

let me address the [single] quarter beat/moment in a \partial 4 pickup measure.

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

> I don't think OttavaBracket.bound-details does anything, I'd delete it.

It doesn’t any more, because the stencil is no longer being overridden:

  SNIPPET BEGINS
\version "2.19.32"

\paper { ragged-right = ##f }

#(define eightva
 #{
   \markup
 %% messing around with \with-dimensions, because OttavaBracket has no
 %% possibility to set details.stencil-align-dir-y
 %% :((
 \with-dimensions #'(0 . 4) #'(0 . 2.8)
 \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
 #})
octU = {
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.after-line-breaking =
  #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
  \ottava #1
}
octU_BP = {
  \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \once \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) (padding . -10) (stencil-align-dir-y . ,0.85)))
   (left-broken . ((Y . 0) (stencil-align-dir-y . ,0.85)))
   (right-broken . ((Y . 0) (padding . 0) (text . (markup ""
   (right . ((Y . 0) (padding . -10) (text . ,(make-draw-line-markup (cons 
0 -1))
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.after-line-breaking =
  #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
  \once \override Staff.OttavaBracket.left-bound-info =
 #ly:line-spanner::calc-left-bound-info-and-text
  \once \override Staff.OttavaBracket.right-bound-info =
 #ly:line-spanner::calc-right-bound-info
  \ottava #1
}

{
  \octU c'''4 4 4 4
}

{
  \octU_BP c'''4 4 4 4
}
  SNIPPET ENDS

I’ll have to set my #’padding etc. some other way.

> Default for font-shape is 'italic and it's in eightva as well makes no
> sense to me to set it 'roman here, I'd delete it as well.

But then the parenthesized version requires more effort to have the parentheses 
upright.
Six of one, half dozen of the other here…

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: incorporating .pdf file into a text

2015-12-30 Thread Andrew Bernard
Easier and simpler – use the convert tool from the ImageMagick suite.

$ convert file.pdf file.png

Import PNG into Writer using Insert->Image. Works on Linux.

Andrew


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


Re: incorporating .pdf file into a text

2015-12-30 Thread Andrew Bernard
Hi Urs,

Yes – but if you have any PostScript in your lilypond file the SVG cannot be 
generated. This is a problem I hit continually. So there is some rationale for 
the approach being discussed, under that circumstance.

Andrew


On 31/12/2015, 09:21, "Urs Liska" 
 wrote:

Wouldn't you rather want to create the SVG files directly from LilyPond?

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


Re: incorporating .pdf file into a text

2015-12-30 Thread Urs Liska


Am 30. Dezember 2015 22:37:06 MEZ, schrieb J Martin Rushton 
:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>I've just had a bit of a play with this using LibreOffice 4.3.7.2
>under CentOS 7.2
>
>LibreOffice can't import PDFs directly.
>
>I opened a PDF using the document viewer and used print to file.
>
>I generated postscript files which did would not load correctly into
>LibreOffice.
>
>I then created SVG files.  Working with a two page score I eventually
>generated three files: One file with all (both) pages, and two files
>with one page in each.
>
>The SVGs and PS were all opened by their respective readers and found
>to be correct.
>
>Using LibreOffice I could insert>image>from file and select one of the
>SVGs.  The original (2 page) SVG put both pages on top of each other,
>so I then tried one page at a time which worked perfectly.  The
>resulting score could be saved as ODT, exported as PDF and printed
>directly.
>
>Therefore:
>
>1) Open the PDF in a reader.
>2) Print to file as SVG - one page at a time.
>3) Insert the resulting SVGs as images in your document.

Wouldn't you rather want to create the SVG files directly from LilyPond?

Urs

>
>On 29/12/15 15:57, Joseph Breton wrote:
>> How can I incorporate my pdf file into a word processor like 
>> libreoffice?   My trials always produce some to me undecipherable
>> text which then greatly expands to non ASCII symbols,
>> 
>> 
>> ___ lilypond-user
>> mailing list lilypond-user@gnu.org 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v2.0.22 (GNU/Linux)
>
>iQIcBAEBAgAGBQJWhE6CAAoJEAF3yXsqtyBlBIcP/jzsj2RnGdQGxub3xfczjt6b
>o8UCQUt/PS0gDwR9jEAG/uuji3iC+DLIao+MUQkjpIVaEA5WMBAskpEEK0vGwReL
>eS7kOqq7+YLIsbIAYMI8iOU0vFi3R4xaaQWxBzkCSuxqkQr2usLel+E3pSSDXn7Q
>6SGTDHI7ManVV0rua6SiDskUcw1tG9ubj9+xnq2kVwMvHXh74tUUbVNLvQps2pXG
>9JixEI4JLDUBX5T15Hwk+KUN3LDV1/9InBdvphIRyaXdct4JPmI4qLkZjIygd6Kg
>tAM0i/dkc8nPZz4mngEcWMPdLLw0AOV3k8WCOUjTk9nbmblnuvb3Uy5pghqiQifi
>NGKP0NcrVSYeCjx0zP04iDzrosxkK6Q3icBRmVlnEbQc3EpsW0K03qNVutpb0su3
>apix+prajx7afsUyAkj3v8kFrEfiWtowGYEHwCkqL6nYLz6KO2Smct8dVVKI9fx3
>MBRg06AWOXJCtTE9IX8fDWVpL0rv3vFYO0UwniZHWqCmCuBvLcdZp6DxCMLGmfRL
>oDJIFmqwyIJDslFnZdG3cGWwDMEt/IisJVuqHchRJjpDjDbYfRI4MkGIJptgAOhX
>39/iRYK1ukppMEsedozKu59Bf86Ppx2w/XUPf9OPXQr8dTnY+Hc4/KxodWHX4eNK
>eFp4pDtAPzzNiG1Mz+zi
>=5jYK
>-END PGP SIGNATURE-
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

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


Re: incorporating .pdf file into a text

2015-12-30 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've just had a bit of a play with this using LibreOffice 4.3.7.2
under CentOS 7.2

LibreOffice can't import PDFs directly.

I opened a PDF using the document viewer and used print to file.

I generated postscript files which did would not load correctly into
LibreOffice.

I then created SVG files.  Working with a two page score I eventually
generated three files: One file with all (both) pages, and two files
with one page in each.

The SVGs and PS were all opened by their respective readers and found
to be correct.

Using LibreOffice I could insert>image>from file and select one of the
SVGs.  The original (2 page) SVG put both pages on top of each other,
so I then tried one page at a time which worked perfectly.  The
resulting score could be saved as ODT, exported as PDF and printed
directly.

Therefore:

1) Open the PDF in a reader.
2) Print to file as SVG - one page at a time.
3) Insert the resulting SVGs as images in your document.

On 29/12/15 15:57, Joseph Breton wrote:
> How can I incorporate my pdf file into a word processor like 
> libreoffice?   My trials always produce some to me undecipherable
> text which then greatly expands to non ASCII symbols,
> 
> 
> ___ lilypond-user
> mailing list lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJWhE6CAAoJEAF3yXsqtyBlBIcP/jzsj2RnGdQGxub3xfczjt6b
o8UCQUt/PS0gDwR9jEAG/uuji3iC+DLIao+MUQkjpIVaEA5WMBAskpEEK0vGwReL
eS7kOqq7+YLIsbIAYMI8iOU0vFi3R4xaaQWxBzkCSuxqkQr2usLel+E3pSSDXn7Q
6SGTDHI7ManVV0rua6SiDskUcw1tG9ubj9+xnq2kVwMvHXh74tUUbVNLvQps2pXG
9JixEI4JLDUBX5T15Hwk+KUN3LDV1/9InBdvphIRyaXdct4JPmI4qLkZjIygd6Kg
tAM0i/dkc8nPZz4mngEcWMPdLLw0AOV3k8WCOUjTk9nbmblnuvb3Uy5pghqiQifi
NGKP0NcrVSYeCjx0zP04iDzrosxkK6Q3icBRmVlnEbQc3EpsW0K03qNVutpb0su3
apix+prajx7afsUyAkj3v8kFrEfiWtowGYEHwCkqL6nYLz6KO2Smct8dVVKI9fx3
MBRg06AWOXJCtTE9IX8fDWVpL0rv3vFYO0UwniZHWqCmCuBvLcdZp6DxCMLGmfRL
oDJIFmqwyIJDslFnZdG3cGWwDMEt/IisJVuqHchRJjpDjDbYfRI4MkGIJptgAOhX
39/iRYK1ukppMEsedozKu59Bf86Ppx2w/XUPf9OPXQr8dTnY+Hc4/KxodWHX4eNK
eFp4pDtAPzzNiG1Mz+zi
=5jYK
-END PGP SIGNATURE-

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


RE: Question about page break time indices

2015-12-30 Thread Dirk Klamer
Carl,

Use the the bar numbers and the timing of a single (average) bar duration to
calculate the time somewhere in the music
Is this a option?

Kind regards, Dirk


-Original Message-
From: lilypond-user-bounces+klamer=zonnet...@gnu.org
[mailto:lilypond-user-bounces+klamer=zonnet...@gnu.org] On Behalf Of Carl
Peterson
Sent: woensdag 30 december 2015 8:11
To: lilypond-user@gnu.org
Subject: Question about page break time indices

All,

I am involved in some choral 
recording projects where we are 
having the singers sing from 
projected slides. To aid in timing, 
pitch, etc., we have it set up where 
they have headphones feeding them the 
MIDI of the song being recorded as 
they sing. All of this is synchonored 
through the recording software, with 
the slides being pre-rendered to a 
video file.

Right now, the music slides are being 
created in Finale (cringe), the MIDI 
is being manually input into the 
recording software because we've had 
issues with Finale's MIDI being 
accurate on tempo changes, and I am 
using Apple Keynote to render the 
slides to video using manual timings.

I would like to use Lilypond to 
render the individual slides and the 
MIDI, then use ffmpeg and some other 
things to programmatically render the 
video itself. The issue is that in 
order to do that, I need accurate 
timing information on slide changes.

Which gets to my question/request. Is 
there a way, when Lilypond is 
running, for it to output some sort 
of auxiliary file with some kind of 
tick/time code information about each 
page? In other words, what is the 
time index of the first note on a 
given slide/page? With this, I can 
work with scripting tools to work 
backwards from each time code to 
generate the still images for the 
transitions from slide to slide.

Thanks,
Carl


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


-
Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 2016.0.7303 / Virusdatabase: 4489/11286 - datum van uitgifte:
12/30/15

-
Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 2016.0.7303 / Virusdatabase: 4489/11286 - datum van uitgifte:
12/30/15


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


Re: Apply \editionMod to grace note

2015-12-30 Thread Urs Liska
Hi all,

so: what is the incantation for ly:make-moment to address some point in
a \partial ?

Modifying David's snippet below to

\version "2.19.30"

{
  \partial 4
  \once \override NoteHead.after-line-breaking =
  #(lambda (grob)
 (display (grob::when grob))
 (newline))
  c''4
   
  d''1
}

returns

#

so nothing that would help me construct the proper make-moment call.

Any help? TIA Urs




Am 26.11.2015 um 16:58 schrieb Jan-Peter Voigt:
> Hi there,
>
> late to the party ;)
> Yes, the edition-engraver waits for a moment in time! In fact all
> notations like 1/4 are just shortcuts, which are directly converted to a
> ly:make-moment statement. And of course it also accepts direct input of
> a moment. So, as you already noticed, you can address a grace moment
> with something like #(ly:make-moment 1/8 -1/8)
> Btw, this also applies for \partial beats/upbeats.
>
> To sum up: There are two dimensions to address an override: The time - I
> would say horizontal - and the context - I would say vertical. Any point
> in time can be addressed with a barnumber and a moment in that bar
> (=horizontal) and a context specifier (=vertical). As long, as you can
> address the point in time and the context to modify, you can apply a
> modification. I would like to call it "tweak", but that name is reserved
> for "tweaks" to single notes (or the like). One might say, it adds
> another dimension or better increases granularity in the vertical
> dimension. I am thinking of introducing some kind of selector, so that
> one can say "Tweak (only) the cis'' in the chord at bar 21 moment 1/4 so
> that ...".
>
> HTH
> Jan-Peter
>
>
>
> Am 26.11.2015 um 15:46 schrieb David Nalesnik:
>> Hi,
>>
>> On Thu, Nov 26, 2015 at 8:14 AM, Kieren MacMillan
>> mailto:kieren_macmil...@sympatico.ca>>
>> wrote:
>>
>> Hi Urs,
>>
>> > is there a way to apply an \editionMod to a grace note or acciaccatura?
>> > What would be the proper "moment" of that?
>>
>> I’m not sure, but I would like to know!
>>
>> I’d also like to know how to address a partial (“pickup”) measure.
>> I’ve asked before, but did not receive an answer.
>>
>> Sorry I couldn’t be of more help!
>> Kieren.
>>
>>
>> Is the edition engraver able to accept moments specified by
>> ly:make-moment?  If so, you can specify a moment using optional arguments.
>>
>> For example, the grace moment in the following snippet (see console
>> display):
>>
>> \version "2.19.30"
>>
>> {
>>   c''4
>>   \once \override NoteHead.after-line-breaking =
>>   #(lambda (grob)
>>  (display (grob::when grob))
>>  (newline))
>> 
>>   \grace c''8
>>   d''2.
>> }
>>
>> can be created this way:
>>
>> #(display (ly:make-moment 1 4 -1 8)) 
>>
>> See the description of ly:make-moment in the IR (Scheme functions).
>>
>> HTH,
>> 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

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


Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread Robert Schmaus



Am 30/12/15 um 20:35 schrieb David Kastrup:

Robert Schmaus  writes:


Hi David,

as you pointed out a week ago, this works fine:

\version "2.19.18"

\score {

   \new Staff
   \with {
 \accepts "ChordNames"
 \consists Percent_repeat_engraver
   } {
 % some written out music
 c''4 c'' c'' c''

 % switch to changes
 \chords {
   \set Staff.countPercentRepeats = ##t
   \set Staff.repeatCountVisibility =
#(every-nth-repeat-count-visible 4)
   \repeat percent 8 { c1 : maj7 }
 }
   }
}


It stops working however, if I go from 2.19.18 to 2.19.34.


How so?



The repeat-counter is no longer visible in 2.19.34.
Frescobaldi let's me keep several Lily versions and chooses the right 
one from the \version statement. So, if I change the version statement 
to 2.19.34, the percent count simply disappears ..



Fwiw, I'm using lilypond on Mac OS 10.9.5.


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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread MING TSANG
hi, Jacques, Robert, Simon, David, Thomas, Michael Gerdau,Johan Vroman:
Thank you for the responses. It helps.  Now I save .ly file before execute 
lilypond - midi pdf files are saved.
Looking forward for lilypond v2.19.35
Immanuel,Ming
 

  From: Jacques Menu 
 To: MING TSANG  
Cc: Jacques Menu ; Lilypond-user Mailinglist 

 Sent: Wednesday, December 30, 2015 4:15 AM
 Subject: Re: does not save file automatically after "run" lilypond "
   
Hello Ming,
Can’t say without your LP source code.
JM

Le 30 déc. 2015 à 07:08, MING TSANG  a écrit :
I run lilypond 2.19.34 with frescobaldi 2.18.2Upon exit frescobaldi ask to save 
file and I comply.  But pdf is not saved.   I saw a lot additional info that I 
did not see when running frescobaldi 2.18.1 and lilypond 2.19.34  Need help.

Starting lilypond-windows.exe 2.19.34 [eye-hath-not-seen.ly]...Processing 
`c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly'Parsing...Interpreting
 music...MIDI output to `eye-haveath-not-seen-soprano.mid'...Interpreting 
music...c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:517:5:
 warning: cannot find Voice `alto'  \rehearsalMidi "alto" "soprano sax" 
\verseOneMIDI output to `eye-hath-not-seen-alto.mid'...Interpreting 
music...c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:525:5:
 warning: cannot find Voice `tenor'  \rehearsalMidi "tenor" "tenor sax" 
\verseOneMIDI output to `eye-hath-not-seen-tenor.mid'...Interpreting 
music...c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:533:5:
 warning: cannot find Voice `bass'  \rehearsalMidi "bass" "tenor sax" 
\verseOneMIDI output to `eye-hath-not-seen-bass.mid'...Interpreting 
music...[8][16][24][32][40][48][56][64][72][80]Preprocessing graphical 
objects...Interpreting music...MIDI output to `eye-hath-not-seen.mid'...Finding 
the ideal number of pages...Fitting music on 5 or 6 pages...Drawing 
systems...Layout output to `./tmp-lilypond-PI8z5c'...(list 'abs-fontsize-markup 
'auto-footnote-markup 'bold-markup 'box-markup 'bracket-markup 'caps-markup 
'center-align-markup 'center-column-markup 'circle-markup 
'column-lines-markup-list 'column-markup 'combine-markup 'concat-markup 
'conditional-circle-markup-markup 'dir-column-markup 'dynamic-markup 
'ellipse-markup 'fill-line-markup 'fill-with-pattern-markup 'finger-markup 
'first-visible-markup 'fontCaps-markup 'fontsize-markup 'footnote-markup 
'fraction-markup 'general-align-markup 'halign-markup 'hbracket-markup 
'hcenter-in-markup 'huge-markup 'italic-markup 'justified-lines-markup-list 
'justify-line-markup 'justify-markup 'large-markup 'larger-markup 
'left-align-markup 'left-column-markup 'line-markup 'lower-markup 
'magnify-markup 'map-markup-commands-markup-list 'medium-markup 
'normal-size-sub-markup 'normal-size-super-markup 'normal-text-markup 
'normalsize-markup 'number-markup 'on-the-fly-markup 'oval-markup 
'overlay-markup 'override-lines-markup-list 'override-markup 'overtie-markup 
'pad-around-markup 'pad-markup-markup 'pad-to-box-markup 'pad-x-markup 
'page-link-markup 'parenthesize-markup 'pattern-markup 'put-adjacent-markup 
'raise-markup 'replace-markup 'right-align-markup 'right-column-markup 
'roman-markup 'rotate-markup 'rounded-box-markup 'sans-markup 'scale-markup 
'small-markup 'smallCaps-markup 'smaller-markup 'sub-markup 'super-markup 
'teeny-markup 'text-markup 'tie-markup 'tiny-markup 'translate-markup 
'translate-scaled-markup 'transparent-markup 'typewriter-markup 
'underline-markup 'undertie-markup 'upright-markup 'vcenter-markup 
'whiteout-markup 'with-color-markup 'with-dimensions-markup 'with-link-markup 
'with-url-markup 'wordwrap-internal-markup-list 'wordwrap-lines-markup-list 
'wordwrap-markup)(list 'abs-fontsize-markup 'auto-footnote-markup 'bold-markup 
'box-markup 'bracket-markup 'caps-markup 'center-align-markup 
'center-column-markup 'circle-markup 'column-lines-markup-list 'column-markup 
'combine-markup 'concat-markup 'conditional-circle-markup-markup 
'dir-column-markup 'dynamic-markup 'ellipse-markup 'fill-line-markup 
'fill-with-pattern-markup 'finger-markup 'first-visible-markup 'fontCaps-markup 
'fontsize-markup 'footnote-markup 'fraction-markup 'general-align-markup 
'halign-markup 'hbracket-markup 'hcenter-in-markup 'huge-markup 'italic-markup 
'justified-lines-markup-list 'justify-line-markup 'justify-markup 'large-markup 
'larger-markup 'left-align-markup 'left-column-markup 'line-markup 
'lower-markup 'magnify-markup 'map-markup-commands-markup-list 'medium-markup 
'normal-size-sub-markup 'normal-size-super-markup 'normal-text-markup 
'normalsize-markup 'number-markup 'on-the-fly-markup 'oval-markup 
'overlay-markup 'override-lines-markup-list 'override-markup 'overtie-markup 
'pad-around-markup 'pad-markup-markup 'pad-to-box-markup 'pad-x-markup 
'page-link-markup 'parenthesize-markup 'pattern-markup 'put-adjacent-markup 
'raise-markup 'rep

Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread David Kastrup
Robert Schmaus  writes:

> Hi David,
>
> as you pointed out a week ago, this works fine:
>
> \version "2.19.18"
>
> \score {
>
>   \new Staff
>   \with {
> \accepts "ChordNames"
> \consists Percent_repeat_engraver
>   } {
> % some written out music
> c''4 c'' c'' c''
>
> % switch to changes
> \chords {
>   \set Staff.countPercentRepeats = ##t
>   \set Staff.repeatCountVisibility =
> #(every-nth-repeat-count-visible 4)
>   \repeat percent 8 { c1 : maj7 }
> }
>   }
> }
>
>
> It stops working however, if I go from 2.19.18 to 2.19.34.

How so?

-- 
David Kastrup

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


Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread Robert Schmaus

Hi David,

as you pointed out a week ago, this works fine:

\version "2.19.18"

\score {

  \new Staff
  \with {
\accepts "ChordNames"
\consists Percent_repeat_engraver
  } {
% some written out music
c''4 c'' c'' c''

% switch to changes
\chords {
  \set Staff.countPercentRepeats = ##t
  \set Staff.repeatCountVisibility = 
#(every-nth-repeat-count-visible 4)

  \repeat percent 8 { c1 : maj7 }
}
  }
}


It stops working however, if I go from 2.19.18 to 2.19.34. Feature or bug?

Best, Robert



Am 23/12/15 um 21:03 schrieb David Kastrup:

Robert Schmaus  writes:


Dear Lilyponders,

I have the following problem: Within a staff of "normal" written
music, I include chord names to indicate improvised/soloing
passages. If a chord is repeated over a large-ish number of bars, I'd
like to use percent repeats and possibly the counter, too.
But I can't get the counter to work:

%%%

\version "2.19.18"

\score {

   \new Staff
   \with {
 \accepts "ChordNames"
 \consists Percent_repeat_engraver
   } {
 % some written out music
 c''4 c'' c'' c''

 % switch to changes
 \chords {
   \set countPercentRepeats = ##t
   \set repeatCountVisibility = #(every-nth-repeat-count-visible 4)
   \repeat percent 8 { c1 : maj7 }
 }
   }
}



Everything works fine except the Percent Repeat Counter. If I switch
from \chords { ... } to \chordmode { ... }, the counter works, but I
no longer get ChordNames but stacked notes.

Is something missing from the \with { ... } statement?


No, from the \set statements.  They are setting countPercentRepeats and
repeatCountVisibility in the Bottom context while the engraver actually
looking at them is in Staff context and consequently queries the
properties at Staff level which are unfazed by changes at Bottom.

So you need to write

\set Staff.countPercentRepeats = ...

and similar.



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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:21 GMT+01:00 Kieren MacMillan :
> Hi Harm,
>
> You win the interwebs for today!  =)
>
> Although I’m only fractionally closer to understanding why certain Lilypond 
> things work or don’t (I understand now that overriding the stencil may cause 
> certain overrides to fail post-hoc; your comment "Not sure why a direct 
> 'text-override does not work” further supports my “seemingly arbitrary” 
> frustration), my custom function (see snippet, below) works exactly as 
> expected:
>
> 1. It follows Gould’s recommendation on alignment of text and line [where 
> Lilypond’s default does not];
> 2. It places the beginning and end of the OttavaBracket [and text] 
> exactly where I want it (personal preference); and,
> 3. It allows me to apply \overrides and \tweaks post-hoc (e.g., using the 
> edition-engraver), where necessary/desired.
>
> Perfection! Thanks!!
> Kieren.
>
>   SNIPPET BEGINS
> #(define eightva
>  #{
>\markup
>  %% messing around with \with-dimensions, because OttavaBracket has no
>  %% possibility to set details.stencil-align-dir-y
>  %% :((
>  \with-dimensions #'(0 . 4) #'(0 . 2.8)
>  \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
>  #})
>
> octU = {

I don't think OttavaBracket.bound-details does anything, I'd delete it.
Default for font-shape is 'italic and it's in eightva as well makes no
sense to me to set it 'roman here, I'd delete it as well.

>   \once \override Staff.OttavaBracket.bound-details =
> #`((left . ((Y . 0) (padding . -2) (stencil-align-dir-y . ,0.85)))
>(left-broken . ((Y . 0) (stencil-align-dir-y . ,0.85)))
>(right-broken . ((Y . 0) (padding . 0) (text . (markup ""
>(right . ((Y . 0) (padding . -1.5) (text . ,(make-draw-line-markup 
> (cons 0 -1))
>   \once \override Staff.OttavaBracket.font-shape = #'roman
>   \once \override Staff.OttavaBracket.after-line-breaking =
>   #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
>   \ottava #1
> }
>   SNIPPET ENDS

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:53 GMT+01:00 David Kastrup :
> Thomas Morley  writes:
>
>> But the following works
>>
>> #(define eightva
>>   #{
>> \markup
>>   %% messing around with \with-dimensions, because OttavaBracket has no
>>   %% possibility to set details.stencil-align-dir-y
>>   %% :((
>>   \with-dimensions #'(0 . 4) #'(0 . 2.8)
>>   \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5
>> }
>>   #})
>
> That one is easier to write as
>
> eightva =
> \markup
>   %% messing around with \with-dimensions, because OttavaBracket has no
>   %% possibility to set details.stencil-align-dir-y
>   %% :((
>   \with-dimensions #'(0 . 4) #'(0 . 2.8)
>   \italic \concat
> { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
>
>
> --
> David Kastrup

True.
I did it this way because I got an error about unknown escape-string,
while using eightva directly afterwards.
Though, I can't restore the exact syntax where it happened ...

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Thomas Morley  writes:

> But the following works
>
> #(define eightva
>   #{
> \markup
>   %% messing around with \with-dimensions, because OttavaBracket has no
>   %% possibility to set details.stencil-align-dir-y
>   %% :((
>   \with-dimensions #'(0 . 4) #'(0 . 2.8)
>   \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5
> }
>   #})

That one is easier to write as

eightva =
\markup
  %% messing around with \with-dimensions, because OttavaBracket has no
  %% possibility to set details.stencil-align-dir-y
  %% :((
  \with-dimensions #'(0 . 4) #'(0 . 2.8)
  \italic \concat
{ "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }


-- 
David Kastrup

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:24 GMT+01:00 Kieren MacMillan :

> Hi Harm,
>
> For a _simple_ ottavation you don't need to add:
>
> \ottava #1
>
> ^^
> delete it.
>
>
> … but then the note doesn’t get engraved correctly?
> (see attached screenshot)
>
> Thanks,
> Kieren.
>
>
You're right, my bad.
But the following works

#(define eightva
  #{
\markup
  %% messing around with \with-dimensions, because OttavaBracket has no
  %% possibility to set details.stencil-align-dir-y
  %% :((
  \with-dimensions #'(0 . 4) #'(0 . 2.8)
  \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5
}
  #})

{
  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
  %% nb, the order:
  \ottava #1
  \set Staff.ottavation = #eightva
  c1
}

Cheers,
  Harm

P.S.
The image was not _attached_
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>>   \once \override OttavaBracket.extra-offset …
>> 
>> is not a working example.  Pretty much everything is missing.  Not even
>> the command itself is complete.
>
> If everyone is to include a complete compilable example every time
> they mention any Lilypond grob of any sort in any post on the list, I
> can only imagine that the list digest will become quite large… ;)

If you are throwing around fragments without context with claims that
LilyPond does not behave consistently in regard to them, it is
impossible to verify your claims, provide advice or fix actual problems.

-- 
David Kastrup

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

> For a _simple_ ottavation you don't need to add:
>> \ottava #1
> ^^
> delete it.

… but then the note doesn’t get engraved correctly?
(see attached screenshot)

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

You win the interwebs for today!  =)

Although I’m only fractionally closer to understanding why certain Lilypond 
things work or don’t (I understand now that overriding the stencil may cause 
certain overrides to fail post-hoc; your comment "Not sure why a direct 
'text-override does not work” further supports my “seemingly arbitrary” 
frustration), my custom function (see snippet, below) works exactly as expected:

1. It follows Gould’s recommendation on alignment of text and line [where 
Lilypond’s default does not];
2. It places the beginning and end of the OttavaBracket [and text] exactly 
where I want it (personal preference); and,
3. It allows me to apply \overrides and \tweaks post-hoc (e.g., using the 
edition-engraver), where necessary/desired.

Perfection! Thanks!!
Kieren.

  SNIPPET BEGINS
#(define eightva
 #{
   \markup
 %% messing around with \with-dimensions, because OttavaBracket has no
 %% possibility to set details.stencil-align-dir-y
 %% :((
 \with-dimensions #'(0 . 4) #'(0 . 2.8)
 \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
 #})

octU = {
  \once \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) (padding . -2) (stencil-align-dir-y . ,0.85)))
   (left-broken . ((Y . 0) (stencil-align-dir-y . ,0.85)))
   (right-broken . ((Y . 0) (padding . 0) (text . (markup ""
   (right . ((Y . 0) (padding . -1.5) (text . ,(make-draw-line-markup (cons 
0 -1))
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.after-line-breaking =
  #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
  \ottava #1
}
  SNIPPET ENDS

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:10 GMT+01:00 Kieren MacMillan :
> Hi Harm,
>
>> %% or simpler:
>>
>> {
>>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>>  \set Staff.ottavation = #eightva
>>  c1^"text changed, 'shorten-pair applied"
>> }
>
> Hmmm… That doesn’t seem to actually change the text for me (see snippet, 
> below); it appears to revert to the original “8va” [with ‘va’ on the 
> baseline]. Did I misunderstand your suggestion?

Yep

>
> Thanks,
> Kieren.
>
>   SNIPPET BEGINS
> \version "2.19.32"
>
> #(define eightva
>  #{
>\markup
>  %% messing around with \with-dimensions, because OttavaBracket has no
>  %% possibility to set details.stencil-align-dir-y
>  %% :((
>  \with-dimensions #'(0 . 4) #'(0 . 2.8)
>  \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
>  #})
>
> ottavaBracketNewText =
> %% Not sure why a direct 'text-override does not work
> \override Staff.OttavaBracket.after-line-breaking =
>  #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
>
> %% 1
> {
>  \ottava #1
>  c1^"untouched original"
> }
>
> %% 2
> {
>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>  \ottava #1
>  c1^"original, 'shorten-pair applied"
> }
>
> %% 3
> {
>  \ottavaBracketNewText
>  \ottava #1
>  c1^"text changed"
> }
>
> %% 4
> {
>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>  \ottavaBracketNewText
>  \ottava #1
>  c1^"text changed, 'shorten-pair applied"
> }
>
> %% or simpler:
> {
>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>  \set Staff.ottavation = #eightva

For a _simple_ ottavation you don't need to add:
>  \ottava #1
^^
delete it.

>  c1^”simpler”
> }
>   SNIPPET ENDS
>
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

> %% or simpler:
> 
> {
>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>  \set Staff.ottavation = #eightva
>  c1^"text changed, 'shorten-pair applied"
> }

Hmmm… That doesn’t seem to actually change the text for me (see snippet, 
below); it appears to revert to the original “8va” [with ‘va’ on the baseline]. 
Did I misunderstand your suggestion?

Thanks,
Kieren.

  SNIPPET BEGINS
\version "2.19.32"

#(define eightva
 #{
   \markup
 %% messing around with \with-dimensions, because OttavaBracket has no
 %% possibility to set details.stencil-align-dir-y
 %% :((
 \with-dimensions #'(0 . 4) #'(0 . 2.8)
 \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
 #})

ottavaBracketNewText =
%% Not sure why a direct 'text-override does not work
\override Staff.OttavaBracket.after-line-breaking =
 #(lambda (grob) (ly:grob-set-property! grob 'text eightva))

%% 1
{
 \ottava #1
 c1^"untouched original"
}

%% 2
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \ottava #1
 c1^"original, 'shorten-pair applied"
}

%% 3
{
 \ottavaBracketNewText
 \ottava #1
 c1^"text changed"
}

%% 4
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \ottavaBracketNewText
 \ottava #1
 c1^"text changed, 'shorten-pair applied"
}

%% or simpler:
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \set Staff.ottavation = #eightva
 \ottava #1
 c1^”simpler”
}
  SNIPPET ENDS



Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David,

>   \once \override OttavaBracket.extra-offset …
> 
> is not a working example.  Pretty much everything is missing.  Not even
> the command itself is complete.

If everyone is to include a complete compilable example every time they mention 
any Lilypond grob of any sort in any post on the list, I can only imagine that 
the list digest will become quite large… ;)

Regards,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

Now *this* is a helpful and informative email! Thanks!

> The whole reason for exchanging the stencil seems to be getting sort
> of superscript of "va" in "8va" and to have the spanning line starting
> at top right edge.

I guess? (I am simply extending a function I found on the LSR or somewhere.)
Do none of the other overrides require exchanging the stencil?

> If so, consider the code below.

Excellent! This seems to solve the issue I raised.
I’ll see if it works in my custom functions and [more-than-minimal] “real-life” 
score situations.

Thanks again,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Segmentation Fault in music with cueDuring

2015-12-30 Thread Patrick Karl

On 12/29/15 6:58 PM, Simon Albrecht wrote:

On 30.12.2015 01:06, Patrick Karl wrote:

On 12/29/15 5:53 PM, Simon Albrecht wrote:

Hello Pat,

this is definitely a bug, I’d say. I’ll write to the bug list.
Two or three policy issues with this:
1. Don’t hijack existing threads, if your message has nothing at all 
to do with their subject. Just compose a new message to the list – 
sorry, but what’s so difficult about that?


Just out of curiosity, exactly what existing thread do you think I 
hijacked?


I can only guess how you proceeded, but if you reply to a previous 
message and edit all of the visible information, hidden data will 
still link this mail to the previous thread.
Bingo! (Slang for "you hit the nail on the head", which itself is slang 
for "you got it exactly right".)  I have to confess that even after 30 
years of working with various unices, mail generally remains a black 
hole for me.


I get the lilypond-user digest.  If I want to reply to an individual 
message in one of the digests, I know of no other way than replying to 
the digest while editing out all the other messages in the digest and 
changing the reply's subject to the one in the individual message I'm 
responding to.  So what I did here was similar.



2. (Re)read and follow .

Again, out of curiosity, how is my snippet not a tiny-example?
When trying to create an example, try commenting out (|%| or |%{ … 
%}|) sections of your file. If you can comment something while still 
demonstrating the main idea, then remove the commented-material. 




Have a look at issue 4718 (link in my previous post) – there’s a tiny 
example.


When I look at issue 4718, I see: \new Staff \new Voice \music, which 
contains "\new Voice", which I didn't use in my original submission.  If 
I look at the "Tiny examples" link you sent me in your previous post, I see:


When trying to create an example, try commenting out (% or %{ … %}) 
sections of your file. If you can comment something while still 
demonstrating the main idea, then remove the commented-material.
But that applies to your "\new Voice" addition.  So, using your 
criteria, I don't see how issue 4718 is actually a tiny example. It 
looks like you added the "\new Voice" to avoid the issue discussed in 
the original thread I hijacked.  But it really doesn't add anything to 
the discussion of this issue.


I guess my approach might be called "minimal example" rather than "tiny 
example".  Especially since the problem was that lilypond terminated 
abnormally, I felt I could save the investigators some time if I 
included, in a minimal way, everything that I knew about the problem.  
In this case, my submission showed that there was nothing intrinsically 
wrong with either the quoted or the quoting music.  I then included a 
commented out section that would trigger the problem if compiled in 
uncommented form.





3. Code formatting: Generally, always surround {} and = and Scheme 
expressions (those with `#') with spaces, even if they’re not 
technically necessary. They make it easier to read.


I didn't realize that coding style was a policy issue.


Yes, it is. If you post code to the list, others have to read and work 
with that code. Privately, you may do whatever you like.
Where is this policy enunciated?  Shouldn't there be a link to it at the 
point a person subscribes to the list, i.e., at 
https://lists.gnu.org/mailman/listinfo/lilypond-user?


Offhand I don't see any {} that are not surrounded by white space, 
i.e., blank, tab, or newline.  That leaves Scheme expressions.  I 
would say I can easily find many examples of exactly the style I 
choose in the NR.


Then it would have been messed up on the way. Attachments tend to be 
safer there. Find attached the version which arrived here and one with 
proper use of whitespace.

Sorry for being so strict with this.
Many of the differences in the two versions you attached appear to be 
due to you thinking I have used too much whitespace.  There is one case 
(\score { \new Staff {\cueNotes } }) where I have inadvertently omitted 
a space after a "{".  I think we're back to the Scheme expressions.  I 
use Frescobaldi to write LilyPond code. When I enter "\score {  \new 
Staff { \rem", Frescobaldi presents a list of the possible completions, 
and I click on the one I want. Frescobaldi then supplies "removeWithTag" 
without a trailing space. I then add #' etc.  I wonder if it wouldn't be 
nice if Frescobaldi supplied "removeWithTag #' " instead.  I don't think 
there are any occasions where anything except "#' " can follow 
\removeWithTag.


I also wonder why LilyPond even accepts \removeWithTag#' without a space 
before #'.


I call nitpicking.  Mea minima culpa.




Yours, Simon


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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 14:34 GMT+01:00 Thomas Morley :
> 2015-12-30 13:48 GMT+01:00 Kieren MacMillan :
>> Hi Harm,
>>
>>> Of course you should use Staff.OttavaBracket
>>
>> Curiously,
>>
>>\once \override OttavaBracket.extra-offset …
>>
>> [without the Staff context] works fine. (??)
>>
>>> but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::print
>>> which doesn’t support 'shorten-pair, as far as I know.
>>
>> Is there a better (e.g., more flexible, or more post-hoc-tweakable) way to 
>> override the stencil?
>
> The whole reason for exchanging the stencil seems to be getting sort
> of superscript of "va" in "8va" and to have the spanning line starting
> at top right edge.
>
> If so, consider the code below.
> Not that nice to mess around with \with-dimensions, but
> `details.stencil-align-dir-y' had to be found manually before as well.
>
> \version "2.19.32"
>
> #(define eightva
>   #{
> \markup
>   %% messing around with \with-dimensions, because OttavaBracket has no
>   %% possibility to set details.stencil-align-dir-y
>   %% :((
>   \with-dimensions #'(0 . 4) #'(0 . 2.8)
>   \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
>   #})
>

%% or simpler:

{
  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
  \set Staff.ottavation = #eightva
  c1^"text changed, 'shorten-pair applied"
}

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> Just imagine how frustrating it is to developers to never get a minimal
>> working example actually illustrating all the claims made about LilyPond
>
> What is missing from the example I sent?

   \once \override OttavaBracket.extra-offset …

is not a working example.  Pretty much everything is missing.  Not even
the command itself is complete.

-- 
David Kastrup

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 13:48 GMT+01:00 Kieren MacMillan :
> Hi Harm,
>
>> Of course you should use Staff.OttavaBracket
>
> Curiously,
>
>\once \override OttavaBracket.extra-offset …
>
> [without the Staff context] works fine. (??)
>
>> but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::print
>> which doesn’t support 'shorten-pair, as far as I know.
>
> Is there a better (e.g., more flexible, or more post-hoc-tweakable) way to 
> override the stencil?

The whole reason for exchanging the stencil seems to be getting sort
of superscript of "va" in "8va" and to have the spanning line starting
at top right edge.

If so, consider the code below.
Not that nice to mess around with \with-dimensions, but
`details.stencil-align-dir-y' had to be found manually before as well.

\version "2.19.32"

#(define eightva
  #{
\markup
  %% messing around with \with-dimensions, because OttavaBracket has no
  %% possibility to set details.stencil-align-dir-y
  %% :((
  \with-dimensions #'(0 . 4) #'(0 . 2.8)
  \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
  #})

ottavaBracketNewText =
%% Not sure why a direct 'text-override does not work
\override Staff.OttavaBracket.after-line-breaking =
  #(lambda (grob) (ly:grob-set-property! grob 'text eightva))


%% 1
{
  \ottava #1
  c1^"untouched original"
}

%% 2

{
  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
  \ottava #1
  c1^"original, 'shorten-pair applied"
}

%% 3

{
  \ottavaBracketNewText
  \ottava #1
  c1^"text changed"
}

%% 4

{
  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
  \ottavaBracketNewText
  \ottava #1
  c1^"text changed, 'shorten-pair applied"
}

HTH,
  Harm

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David,

> Just imagine how frustrating it is to developers to never get a minimal
> working example actually illustrating all the claims made about LilyPond

What is missing from the example I sent?
I’ll be happy to fix it and resubmit.

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan  writes:

> Hi Harm,
>
>> Of course you should use Staff.OttavaBracket
>
> Curiously,
>
>\once \override OttavaBracket.extra-offset …
>
> [without the Staff context] works fine. (??)

[...]

> It’s still quite confusing to me why
>
>\once \override OttavaBracket.extra-offset …
>
> works perfectly, with or without the “Staff”, both inline and
> externally-applied, whereas
>
>\once \override Staff.OttavaBracket.bound-details.left.X …
>
> requires the “Staff”, and can only be done inline. (At least I now
> understand why #’shorten-pair doesn’t work at all, under any
> circumstance, so thanks for that!)
>
> These kinds of seemingly-arbitrary differences can be quite
> frustrating to me (with 15 years of Lilypond experience); I can only
> imagine how frustrating they are to new users.

Just imagine how frustrating it is to developers to never get a minimal
working example actually illustrating all the claims made about LilyPond
without having to prompt for it every single time.

-- 
David Kastrup

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


Re: can a \tweak be applied via the edition-engraver?

2015-12-30 Thread Jan-Peter Voigt

Hi Kieren,

the state of this issue is - sadly - the same as months ago ... I 
thought about it the last weeks and have code in my head, but I can't 
offer a usable solution right now.


For now all the best for you and all readers on this list for 2016!

You will hear more on this topic ASAP!
Promised :-)

Cheers, Jan-Peter

Am 30.12.2015 um 02:23 schrieb Kieren MacMillan:

Hello all edition-izers!

Is it possible to apply a \tweak via the edition-engraver?
If so, links/examples would be appreciated.

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info




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


Re: Question about page break time indices

2015-12-30 Thread Malte Meyn


Am 30.12.2015 um 13:03 schrieb Thomas Morley:
> there were some similiar projects for videos etc, can't remember, though.
> Others?

There is ly2video: https://github.com/aspiers/ly2video For examples
search for ly2video on youtube.

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm,

> Of course you should use Staff.OttavaBracket

Curiously,

   \once \override OttavaBracket.extra-offset …

[without the Staff context] works fine. (??)

> but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::print
> which doesn’t support 'shorten-pair, as far as I know.

Is there a better (e.g., more flexible, or more post-hoc-tweakable) way to 
override the stencil?

> You would need to do:
> 
> "testing2" = {
>  \octU_single
>  \once \override Staff.OttavaBracket.bound-details.left.X = #-10
>  \once \override Staff.OttavaBracket.bound-details.right.X = #10
>  c1
> }
> 
> \score { \"testing2” }

Well that works great inline (thanks!), but not when applied via the 
edition-engraver. I realize this is not necessarily “native Lilypond”, and so 
might not be worth others’ time to investigate/consider, but…

It’s still quite confusing to me why

   \once \override OttavaBracket.extra-offset …

works perfectly, with or without the “Staff”, both inline and 
externally-applied, whereas

   \once \override Staff.OttavaBracket.bound-details.left.X …

requires the “Staff”, and can only be done inline. (At least I now understand 
why #’shorten-pair doesn’t work at all, under any circumstance, so thanks for 
that!)

These kinds of seemingly-arbitrary differences can be quite frustrating to me 
(with 15 years of Lilypond experience); I can only imagine how frustrating they 
are to new users.

Thanks,
Kieren.

> P.S. There were some typos in your post

That [smart quote] may have been added by my mail program. In any case, my 
apologies.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Segmentation Fault in music with cueDuring

2015-12-30 Thread Thomas Morley
2015-12-30 13:37 GMT+01:00 Patrick Karl :
> On 12/29/15 6:38 PM, Thomas Morley wrote:

>
> That confuses me somewhat.  Consider:
>
> \version "2.19.32"
>
> cueNotes = \relative c'' {
>s4. 8 d' s4.
> }
>
> \addQuote "cueNotes" \cueNotes
>
> { \cueDuring #"cueNotes" #DOWN R1 }
>
> The output looks exactly as I would expect if chords were supported.  I
> think they are supported.  And tied notes and tied chords in the quoted
> music work as expected.  The only issue I see is lack of correct
> implementation of tied individual notes within quoted chords, resulting in a
> segmentation fault.
>
> (Since quoted chords do work, why doesn't music-quotes-info show them?)

Didn't you get
http://lists.gnu.org/archive/html/lilypond-user/2015-12/msg00721.html
?

`music-quotes-info' was buggy, updated version here:
http://lists.gnu.org/archive/html/lilypond-user/2015-12/msg00726.html

Ofcourse it only prints info, the problem persists...

Cheers,
  Harm

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


Re: Segmentation Fault in music with cueDuring

2015-12-30 Thread Patrick Karl

On 12/29/15 6:38 PM, Thomas Morley wrote:

2015-12-30 0:59 GMT+01:00 Simon Albrecht :

On 30.12.2015 00:53, Simon Albrecht wrote:

this is definitely a bug, I’d say. I’ll write to the bug list.


FWIW, I created a tracker issue directly:

How did you get that log output, i.e. how did you invoke LilyPond?

Yours, Simon




I once created a function to show/print cues/quotes known to the parser.
Applied to the current use case:


%%%

\version "2.19.32"

cueNotes = \relative c'' {
s4. 8 d' s4.
}

\addQuote "cueNotes" \cueNotes

#(define* (music-quotes-info #:optional (name "")(print #f))
  (let* ((music-quotes-list
   (hash-map->list cons (ly:parser-lookup 'musicQuotes)))
 (quote-vector (assoc-get name music-quotes-list #()))
 (quote-list (vector->list quote-vector)))
   (cond ((string-null? name)
  (display-scheme-music music-quotes-list))
 ((and (not (null? quote-list)) print)
  (make-sequential-music
(map
  (lambda (m) (ly:prob-property (caadr m) 'music-cause))
  quote-list)))
 (else (display-scheme-music
 (make-sequential-music
   (map
 (lambda (m) (ly:prob-property (caadr m) 'music-cause))
 quote-list)))

%% raw data of all quotes
%#(music-quotes-info)
%% `display-scheme-music'
#(music-quotes-info "cueNotes")
%% set `print' #t and use $ to get it printed
$(music-quotes-info "cueNotes" #t)

%%%

You'll see that only the chord's first note is quoted!
That's at least related to
NR
"
Known issues and warnings
Only the contents of the first Voice occurring in an \addQuote command
will be considered for quotation [...]
"

Though,
(1) It should not return a segfault
(2) The NR-warning talks about new Voices etc. Before testing I wasn't
aware that quoting chords is not supported as well. Should be
mentioned, imho
(3) I do understand why quoting more than a single voice is a problem,
but not how difficult it would be to support chords.

That confuses me somewhat.  Consider:

\version "2.19.32"

cueNotes = \relative c'' {
   s4. 8 d' s4.
}

\addQuote "cueNotes" \cueNotes

{ \cueDuring #"cueNotes" #DOWN R1 }

The output looks exactly as I would expect if chords were supported.  I think 
they are supported.  And tied notes and tied chords in the quoted music work as 
expected.  The only issue I see is lack of correct implementation of tied 
individual notes within quoted chords, resulting in a segmentation fault.

(Since quoted chords do work, why doesn't music-quotes-info show them?)





So I'm not sure whether it's a documentation issue or defect or an
enhancement or both.

Simon, I answered here on user-list to let Patrick Karl know, but
please add it on the tracker if you feel it might be helpful


Cheers,
   Harm



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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 12:54 GMT+01:00 Kieren MacMillan :
> Hi David,
>
>> OttavaBracket is engraved at Staff level, here you override it at Voice
>> level.  The Ottava_spanner_engraver never gets to see your override.
>
> But
>
> \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) 
> \octU_single c''’'1
>
> doesn’t work either.
>
> Or maybe I’m misunderstanding what you’re saying.
>
> Thanks,
> Kieren.

Ofcourse you should use Staff.OttavaBracket, but in `octU_single'
OttavaBracket.stencil is set to ly:line-spanner::print, which doesn't
support 'shorten-pair, as far as I know.

You would need to do:

"testing2" = {
  \octU_single
  \once \override Staff.OttavaBracket.bound-details.left.X = #-10
  \once \override Staff.OttavaBracket.bound-details.right.X = #10
  c1
}

\score { \"testing2" }

That's the disadvantage of using ly:line-spanner::print as stencil for
OttavaBracket.

Cheers,
  Harm

P.S.
There were some typos in your post, making it hard for people helping you

error: syntax error, unexpected '''
  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
\octU_single c''’

 '1

error: EOF found inside string
\score { \"
   testing2” }

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


Re: Question about page break time indices

2015-12-30 Thread Thomas Morley
Hi Carl,

2015-12-30 8:10 GMT+01:00 Carl Peterson :
> All,
>
> I am involved in some choral
> recording projects where we are
> having the singers sing from
> projected slides. To aid in timing,
> pitch, etc., we have it set up where
> they have headphones feeding them the
> MIDI of the song being recorded as
> they sing. All of this is synchonored
> through the recording software, with
> the slides being pre-rendered to a
> video file.
>
> Right now, the music slides are being
> created in Finale (cringe), the MIDI
> is being manually input into the
> recording software because we've had
> issues with Finale's MIDI being
> accurate on tempo changes, and I am
> using Apple Keynote to render the
> slides to video using manual timings.
>
> I would like to use Lilypond to
> render the individual slides and the
> MIDI, then use ffmpeg and some other
> things to programmatically render the
> video itself. The issue is that in
> order to do that, I need accurate
> timing information on slide changes.

there were some similiar projects for videos etc, can't remember, though.
Others?
>
> Which gets to my question/request. Is
> there a way, when Lilypond is
> running, for it to output some sort
> of auxiliary file with some kind of
> tick/time code information about each
> page? In other words, what is the
> time index of the first note on a
> given slide/page? With this, I can
> work with scripting tools to work
> backwards from each time code to
> generate the still images for the
> transitions from slide to slide.
>
> Thanks,
> Carl


Not sure I fully understand, but is the following of some help for you?

\version "2.19.32"

#(define* (print-pages-first-bar-numbers layout pages #:optional print-to-file)
;; If `print-to-file is set #t the output is written to a file
;; otherwise usually displayed in Terminal
  (let* ((lines (map (lambda (page) (ly:prob-property page 'lines)) pages))
 ;; list of first systems of each pages
 (sys
   (map
 (lambda (line)
   (append-map
 (lambda (l)
   (let ((system-grob (ly:prob-property l 'system-grob)))
 (if (not (null? system-grob))
 (list system-grob)
 system-grob))
   )
 line))
 lines))
 ;; list of rhythmic-locations of first sys
 ;; returning a BarNumber and a moment, the moment is usually zero
 (sys-rhythmic-location
   (map
 (lambda (s)
   (if (and (not (null? s)) (ly:grob? (car s)))
   (grob::rhythmic-location (car s))
   #f))
 sys))
 (start-bar-numbers
   (map
 (lambda (r-l)
   (if (pair? r-l)
   (car r-l)
   #f))
   sys-rhythmic-location))
 (formatted-output
   (map
 (lambda (page b-nr)
   (if b-nr
   (format #f "page ~a starts with BarNumber ~a\n" page b-nr)
   (format #f "page ~a contains no music\n" page))
   )
 (iota (length pages) 1 1)
 start-bar-numbers)))
(if (not (null? start-bar-numbers))
(if print-to-file
(let* ((output-name (ly:parser-output-name))
   (outfilename (format "~a-page-first-bars.log" output-name))
   (outfile (open-output-file outfilename)))
  (if (output-port? outfile)
  (begin
(format #t "\n\tprinting to ~a" outfilename)
(for-each
  (lambda (i) (display i outfile))
  formatted-output))
  (ly:warning
(_ "Unable to open output file ~a to print the information")
outfilename))
  (close-output-port outfile))
(for-each display formatted-output)

\paper {
  #(define (page-post-process layout pages)
(print-pages-first-bar-numbers layout pages #t))
}

\header { title = "TITLE" }

\pageBreak

\score {
\new Staff {
\repeat unfold 2 {
  \time 4/4 c''1
  \time 3/4 d''2.
  \time 3/8 e''8 8 8
  \pageBreak
}
}
}

\markup "MARKUP"

\pageBreak

\score {
\new Staff {
\repeat unfold 2 {
  \time 4/4 c''1
  \time 3/4 d''2.
  \time 3/8 e''8 8 8
  \pageBreak
}
}
}


Cheers,
  Harm

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


Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David,

> OttavaBracket is engraved at Staff level, here you override it at Voice
> level.  The Ottava_spanner_engraver never gets to see your override.

But 

\once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) 
\octU_single c''’'1

doesn’t work either.

Or maybe I’m misunderstanding what you’re saying.

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Robert Schmaus


> 
> Try saving _before_ compiling a file.

At least on the Mac, there's a preference to automatically save the .ly before 
running Lilypond ...


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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread David Kastrup
MING TSANG  writes:

> I run lilypond 2.19.34 with frescobaldi 2.18.2Upon exit frescobaldi
> ask to save file and I comply.  But pdf is not saved.

If you did not save your source file before compiling, the PDF would not
correspond to any saved state of your source file.  Grouping it with the
saved source file would be inappropriate.

Try saving _before_ compiling a file.

-- 
David Kastrup

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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Simon Albrecht

On 30.12.2015 07:08, MING TSANG wrote:
I saw a lot additional info that I did not see when running 
frescobaldi 2.18.1 and lilypond 2.19.34


The additional info is there by error and will be removed in 2.19.35.
Yours, Simon

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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Johan Vromans
On Wed, 30 Dec 2015 10:15:01 +0100
Jacques Menu  wrote:

> > I run lilypond 2.19.34 with frescobaldi 2.18.2
> > Upon exit frescobaldi ask to save file and I comply.  But pdf is not
> > saved.   I saw a lot additional info that I did not see when running
> > frescobaldi 2.18.1 and lilypond 2.19.34  Need help.

My guess is that you run lilypond from frescobaldi on a file that is not
(yet) saved. Lilypond then operates on temporary files, and creates a
temporary pdf. When exiting frecobaldi it asks to save the file, which
applies to the lilypond source only. The temporary pdf is not saved.

To get the pdf from frescobaldi, save the lilypond file (Ctrl-s) first and
then run lilypond (Ctrl-m).

-- Johan
   http://johan.vromans.org/seasons_greetings.html

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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Michael Gerdau
> I run lilypond 2.19.34 with frescobaldi 2.18.2Upon exit frescobaldi ask to
> save file and I comply.  But pdf is not saved.   I saw a lot additional
> info that I did not see when running frescobaldi 2.18.1 and lilypond
> 2.19.34  Need help.

I use the exakt same versions on both Linux and Windows and never
encountered that problem.

I guess it has to do with either your particular lilypond file (would
need that for verification), or a general problem with you LP/frescobaldi
installation.

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Thomas Morley
2015-12-30 7:08 GMT+01:00 MING TSANG :
> I run lilypond 2.19.34 with frescobaldi 2.18.2
> Upon exit frescobaldi ask to save file and I comply.  But pdf is not saved.

No idea about that, I don't use frescobaldi,

> I saw a lot additional info that I did not see when running frescobaldi
...
> (list 'abs-fontsize-markup
> 'auto-footnote-markup
...

I forgot to comment some debugging code in a recent patch.
It's a nuisance, but does no harm on itself.

Paul already fixed it with:
https://codereview.appspot.com/282890044/

Cheers,
  Harm

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


Re: does not save file automatically after "run" lilypond "

2015-12-30 Thread Jacques Menu
Hello Ming,

Can’t say without your LP source code.

JM

> Le 30 déc. 2015 à 07:08, MING TSANG  a écrit :
> 
> I run lilypond 2.19.34 with frescobaldi 2.18.2
> Upon exit frescobaldi ask to save file and I comply.  But pdf is not saved.   
> I saw a lot additional info that I did not see when running frescobaldi 
> 2.18.1 and lilypond 2.19.34  Need help.
> 
> 
> Starting lilypond-windows.exe 2.19.34 [eye-hath-not-seen.ly]...
> Processing 
> `c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly'
> Parsing...
> Interpreting music...
> MIDI output to `eye-haveath-not-seen-soprano.mid'...
> Interpreting music...
> c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:517:5
>  : warning: cannot find Voice `alto'
> \rehearsalMidi "alto" "soprano sax" \verseOne
> MIDI output to `eye-hath-not-seen-alto.mid'...
> Interpreting music...
> c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:525:5
>  : warning: cannot find Voice `tenor'
> \rehearsalMidi "tenor" "tenor sax" \verseOne
> MIDI output to `eye-hath-not-seen-tenor.mid'...
> Interpreting music...
> c:/users/user/appdata/local/temp/frescobaldi-sa6eb4/tmp_ief1m/eye-hath-not-seen.ly:533:5
>  : warning: cannot find Voice `bass'
> \rehearsalMidi "bass" "tenor sax" \verseOne
> MIDI output to `eye-hath-not-seen-bass.mid'...
> Interpreting music...[8][16][24][32][40][48][56][64][72][80]
> Preprocessing graphical objects...
> Interpreting music...
> MIDI output to `eye-hath-not-seen.mid'...
> Finding the ideal number of pages...
> Fitting music on 5 or 6 pages...
> Drawing systems...
> Layout output to `./tmp-lilypond-PI8z5c'...
> (list 'abs-fontsize-markup
> 'auto-footnote-markup
> 'bold-markup
> 'box-markup
> 'bracket-markup
> 'caps-markup
> 'center-align-markup
> 'center-column-markup
> 'circle-markup
> 'column-lines-markup-list
> 'column-markup
> 'combine-markup
> 'concat-markup
> 'conditional-circle-markup-markup
> 'dir-column-markup
> 'dynamic-markup
> 'ellipse-markup
> 'fill-line-markup
> 'fill-with-pattern-markup
> 'finger-markup
> 'first-visible-markup
> 'fontCaps-markup
> 'fontsize-markup
> 'footnote-markup
> 'fraction-markup
> 'general-align-markup
> 'halign-markup
> 'hbracket-markup
> 'hcenter-in-markup
> 'huge-markup
> 'italic-markup
> 'justified-lines-markup-list
> 'justify-line-markup
> 'justify-markup
> 'large-markup
> 'larger-markup
> 'left-align-markup
> 'left-column-markup
> 'line-markup
> 'lower-markup
> 'magnify-markup
> 'map-markup-commands-markup-list
> 'medium-markup
> 'normal-size-sub-markup
> 'normal-size-super-markup
> 'normal-text-markup
> 'normalsize-markup
> 'number-markup
> 'on-the-fly-markup
> 'oval-markup
> 'overlay-markup
> 'override-lines-markup-list
> 'override-markup
> 'overtie-markup
> 'pad-around-markup
> 'pad-markup-markup
> 'pad-to-box-markup
> 'pad-x-markup
> 'page-link-markup
> 'parenthesize-markup
> 'pattern-markup
> 'put-adjacent-markup
> 'raise-markup
> 'replace-markup
> 'right-align-markup
> 'right-column-markup
> 'roman-markup
> 'rotate-markup
> 'rounded-box-markup
> 'sans-markup
> 'scale-markup
> 'small-markup
> 'smallCaps-markup
> 'smaller-markup
> 'sub-markup
> 'super-markup
> 'teeny-markup
> 'text-markup
> 'tie-markup
> 'tiny-markup
> 'translate-markup
> 'translate-scaled-markup
> 'transparent-markup
> 'typewriter-markup
> 'underline-markup
> 'undertie-markup
> 'upright-markup
> 'vcenter-markup
> 'whiteout-markup
> 'with-color-markup
> 'with-dimensions-markup
> 'with-link-markup
> 'with-url-markup
> 'wordwrap-internal-markup-list
> 'wordwrap-lines-markup-list
> 'wordwrap-markup)
> (list 'abs-fontsize-markup
> 'auto-footnote-markup
> 'bold-markup
> 'box-markup
> 'bracket-markup
> 'caps-markup
> 'center-align-markup
> 'center-column-markup
> 'circle-markup
> 'column-lines-markup-list
> 'column-markup
> 'combine-markup
> 'concat-markup
> 'conditional-circle-markup-markup
> 'dir-column-markup
> 'dynamic-markup
> 'ellipse-markup
> 'fill-line-markup
> 'fill-with-pattern-markup
> 'finger-markup
> 'first-visible-markup
> 'fontCaps-markup
> 'fontsize-markup
> 'footnote-markup
> 'fraction-markup
> 'general-align-markup
> 'halign-markup
> 'hbracket-markup
> 'hcenter-in-markup
> 'huge-markup
> 'italic-markup
> 'justified-lines-markup-list
> 'justify-line-markup
> 'justify-markup
> 'large-markup
> 'larger-markup
> 'left-align-markup
> 'left-column-markup
> 'line-markup
> 'lower-markup
> 'magnify-markup
> 'map-markup-commands-markup-list
> 'medium-markup
> 'normal-size-sub-markup
> 'normal-size-super-markup
> 'normal-text-markup
> 'normalsize-markup
> 'number-markup
> 'on-the-fly-markup
> 'oval-markup
> 'overlay-markup
> 'override-lines-markup-list
> 'override-markup
> 'overtie-markup
> 'pad-around-markup
> 'pad-markup-markup
> 'pad-to-box-markup
> 'pad-x-markup
> 'page-link-markup
> 'parenthesize-markup
> 'pattern-markup
> 'put-adjace

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> Unless you actually follow up with an example of what you are
>> actually doing which does not work as expected,
>> it will be impossible to tell just what you are doing wrong.
>
>   SNIPPET BEGINS
> \version "2.19.32"
>
> eightva = \markup \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } 
> \hspace #0.5 }
> octU_single = {
>   \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
>   \once \override Staff.OttavaBracket.bound-details =
> #`((left . ((X . -1) (Y . 0) (padding . -0.5) (stencil-align-dir-y . 
> ,0.85)))
>(right . ((X . 2) (Y . 0) (padding . -1.5) (text . 
> ,(make-draw-line-markup (cons 0 -1))
>   \once \override Staff.OttavaBracket.font-shape = #'roman
>   \once \override Staff.OttavaBracket.bound-details.left.text = \eightva
>   \once \override Staff.OttavaBracket.left-bound-info =
>  #ly:line-spanner::calc-left-bound-info-and-text
>   \once \override Staff.OttavaBracket.right-bound-info =
>  #ly:line-spanner::calc-right-bound-info
>   \ottava #1
> }
>
> testing = {
>   \octU_single c1
> }
>
> \score { \testing }
>
> "testing2" = {
>   \once \override OttavaBracket.shorten-pair = #'(-10 . -10) \octU_single 
> c1
> }
>
> \score { \"testing2” }
>   SNIPPET ENDS
>
> Note how the #'shorten-pair adjustment doesn’t seem to be applied.

OttavaBracket is engraved at Staff level, here you override it at Voice
level.  The Ottava_spanner_engraver never gets to see your override.
Why do you think you wrote Staff.OttavaBracket in octU_single all the
time?

-- 
David Kastrup

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