Vertical-Spacing

2009-08-07 Thread Jan-Peter Voigt

Hello Lilypond-Users,

I am trying to set an eight-voice choral score in four staffs (SATB).  
This is working out very well and my choir-singing fellows appreciate  
the nice look of my lilypond-scores.
Right now I am compiling a collection of pieces to a book. One of  
these pieces shows up with a phenomenom, wich I do not understand:
The default-staff-size is set to 16 - that makes 3 SATB-systems. But  
there is one page with only 2 systems leaving a lot of blank space in  
the middle. I tried to tweak with VerticalAxisGroup on Staff and on  
Lyrics, but that didn't change this. If I change the default-staff- 
size to 15 or 17, the blank fields shows up on different pages. I used  
'\set stanza' to save vertical space with dynamics and some annotations.
Annotate-spacing showed up a metric wich would indeed leave space for  
3 systems on the said pages.

How else can I try to prevent this?

I hope this is not an annoying blind-eyes-newbie-question!

Have a good day.
Regards, Jan-Peter.




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


Re: website: why do you use lilypond?

2009-08-07 Thread Tim Rowe
2009/8/6 Graham Percival gra...@percival-music.ca:

 True, but we haven't invented new copyright pieces for classical,
 Gregorian chant, etc.

 Those aren't covered by copyright.

And I gave numerous examples of pop songs that are not covered by
copyright, and there are lots more.

 I would have thought it better to have a
 recognisable pop song on the web site if we can. Elvis Presley might
 not exactly be current, but he was certainly popular!

 I don't think that any of his songs would become available until
 2050 or so -- assuming the big media companies don't extend
 copyright again in a few years.

As I said originally, Elvis Presley's hit Wooden Heart is *already*
public domain. It was a cover of a German folk song that goes back to
at least 1827. The English words are not public domain, but
(conveniently) Presley sang a verse of the German original which *is*.
So we could perfectly well obey copyright law by giving a couple of
bars of the German verse. Muß i' denn, muß i' denn, zum Städtele
hinaus, Presley public-domainly sang. It would be different if we
were posting his recording or that arrangement, but the song itself
and the German lyric shouldn't be a copyright issue.

 Or we could go back to earlier pop: She was poor but she was honest... ;-)

 If that's a reference to my let's obey copyright law, even if we
 have poorer examples, then yes.  If that's a reference to a
 pre-1926 pop song, then it obviously went over my head.  :)

It's a pre-1926 pop song (probably -- certainly pre-1930). Music Hall,
composer unknown. Probably best known for the verse It's the same the
'ole world over / ain't it just a bloomin' shame, / it's the rich what
gets the pleasure / it's the poor what gets the blame.

-- 
Tim Rowe


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


Re: Vertical-Spacing

2009-08-07 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Freitag, 7. August 2009 14:17:22 schrieb Jan-Peter Voigt:
 Right now I am compiling a collection of pieces to a book. One of
 these pieces shows up with a phenomenom, wich I do not understand:
 The default-staff-size is set to 16 - that makes 3 SATB-systems. But
 there is one page with only 2 systems leaving a lot of blank space in
 the middle. 

I suppose your score has 3*n + 2 systems, right? Lilypond then has to decide 
which page to assign 2 systems... You might force it to 3 systems per page by 
using systems-per-page=3 (AFAIR that should go into the paper block), or you 
might simply set ragged-last-bottom=##f, so the last page will not claim 3 
pages.

Cheers,
Reinhold
- -- 
- --
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKfDDmTqjEwhXvPN0RApO6AJsGKW4FzVJB5+SggSefPT+KT6kCmQCgqChx
eUEJMEiyNWqnJo5zdcYNY3k=
=8bIy
-END PGP SIGNATURE-


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


How do you shorten a hairpin?

2009-08-07 Thread Frederick Dennis
Dear All,
When I try to shorten a hairpin on a minim (half note) using
 { } \\ { }  and spacers, the lyrics ignore the note.
I've tried Keiren's scheme code from a few versions ago
without success.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do you shorten a hairpin?

2009-08-07 Thread Kieren MacMillan

Hi Frederick,


When I try to shorten a hairpin on a minim (half note) using
 { } \\ { }  and spacers, the lyrics ignore the note.


Try

 {} \new Voice {} 

where the notes for the lyrics are in the first {} and the spacers  
are in the second {}. That should solve your problem.


I've tried Keiren's scheme code from a few versions ago without  
success.


Hmmm... I'll have to go back and see what's going on there. This is  
going to be my Autumn of Lilypond, so I may finally get around to  
coding a Scheme function which supports (or at least automagically  
fakes) arbitrary bound-padding and shifting of hairpins.


Hope this helps!
Kieren.


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


Re: problems with learning lilypond

2009-08-07 Thread Simon Mackenzie

Agreed!!!

Eg. What does it mean on page 34 of the Learning Tutorial when it  
says...


Variables must be defined before the main music expression.

Does this mean the \score { } or does it mean the expression in which  
the declared variable is referenced?


Because I dutifully declare my variables before the \score { } in my  
script file using the example template from A.1.4 Notes, lyrics and  
chords on page 143, again of the learning manual.

End result...
This error when I compile my script

Unexpected string  errors for every variable I've declared and no  
idea as to why the template example fails to perform as claimed in the  
documentation.


harmonies = \chordmode {...
melody = \lyricmode {... etc. generate Unexpected string errors

Simon

On 22/11/2008, at 06:56, John Sellers wrote:

I have no argument with what you say about the documentation  
compared with many kinds of technical documentation, as long as you  
stick close to home.


The Lilypond folks work hard and do a lot of nice stuff, including  
documentation.


However, that doesn't change the facts of what I say.

The origin of the problem is that developers don't have to walk the  
path of the newbies from beginning to end and it is very difficult  
to provide a whole documentation structure that is truly responsive  
to those kind of needs...so most technical documentation the world  
over never does successfully do so.


HOWEVER, MAY I POINT OUT DOING SO IS PROBABLY THE MOST PRODUCTIVE  
THING YOU COULD DO TO LILYPOND TO ASSURE ITS FUTURE GROWTH AND  
SUCCESS!.


Good wishes, John Sellers

Federico Grau wrote:


I've found the lilypond documentation to be quite good (after  
having been
using it now for about a year).  It starts with an introduction,  
has a

friendly gentle tutorial, followed up by a detailed reference.

If you're not able to use it, maybe start with a simple project.   
As you
become more comfortable you can expand and take on more complex  
projects.
There are plenty of example templates to get one started at the  
bottom of the
documenation, and you'll likely end up taking the useful parts to  
create

your own template (mine is
http://www.casagrau.org/~donfede/lily/lilypond_template.ly ).

happy notating,
donfede




On Wed, Nov 19, 2008 at 12:54:39AM -0800, John Sellers wrote:

I am in Silicon Valley.  I've never met and talked to another  
lilypond

user face to face.  It is lonely out here.

I've used lilypond off and on for a few years AND HAVE NEVER BEEN  
ABLE

TO REALLY LEARN IT WELL!

There are five reasons

1) lack of context
2) lack of context
3) lack of context
4) lack of context
5) lack of context
6) NOTHING HAS MEANING WITHOUT CONTEXT --- EVER!

I'm very tired of having a few hours to do something different,  
going to

lilypond documentation and getting something like

use such and such to do so and so.

fine so far. but how in God's Green Earth am I going to use  
something like:


\paper {}

If I don't know what context it works and what context it does not
work?  If like an idiot I go into my LY file and insert paper and  
put my

between-system-space or anything ELSE on the same page with a lot of
other variables which control things.  Why don't they ALL work  
WHENEVER

I try to use them...the answer is of course LACK OF CONTEXT.  For
correct context, I have to put the \paper {}  in the right part of  
the

program.  I have to tie the variables to whatever they are going to
effect.  Or do I?  I haven't a clue.  Why.here we go  
againLACK

OF CONTEXT.

Here is one way you can solve this problem.

NEVER DOCUMENT ANYTHING OUT OF CONTEXT except with a link that  
LEADS TO

THE CORRECT CONTEXT.

YOU HAVE TO BE SYSTEMATIC!  Consider the following:

Every feature must be documentedright? So are we talking about a
desert of documented sand pebbles in a jar or are there  
relationships

between them?  WOW!  there are DEPENDENCIES --- A dependences are B
depends on C --- oops, C depends on A NOT GOOD.

So what is one to do?  Well, you could use a topological sort of all
capability dependencies using generality as the sort  
discriminant.  Find
all the cycles and BREAK THEM.  Organize things in this way so now  
you

have a structure which has an entry point for the user for every
feature.  Look, dependency is just another way of say CONTEXT.  If
context goes in a circle then you end up defining  A grumpet B   
and then
defining B as anti-grumpet A, which is has no more meaning than  
being a

tautology.

In the best of all worlds, a user coming to the documentation WITH  
NO
KNOWLEDGE OF LILYOND in wanting to do something like control  
vertical
spacing, and if you linked back to more and more general contexts  
with
clear examples and explanations in a systematic way, then at some  
point
you would reach the context that includes the user's context, and  
there

the user can make the connection of how to find the way to apply
vertical spacing to his/her specific situation.


A3 book

2009-08-07 Thread Federico Bruni

Hi all,

I'm using lilypond-book and LaTeX to gather some .ly files together in 
a book.

It worked well with A4 settings..

Now I need to change to A3 (because the printer shop says it can print 
easily in A3 if the source file is A3).
So the document must be twoside, which is the default setting in the 
book class.
Unfortunately, the output is still oneside. Even if I specify twoside 
in the documentclass preferences, nothing changes.


What am I doing wrong?


This is my book.lytek:

\documentclass[a3paper]{book}
\usepackage {graphicx}
\usepackage {fullpage}


\begin {document}
\setlength{\oddsidemargin}{-1.3cm}
\setlength{\topmargin}{5pt}
\setlength{\footskip}{4pt}
\setlength{\voffset}{1.5pt}


\chapter*{Blues per un Albero}
\lilypondfile[noindent,line-width=18\cm,staffsize=22.45]{ly/BluesPerUnAlbero.ly}

% and the other files

\end{document}


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


publish to website

2009-08-07 Thread Gerard McConnell

AFAIK to put an image on a web-page, I need a bitmap, not a .pdf.  I can't find 
any reference to .png in any of the docs.  So far I've been using 
alt-printScreen and Paint to produce .png files.  While this sort of works, I'm 
not getting the best output that Lilypond can deliver, due to minor 
inconsistencies in barline width and notehead placement. I would prefer to get 
this right, since I state on the website that I'm using Lilypond for score 
creation.  What should I be doing to place a Lilypond score on my webpages?

Thanks for any help,
Gerard___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: conditionally eliminating lyric extender

2009-08-07 Thread Trevor Daniels


Hi Kieren,


I'm not sure I understand the need for this.
I would not normally use a lyric extender
unless the syllable had an extended duration
over several notes or was sung to a long note.
This occurs far less frequently than a 2-note melisma.

Do you attach lyric extenders unconditionally
to every syllable sung to a melisma?


Yes:

1. According to the engraving histories/guides I've read, there 
should be an extender after *every* [final] melisma syllable


Aah - final syllable - yes!  And it's needed whether it's a melisma
or not if the final note is long, as it often is.

regardless of how short (including negative) that extender line 
would  end up being.


2. One can't possibly know in advance how wide the final engraved 
note spacing will be relative to the length of the lyric 
syllable —  hence one should *always* include extenders so that 
Lilypond can DTRT  depending on the spacing requirements [of 
different editions,  alternative system breaks, etc.].


OK, I agree your automatic length calculation would be a nice 
feature,

with negative lengths resulting in no extender being printed.

this seems to be the standard practice in the vocal scores I'm 
familiar with.


Recently, I've seen a lot of scores that don't use extenders 
*ever*... but I think this is a horrible practice which makes 
sight- singing more difficult.


Agreed.  They are definitely helpful when the duration of the 
note(s) in
the score is significantly longer than the associated printed 
syllable.


Trevor



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


Re: publish to website

2009-08-07 Thread Alexander Kobel

Gerard McConnell wrote:
AFAIK to put an image on a web-page, I need a bitmap, not a .pdf.  I 
can't find any reference to .png in any of the docs. [...]


Hi, Gerard,

have a look at 
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/Command-line-options-for-lilypond#Command-line-options-for-lilypond 
for the available output options, which include both PNG and SVG.


In short, you probably want to use the following command:
lilypond --png -dresolution=someInteger input.ly


Cheers,
Alexander


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


git

2009-08-07 Thread Gerard McConnell
To use git I would need a compiler to build it?

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


Re: problems with learning lilypond

2009-08-07 Thread Simon Mackenzie

Ok it appears to be a scoping issue.
So I need to declare variables outside the \book scope? Is this correct?
But if my script file is included inside a \book scope how can i then  
declare new variables inside this scope?


Simon

On 07/08/2009, at 21:55, Simon Mackenzie wrote:


Agreed!!!

Eg. What does it mean on page 34 of the Learning Tutorial when it  
says...


Variables must be defined before the main music expression.

Does this mean the \score { } or does it mean the expression in  
which the declared variable is referenced?


Because I dutifully declare my variables before the \score { } in my  
script file using the example template from A.1.4 Notes, lyrics and  
chords on page 143, again of the learning manual.

End result...
This error when I compile my script

Unexpected string  errors for every variable I've declared and no  
idea as to why the template example fails to perform as claimed in  
the documentation.


harmonies = \chordmode {...
melody = \lyricmode {... etc. generate Unexpected string errors

Simon

On 22/11/2008, at 06:56, John Sellers wrote:

I have no argument with what you say about the documentation  
compared with many kinds of technical documentation, as long as you  
stick close to home.


The Lilypond folks work hard and do a lot of nice stuff, including  
documentation.


However, that doesn't change the facts of what I say.

The origin of the problem is that developers don't have to walk the  
path of the newbies from beginning to end and it is very difficult  
to provide a whole documentation structure that is truly responsive  
to those kind of needs...so most technical documentation the world  
over never does successfully do so.


HOWEVER, MAY I POINT OUT DOING SO IS PROBABLY THE MOST PRODUCTIVE  
THING YOU COULD DO TO LILYPOND TO ASSURE ITS FUTURE GROWTH AND  
SUCCESS!.


Good wishes, John Sellers

Federico Grau wrote:


I've found the lilypond documentation to be quite good (after  
having been
using it now for about a year).  It starts with an introduction,  
has a

friendly gentle tutorial, followed up by a detailed reference.

If you're not able to use it, maybe start with a simple project.   
As you
become more comfortable you can expand and take on more complex  
projects.
There are plenty of example templates to get one started at the  
bottom of the
documenation, and you'll likely end up taking the useful parts  
to create

your own template (mine is
http://www.casagrau.org/~donfede/lily/lilypond_template.ly ).

happy notating,
donfede




On Wed, Nov 19, 2008 at 12:54:39AM -0800, John Sellers wrote:

I am in Silicon Valley.  I've never met and talked to another  
lilypond

user face to face.  It is lonely out here.

I've used lilypond off and on for a few years AND HAVE NEVER BEEN  
ABLE

TO REALLY LEARN IT WELL!

There are five reasons

1) lack of context
2) lack of context
3) lack of context
4) lack of context
5) lack of context
6) NOTHING HAS MEANING WITHOUT CONTEXT --- EVER!

I'm very tired of having a few hours to do something different,  
going to

lilypond documentation and getting something like

use such and such to do so and so.

fine so far. but how in God's Green Earth am I going to use  
something like:


\paper {}

If I don't know what context it works and what context it does not
work?  If like an idiot I go into my LY file and insert paper and  
put my
between-system-space or anything ELSE on the same page with a lot  
of
other variables which control things.  Why don't they ALL work  
WHENEVER

I try to use them...the answer is of course LACK OF CONTEXT.  For
correct context, I have to put the \paper {}  in the right part  
of the

program.  I have to tie the variables to whatever they are going to
effect.  Or do I?  I haven't a clue.  Why.here we go  
againLACK

OF CONTEXT.

Here is one way you can solve this problem.

NEVER DOCUMENT ANYTHING OUT OF CONTEXT except with a link that  
LEADS TO

THE CORRECT CONTEXT.

YOU HAVE TO BE SYSTEMATIC!  Consider the following:

Every feature must be documentedright? So are we talking  
about a
desert of documented sand pebbles in a jar or are there  
relationships

between them?  WOW!  there are DEPENDENCIES --- A dependences are B
depends on C --- oops, C depends on A NOT GOOD.

So what is one to do?  Well, you could use a topological sort of  
all
capability dependencies using generality as the sort  
discriminant.  Find
all the cycles and BREAK THEM.  Organize things in this way so  
now you

have a structure which has an entry point for the user for every
feature.  Look, dependency is just another way of say CONTEXT.  If
context goes in a circle then you end up defining  A grumpet B   
and then
defining B as anti-grumpet A, which is has no more meaning than  
being a

tautology.

In the best of all worlds, a user coming to the documentation  
WITH NO
KNOWLEDGE OF LILYOND in wanting to do something like control  
vertical
spacing, and if you linked back to more and more 

Re: git

2009-08-07 Thread Francisco Vila
2009/8/7 Gerard McConnell gerry...@indigo.ie:
 To use git I would need a compiler to build it?

Which OS do you use?
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org
www.csmbadajoz.com


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


Beam direction with \new Voice

2009-08-07 Thread lilypond

Hello,

I'm sorry if this is a very simple problem and has been covered  
before. I've searched the archives and haven't found an answer, so I'm  
hoping someone will be able to help me!


I am working on a song that includes something like this:
 { some notes } \\ { some more notes } 

However, the lyrics skipped these notes so I had a look in the  
archives and found that I could change it to the following:


 { some notes } \new Voice { some more notes } 

This works for the lyrics, but the notes now don't pay any attention  
to each other and the beams now point towards rather than away from  
each other and so clash. Is there a way to manually change these beams  
without turning autobeams off for the whole song?


Thank you,
Heike



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


Re: Beam direction with \new Voice

2009-08-07 Thread James E. Bailey


On 07.08.2009, at 18:30, lilyp...@cappel.co.uk wrote:


Hello,

I'm sorry if this is a very simple problem and has been covered  
before. I've searched the archives and haven't found an answer, so  
I'm hoping someone will be able to help me!


I am working on a song that includes something like this:
 { some notes } \\ { some more notes } 

However, the lyrics skipped these notes so I had a look in the  
archives and found that I could change it to the following:


 { some notes } \new Voice { some more notes } 

This works for the lyrics, but the notes now don't pay any  
attention to each other and the beams now point towards rather than  
away from each other and so clash. Is there a way to manually  
change these beams without turning autobeams off for the whole song?


Thank you,
Heike



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


You'll need \voiceOne and \voiceTwo (and \oneVoice) for this  
construction. You may also need to name your second Voice context.  
For reference, you'll want to re-read section 1.5.2 of the Notation  
Reference, Multiple Voices.


HTH,

James E. Bailey



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


Re: Beam direction with \new Voice

2009-08-07 Thread Kieren MacMillan

Hi Heike,

You'll need \voiceOne and \voiceTwo (and \oneVoice) for this  
construction.

You may also need to name your second Voice context.
For reference, you'll want to re-read section 1.5.2 of the Notation  
Reference, Multiple Voices.


Here's a function that might help.

Cheers,
Kieren.

___

\version 2.13
#(ly:set-option 'point-and-click #f)

split = #(define-music-function (parser location upper lower)  
(ly:music? ly:music?)
#{  { \voiceOne $upper } \context Voice = 2 { \voiceTwo $lower }  
 \oneVoice #})


splitMusic = \relative
{
  c'4 b a b \split { c1 b4( a) g2 } { c,4 d e f g1 }
}

theWords = \lyricmode {
  This is how we split mu -- sic!
}

\score
{
  
\new Voice = melody \splitMusic
\new Lyrics \lyricsto melody { \theWords }
  
}


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


Re: Vertical-Spacing

2009-08-07 Thread Jan-Peter Voigt

Thanks alot! So it was kind of a blind-eye-mistake ...
Now I use:
ragged-last-bottom = ##t
ragged-bottom = ##f

Both were set to #f, so all pages got filled up. I did'nt see that  
anymore, because I put my paper-defs in a file paper.ly that all  
source-files include - so they have all the same dimensions.

Now all the files for this project have a structure like this:

\include paper.ly
sopran = \relative c'' { ... }
soptext = \lyricmode { ... }
...
\bookpart {
\header {
title = 
...
}
\tocItem \markup { title }
\score {
...
}
}

That way I can compile every piece by itself and also a file  
compilation.ly, wich includes a table of contents and all pieces.


Have a good time,
Jan-Peter.

Am 07.08.2009 um 15:49 schrieb Reinhold Kainhofer:

Am Freitag, 7. August 2009 14:17:22 schrieb Jan-Peter Voigt:

Right now I am compiling a collection of pieces to a book. One of
these pieces shows up with a phenomenom, wich I do not understand:
The default-staff-size is set to 16 - that makes 3 SATB-systems. But
there is one page with only 2 systems leaving a lot of blank space  
in

the middle.


I suppose your score has 3*n + 2 systems, right? Lilypond then has  
to decide
which page to assign 2 systems... You might force it to 3 systems  
per page by
using systems-per-page=3 (AFAIR that should go into the paper  
block), or you
might simply set ragged-last-bottom=##f, so the last page will not  
claim 3

pages.

Cheers,
Reinhold



sorry for sending you this twice ... I didn't reply to the list ...___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


\context for named Staff

2009-08-07 Thread Jonathan Wilkes

Hello again,
 I'm trying to resize one staff in a flute/piano duet, and I can't 
figure out the right way to do it.  Here's the format I tried:

\layout {
  \context { \Staff = staffFlute
% stuff to resize this particular staff
  }
}

But I guess it's not possible to refer to a specific instance of a Staff 
in the layout block (at least I couldn't find any reference to doing this). 
If this is true, then how do you do staff size changes- like making the 
flute staff smaller for the piano score- without doing everything manually 
for each score/part?

-Jonathan


  


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


Re: \context for named Staff

2009-08-07 Thread James E. Bailey
If it's just for the piano score, I would just make that change in  
the piano score \new Staff \with { resize }. Is there more than one  
score that needs this adjustment?



On 07.08.2009, at 21:18, Jonathan Wilkes wrote:



Hello again,
 I'm trying to resize one staff in a flute/piano duet, and I can't
figure out the right way to do it.  Here's the format I tried:

\layout {
  \context { \Staff = staffFlute
% stuff to resize this particular staff
  }
}

But I guess it's not possible to refer to a specific instance of a  
Staff
in the layout block (at least I couldn't find any reference to  
doing this).
If this is true, then how do you do staff size changes- like making  
the
flute staff smaller for the piano score- without doing everything  
manually

for each score/part?

-Jonathan





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


James E. Bailey



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


Re: \context for named Staff

2009-08-07 Thread Jonathan Wilkes

Hi James,
 Well, there would be two.  Actually, if it's possible, I would like 
to have three scores:
1) Flute score, with a small PianoStaff
2) Piano score, with a small flute staff
3) Study score, with both staves the same size (I probably wouldn't do 
this one if working in Finale, but if I don't have to worry about spacing 
in Lilypond then what the heck... :)

I'm also thinking in general if there's a piano score, the other 
instruments should have small staves.  I initially thought this was one of 
the reasons for having a layout block, but I just started utilizing it so 
maybe I'm wrong.

-Jonathan

--- On Fri, 8/7/09, James E. Bailey derhindem...@googlemail.com wrote:

 From: James E. Bailey derhindem...@googlemail.com
 Subject: Re: \context for named Staff
 To: Jonathan Wilkes jancs...@yahoo.com
 Cc: lilypond-user@gnu.org
 Date: Friday, August 7, 2009, 9:40 PM
 If it's just for the piano
 score, I would just make that change in the piano score
 \new Staff \with { resize }. Is there more than one
 score that needs this adjustment?
 
 
 On 07.08.2009, at 21:18, Jonathan Wilkes
 wrote:
 
 Hello
 again,    
 I'm trying to resize one staff in a flute/piano
 duet, and I can't figure
 out the right way to do it.  Here's the
 format I tried:
 \layout
 {  \context {
 \Staff = staffFlute    % stuff
 to resize this particular staff  }}
 But
 I guess it's not possible to refer to a specific
 instance of a Staff in
 the layout block (at least I couldn't find any reference
 to doing this). If
 this is true, then how do you do staff size changes- like
 making the flute
 staff smaller for the piano score- without doing everything
 manually for
 each score/part?
 -Jonathan
 
 
 
 
 ___lilypond-user
 mailing 
 listlilypond-u...@gnu.orghttp://lists.gnu.org/mailman/listinfo/lilypond-user
 
  James
 E. Bailey
 
  
 





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


Re: \context for named Staff

2009-08-07 Thread Mark Polesky

Jonathan Wilkes wrote:
 But I guess it's not possible to refer to a specific instance of
 a Staff in the layout block (at least I couldn't find any
 reference to doing this).

Not that I know of, but I've always silently wished for this.
I'll ask the developers.

 If this is true, then how do you do staff size changes- like
 making the flute staff smaller for the piano score- without
 doing everything manually for each score/part?

At the moment, this is the best I can come up with.

Does this help?
- Mark

***

\version 2.13.4-1

#(define (inverse-magstep x)
  (* 6 (/ (log x) (log 2

smallStaff = {
  #(define factor 3/4)
  \set Staff.fontSize = #(inverse-magstep factor)
  \override Staff.StaffSymbol #'staff-space = #factor
}

\score {
  
  \new Staff = staffFlute  {
\smallStaff
c''
  }
  \new PianoStaff = staffPiano

  \new Staff { c'' }
  \new Staff { \clef bass c }

  
}


  


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


Re: \context for named Staff

2009-08-07 Thread Mark Polesky

Mark Polesky wrote:

 #(define (inverse-magstep x)
   (* 6 (/ (log x) (log 2

Just noticed the scheme procedure magnification-font-size already
defined in font.scm... Use that and get rid of my inverse-magstep.

- Mark



  


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


Re: publish to website

2009-08-07 Thread Patrick Horgan




Gerard McConnell wrote:

  
  
  
  
  AFAIK to put an image on a web-page,
I need a bitmap, not a .pdf.I can't find any reference to .png in any
of thedocs. So far I've been using alt-printScreen and Paint to
produce .png files. While this sort of works, I'm not getting the best
output that Lilypond can deliver, due to minor inconsistencies in
barline width and notehead placement. I would prefer to get this right,
since I state on the website that
I'm using Lilypond for score creation. What should I
be doing to place a Lilypond score
on my webpages?

If you're on anything that can act like a mac or linux, use Jonathan
Kulp's lily2image script it does a great job of making the image and
you can even use transparency. Great work Jonathan. It's been posted
here, but I don't know if it comes with lilypond yet.

Patrick





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


Re: Beam direction with \new Voice

2009-08-07 Thread lilypond

Hi Kieren, hi James,

Thank you very much to both of you, that was exactly what I was looking for!

Heike

Quoting Kieren MacMillan kieren_macmil...@sympatico.ca:


Hi Heike,


You'll need \voiceOne and \voiceTwo (and \oneVoice) for this construction.
You may also need to name your second Voice context.
For reference, you'll want to re-read section 1.5.2 of the Notation  
 Reference, Multiple Voices.


Here's a function that might help.

Cheers,
Kieren.

___

\version 2.13
#(ly:set-option 'point-and-click #f)

split = #(define-music-function (parser location upper lower)
(ly:music? ly:music?)
#{  { \voiceOne $upper } \context Voice = 2 { \voiceTwo $lower } 
\oneVoice #})

splitMusic = \relative
{
  c'4 b a b \split { c1 b4( a) g2 } { c,4 d e f g1 }
}

theWords = \lyricmode {
  This is how we split mu -- sic!
}

\score
{
  
\new Voice = melody \splitMusic
\new Lyrics \lyricsto melody { \theWords }
  
}






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


Re: publish to website

2009-08-07 Thread Patrick Horgan




Patrick Horgan wrote:

  
Gerard McConnell wrote:
  




AFAIK to put an image on a
web-page,
I need a bitmap, not a .pdf.I can't find any reference to .png in any
of thedocs. So far I've been using alt-printScreen and Paint to
produce .png files. While this sort of works, I'm not getting the best
output that Lilypond can deliver, due to minor inconsistencies in
barline width and notehead placement. I would prefer to get this right,
since I state on the website that
I'm using Lilypond for score creation. What should I
be doing to place a Lilypond score
on my webpages?
  
If you're on anything that can act like a mac or linux, use Jonathan
Kulp's lily2image script it does a great job of making the image and
you can even use transparency. Great work Jonathan. It's been posted
here, but I don't know if it comes with lilypond yet.

Usage: lily2image [-v] [-t] [-rN] [-fFORMAT] filename
 -vprint version number and quit
 -a   about - tell about us and exit
 -t   indicates transparency is desired
 -r=N   set resolution to N (usually 72-2000)
 -f=FORMAT  set format to FORMAT one of:
 jpeg, png, tiff, gif, pcx, bmp . . .
 -V=viewer  set image viewer, examp: -V=evince
 filename  a lilypond file
 -q   quiet mode - no echoes, error code on exit
 -p   show created image in a viewer
 Creator   Jonathan Kulp
 Gadfly   Patrick Horgan
 Chief Beta Tester Josh Parmenter


Patrick
  

___
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: \context for named Staff

2009-08-07 Thread Jonathan Wilkes

 Thanks, Mark, I'll try this out and let you know how it works.

-Jonathan

--- On Fri, 8/7/09, Mark Polesky markpole...@yahoo.com wrote:

 From: Mark Polesky markpole...@yahoo.com
 Subject: Re: \context for named Staff
 To: Mark Polesky markpole...@yahoo.com, Jonathan Wilkes 
 jancs...@yahoo.com, lilypond-user@gnu.org
 Date: Friday, August 7, 2009, 10:25 PM
 
 Mark Polesky wrote:
 
  #(define (inverse-magstep x)
    (* 6 (/ (log x) (log 2
 
 Just noticed the scheme procedure
 magnification-font-size already
 defined in font.scm... Use that and get rid of my
 inverse-magstep.
 
 - Mark
 
 
 
       
 





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


Re: problems with learning lilypond

2009-08-07 Thread Trevor Daniels


Simon Mackenzie wrote Friday, August 07, 2009 3:55 PM


Eg. What does it mean on page 34 of the Learning Tutorial when it
says...

Variables must be defined before the main music expression.

Does this mean the \score { } or does it mean the expression in 
which

the declared variable is referenced?


The former, as shown quite clearly in the
template you mention below.

Because I dutifully declare my variables before the \score { } in 
my
script file using the example template from A.1.4 Notes, lyrics 
and

chords on page 143, again of the learning manual.
End result...
This error when I compile my script

Unexpected string  errors for every variable I've declared and 
no
idea as to why the template example fails to perform as claimed in 
the

documentation.

harmonies = \chordmode {...
melody = \lyricmode {... etc. generate Unexpected string errors


The template in the manual certainly does compile
without errors, as the image just below it is the
direct result of a compilation.  I suggest you
look at the template on the website at
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Single-staff#Single-staff

From this page you can either copypaste the code

directly, or click on the image of the music to
open the file directly (in the latter case you
will need to delete the first three lines).  These
files will then compile correctly (I've just tried
it).


From the error message it looks as if you are

inserting braces round the whole.  Variable
definitions come before any braces.

I'll add a bit to the manual to make that clear.

Trevor



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