installing emacs lilypond-mode

2006-10-16 Thread Paul Scott
I have installed LilyPond on another machine and haven't figured out how 
to get lilypond-mode for emacs going.


The manual (2.9) says do a "make install" from the source archive.  Does 
this mean that I have to get the source tarball?  It's been quite a 
while since I've had to do this and I don't remember needing the source 
to set up lilypond-mode.


TIA,

Paul Scott



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


Re: about rightHandFinger

2006-10-16 Thread Han-Wen Nienhuys

Daniel Tonda schreef:

Hi:

I just read that lilypond includes support for rightHandFinger events. 
Being a guitarist I was thrilled.


I ran the example and tried a couple of experiments to see if I could 
change the capital P and I that appear, in guitar the fingers are spelt 
in lowercase p, i, m, a.


\rightHandFinger #0 ... #11.

0 and greater than 5 appear as "x".

Is there a way to tweak the way it displays the fingerings?


check out the digit-names property of StringFinger

--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: installing emacs lilypond-mode

2006-10-16 Thread Geoff Horton

http://www.geoffhorton.com/lilymacs.html is how I did it.

Geoff


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


Re: installing emacs lilypond-mode

2006-10-16 Thread Robert Memering
Am Montag, 16. Oktober 2006 11:45 schrieb Paul Scott:
> I have installed LilyPond on another machine and haven't figured out how
> to get lilypond-mode for emacs going.
> The manual (2.9) says do a "make install" from the source archive.  Does
> this mean that I have to get the source tarball?  It's been quite a
> while since I've had to do this and I don't remember needing the source
> to set up lilypond-mode.

If you used the installer, you will find the emacs lisp files
in $PREFIX/lilypond/usr/share/emacs/site-lisp.

For me, the easiest way was to copy them to a directory
in my emacs lisp path and put 

(load "lilypond-init.el" nil t t)

in my .emacs file.

Robert Memering


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


Re: trnasparent stem function

2006-10-16 Thread Jean-marc LEGRAND




Thanks, Mats !
That does work and I've achieved what I wanted to do :

\version "2.9"
stemLess = \override Voice.Stem #'transparent = ##t
stemFull = \override Voice.Stem #'transparent = ##f
\score {
  \relative c'' {
\override Staff.NoteCollision  #'merge-differently-headed = ##f
<<{\stemDown a2 a4 a} \\ {\stemLess c2 c4 c \stemFull} \\ {\stemUp 
e2 e4 e}>>

}
  }

Best regards !

JMarc




 Mats Bengtsson 

 <[EMAIL PROTECTED]>
 

  A 
 13/10/2006 20:40Jean-marc LEGRAND <[EMAIL 
PROTECTED]>

 cc 
 lilypond-user@gnu.org  


  Objet 
 Re: trnasparent stem function  

















There's no need for a music function here, why not simply do

stemLess = \once \override Voice.Stem #'transparent = ##t

Also, since you use \once in the previous definition, there's no need
to do a revert later.

   /Mats

Quoting Jean-marc LEGRAND <[EMAIL PROTECTED]>:

>
>
>
>
> Hi list !
>
> Using 2.9 on XP.
>
> I'm beginning to engrave Marais' Viol suites (since I've understood
> eps files inclusion...).
>
> I'm stuck with this : in the fac simile, inside notes of a chord are
> stemless. So I have to get
> something like
> <<{a4} \\ { % without stem} \\ {a}>>
>
> So I've decided to get in function construction, and I've tried this
> for a simple piece of music :
>
> \version "2.9"
> stemLess = #(define-music-function (parser location note) (ly:music?)
>   #{\once \override Voice.Stem #'transparent = ##t   #})
>
> stemFull = #(define-music-function (parser location note) (ly:music?)
>   #{\revert  Voice.Stem #'transparent  #})
>
> \score {
>  \relative c'' {
>c4 \stemLess c c \stemFull c
>}
>  }
>
> I get
> -  the first c with a stem (ok)
> - the second one ithout stem (ok)
> - no more music after that : not OK at all.
>
> I think I'm making a mistake with my function, since it's the first
> aof my entire life !
>
> Does anyone know where it is ?
>
> Best regards !
>
> JMarc
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>







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


\mark \default in 2.9.24

2006-10-16 Thread Paul Scott

This:

\version "2.9.24"

{ c1 \mark \default  }

nMark = \mark \default

gives:

[EMAIL PROTECTED]:~/music/test$ lilypond nmark.ly
GNU LilyPond 2.9.24
Processing `nmark.ly'
Parsing...#nmark.ly:3:5>))((display-methods #) (name . 
MarkEvent) (types general-music mark-event event)) >
#nmark.ly:4:8>))((display-methods #) (name . 
MarkEvent) (types general-music mark-event event)) >


I'll send this to the bug list if I haven't missed something in the 
latest manual.


Paul Scott




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


Re: installing emacs lilypond-mode

2006-10-16 Thread Paul Scott

Geoff Horton wrote:

http://www.geoffhorton.com/lilymacs.html is how I did it.

Geoff


Thanks!  Works great!  I've bookmarked your page.

Paul



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


Re: \mark \default in 2.9.24

2006-10-16 Thread Erik Sandberg
On Monday 16 October 2006 12:17, Paul Scott wrote:
> This:
>
> \version "2.9.24"
>
> { c1 \mark \default  }
>
> nMark = \mark \default
>
> gives:
>
> [EMAIL PROTECTED]:~/music/test$ lilypond nmark.ly
> GNU LilyPond 2.9.24
> Processing `nmark.ly'
> Parsing...# nmark.ly:3:5>))((display-methods #) (name .
> MarkEvent) (types general-music mark-event event)) >
> # nmark.ly:4:8>))((display-methods #) (name .
> MarkEvent) (types general-music mark-event event)) >
>
> I'll send this to the bug list if I haven't missed something in the
> latest manual.

Sorry, my fault (I forgot to switch off some debug output). Fixed in CVS.

Thanks for reporting!

-- 
Erik


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


slashed grace notes

2006-10-16 Thread Mehmet Okonsar


--  Forwarded Message  --

Subject: slashed grace notes
Date: Monday 02 October 2006 13:43
From: Mehmet Okonsar <[EMAIL PROTECTED]>
To: Lilypond Users Group 

the manual is not very explicit..
how can I get slashed AND beamed grace notes as 8ths, 16ths etc..
I mean: a slash through the beam
--
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com

---

-- 
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com


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


Fwd: Why No Page Numbers?

2006-10-16 Thread Mehmet Okonsar


--  Forwarded Message  --

Subject: Why No Page Numbers?
Date: Saturday 14 October 2006 19:57
From: Mehmet Okonsar <[EMAIL PROTECTED]>
To: lilypond-user@gnu.org

Why don't I get page numbers (on the first page) here?
=
\version "2.9.22"
\include "english.ly"

\paper
{
first-page-number = 1
print-first-page-number = ##t
}
\score {
\new Staff {
c''1
}

}
=
--
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com

---

-- 
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com


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


Re: lilypond-book shifts music right relative to text

2006-10-16 Thread Laura Conrad
> "Arvid" == Arvid Grøtting <[EMAIL PROTECTED]> writes:

Arvid> Laura Conrad  laymusic.org> writes:
>> Has anyone figured out a way around this?

Arvid> A workaround, yes:

Arvid> For each EPS file, between running lilypond-book and tex,
Arvid> replace the first (and negative) number in the BoundingBox
Arvid> comment with 0.

Thanks, that works.  

Arvid> Yes, it's an ugly hack.  Here's why it works:

Arvid> Lilypond-book produces EPS files where some point on the left edge of
Arvid> the staff has coordinates (0, 0).  The first 0 here would be an ideal
Arvid> candidate for horisontal aligment within the TeX file.

Arvid> Some stuff extends to the left of this: bar numbers, most notably.

I wondered whether this was the problem.

Arvid> Now, I guess lilypond-book could be modified to give an
Arvid> explicit *and deliberately misleading* BoundingBox argument
Arvid> to the \includegraphics command in order to get the correct
Arvid> placement without compromising the EPS file.  That would,
Arvid> IMHO, be a better and more permanent solution.

I agree that we need a better solution.  Ideally, it would be one that
would have a better connection to the way LaTeX thinks about the
world, but I'd settle for anything that means I don't have to maintain
my script that does your sed.

-- 
Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ )
(617) 661-8097  fax: (501) 641-5011
233 Broadway, Cambridge, MA 02139


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


Re: I would like to buy this enhancement (highly motivated buyer)

2006-10-16 Thread Erik Sandberg
On Thursday 12 October 2006 18:22, Rick Hansen (aka RickH) wrote:
> Thanks for the suggestion Mats.
>
> My motivation for this is that I am currently writing some lesson material
> that reference full scores and would like to make a nice word processor
> document that flows, with illustrations embedded in the text, and the text
> flows around the illustrations, etc. (an old school typography look with no
> grids or tables).  Something that really looks nice and has an "artful" use
> of typography and imbedded illustrations.  I found that I needed dozens of
> music snippets from the original, and was wasting a lot of time massaging
> my already-completed-just-fine scores to put the excerpted notes into
> dedicated variables for re-use, tags, skiptypesetting, etc.  Times having
> to do that for all the vertical staffs, lyrics, chord names, across the
> needed measures, amplified the work.
>
> Finally I threw my hands up in frustration and thought of how I would make
> such a document using just a simple typewriter and xActo knife.

In this case, it is not sufficient to just use \tag etc., because if you do, 
each snippet will be treated as the first system, so time signature etc. will 
be displayed in each example.

One solution for you could be to wrap the .ly code inside a .tely document, 
and use lilypond-book. Lilypond-book generates one individual .eps for each 
system, so if you just insert \breaks in the right spots, then it should give 
you what you want (this way, you will also get page breaks between systems in 
a natural way).

Also, I hope you know about OOoLilypond; if not, please read the ML archives.

-- 
Erik


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


Re: Making notes in Scheme?

2006-10-16 Thread Eduardo Vieira
Hello, to me Scheme/Lisp is (still) Greek. But you may find interesting what 
FOMUS has to offer, if you`re thinking of algorithmical composition. Check 
it out: 
http://common-lisp.net/project/fomus/ 

Eduardo 


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


Re: lilypond-book shifts music right relative to text

2006-10-16 Thread Mats Bengtsson

Quoting Laura Conrad <[EMAIL PROTECTED]>:


   Arvid> Now, I guess lilypond-book could be modified to give an
   Arvid> explicit *and deliberately misleading* BoundingBox argument
   Arvid> to the \includegraphics command in order to get the correct
   Arvid> placement without compromising the EPS file.  That would,
   Arvid> IMHO, be a better and more permanent solution.

I agree that we need a better solution.  Ideally, it would be one that
would have a better connection to the way LaTeX thinks about the
world, but I'd settle for anything that means I don't have to maintain
my script that does your sed.


The problem is that this is not always what you want. Think for example 
of situations where you include a short snippet in the middle of a line 
of text or in a table. Then, you don't anything to stick out to the 
left of the bounding box.


  /Mats



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


Re: I would like to buy this enhancement (highly motivated buyer)

2006-10-16 Thread Mats Bengtsson
Since Han-Wen already has implemented what Rick requested, the 
discussion is now obsolete.


  /Mats

Quoting Erik Sandberg <[EMAIL PROTECTED]>:


On Thursday 12 October 2006 18:22, Rick Hansen (aka RickH) wrote:

Thanks for the suggestion Mats.

My motivation for this is that I am currently writing some lesson material
that reference full scores and would like to make a nice word processor
document that flows, with illustrations embedded in the text, and the text
flows around the illustrations, etc. (an old school typography look with no
grids or tables).  Something that really looks nice and has an "artful" use
of typography and imbedded illustrations.  I found that I needed dozens of
music snippets from the original, and was wasting a lot of time massaging
my already-completed-just-fine scores to put the excerpted notes into
dedicated variables for re-use, tags, skiptypesetting, etc.  Times having
to do that for all the vertical staffs, lyrics, chord names, across the
needed measures, amplified the work.

Finally I threw my hands up in frustration and thought of how I would make
such a document using just a simple typewriter and xActo knife.


In this case, it is not sufficient to just use \tag etc., because if you do,
each snippet will be treated as the first system, so time signature etc. will
be displayed in each example.

One solution for you could be to wrap the .ly code inside a .tely document,
and use lilypond-book. Lilypond-book generates one individual .eps for each
system, so if you just insert \breaks in the right spots, then it should give
you what you want (this way, you will also get page breaks between systems in
a natural way).

Also, I hope you know about OOoLilypond; if not, please read the ML archives.

--
Erik


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







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


Re: oddHeaderMarkup

2006-10-16 Thread Rick Hansen (aka RickH)

You can take over all the titling yourself with the following \paper block
and by not setting any of the built in \header properties like title,
copyright, etc. (with the exception of tagline = " " to regain the bottom
space).  Also use the \fill-line function to spread items left/right.

Rick


@EXAMPLE BEGIN


#(define (inner-page layout props arg)
   (if
  (not
  (or
 (= (chain-assoc-get 'page:page-number props -1)
(ly:output-def-lookup layout 'first-page-number)
 )
 (chain-assoc-get 'page:last? props #f)
  )
  )
  (interpret-markup layout props arg)
  empty-stencil
   )
)

#(set-default-paper-size "letter" 'portrait)
\paper {

paper-height = 11.0\in
paper-width = 8.5\in
line-width = 7.7\in
left-margin = 0.4\in
top-margin = 0.25\in
bottom-margin = 0.25\in
page-top-space = 0.0\in
foot-separation = 0.05\in
head-separation = 0.0\in
after-title-space = 0.0\in
between-title-space = 0.0\in
horizontal-shift = 0.0\in
annotate-spacing = ##f
between-system-padding = #1
between-system-space = #30
   first-page-number = #1
   printfirst-page-number = ##f
   print-page-number = ##f


oddHeaderMarkup = \markup {
  \on-the-fly #first-page {
 \fill-line {
{ \normal-text \sans \normalsize \varArranger }
{ \override #'(baseline-skip . 3.5) \center-align { { \bold
\fontsize #5.0 \varTitle } { \sans \italic \normalsize \bigger \varSubTitle
} } }
{ \normal-text \sans \normalsize \varComposer }
 }
  }
  \on-the-fly #last-page {
 \on-the-fly #not-single-page {
\fill-line {
   { \center-align { \varTitle "(last page)" } }
}
 }
  }
  \on-the-fly #inner-page {
 \fill-line {
{ \center-align { \varTitle "(continued)" } }
 }
  }
}

   evenHeaderMarkup = \markup {
  \on-the-fly #first-page {
 \fill-line {
{ \normal-text \sans \normalsize \varArranger }
{ \override #'(baseline-skip . 3.5) \center-align { { \bold
\fontsize #5.0 \varTitle } { \sans \italic \normalsize \bigger \varSubTitle
} } }
{ \normal-text \sans \normalsize \varComposer }
 }
  }
  \on-the-fly #last-page {
 \on-the-fly #not-single-page {
\fill-line {
   { \center-align { \varTitle "(last page)" } }
}
 }
  }
  \on-the-fly #inner-page {
 \fill-line {
{ \center-align { \varTitle "(continued)" } }
 }
  }
   }

   oddFooterMarkup = \markup {
  \on-the-fly #first-page {
 \fill-line {
{ \tiny \sans \varModifiedTimeString }
{ \teeny \override #'(baseline-skip . 1.75) \center-align {
"copyright" "blah blah blah" } }
{ \bold \fromproperty #'page:page-number-string }
 }
  }
  \on-the-fly #last-page {
 \on-the-fly #not-single-page {
\fill-line {
   { \tiny \sans \varModifiedTimeString }
   { \bold \fromproperty #'page:page-number-string }
}
 }
  }
  \on-the-fly #inner-page {
 \fill-line {
{ \tiny \sans \varModifiedTimeString }
{ \bold \fromproperty #'page:page-number-string }
 }
  }
   }

   evenFooterMarkup = \markup {
  \on-the-fly #first-page {
 \fill-line {
{ \bold \fromproperty #'page:page-number-string }
{ \teeny \override #'(baseline-skip . 1.75) \center-align {
"copyright" "blah blah blah" } }
{ \tiny \sans \varModifiedTimeString }
 }
  }
  \on-the-fly #last-page {
 \on-the-fly #not-single-page {
\fill-line {
   { \bold \fromproperty #'page:page-number-string }
   { \tiny \sans \varModifiedTimeString }
}
 }
  }
  \on-the-fly #inner-page {
 \fill-line {
{ \bold \fromproperty #'page:page-number-string }
{ \tiny \sans \varModifiedTimeString }
 }
  }
   }

}



@EXAMPLE END





Ezequiel Sierra wrote:
> 
> How can i put the oddHeaderMarkup to the right instead of the left  
> and how can i make appear the same oddHeaderMarkup in the second page
> 
> numeroHimno = "2"
> 
> \paper {
> oddHeaderMarkup = \markup {  \bold \large  \numeroHimno }
> between-system-space = 0.3\cm
> head-separation = 0.1\cm
> }
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/oddHeaderMarkup-tf2449504.html#a6837154
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



___
lilypond-user mailing l

Re: slashed grace notes

2006-10-16 Thread Mats Bengtsson
I have already answered your question, see 
http://lists.gnu.org/archive/html/lilypond-user/2006-10/msg00018.html

but if I remember correctly, the email directly to you bounced back.

  /Mats

Quoting Mehmet Okonsar <[EMAIL PROTECTED]>:




--  Forwarded Message  --

Subject: slashed grace notes
Date: Monday 02 October 2006 13:43
From: Mehmet Okonsar <[EMAIL PROTECTED]>
To: Lilypond Users Group 

the manual is not very explicit..
how can I get slashed AND beamed grace notes as 8ths, 16ths etc..
I mean: a slash through the beam
--
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com

---

--
Mehmet Okonsar,
pianist-composer-conductor
www.okonsar.com


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







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


Re: I would like to buy this enhancement (highly motivated buyer)

2006-10-16 Thread Rick Hansen (aka RickH)

Yes, it seems to work great for all my initial tests so far.  Han-Wen is very
fast.  I have already made a word processor document that references several
EPS clips from the original score.  Now I only have one score to maintain
and one document to maintain, and when I change the score the revised clips
are automatically reflected in the word processor document (assuming the
clip file names were not also changed).





Mats Bengtsson-4 wrote:
> 
> Since Han-Wen already has implemented what Rick requested, the 
> discussion is now obsolete.
> 
>/Mats
> 
> Quoting Erik Sandberg <[EMAIL PROTECTED]>:
> 
>> On Thursday 12 October 2006 18:22, Rick Hansen (aka RickH) wrote:
>>> Thanks for the suggestion Mats.
>>>
>>> My motivation for this is that I am currently writing some lesson
>>> material
>>> that reference full scores and would like to make a nice word processor
>>> document that flows, with illustrations embedded in the text, and the
>>> text
>>> flows around the illustrations, etc. (an old school typography look with
>>> no
>>> grids or tables).  Something that really looks nice and has an "artful"
>>> use
>>> of typography and imbedded illustrations.  I found that I needed dozens
>>> of
>>> music snippets from the original, and was wasting a lot of time
>>> massaging
>>> my already-completed-just-fine scores to put the excerpted notes into
>>> dedicated variables for re-use, tags, skiptypesetting, etc.  Times
>>> having
>>> to do that for all the vertical staffs, lyrics, chord names, across the
>>> needed measures, amplified the work.
>>>
>>> Finally I threw my hands up in frustration and thought of how I would
>>> make
>>> such a document using just a simple typewriter and xActo knife.
>>
>> In this case, it is not sufficient to just use \tag etc., because if you
>> do,
>> each snippet will be treated as the first system, so time signature etc.
>> will
>> be displayed in each example.
>>
>> One solution for you could be to wrap the .ly code inside a .tely
>> document,
>> and use lilypond-book. Lilypond-book generates one individual .eps for
>> each
>> system, so if you just insert \breaks in the right spots, then it should
>> give
>> you what you want (this way, you will also get page breaks between
>> systems in
>> a natural way).
>>
>> Also, I hope you know about OOoLilypond; if not, please read the ML
>> archives.
>>
>> --
>> Erik
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
> 
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I-would-like-to-buy-this-enhancement-%28highly-motivated-buyer%29-tf2425929.html#a6837324
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: lilypond-book shifts music right relative to text

2006-10-16 Thread Laura Conrad
> "Mats" == Mats Bengtsson <[EMAIL PROTECTED]> writes:

Mats> Quoting Laura Conrad <[EMAIL PROTECTED]>:
>> 
Arvid> Now, I guess lilypond-book could be modified to give an
Arvid> explicit *and deliberately misleading* BoundingBox argument
Arvid> to the \includegraphics command in order to get the correct
Arvid> placement without compromising the EPS file.  That would,
Arvid> IMHO, be a better and more permanent solution.
>> 
>> I agree that we need a better solution.  Ideally, it would be
>> one that would have a better connection to the way LaTeX thinks
>> about the world, but I'd settle for anything that means I don't
>> have to maintain my script that does your sed.

Mats> The problem is that this is not always what you want. Think
Mats> for example of situations where you include a short snippet
Mats> in the middle of a line of text or in a table. Then, you
Mats> don't anything to stick out to the left of the bounding box.

lilypond-book knows whether it's setting complete lines or only
snippets.  It's obviously done some kind of calculating what length
line I told the geometry package to set in LaTeX.  It's just that it
gets it wrong, and for full lines ends up with text sticking out to
the right of the bounding box.

You can either see this problem as:

 It's getting the length of the staff line right, but then adding
 the stuff to the left of the staff in the wrong place, that is,
 within the margin instead of outside.

or:

 It's getting the length of the staff line wrong, because it's
 failing to take into account the stuff to the left of the staff.

I don't greatly care which problem gets fixed.  Arvid's solution would
fix the first problem.  I don't see why lilypond-book would have to
apply it in the case of lines where it wasn't trying to fill up the
whole LaTeX \textwidth.


-- 
Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ )
(617) 661-8097  fax: (501) 641-5011
233 Broadway, Cambridge, MA 02139


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


Re: I would like to buy this enhancement (highly motivated buyer)

2006-10-16 Thread Han-Wen Nienhuys

Rick Hansen (aka RickH) schreef:

Yes, it seems to work great for all my initial tests so far.  Han-Wen is very
fast.  I have already made a word processor document that references several
EPS clips from the original score.  Now I only have one score to maintain
and one document to maintain, and when I change the score the revised clips
are automatically reflected in the word processor document (assuming the
clip file names were not also changed).


I changed the mechanism a bit further in .24, so changes in linebreaking 
don't mess up the snippet names.


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: lilypond-book shifts music right relative to text

2006-10-16 Thread Arvid Grøtting
Laura Conrad  laymusic.org> writes:

> lilypond-book knows whether it's setting complete lines or only
> snippets. 

I'm not entirely sure it does (Lilypond obviously does), but if it doesn't, an
option to the lilypond-book commands (either in the .lytex file or on the
command line) could tell lilypond-book whether or not to act as if there was
nothing to the left of the margin.

At least in the case of the EPS/dvips backend.  Other backends may vary.

Anyway, if lilypond-book had this option enabled *and* could get enough
bounding box data back from Lilypond, it could use a (slightly altered) 
bounding box parameter in the \includegraphics LaTeX command.


Cheers,

-- 
Arvid




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


-d option for first-page-number?

2006-10-16 Thread Rick Hansen (aka RickH)

A -d option to set the \paper first-page-number property from the command
line job would be a real handy thing to have.  Many people I assume, like
me, often print a score for inclusion into another separate book, or
concatenation with a bunch of other PDF files.  It would be nice to not have
to edit the .ly file just to get the score to start out with the desired
page number for that particular usage instance.

Can someone add this easily?

Also many or all of the \paper properties would be good candidates for -d
options, like giving the ability to adjust staff spacing, staff count and
paper sizes from the job stream instad of having to edit the .ly files. 
Just like most word processors give you the ability to print on different
sizes of paper without having to modify your original document.



-- 
View this message in context: 
http://www.nabble.com/-d-option-for-first-page-number--tf2454586.html#a6841415
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Scheme question

2006-10-16 Thread Rick Hansen (aka RickH)

I would like to "dynamically generate" values for the following 3 hard-coded
properties based on a rule, and the current default paper size, but I dont
know scheme:

paper-height = 11.0\in
paper-width = 8.5\in
line-width = 7.7\in

So basically how would I code the above hard coded values to be math
expressions based on the following rule:

I always want my left and right margins to be .4 inches.

So the formula for line with would be (default paper width - .8)

The formula for paper-height and paper-width would be whatever the default
paper currently is, but I dont know how to set it from those values.

I'm trying to make my \paper block code more intelligent so that it
automatically resets the line-width and paper-width/height based on whatever
I set #set-default-paper-size to.  top/bottom margins are ok to be
hard-coded as well as most of the other \paper properties whenever I change
form sizes.

If I can get line-width to set itself based on an expression, I can more
easily change form sizes from my job stream using the -d option for paper
size and not have to re-edit the ly file.  But I dont know scheme.

thanks for any help on how to set these properties based on the current
default paper size and my .4/in margins rule.
Rick



-- 
View this message in context: 
http://www.nabble.com/Scheme-question-tf2454705.html#a6841804
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: -d option for first-page-number?

2006-10-16 Thread Han-Wen Nienhuys

Rick Hansen (aka RickH) schreef:

A -d option to set the \paper first-page-number property from the command
line job would be a real handy thing to have.  Many people I assume, like
me, often print a score for inclusion into another separate book, or
concatenation with a bunch of other PDF files.  It would be nice to not have
to edit the .ly file just to get the score to start out with the desired
page number for that particular usage instance.

Can someone add this easily?

Also many or all of the \paper properties would be good candidates for -d
options, like giving the ability to adjust staff spacing, staff count and
paper sizes from the job stream instad of having to edit the .ly files. 
Just like most word processors give you the ability to print on different

sizes of paper without having to modify your original document.


I can understand that need, but isn't it easier to simply use an include 
file?


  echo 'line-width = 200\pt' > settings.ly

on the commandline, and doing

\paper {
  \input "settings.ly"
}

in the .ly file.

Adding lots and lots of -d settings will overwhelm users when they type 
-dhelp, and it will be confusing, as different paper variables influence 
each other. For example, the default for line-width depends on the paper 
size, so what should  happen when you do


  -dpaper-size="a4" -dline-width="16.\cm"

and what if

  -dline-width="16.\cm" -dpaper-size="a4"

--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: -d option for first-page-number?

2006-10-16 Thread Rick Hansen (aka RickH)

Yes, I suppose my batch job script can just copy the appropriate file into
"settings.ly" then invoke lilypond.  In fact this will also solve my first
page number and many other cases where I want to control my scores via the
job stream.  I can keep a repository of various "settings-forwhatever.ly"
files then the first step of my job can simply copy whatever settings I want
into "settings.ly" in the path that the .ly file \include references.

This method seems cleaner and more universal to me than the -d options.

Thanks




Han-Wen Nienhuys-2 wrote:
> 
> Rick Hansen (aka RickH) schreef:
>> A -d option to set the \paper first-page-number property from the command
>> line job would be a real handy thing to have.  Many people I assume, like
>> me, often print a score for inclusion into another separate book, or
>> concatenation with a bunch of other PDF files.  It would be nice to not
>> have
>> to edit the .ly file just to get the score to start out with the desired
>> page number for that particular usage instance.
>> 
>> Can someone add this easily?
>> 
>> Also many or all of the \paper properties would be good candidates for -d
>> options, like giving the ability to adjust staff spacing, staff count and
>> paper sizes from the job stream instad of having to edit the .ly files. 
>> Just like most word processors give you the ability to print on different
>> sizes of paper without having to modify your original document.
> 
> I can understand that need, but isn't it easier to simply use an include 
> file?
> 
>echo 'line-width = 200\pt' > settings.ly
> 
> on the commandline, and doing
> 
> \paper {
>\input "settings.ly"
> }
> 
> in the .ly file.
> 
> Adding lots and lots of -d settings will overwhelm users when they type 
> -dhelp, and it will be confusing, as different paper variables influence 
> each other. For example, the default for line-width depends on the paper 
> size, so what should  happen when you do
> 
>-dpaper-size="a4" -dline-width="16.\cm"
> 
> and what if
> 
>-dline-width="16.\cm" -dpaper-size="a4"
> 
> -- 
> 
> Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
> 
> LilyPond Software Design
>   -- Code for Music Notation
> http://www.lilypond-design.com
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-d-option-for-first-page-number--tf2454586.html#a6842358
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Scheme question

2006-10-16 Thread Han-Wen Nienhuys

Rick Hansen (aka RickH) schreef:

I would like to "dynamically generate" values for the following 3 hard-coded
properties based on a rule, and the current default paper size, but I dont
know scheme:

paper-height = 11.0\in
paper-width = 8.5\in
line-width = 7.7\in

So basically how would I code the above hard coded values to be math
expressions based on the following rule:

I always want my left and right margins to be .4 inches.

So the formula for line with would be (default paper width - .8)

The formula for paper-height and paper-width would be whatever the default
paper currently is, but I dont know how to set it from those values.


this is possible in CVS by doing

\paper {
  right-margin = #(* 5 cm)
  left-margin = #(*  5 cm)
  #(set-paper-size "a4")
}


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Why No Page Numbers?

2006-10-16 Thread Martial

Just add  print-page-number = ##t


 \paper
 {
 first-page-number = 1
 print-first-page-number = ##t
 print-page-number = ##t
 }





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


Re: Scheme question

2006-10-16 Thread Rick Hansen (aka RickH)

Thanks, so line-width will take whatever is left over after the margins are
set and the paper size established?




Han-Wen Nienhuys-2 wrote:
> 
> Rick Hansen (aka RickH) schreef:
>> I would like to "dynamically generate" values for the following 3
>> hard-coded
>> properties based on a rule, and the current default paper size, but I
>> dont
>> know scheme:
>> 
>>  paper-height = 11.0\in
>>  paper-width = 8.5\in
>>  line-width = 7.7\in
>> 
>> So basically how would I code the above hard coded values to be math
>> expressions based on the following rule:
>> 
>> I always want my left and right margins to be .4 inches.
>> 
>> So the formula for line with would be (default paper width - .8)
>> 
>> The formula for paper-height and paper-width would be whatever the
>> default
>> paper currently is, but I dont know how to set it from those values.
> 
> this is possible in CVS by doing
> 
> \paper {
>right-margin = #(* 5 cm)
>left-margin = #(*  5 cm)
>#(set-paper-size "a4")
> }
> 
> 
> -- 
> 
> Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
> 
> LilyPond Software Design
>   -- Code for Music Notation
> http://www.lilypond-design.com
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Scheme-question-tf2454705.html#a6842510
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Scheme question

2006-10-16 Thread Han-Wen Nienhuys

Rick Hansen (aka RickH) schreef:

Thanks, so line-width will take whatever is left over after the margins are
set and the paper size established?



yes.


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Why are variables received by #(define-music-function) unbound in #{ #(scheme code here?) #}

2006-10-16 Thread Nicolas Sceaux
"Marcus Macauley" <[EMAIL PROTECTED]> writes:

> Either I've found a bug, or (more likely) I don't understand how
> variables  are passed between Lilypond and Scheme.
>
> Below is an example, where a #(define-music-function...) block
> receives a  variable, stringone. That variable seems to be accessible
> (i.e. bound, if  I have my terminology straight) in two places, but
> not accesible (i.e.  unbound) in the third place.
>
> 1. Accesible by Scheme code within #(define-music-function) but
> outside of  #{ #} block
> 2. Accessible by Lilypond input within #{ #} block
> 3. Not accesible by Scheme code within #{ #} block

It is, use a $ sign.

myfun =
#(define-music-function (parser location num)
(number?)
  #{
 \override TextScript #'padding = #(* 2 $num)
 %% or:
 %% \override TextScript #'padding = #$(* 2 num)
  #})

\myfun #3

This is somewhat equivalent to the following:

  #(define some-variable 3)
  \override TextScript #'padding = #(* 2 some-variable)

or, using the second version:

  #(define some-variable1 3)
  #(define some-variable2 (* 2 some-variable1))
  \override TextScript #'padding = #some-variable2

nicolas


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


Re: Making notes in Scheme?

2006-10-16 Thread Nicolas Sceaux
"Marcus Macauley" <[EMAIL PROTECTED]> writes:

> What I'm trying to do is create a music function whereby one can input
> certain starting values, like:
>
> \makeinfinityseries #2 #7 #1 #13
>
> Those values would be used to generate a pitch series; and then that
> pitch  series would be printed in the score.
>
> I've got a working version where I specify those values at the top of
> the  file, e.g.:
>
> firstNote = #2
> secondNote = #7
> octave = #1
> modulus = #13
>
> and those definitions are followed by the Scheme code, which ends with
> a  (make-music) thing that prints the music, without any \score block
> (or  which is assigned to an identifier that I call from within the
> \score  block).

You may have a look at this article:
.

Note that it was written for a previous version of LilyPond, where
define-music-function was then called def-music-function, and other
things may be outdated.

nicolas


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


Re: Making notes in Scheme?

2006-10-16 Thread Erik Sandberg
On Sunday 15 October 2006 22:59, Marcus Macauley wrote:
> Nicolas Sceaux wrote:
> And because it's possible to manually type notes within a music function
> in Scheme, e.g.:
>
> function =
> #(define-music-function (parser location var1) (integer?)
> #{
>   c'4 d' e'
> #})
>
> It seems like it should also be possible to substitute variables for those
> notes, such as:
>
> #(define-music-function (parser location var1) (integer?)
> #{
>   $firstnote #(list-ref notes 1) #(list-ref notes 2)
> #})
>
>
>  From what I can tell, the key is the "ly:music" data type, but I don't
> know how to to use that from within Scheme, if it's even possible, much
> less how (if possible) to convert e.g. strings to ly:music.
>
> The "ly:export" function may also have something to do with it, but if so,
> I haven't figured out quite what.

normally, the return value of a scheme expression is thrown away by the 
parser; ly:export is used to mark expressions that instead should be 
interpreted as music. So what you wanted above is something like:

 #(define-music-function (parser location var1) (integer?)
 #{
   $firstnote #(ly:export (list-ref notes 1)) #(ly:export (list-ref notes 
2))
 #})

Note that ly:export is built into make-music-function, so in that case you 
don't have to worry about it.

-- 
Erik



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


OOoLilyPond macro installation and use

2006-10-16 Thread Gordon Gilbert

Hi folks!

I looked at this idea of OOoLilypond, and thought -- what a fabulous idea 
for how I use Lilypond!  So I installed the latest Lily (2.9.23), and 
installed and followed slavishly the instructions to download and install 
the macro.


But it won't work!  It seemed to install just fine, although when I went 
to bind the macro, I had trouble following the instructions.  The biggest 
thing in that was that you used the word "Append" as part of the menu 
instructions.  After some cogitation, I figured out that the menu button I 
should try is "Import".


So now I had the macro installed, and I opened it, and inserted the lily 
code.  When I clicked Lilypond, it crashed OpenOffice.  OOo was kind 
enough to "recover" my document upon reopening, but now, when I type 
-M, I get a dialog with the following cryptic text in it:


A Scripting Framework error occurred while running the Basic script 
vnd.sun.star.script:OOoLilyPond.Main/main?language=Basic&location=application.


Message:  BasicProviderimpl::getScript: no script!
OK

Can anybody help me here?  I should say that I did this on my FreeBSD 
machine just now as I was composing the email.  but I installed the macro 
on my Windoze machine as well, but it simply wouldn't work on that.  Maybe 
somebody could help there too.  (Windows XP Pro, Lilypond 2.9.23-1)


Blessings,

Fr. Gordon Gilbert


+=+
| Angels' Roost Farm  |
|   Rev. Fr. Gordon Gilbert & Susan Gilbert   |
|   705-549-5056  |
|[EMAIL PROTECTED]  |
|[EMAIL PROTECTED] |
+=+


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