Re: Adding symbols to titles and headers

2012-09-06 Thread Jim Long
On Thu, Sep 06, 2012 at 10:40:15PM -0700, Jim Long wrote:
> 
> 
> \header {
>   title = \markup { "Song " \musicglyph #"scripts.segno" " Title" }
> } % header

Forgive me, in pursuing an answer to your inquiry I
inadvertently digressed from your actual question.

On Thu, Sep 06, 2012 at 09:02:10PM -0500, Joshua Nichols wrote:
>
> How do I insert, lets say, a bass and treble clef into the
> title or subtitle of a piece?

To put clefs in your song title, you would:

\header {
  title = \markup { "Song" \musicglyph #"clefs.G" "Title" \musicglyph 
#"clefs.F" }
} % header


Jim

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


Re: Changing quarter tone notation

2012-09-06 Thread Arle Lommel
Thanks Keith,

I appreciate the answer. It was what I was afraid of. Since I really don't know 
Scheme well enough to hack things like that, I guess I'll stick with the 
default glyphs. I wanted to avoid articulations since that means the underlying 
tones in the Lilypond would be incorrect (e.g., c instead of cih), which would 
cause problems for conversion later on if I find a way to do what I want 
without a workaround. Since this was a "(very) nice to have" rather than a 
"can't live without it" request, I'll hold on it, but thank you very much for 
looking at it and trying to help.

Best regards,

Arle


On Sep 5, 2012, at 11:44 PM, Keith OHara  wrote:

> On Wed, 05 Sep 2012 06:37:38 -0700, Arle Lommel  wrote:
> 
>> If the arrows were independent of the sharp and flat signs (which would 
>> derive as normal from the key signature plus accidentals, as if the 
>> quarter-tone shifts did not exist) and placed above/below the note heads, 
>> that would be it. For example, if I want a C-natural ↑ in the LSR example 
>> and the key signature doesn't specify C♯, I get a glyph with a♮+ ↑ in it. In 
>> the system I would like to use there would be no natural sign at all in this 
>> case, just the arrow over (or below) the note head.
>> 
> 
> No, there is not any mechanism in LilyPond to print two independent glyphs 
> (such as sharp or arrow or both) in two different places, based on pitch 
> names.
> 
>>  cih'4 \( b4 | a4 b4 | cih4 a4 | a8 e4. | fih4 d4 | e2 \) |
> 
> If there are no arrow alterations in your key signatures, and you do not need 
> to transpose by the pitch-change represented by an arrow,
> 
> then you might want to represent the arrows as articulations.
>   up = ^"↑"
>   dn = _"↓"
>   \transpose c c''{ c-\up cis-\dn }
> 
> The text-scripts above are not very nice, but I think with a minor amount of 
> writing a Scheme data structure you can define your own Scripts that get the 
> right placement in the staff and inside slurs.  I have never done this 
> myself, so look in the manuals and .scm definition files so far as you are 
> interested, or maybe someone else here has done similar and will suggest how.
> 


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


Re: Adding symbols to titles and headers

2012-09-06 Thread Jim Long
On Thu, Sep 06, 2012 at 09:02:10PM -0500, Joshua Nichols wrote:
> Hello!
> 
> Just a general question about something I cannot find in the manuals
> anywhere...
> 
> How do I insert, lets say, a bass and treble clef into the title or
> subtitle of a piece? I am building a worksheet and wish to use the symbols
> instead of the full text.
> 
> Pointers? I've done every possible search in the manuals for this
> operation, and I am coming up short.
> 
> Sincerely,
> -
> Josh


\header {
  title = \markup { "Song " \musicglyph #"scripts.segno" " Title" }
} % header




Jim

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


Adding symbols to titles and headers

2012-09-06 Thread Joshua Nichols
Hello!

Just a general question about something I cannot find in the manuals
anywhere...

How do I insert, lets say, a bass and treble clef into the title or
subtitle of a piece? I am building a worksheet and wish to use the symbols
instead of the full text.

Pointers? I've done every possible search in the manuals for this
operation, and I am coming up short.

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


Re: Composer header field with large staff size

2012-09-06 Thread Christopher R. Maden
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/06/2012 07:57 PM, Nick Payne wrote:
> With a large staff size and a longish composer field, the composer
>  name runs off the right-hand edge of the page, even though there 
> is plenty of room for it to be accommodated within the left and 
> right margins:

I’ve noticed this too; the composer and any other right-justified
field will only come over as far as the center of the printed area.
When there is no conflicting left-justified field, the right-justified
fields should move as far left as necessary.

~Chris
- -- 
Chris Maden, text nerd  http://crism.maden.org/ >
LIVE FREE: vote for Gary Johnson, Libertarian for President.
 http://garyjohnson2012.com/ >  http://lp.org/ >
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBAgAGBQJQSTnyAAoJEEpR26xcXD1e6fsH/2SIp9w3olg3hiYYjFEilrAy
6ziKVUhQlUxXBMVIfqcUzXd2HenSq7EIWeLLu6HVO/7CWACQRGkzCzPalOeBgx/Q
R3XLLFm8oZnIcwFXjL3aQgSrtdI0zS02nkp23jCwsD/7vjUSIF9S96Cp1wf9WVyJ
cbtylbnMvI/z6gmk3D8SeYtJq7LbcSiAfTnJbZcOKQeMIw+FuehL4rLiWnMq5AQ8
3pZ0FhXsfDgt9c4b1ygV6lPhcVFzsFIoi4AlG86E5ajCt+ZbcK5p5FEez/JuJ6uD
EWHdlkr70bBxcQwduxVivduZYqDa1/jVFuZhhE3S8t9pTyYV/O4v6Oz5UhJWu6U=
=kvb1
-END PGP SIGNATURE-

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


Composer header field with large staff size

2012-09-06 Thread Nick Payne
With a large staff size and a longish composer field, the composer name
runs off the right-hand edge of the page, even though there is plenty of
room for it to be accommodated within the left and right margins:

%===
\version "2.16.0"

#(set-global-staff-size 33)

\paper { #(set-paper-size "a4") }

\header {
title = "Preludio"
composer = "Jean-Baptiste Bésard (c.1567–1617)"
}

\relative c' { \repeat unfold 40 { c4 } }
%===

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


Re: automatically left-aligning custom dynamics

2012-09-06 Thread David Nalesnik
Hi James,

On Thu, Sep 6, 2012 at 5:00 PM, james  wrote:
> I don't really understand it, but I can modify the examples of how to create 
> custom dynamics to get what I want.
> I have a document with several examples like:
> rinforzamf = #(
>make-dynamic-script (
>   markup #:line (
>   #:left-align
>   #:normal-text
>   #:whiteout
>   #:italic "rinforza"
>   #:hspace 0
>   #:whiteout
>   #:dynamic "mf"
>   )
>   )
> )
> And a macro that left-aligns it:
> leftalign = { \once \override Dynamics.DynamicText #'self-alignment-X = #-1 }
>
> Heretofore, I've just been manually adding the \leftalign before the 
> \rinforzamf (for example). Is there a way to get both of these in one command?
>

With the following definitions, you can get what you want with a
single command.  Also, you can define other such combinations.

(BTW, I commented out two lines in the markup definition which I don't
think are needed.)

HTH,
David

%

\version "2.17.1"

#(define (rinforza text)
  (let* ((text
(markup
  #:line (
;#:left-align
#:normal-text
#:whiteout
#:italic "rinforza"
;#:hspace 0
#:whiteout
#:dynamic text)))
(my-dyn (make-music 'AbsoluteDynamicEvent
'text text)))
  (set! (ly:music-property my-dyn 'tweaks)
  (acons 'self-alignment-X -1
 (ly:music-property my-dyn 'tweaks)))
 my-dyn))

rinforzamf = #(rinforza "mf")
rinforzap = #(rinforza "p")

\score {
  \new Staff <<
  { c'1 d' c' d' }
  \new Dynamics {
s1*2\rinforzamf
s1*2\rinforzap
  }
  >>
}

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


Re: Custom key signature at line break

2012-09-06 Thread David Kastrup
Thomas Morley  writes:

> 2012/9/6 Janne Uusitalo :
>> Hi,
>>
>> if I typeset a key change from b major to g major, f remains sharp and
>> LilyPond prints out the naturals necessary for c, g, d, and a. Makes
>> perfect sense, but the standard I'm required to follow has it that an
>> extra # for fis should precede the group of naturals.

[...]

> at the end of a line I'd change the order in which KeyCancellation and
> KeySignature appears. This requires some new settings in KeySignature
> 'space-alist and BreakAlignment 'break-align-orders.

[lots]

> Seems to work with all tested versions (2.12.3 up to 2.17.2)
> The code is mostly copied from an old file of mine, I hope I didn't
> overlook anything.

If "the code is mostly copied from an old file" of yours, this sounds
like Janne has needed to "follow some standard", and you needed to do so
previously as well.  So it would appear like a request that is not
unheard of, and LilyPond should likely provide an easier way to support
this style.

Do you have a suggestion how this could be fit into LilyPond?  With
LaTeX, one would likely make this the topic of a style package and load
it with \usepackage, possibly with several possible options to select
various variants of key changes.

-- 
David Kastrup


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


automatically left-aligning custom dynamics

2012-09-06 Thread james
I don't really understand it, but I can modify the examples of how to create 
custom dynamics to get what I want.
I have a document with several examples like:
rinforzamf = #(
   make-dynamic-script (
  markup #:line (
  #:left-align
  #:normal-text
  #:whiteout
  #:italic "rinforza"
  #:hspace 0
  #:whiteout
  #:dynamic "mf"
  )
  )
)
And a macro that left-aligns it:
leftalign = { \once \override Dynamics.DynamicText #'self-alignment-X = #-1 }

Heretofore, I've just been manually adding the \leftalign before the 
\rinforzamf (for example). Is there a way to get both of these in one command?

TIA,

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


Re: Custom key signature at line break

2012-09-06 Thread Thomas Morley
2012/9/6 Janne Uusitalo :
> Hi,
>
> if I typeset a key change from b major to g major, f remains sharp and
> LilyPond prints out the naturals necessary for c, g, d, and a. Makes
> perfect sense, but the standard I'm required to follow has it that an
> extra # for fis should precede the group of naturals. Is there a way
> to achieve this? I get close by creating a custom signature with the
> right set of symbols, but as the change occurs at line break, I'm
> stuck figuring out how to print this custom set at the end of line 1
> and only that of g major at the start of line 2. Any helpful ideas to
> share?
>
> BR,
> Janne
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


Hi,

at the end of a line I'd change the order in which KeyCancellation and
KeySignature appears. This requires some new settings in KeySignature
'space-alist and BreakAlignment 'break-align-orders.

customBreak = {
 #(define key-signature-space-alist '(
(time-signature extra-space . 1.15)
(key-cancellation extra-space . 0.3)
(breathing-sign extra-space . 1)
(staff-bar extra-space . 1.1)
(cue-clef extra-space . 0.5)
(right-edge extra-space . 0.5)
(first-note semi-fixed-space . 2.5)))

 \once\override  Score.KeySignature #'space-alist =
#key-signature-space-alist
 \once \override Score.BreakAlignment #'break-align-orders =
#'#(
;; end of line
(breathing-sign
 clef
 staff-bar
 key-signature
 key-cancellation
 time-signature)
;; middle of line
(breathing-sign
 clef
 key-cancellation
 key-signature
 staff-bar
 time-signature)
;; begin of line
(clef
 key-cancellation
 key-signature
 staff-bar
 time-signature))
 \break
}

\new Staff \relative c' {
\key b\major

f4 ges \clef alto as b \breathe

\customBreak

\clef treble
\key g\major
\time 8/8
\repeat volta 2 {
 c d e f
}
}

Seems to work with all tested versions (2.12.3 up to 2.17.2)
The code is mostly copied from an old file of mine, I hope I didn't
overlook anything.


HTH,
  Harm

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


Re: Markup query

2012-09-06 Thread Nick Payne
On 07/09/12 04:55, Peter Gentry wrote:
> On Thu, 6 Sep 2012 03:36:40 -0700 Graham Percival wrote
>
> Notation A.10 is intended to give such a source of definitions.
>> - Graham
>>
> Ah I had downloaded all twelve of the pdf manuals which I routinely search 
> via the Adnaced Search option to find inspiration and or
> confusion.
>
> Notation A.10 is in the html document which doesn't get searched routinely.
A.10 is in the Notation PDF manual. p.621 in the 2.16.0 manual.

Nick

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


Re: Markup query

2012-09-06 Thread Graham Percival
On Thu, Sep 06, 2012 at 07:55:32PM +0100, Peter Gentry wrote:
> On Thu, 6 Sep 2012 03:36:40 -0700 Graham Percival wrote
> 
> > Notation A.10 is intended to give such a source of definitions.
> 
> Ah I had downloaded all twelve of the pdf manuals which I routinely search 
> via the Adnaced Search option to find inspiration and or
> confusion.
> 
> Notation A.10 is in the html document which doesn't get searched routinely.

It should also be present in notation.pdf.  If it's missing, that
would be a serious bug in our documentation-building system.

> It does have a set of definitions although not all examples cover material in 
> the pdf manuals.

The HTML and pdf documentation should be identical, with one minor
difference in the beginning of Learning when it talks about
"clickable examples" for html.  If you see any other difference,
it's highly likely to be a bug; please report such problems to the
bug-lilypond mailing list.

- Graham

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


RE:Markup query

2012-09-06 Thread Peter Gentry
On Thu, 6 Sep 2012 03:36:40 -0700 Graham Percival wrote

Notation A.10 is intended to give such a source of definitions.
>
>- Graham
>

Ah I had downloaded all twelve of the pdf manuals which I routinely search via 
the Adnaced Search option to find inspiration and or
confusion.

Notation A.10 is in the html document which doesn't get searched routinely.

It does have a set of definitions although not all examples cover material in 
the pdf manuals.

What is the recommended source, should I make the html my first port of call?


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


Re: LilyBin Launch

2012-09-06 Thread GregJ
Hi Trevor,

Awesome work with lilybin.com. Are you planning on open sourcing the code
for this? It would be really cool to see a public repo on GitHub for this. I
would love to contribute to this project and I know some other javascripters
that would probably contribute too. Perhaps you could create public GitHub
organization for lilybin (its free). 

Cheers,
Greg





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/LilyBin-Launch-tp57847p132419.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: Lyric extender lines and rests after line break

2012-09-06 Thread eluze
thanks for the report - I forwarded it to the bug list:
http://lilypond.1069038.n5.nabble.com/Lyric-extender-lines-and-rests-after-line-break-td132414.html

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-extender-lines-and-rests-after-line-break-tp132390p132415.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: update all files with convert.ly (Vol 118, Issue 26)

2012-09-06 Thread pabuhr
Try

   $ find -name '*.ly' -print -exec convert-ly -ed {} \;

to print the file name before each conversion.

   > From: Reinhold Kainhofer 
   > To: David Kastrup 
   > Subject: Re: update all files with convert.ly

   > On 2012-09-04 11:37, David Kastrup wrote:> Stefan Thomas 
   >  writes:
   >> 
   >>> Dear community,
   >>> how can I update all my ly files (including subfolders) with one
   >>> command?
   >> 
   >> Depending on operating system, something like
   >> 
   >> find -name '*.ly' -exec convert-ly -ed {} \;
   >> 
   >> might do the trick.  Needless to say, create a backup first.
   > 
   > Plus, if convert-ly is not able to convert a particular feature 
   > automatically, it only prints out a warning that you need to fix 
   > something manually, but you'll have no indication in which file and 
   > where exactly you have to do some manual work….

   One way to cope with that, if the OS is sufficiently unix-like, is:

   for f in `find . -name \*.ly -print`
   do
 echo Converting $f
 convert-ly -ed $f
   done

   Then any files which had problems could be identified and addressed 
individually.

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


Custom key signature at line break

2012-09-06 Thread Janne Uusitalo
Hi,

if I typeset a key change from b major to g major, f remains sharp and
LilyPond prints out the naturals necessary for c, g, d, and a. Makes
perfect sense, but the standard I'm required to follow has it that an
extra # for fis should precede the group of naturals. Is there a way
to achieve this? I get close by creating a custom signature with the
right set of symbols, but as the change occurs at line break, I'm
stuck figuring out how to print this custom set at the end of line 1
and only that of g major at the start of line 2. Any helpful ideas to
share?

BR,
Janne

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


Re: update all files with convert.ly (Vol 118, Issue 26)

2012-09-06 Thread Patrick or Cynthia Karl

> Message: 5
> Date: Wed, 05 Sep 2012 23:47:31 +0200
> From: Reinhold Kainhofer 
> To: David Kastrup 
> Subject: Re: update all files with convert.ly

> On 2012-09-04 11:37, David Kastrup wrote:> Stefan Thomas 
>  writes:
>> 
>>> Dear community,
>>> how can I update all my ly files (including subfolders) with one
>>> command?
>> 
>> Depending on operating system, something like
>> 
>> find -name '*.ly' -exec convert-ly -ed {} \;
>> 
>> might do the trick.  Needless to say, create a backup first.
> 
> Plus, if convert-ly is not able to convert a particular feature 
> automatically, it only prints out a warning that you need to fix 
> something manually, but you'll have no indication in which file and 
> where exactly you have to do some manual work….


One way to cope with that, if the OS is sufficiently unix-like, is:

for f in `find . -name \*.ly -print`
do
  echo Converting $f
  convert-ly -ed $f
done

Then any files which had problems could be identified and addressed 
individually.

Pat



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


Lyric Descenders

2012-09-06 Thread Shelby Maddox
Is there a way to ignore descenders (q, g, y, etc.) in lyrics? It messes up
base lines and line spacing and makes for a very unattractive misalignment.
I think this was briefly discussed back in 2.13, but it doesn't seem to
have been resolved by 2.16.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: chords as markups?

2012-09-06 Thread m...@mikesolomon.org
On 6 sept. 2012, at 09:49, Werner LEMBERG  wrote:

> 
>> After reading the CG stuff, If you feel any info should be brought
>> over to the users manual, post a patch and we can discuss it.  And,
>> of course, if after reading the CG stuff is still unclear on how
>> they work, lemme know.
> 
> OK, I've read it, and the concept of purity is explained well, thanks.
> However, it's still not clear to me why the example works.
> 
> . First of all, `make-XXX-stencil' seems to be completely
>   undocumented.  At least I can't find those functions in the
>   reference (except some unsystematic usage here and there).

I'm not sure who made them or when they made it into LilyPond, but you're 
certainly welcome to post a patch documenting them - I think it'd be helpful to 
have that documented.

> 
> . I would expect that both `make-circle-stencil' and
>   `make-filled-box-stencil' produce something which has a natural
>   height.

They do.  It's just that LilyPond doesn't know that they will because they're 
functions.  Whenever LilyPond doesn't know if a function will return a natural 
height, she assumes it won't.  This is why it needs to be wrapped in an 
unpure-pure container.  I'll revisit the CG and find a way to better explain 
this.

> Apparently, this isn't true.  Why?  This should be
>   mentioned, otherwise the example is not really comprehensible
>   IMHO.
> . Even if `make-XXX-stencil' produce objects with zero height, I
>   don't understand why the layout engine ignores it.  IMHO, zero
>   height is not the same as an empty stencil.

The layout engine ignores it because it is a function - LilyPond will simply 
ignore the function all together because there is no guarantee that it is pure 
(see above).

> 
> Maybe there is something else which I don't understand...
> 

I'll revisit the CG to find a better way to explain this - pester me if I 
forget.

Cheers,
MS

> 
> 
>  Werner


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


Re: vim pointing to pdf-viewer and reverse

2012-09-06 Thread Stjepan Horvat
Hi guys..it is an old post..but i got it working right now..so i want to
share it with you..

I made a script vim-lilypond.sh

#!/bin/bash
FILENAME=`echo $1 | cut -d ":" -f 2`
LINE=`echo $1 | cut -d ":" -f 3`
CHAR=`echo $1 | cut -d ":" -f 4`
COLUMN=`echo $1 | cut -d ":" -f 5`
vim --servername lilypond --remote-silent "+call cursor($LINE, $CHAR+1)"
$FILENAME

then i started vim with server called lilypond:

vim --servername lilypond file.ly

and in xpdf or epdfview changed the urlCommand to "~./vim-lilypond.sh %s"
or whereever you put it..

it also works with gvim..

what i didnt understand is how lilypond-invoke-editor works and what it is
for..and..
what is the diference between LINE CHAR and COLUMN couse url comand has 3
numbers..

..am happy...

On Wed, Mar 7, 2012 at 11:32 AM, Rutger Hofman  wrote:

> On 03/07/2012 11:09 AM, Rutger Hofman wrote:
>
>> On 03/07/2012 09:12 AM, David Kastrup wrote:
>>
>>> Stjepan Horvat writes:
>>>
>>>  On Tue, Mar 6, 2012 at 5:48 PM, David Kastrup wrote:

> Stjepan Horvat writes:
>
>  Hello..can somebody please tell me how to get vim and a pdf viewer
>> (xpdf or evince of zathura) to work with vim lilypond-invoke-editor
>> function..i read everything that is on the web
>>
> [snip]
>
>
>>> Have you set up your EDITOR environment variable? I quote:
>>>
>>> The program 'lilypond-invoke-editor' is a small helper program. It
>>> will invoke an editor for the special textedit URIs, and run a web
>>> browser for others. It tests the environment variable EDITOR for the
>>> following patterns,
>>>
>>> emacs
>>>
>>> this will invoke
>>>
>>> emacsclient --no-wait +line:column file
>>>
>>> gvim
>>>
>>> this will invoke
>>>
>>> gvim --remote +:line:normcolumn file
>>>
>>> nedit
>>>
>>> this will invoke
>>>
>>> nc -noask +line file'
>>>
>>> The environment variable LYEDITOR is used to override this. It
>>> contains the command line to start the editor, where %(file)s,
>>> %(column)s, %(line)s is replaced with the file, column and line
>>> respectively. The setting
>>>
>>> emacsclient --no-wait +%(line)s:%(column)s %(file)s
>>>
>>> for LYEDITOR is equivalent to the standard emacsclient invocation.
>>>
>>>
>>>
>>>
>>  From gvim's man page, I understand how one can position the cursor at
>> startup on a line (+line or +:line), but I do /not/ grasp how it is put
>> on a column. Indeed, gvim gives me an error if I follow the
>> lilypond-invoke-editor example: the +:line:column syntax is wrong.
>>
>
> Oops, sorry, I was wrong here. I cut out the 'norm' thingy in my test.
> Wrong. It puts the cursor on the column. Sorry for the noise.
>
>
> Rutger
>
> __**_
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/**listinfo/lilypond-user
>



-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lyric extender lines and rests after line break

2012-09-06 Thread Davide Liessi
Hi all!

In the following snippet you will notice that the lyric extender after
the line break doesn't start at the beginning of bar 2 but is just a
single dash under the hidden c'4.
The same happens using rests instead of spacer rests.
The glissando is not part of the problem, it is there just to show why
I use spacer rests and hide the final note.
I inserted the line break because the real glissando actually spans
four bars, and for optimal page layout in the orchestral score the
line needs to be broken.

\version "2.16.0"
<<
\new Voice = "voice" {
\override Slur #'transparent = ##t
\override Glissando #'breakable = ##t

c'''4( \glissando
s4 s2\break
s2 s4
\hideNotes
c'4)
\unHideNotes
}
\new Lyrics \lyricsto "voice" \lyricmode { a __ }
>>

I needed the extender line to start from the beginning of the first
bar after the line break.
I noticed that the problem could be solved by placing a hidden note at
the beginning of each bar spanned by the glissando and skipping that
note using \once \override NoteColumn #'glissando-skip = ##t as in the
next snippet.
This way, wherever a line break could occur, there will be a (hidden)
note at the beginning of the new line.

\version "2.16.0"
<<
\new Voice = "voice" {
\override Slur #'transparent = ##t
\override Glissando #'breakable = ##t

c'''4( \glissando
s4 s2\break
\hideNotes
\once \override NoteColumn #'glissando-skip = ##t
c'2 s4
c'4)
\unHideNotes
}
\new Lyrics \lyricsto "voice" \lyricmode { a __ }
>>

Then I tried to tweak the properties of LyricExtender, its interfaces
and Extender_engraver to see if there were ways to do this
automatically, but I couldn't find any.

Does anyone know how to do this without manually inserting hidden
notes in each bar?

Also, is it possible to make the extender line and the glissando line
start and end at the same horizontal coordinates after the line break?
Since I hide the middle and final notes, it would be nice to align the
two lines.

Thank you in advance.
Best wishes,
Davide

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


Re: Markup query

2012-09-06 Thread Graham Percival
On Thu, Sep 06, 2012 at 10:37:37AM +0100, Peter Gentry wrote:
> It is a shame that the manuals do not contain a single source including a 
> precise definition of all the markup options - similar to
> a c++ manual say. 

Notation A.10 is intended to give such a source of definitions.

- Graham

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


Re: lilypond-book or latex doesn't find the necessary files

2012-09-06 Thread Stefan Thomas
I should have mentioned, that I compile those files with a script:
lilypond-book -I /home/stefan/partituren/lilyponds/vorlagen/ --pdf   $1.tex
--output=out
cd out/ &&
pdflatex "$1".tex
pdflatex "$1".tex
mv "$1".pdf ../
cd ../ &&
rm -r out/

2012/9/6 Stefan Thomas 

> Dear community,
> in the below quoted latex-document, I get the following error:
> test.tex:13:9: error: cannot find file: `rousselraga.ly'
> This is my document and the file rousselraga.ly
> %
> \documentclass[a4paper,12pt]{article}
> \usepackage[ngerman]{babel}
> \usepackage[utf8]{inputenc}
> %\usepackage[paper=a4paper,left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry}
>
> \title {From \grqq Krishna\grqq by Albert Roussel }
> \author {Stefan Thomas}
> \date { }
> \begin{document}
> \maketitle
> The following is a quote of the composition Joueurs de Fl\^ute by the
> french composer Albert Roussel.
> \begin{lilypond}
> \version "2.16.0"
> \include "rousselraga.ly"
> \new Staff  { \melodie }
> \end{lilypond}
> \end{document}
> 
> %% lilypondfile
> \version "2.16.0"
> zwozwozwoeeinsachtel = { \time #'(2 2 2 1) 7/8 }
> global = { \key a \major \zwozwozwoeeinsachtel }
> melodie = \relative c'' {
>   \global
>   r8 e \times 2/3 { f gis a } bes a gis |
> \bar"|." }
>
>
>
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond-book or latex doesn't find the necessary files

2012-09-06 Thread Stefan Thomas
Dear community,
in the below quoted latex-document, I get the following error:
test.tex:13:9: error: cannot find file: `rousselraga.ly'
This is my document and the file rousselraga.ly
%
\documentclass[a4paper,12pt]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
%\usepackage[paper=a4paper,left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry}

\title {From \grqq Krishna\grqq by Albert Roussel }
\author {Stefan Thomas}
\date { }
\begin{document}
\maketitle
The following is a quote of the composition Joueurs de Fl\^ute by the
french composer Albert Roussel.
\begin{lilypond}
\version "2.16.0"
\include "rousselraga.ly"
\new Staff  { \melodie }
\end{lilypond}
\end{document}

%% lilypondfile
\version "2.16.0"
zwozwozwoeeinsachtel = { \time #'(2 2 2 1) 7/8 }
global = { \key a \major \zwozwozwoeeinsachtel }
melodie = \relative c'' {
  \global
  r8 e \times 2/3 { f gis a } bes a gis |
\bar"|." }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: chords as markups?

2012-09-06 Thread Robin Bannister
luis jure wrote: 
... chords with some non-standard notation 
... 
i'd be very grateful for any pointers.



This an old annoyance [1]. 

You could try using my besideCN and replaceCN. 
See stencilCN.ly for recent code and a demo. 
Make sure you update it to your lilypond version. [2]


Two examples: 
  \besideCN #RIGHT "[6-7]" bes2 
  \replaceCN \markup "c]" c1 


You can try appending dashes as in ".9/[a  -  -" , 
but these overrides can't make them spread out  
automatically as a proper spanner would do it. 



Cheers, 
Robin


[1] http://lists.gnu.org/archive/html/lilypond-user/2009-03/msg00016.html 
[2] http://lists.gnu.org/archive/html/lilypond-user/2012-05/msg00857.html\version "2.12.0"

%schemeIndentOn
besideCN = #(define-music-function (parser location where what) (integer? string?) 
  #{\once \override ChordNames.ChordName #'stencil = #(lambda (grob) 
  (let* (
(whatlen (string-length $what))
(clamped (lambda (index) (cond ((< index 0) 0) 
  ((> index whatlen) whatlen) (else index
(split (clamped (cond 
  ((negative? $where) (+ $where whatlen 1)) 
  ((positive? $where) (- $where 1))
  (else (quotient whatlen 2)
(insert (lambda (i-side i-text) ; (integer? string?) 
  (if (> (string-length i-text) 0)
(ly:grob-set-property! grob 'text 
  (markup #:put-adjacent 0 i-side 
(ly:grob-property grob 'text) i-text))
(if (and (= $where CENTER) (odd? whatlen)) 
  (insert -1 (substring $what split (+ split 1
(insert -1 (substring $what 0 split   )) 
(insert  1 (substring $what split whatlen )))
  (ly:text-interface::print grob)) 
  #}) 

replaceCN =  #(define-music-function (parser location new) (markup?) 
  #{\once \override ChordNames.ChordName #'stencil = 
  #(lambda (grob) (grob-interpret-markup grob $new)) #}) 
%
%schemeIndentOff

%


sharpadj = \markup { \translate #'(0.0 . 0.5) \fontsize #-1 \sharp }
flatadj = \markup { \translate #'(0.2 . 0.2) \fontsize #-1 \flat }

nullCN = \replaceCN \markup \null

slash = \markup { \bold \fontsize #1 \char ##x2044 } % fraction
slashCN = \replaceCN \slash

percent = \markup { \bold \fontsize #1 \char ##x066A } % arabic
percentCN = \replaceCN \percent
%

harmonies = \chordmode { 
  f1:maj 
  \besideCN #LEFT "(  " e2:m5-.7  
  \besideCN #RIGHT "  )" a2:7 
  d1:m 
  \besideCN #CENTER "( )" gis1:7 % a middle character is used twice
  \bar "||" \break
  \besideCN #-1 "beside" a1 % i.e. #LEFT
  \besideCN #-2 "beside" a1 
  \besideCN #-3 "beside" a1 
  \besideCN #-4 "beside" a1 
  \bar "||" \break
  bes2:m 
  \replaceCN \markup \line { "/A" \flatadj } bes2:m/aes % elide root as LSR776
  \replaceCN \markup { "F" \small "phryg" } bes4:m/f % rename
  \nullCN bes4:m/f \slashCN bes4:m/f \slashCN bes4:m/f % strum beats
  \nullCN bes2:m/f \percentCN bes2:m/f % simile
  \bar "||" 
}

<<
  \new ChordNames { \set chordChanges = ##f \harmonies }
  \new Staff { \repeat unfold 22 r2 }
>>

\paper {
  indent = 0\mm
  line-width = 160\mm - 2.0 * 0.4\in
  line-width = #(- line-width (* mm  3.00))
}

\layout {  }

% chordnames can collide: 
% http://lists.gnu.org/archive/html/lilypond-user/2011-06/msg00232.html

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


Markup query

2012-09-06 Thread Peter Gentry
Further to my recent query I have deduced from various confusing manual entries 
that my solution could be as follows

%
% variables for later use to avoid repititions
%-
date = #(strftime "%d-%m-%Y" (localtime (current-time)))
xtitle = "Wind Symphony"
xsubtitle = "No. 5 in E flat "
xarranger= "arr C Franklyn"
xChristian = "J C"
xSurname = "Bach"
xdates = "(1735 - 1782)"
xpart = "Clarinet 1"
xinstrument = "Clt1"
xmidiInstrument = "clarinet"
xgraphic="./BachJC.eps" 
xstamp = \markup{\concat { "Engraved "  \bold \date " with "  \with-url 
#"http://lilypond.org/"; "LilyPond " \simple
#(lilypond-version) " (http://lilypond.org/)" }  }

%--
% markup
%--
\markup  {
  \fill-line {
  \column {
 \center-align {
   \vspace #4 \fontsize #10 \concat { \xChristian " 
"  \xSurname } 
   \vspace #2 \fontsize #6 \xdates
   \vspace #3 \fontsize #10 \xtitle
   \vspace #1 \fontsize #10 \xsubtitle
   \vspace #2 \fontsize #4 \xarranger
   \vspace #2 \general-align #Y #DOWN { \epsfile #Y 
#40 #"./BachJC.eps"  }  
   \vspace #2 \fontsize #4 \xpart
   \vspace #2 \fontsize #1 \xstamp
  } 
  }
}
   }  

It is a shame that the manuals do not contain a single source including a 
precise definition of all the markup options - similar to
a c++ manual say. 

References are spread over a number of manuals, searches usually result in 
either a huge number of hits or none either way it is
difficult to resolve problems.

It is not meant to be hypercritical but the experience of a tyro Lilypond user 
for the gutus to consider.

regards
Peter Gentry 



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


Re: -dno-point-and-click undocumented

2012-09-06 Thread Stefan Vollmar
Dear Werner,

I do not think this is necessarily a bug in LilyPond: as Acrobat has no problem 
displaying the PDF and shorter scores work fine in Preview, my guess is that 
this is a Preview-specific problem - but I will investigate further and create 
a minimal example to reproduce the behaviour.

Warm regards,
 Stefan

On 06.09.2012, at 09:22, Werner LEMBERG wrote:

> 
>> I found at least one case (a score with three voices, six pages
>> total) where "point-and-click" generated artefacts (incomplete lines
>> and empty final pages) when viewed with Preview (Mac 10.6.8), while
>> Acrobat 9 showed no such problems -
> 
> Bug report, please!  If possible, reduce the example (attached in the
> bug report as both .ly and .pdf) as much as possible so that it is
> easier to find out the problem and fix it if possible.

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond editing environments

2012-09-06 Thread Nick Payne
On 06/09/12 16:27, Janek Warchoł wrote:
> On Thu, Sep 6, 2012 at 1:21 AM, Nick Payne  
> wrote:
>> Elysium (the Eclipse plugin for Lilypond editing) is not listed in the
>> documentation as one of the editing environments for Lilypond. It should
>> probably be there
>> http://elysium.thsoft.hu/
> I didn't found licensing information on their website; since Lily is a
> GNU project we can recommend only Free Software.  If Elysium is Free
> Software, please send an information about it to bug-lilyp...@gnu.org

The licensing is EPL: https://code.google.com/a/eclipselabs.org/p/elysium/.

EPL is listed as an open source license at
http://opensource.org/licenses/alphabetical.

Nick

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


Re: -dno-point-and-click undocumented

2012-09-06 Thread Werner LEMBERG

> I found at least one case (a score with three voices, six pages
> total) where "point-and-click" generated artefacts (incomplete lines
> and empty final pages) when viewed with Preview (Mac 10.6.8), while
> Acrobat 9 showed no such problems -

Bug report, please!  If possible, reduce the example (attached in the
bug report as both .ly and .pdf) as much as possible so that it is
easier to find out the problem and fix it if possible.


Werner

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


Re: chords as markups?

2012-09-06 Thread Werner LEMBERG

> After reading the CG stuff, If you feel any info should be brought
> over to the users manual, post a patch and we can discuss it.  And,
> of course, if after reading the CG stuff is still unclear on how
> they work, lemme know.

OK, I've read it, and the concept of purity is explained well, thanks.
However, it's still not clear to me why the example works.

  . First of all, `make-XXX-stencil' seems to be completely
undocumented.  At least I can't find those functions in the
reference (except some unsystematic usage here and there).

  . I would expect that both `make-circle-stencil' and
`make-filled-box-stencil' produce something which has a natural
height.  Apparently, this isn't true.  Why?  This should be
mentioned, otherwise the example is not really comprehensible
IMHO.
  . Even if `make-XXX-stencil' produce objects with zero height, I
don't understand why the layout engine ignores it.  IMHO, zero
height is not the same as an empty stencil.

Maybe there is something else which I don't understand...



   Werner

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


Re: Lilypond editing environments

2012-09-06 Thread Henning Hraban Ramm
012/9/6 Janek Warchoł :
> On Thu, Sep 6, 2012 at 1:21 AM, Nick Payne  
> wrote:
>> Elysium (the Eclipse plugin for Lilypond editing) is not listed in the
>> documentation as one of the editing environments for Lilypond. It should
>> probably be there
>> http://elysium.thsoft.hu/
>
> I didn't found licensing information on their website; since Lily is a
> GNU project we can recommend only Free Software.  If Elysium is Free
> Software, please send an information about it to bug-lilyp...@gnu.org

Their license is EPL, as indicated here:
http://marketplace.eclipse.org/content/elysium#.UEhONkK4qlo
and here:
http://code.google.com/a/eclipselabs.org/p/elysium/

EPL: http://en.wikipedia.org/wiki/Eclipse_Public_License
(OSI approved, but not GPL compatible)

Best regards,
Hraban

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


Re: chords as markups?

2012-09-06 Thread Werner LEMBERG

> You can check out the CG link for info about how the lilypond
> spacing engine works with unpure-pure-containers.

BTW, why the heck is this central part of LilyPond's layout engine
located in the Contributor's Guide?  This certainly belongs to the
`notation' or `extending' guide, I reckon.


 Werner

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


Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
>> How comes?  I think this deserves some more explanation.
> 
> You can check out the CG link for info about how the lilypond
> spacing engine works with unpure-pure-containers.

Will do.  Maybe it is sufficient to simply add a link to

  
http://lilypond.org/doc/v2.17/Documentation/contributor/understanding-pure-properties

(something like this should be certainly done).


Werner

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


Re: -dno-point-and-click undocumented (was: PDF information issues)

2012-09-06 Thread Stefan Vollmar
Dear Werner,

useful as it can be for editing, I found at least one case (a score with three 
voices, six pages total) where "point-and-click" generated artefacts 
(incomplete lines and empty final pages) when viewed with Preview (Mac 10.6.8), 
while Acrobat 9 showed no such problems - possibly some overflow bug specific 
to Preview; everything works fine with -dno-point-and-click. As Preview is the 
default PDF viewer on the Mac (and usually works quite well) switching off 
point-and-click can be important.

Warm regards, 
 Stefan

On 06.09.2012, at 07:18, Werner LEMBERG wrote:

>> - -dno-point-and-click was exactly what I was looking for;
>> lilypond --help had not revealed that wisdom.
> 
> Indeed, it is missing for `lilypond -dhelp'.  Looks like a bug...
> 
> 
>Werner
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: chords as markups?

2012-09-06 Thread m...@mikesolomon.org

On 6 sept. 2012, at 08:49, Werner LEMBERG  wrote:

>> unpure-pure stuff is:
>> 
>> http://lilypond.org/doc/v2.16/Documentation/notation/unpure_002dpure-containers
> 
> Looking more closely at this page, I don't fully understand how it
> works.  It is stated that the unpure-pure stuff affects y-axis
> calculations, but the given example adjusts the *width*:
> 
>  In the first measure, without the unpure-pure container, the spacing
>  engine does not know the width of the note head [...]
> 
> How comes?  I think this deserves some more explanation.
> 
> 
>Werner

Hey Werner,

You can check out the CG link for info about how the lilypond spacing engine 
works with unpure-pure-containers.  As there is no info in the users manual 
about the nitty gritty of horizontal spacing, James and I decided to leave out 
the "why" and just focus on the "what to do."

After reading the CG stuff, If you feel any info should be brought over to the 
users manual, post a patch and we can discuss it.  And, of course, if after 
reading the CG stuff is still unclear on how they work, lemme know.

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