\skip substitute in lyrics?

2009-01-18 Thread Alberto Simões
Hello

Is there any way to compact this kind of construct?


sopWordsB = \lyricmode {
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4 \skip 4
  Re- cor- da- ...
}

The idea is to add more than one line of lyrics to some portions of the
music.

Thanks
Alberto

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: \skip substitute in lyrics?

2009-01-18 Thread Kieren MacMillan

Hi Alberto


Is there any way to compact this kind of construct?


The simplest way is probably

sopWordsB = \lyricmode {
  \repeat "unfold" 48 { \skip 4 }
  Re- cor- da- ...
}

Of course, there are more complicated ways as well (using \set  
associatedVoice, etc.).


Hope this helps!
Kieren.


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


Re: \skip substitute in lyrics?

2009-01-18 Thread Alberto Simões


Kieren MacMillan wrote:
> Hi Alberto
> 
>> Is there any way to compact this kind of construct?
> 
> The simplest way is probably
> 
> sopWordsB = \lyricmode {
>   \repeat "unfold" 48 { \skip 4 }
>   Re- cor- da- ...
> }
> 
> Of course, there are more complicated ways as well (using \set
> associatedVoice, etc.).
> 
> Hope this helps!

Yes, it helps! Thank you so much!
Alberto

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: LilyPond 2.12.1 and TeXShop 2.18 - problems with LilypondLaTeX.engine solved (OS X 10.4 Tiger)

2009-01-18 Thread Kieren MacMillan

Hi,

I believe to have solved the problem by modifying Nicola  
Vitacolonna's script


I used your script, but still get the error:


tcsh: cp: No match.
Python 2.4 or newer is required to run this program.
Please upgrade Python from http://python.org/download/, and if you  
use MacOS X,

please read 'Setup for MacOS X' in Application Usage.


and I get automatically (which is IRRITATING!!) taken to the python  
website. [I have Python 2.5 installed.]


Any hints/help would be appreciated.
Thanks,
Kieren.


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


Suggestion for Notation Reference

2009-01-18 Thread Lasse Rempe

I have a couple of suggestions regardin the (excellent) notation reference.

In 1.8.1, the following is used as an example for text marks:

c4
\mark "Allegro"
c c c

Here the mark is presumably placed after the first note to give the 
appearance that the text stands at the beginning of the bar. In my 
opinion, this is not very "clean" notation, because the desired effect 
does not actually correspond to the logical structure of the lilypond 
file (where the Allegro is only specified _after_ the first c).


Wouldn't it be better to have:

\override Score.RehearsalMark #'self-alignment-X = #LEFT
\mark "Allegro"
c4 c c c

for this type of example (perhaps after first demonstrating that 
standard behavior without the "\override" line results in the text being 
centered). The same applies to the next example ("colla parte").


[In any case, I feel it would be good to have the above behavior, of 
left-aligned marks, documented in this section.]


It is perhaps worth illustrating that a mark can also be placed between 
notes, as in the original example, but it seems that logically this 
would make more sense to do so further down the article, where the text 
reads "depending on whether they are specified at the end or the middle 
of a bar, they can be placed above the bar line or between notes".


Furthermore, many of the examples seem to contain tempo indicators like 
"Allegro", which may give the impression (it did to me) that this is the 
standard way of typesetting these. So it would perhaps be good to write 
somewhere in the "text marks" section: "Note that tempo indications can 
also be typeset as described in [Metronome marks].", with a 
corresponding link.


Finally, the name of the "metronome marks" section (which is hidden a 
little bit away; I would have looked for it under "text" rather than 
under "writing parts" - would it be possible to add a link at the top of 
the 'text' section, as done for vocal music?) is somewhat misleading. 
Would it perhaps be helpful to change this to "Metronome marks and tempo 
indications"?




Many thanks to everyone who has contributed to the really useful 
documentation by the way - it's always a great help! (And despite the 
above niggles, I did eventually find what I was looking for in this 
instance as well. :) )


I hope I was sufficiently clear in the description of my suggestions.

Lasse


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


Re: Suggestion for Notation Reference

2009-01-18 Thread Jonathan Kulp

Hi Lasse,

Just a quick note--I'm not the one who wrote the Text section but I can 
explain a couple of things.


The documentation policy requires that all examples in the main body of 
text be free of \override commands.  Examples that have overrides are 
added as snippets.  Since you have already created a snippet with the 
behavior you want, you could go ahead and add it to the Lilypond Snippet 
Repository if you like.


I'll leave it to the author(s) of this section to respond to your other 
observations.  I don't want to tread on their toes or mis-represent the 
thought-process they might have had in presenting things in the way they 
did.


Thanks for the suggestions.  We always appreciate specific and detailed 
suggestions about the documentation.  Best,


Jon

Lasse Rempe wrote:

I have a couple of suggestions regardin the (excellent) notation reference.

In 1.8.1, the following is used as an example for text marks:

c4
\mark "Allegro"
c c c

Here the mark is presumably placed after the first note to give the 
appearance that the text stands at the beginning of the bar. In my 
opinion, this is not very "clean" notation, because the desired effect 
does not actually correspond to the logical structure of the lilypond 
file (where the Allegro is only specified _after_ the first c).


Wouldn't it be better to have:

\override Score.RehearsalMark #'self-alignment-X = #LEFT
\mark "Allegro"
c4 c c c

for this type of example (perhaps after first demonstrating that 
standard behavior without the "\override" line results in the text being 
centered). The same applies to the next example ("colla parte").


[In any case, I feel it would be good to have the above behavior, of 
left-aligned marks, documented in this section.]


It is perhaps worth illustrating that a mark can also be placed between 
notes, as in the original example, but it seems that logically this 
would make more sense to do so further down the article, where the text 
reads "depending on whether they are specified at the end or the middle 
of a bar, they can be placed above the bar line or between notes".


Furthermore, many of the examples seem to contain tempo indicators like 
"Allegro", which may give the impression (it did to me) that this is the 
standard way of typesetting these. So it would perhaps be good to write 
somewhere in the "text marks" section: "Note that tempo indications can 
also be typeset as described in [Metronome marks].", with a 
corresponding link.


Finally, the name of the "metronome marks" section (which is hidden a 
little bit away; I would have looked for it under "text" rather than 
under "writing parts" - would it be possible to add a link at the top of 
the 'text' section, as done for vocal music?) is somewhat misleading. 
Would it perhaps be helpful to change this to "Metronome marks and tempo 
indications"?




Many thanks to everyone who has contributed to the really useful 
documentation by the way - it's always a great help! (And despite the 
above niggles, I did eventually find what I was looking for in this 
instance as well. :) )


I hope I was sufficiently clear in the description of my suggestions.

Lasse






--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-18 Thread Tim Woodall

On Fri, 16 Jan 2009, David Raleigh Arnold wrote:


Thanks Dave,
Seems the script doesn't like the text in the file - using ^"some

words"

causes problems. Also, some of the articulations are a problem for it.
When I finally got a resulting file the octaves were totally messed

up,

I had notes with ledger lines halfway up or down the page. Too much

time

editing the resulting file, I may as well just edit the original by

hand.

thanks anyway,
Chip



The octaves are not changed as long as there's no \relative.



Surely the octaves can change? (I'm a very new lilypond user but a
fairly confident sed user so I might be completely misunderstanding
something)

goes to
c d e f 
c' d' e' f'



Even something like
doesn't work because it needs to be
c c c c
e f g, a

(Given that the OP wants to separate these out into parts it's probably
the case that the music doesn't do this but ...)

It might be sufficient to drop all the ' and , and then let the OP put
them back by hand if that doesn't cause too many places where the octave
goes wrong.

"s/,'//g" first on the file

Tim.


--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://www.woodall.me.uk/


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


Trying to start once again...

2009-01-18 Thread Michael Falkenburg

...after a VERY Long hiatus.

There a couple of problems I'm experiencing:

1) Trying to use Ubuntu (it's Ibex), I just can't seem to install 
LilyPond (ver. 2.10.33-1) correctly. There's no icon for it on the 
Desktop.  JEdit (4.3pre16) works fine...but there no "obvious" 
connection between the two...hence WHY I think I haven't installed LP 
the way it should. And then again, I'm pretty sure that LilyPondTool is 
set up OK with jEdit.


2) In the past (pre-Ubuntu or ANY Linux use on my part), and now, I've 
also installed these 3 programs on my XP box. At least there I've got 
the icon on the Desktop. But dragging the sample to it produces an error 
message about how the .pdf file doesn't exist.


I sort of remember that in the past that a path needed to be set a 
certain way...but like I said, 'sort of remember'.


If you can respond (soon) it sure would help me a lot...it's snowing 
(again) and I have no need/plans to go anywhere. Just the perfect time 
to start working with Lilypond once again.


Thanks,
Mischa


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


Re: Suggestion for Notation Reference

2009-01-18 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Sonntag, 18. Januar 2009 19:32:45 schrieb Lasse Rempe:
> I have a couple of suggestions regardin the (excellent) notation reference.
>
> In 1.8.1, the following is used as an example for text marks:
>
> c4
> \mark "Allegro"
> c c c

Tempo indications should not use \mark anyway. They should use \tempo 
"Allegro" instead. (Mis-)Using \mark in our official documentation is a bug in 
my eyes.

For this \mark example I would rather use something like:

c4
\mark "enters the stage"
c c c

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)

iD8DBQFJc4K4TqjEwhXvPN0RArseAJ4hpdIq9RRwMYRZhiFnCxI75F7QogCgmFZh
+RTZ2B7IivSVHG36g7d3f/0=
=YNvB
-END PGP SIGNATURE-


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


Re: Trying to start once again...

2009-01-18 Thread David Stocker
Did you download version 2.12 from the website and install it via the 
shell command explained on the download page?


On Linux, the installation doesn't result in any icons on the desktop. 
It installs the LilyPond executable (in your /home folder, unless you 
install it as root) and then you access it from the command line.


Try this, open a terminal window and type

lilypond -v

and see what is returned.

Dave

Michael Falkenburg wrote:
...after a VERY Long hiatus.

There a couple of problems I'm experiencing:

1) Trying to use Ubuntu (it's Ibex), I just can't seem to install 
LilyPond (ver. 2.10.33-1) correctly. There's no icon for it on the 
Desktop.  JEdit (4.3pre16) works fine...but there no "obvious" 
connection between the two...hence WHY I think I haven't installed LP 
the way it should. And then again, I'm pretty sure that LilyPondTool is 
set up OK with jEdit.


2) In the past (pre-Ubuntu or ANY Linux use on my part), and now, I've 
also installed these 3 programs on my XP box. At least there I've got 
the icon on the Desktop. But dragging the sample to it produces an error 
message about how the .pdf file doesn't exist.


I sort of remember that in the past that a path needed to be set a 
certain way...but like I said, 'sort of remember'.


If you can respond (soon) it sure would help me a lot...it's snowing 
(again) and I have no need/plans to go anywhere. Just the perfect time 
to start working with Lilypond once again.


Thanks,
Mischa


___
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: Trying to start once again...

2009-01-18 Thread Tim Woodall

On Sun, 18 Jan 2009, Michael Falkenburg wrote:


...after a VERY Long hiatus.

There a couple of problems I'm experiencing:

1) Trying to use Ubuntu (it's Ibex), I just can't seem to install LilyPond 
(ver. 2.10.33-1) correctly. There's no icon for it on the Desktop.  JEdit 
(4.3pre16) works fine...but there no "obvious" connection between the 
two...hence WHY I think I haven't installed LP the way it should. And then 
again, I'm pretty sure that LilyPondTool is set up OK with jEdit.


2) In the past (pre-Ubuntu or ANY Linux use on my part), and now, I've also 
installed these 3 programs on my XP box. At least there I've got the icon on 
the Desktop. But dragging the sample to it produces an error message about 
how the .pdf file doesn't exist.


I sort of remember that in the past that a path needed to be set a certain 
way...but like I said, 'sort of remember'.


If you can respond (soon) it sure would help me a lot...it's snowing (again) 
and I have no need/plans to go anywhere. Just the perfect time to start 
working with Lilypond once again.



I can't help you with Ubuntu specifics but just to get started, once
you've created your .ly file just open a terminal, cd to the directory
where you're .ly files are and then type lilypond whatever.ly

On my Debian system that would be:
->Debian->Applications->Shells->bash

And then in the window that appears:
t...@feynman:~$ cd cvs/lilypond
t...@feynman:~/cvs/lilypond$ lilypond beethoven-liszt.ly
GNU LilyPond 2.10.33
Processing `beethoven-liszt.ly'
Parsing...
Interpreting music...  [8][16][24][32][40][48][56][64][72][80][88][96]
[104][112][120][128][136][144][152][160][168][176][184][192][200][208]
[216][224][232][240][248][256][264][272][278]
Preprocessing graphical objects...
beethoven-liszt.ly:1089:39: warning: ignoring too many clashing note
columns
\times 2/3 {a gis fis} \times 2/3 {
   e b' e}
Layout output to `beethoven-liszt.ps'...
Converting to `beethoven-liszt.pdf'...
t...@feynman:~/cvs/lilypond$

And they you can view that pdf however you normally view it.

Tim.


--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://www.woodall.me.uk/


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


Re: Trying to start once again...

2009-01-18 Thread David Stocker

You have LilyPond 2.10.33 installed on your system.

To get started, have a look at 'First Steps 
' 
from the Documentation.


To compile a .pdf score from a .ly you'll have to type:

lilypond filename.ly

in a terminal window. If the file is not in your /home directory, you'll 
first need to change to the directory that your file is located in. For 
example, if the file is on your desktop, type:


cd Desktop

and then execute the lilypond command.

Also, I'd encourage you to download the newest stable version (2.12.1-1) 
since it contains many improvements. The up to date documentation is 
really good as well. Don't forget to first run


uninstall-lilypond

in a terminal window before you run the install script for the latest 
version (unless you're using Ubuntu Studio). If you run into problems 
with the install, I or someone else on the list will assist you in 
getting started.


Also, if you're not used to doing things via command line, check out 
this link:


http://hubpages.com/hub/The-Linux-Command-Line

I'm a little over a year into my transition to Linux and I can tell you 
that the effort I've put into learning has been well worth it to me.


Let us know how it goes,

Dave

Michael Falkenburg wrote:

David Stocker wrote:
Did you download version 2.12 from the website and install it via the 
shell command explained on the download page?


On Linux, the installation doesn't result in any icons on the 
desktop. It installs the LilyPond executable (in your /home folder, 
unless you install it as root) and then you access it from the 
command line.


Try this, open a terminal window and type

lilypond -v

and see what is returned.

Dave

Michael Falkenburg wrote:

...after a VERY Long hiatus.

There a couple of problems I'm experiencing:

1) Trying to use Ubuntu (it's Ibex), I just can't seem to install 
LilyPond (ver. 2.10.33-1) correctly. There's no icon for it on the 
Desktop.  JEdit (4.3pre16) works fine...but there no "obvious" 
connection between the two...hence WHY I think I haven't installed 
LP the way it should. And then again, I'm pretty sure that 
LilyPondTool is set up OK with jEdit.


2) In the past (pre-Ubuntu or ANY Linux use on my part), and now, 
I've also installed these 3 programs on my XP box. At least there 
I've got the icon on the Desktop. But dragging the sample to it 
produces an error message about how the .pdf file doesn't exist.


I sort of remember that in the past that a path needed to be set a 
certain way...but like I said, 'sort of remember'.


If you can respond (soon) it sure would help me a lot...it's snowing 
(again) and I have no need/plans to go anywhere. Just the perfect 
time to start working with Lilypond once again.


Thanks,
Mischa


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





Here is the result, Dave...
mich...@michael-desktop:~$ lilypond -v
GNU LilyPond 2.10.33
This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.


Copyright (c) 1996--2007 by
 Han-Wen Nienhuys 
 Jan Nieuwenhuizen 
 and others.


So at least, something is there. What next?





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


Re: Trying to start once again...

2009-01-18 Thread Francisco Vila
2009/1/18 Michael Falkenburg :
> 1) Trying to use Ubuntu (it's Ibex), I just can't seem to install LilyPond
> (ver. 2.10.33-1) correctly. There's no icon for it on the Desktop.  JEdit
> (4.3pre16) works fine...but there no "obvious" connection between the
> two...hence WHY I think I haven't installed LP the way it should. And then
> again, I'm pretty sure that LilyPondTool is set up OK with jEdit.

Configure LilyPondTool so that the path to the lilypond executable is
/usr/local/bin

This configuration is somewhat Windows style; on Linux would suffice
to specify what's the lilypond command, and it is "lilypond". Just in
case you want to set up an alternate command to process your files,
although I cannot imagine one.

Then open or create and save a *.ly file; lilypondTool will show its
toolbar where you can click on the "execute LilyPond" button. Tell us
what's the output on the LilyPond console of jEdit.

To upgrade lilypond itself to the latest stable version 2.12, follow
this link and tell us if it has been of any help.
http://lilypondwiki.tuxfamily.org/index.php?title=Upgrade_howto

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Trying to start once again...

2009-01-18 Thread Francisco Vila
2009/1/18 David Stocker :
> Also, I'd encourage you to download the newest stable version (2.12.1-1)
> since it contains many improvements. The up to date documentation is really
> good as well. Don't forget to first run
>
> uninstall-lilypond
>
> in a terminal window before you run the install script for the latest
> version (unless you're using Ubuntu Studio).

If the LilyPond package is installed from the standard repositories,
I'd rather recommend to mark it for uninstall and purge on the package
manager Synaptic, or by the command

sudo aptitude purge '~nlilypond'

on a terminal window.

After this, try to install the binary from our webpage. Only further
uninstalls should be done with the uninstall-lilypond command on a
terminal.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Whole note tremolo repeats - bug ?

2009-01-18 Thread Mats Bengtsson

Werner LEMBERG wrote:


Looking into the full score of Strauss's `Salome', I can confirm that
(it's one bar before rehearsal number 68, page 50): the position of a
whole note tremolo is exactly the same as if there were a stem.
  

This is exactly the rule that's formulated in the book "Noter"
by Börje Tyboni (comprehensive Swedish book on music notation,
which usually is trustworthy) - "the position of a whole note tremolo
is the same as if there were a stem".

  /Mats




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


Re: Trying to start once again...

2009-01-18 Thread David Stocker

First, do:

lilypond -v

again to see that the new installation is recognized by Ubuntu. If you get:

"GNU LilyPond 2.12.1

Copyright (c) 1996--2008 by
 Han-Wen Nienhuys 
 Jan Nieuwenhuizen 
 and others.

This program is free software..."

Then your installation went smoothly.

Make sure you:

cd Desktop

to change the working directory to your desktop, where your file is located.

then, type:

ls

which will list all of the files and directories on your desktop. You 
should see "myfile.ly" there somewhere. Then:


lilypond myfile.ly



Michael Falkenburg wrote:

David Stocker wrote:

You have LilyPond 2.10.33 installed on your system.

To get started, have a look at 'First Steps 
' 
from the Documentation.


To compile a .pdf score from a .ly you'll have to type:

lilypond filename.ly

in a terminal window. If the file is not in your /home directory, 
you'll first need to change to the directory that your file is 
located in. For example, if the file is on your desktop, type:


cd Desktop

and then execute the lilypond command.

Also, I'd encourage you to download the newest stable version 
(2.12.1-1) since it contains many improvements. The up to date 
documentation is really good as well. Don't forget to first run


uninstall-lilypond

in a terminal window before you run the install script for the latest 
version (unless you're using Ubuntu Studio). If you run into problems 
with the install, I or someone else on the list will assist you in 
getting started.


Also, if you're not used to doing things via command line, check out 
this link:


http://hubpages.com/hub/The-Linux-Command-Line

I'm a little over a year into my transition to Linux and I can tell 
you that the effort I've put into learning has been well worth it to me.


Let us know how it goes,

Dave

Michael Falkenburg wrote:

David Stocker wrote:
Did you download version 2.12 from the website and install it via 
the shell command explained on the download page?


On Linux, the installation doesn't result in any icons on the 
desktop. It installs the LilyPond executable (in your /home folder, 
unless you install it as root) and then you access it from the 
command line.


Try this, open a terminal window and type

lilypond -v

and see what is returned.

Dave

Michael Falkenburg wrote:

...after a VERY Long hiatus.

There a couple of problems I'm experiencing:

1) Trying to use Ubuntu (it's Ibex), I just can't seem to install 
LilyPond (ver. 2.10.33-1) correctly. There's no icon for it on the 
Desktop.  JEdit (4.3pre16) works fine...but there no "obvious" 
connection between the two...hence WHY I think I haven't installed 
LP the way it should. And then again, I'm pretty sure that 
LilyPondTool is set up OK with jEdit.


2) In the past (pre-Ubuntu or ANY Linux use on my part), and now, 
I've also installed these 3 programs on my XP box. At least there 
I've got the icon on the Desktop. But dragging the sample to it 
produces an error message about how the .pdf file doesn't exist.


I sort of remember that in the past that a path needed to be set a 
certain way...but like I said, 'sort of remember'.


If you can respond (soon) it sure would help me a lot...it's 
snowing (again) and I have no need/plans to go anywhere. Just the 
perfect time to start working with Lilypond once again.


Thanks,
Mischa


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





Here is the result, Dave...
mich...@michael-desktop:~$ lilypond -v
GNU LilyPond 2.10.33
This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.


Copyright (c) 1996--2007 by
 Han-Wen Nienhuys 
 Jan Nieuwenhuizen 
 and others.


So at least, something is there. What next?




I've gone ahead and  'uninstall(ed)-lilypond' in the terminal, and 
have downloaded and installed the newer 2.12.1-1 version.
Now, I have a 'myfile.ly' sitting on my desktop, but when I try 
'lilypond myfile.ly' in the terminal it 'cannot find file'.

Is this related to the 'path issue' that I 'sorta remembered'?





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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-18 Thread Tim Woodall

On Sun, 18 Jan 2009, Tim Woodall wrote:



Surely the octaves can change? (I'm a very new lilypond user but a
fairly confident sed user so I might be completely misunderstanding
something)


Well it was an interesting exercise. I believe that the following bash
script does what is required. It works correctly on the following input:

staff \relative c {
4
4
4
8 8~ 4  \times 2/3 { 8 }
4 8 8~ 4  \times 2/3 { 8 }
}

(The script might fail if there are any notes not in chords. I think all
that will be required is that the octave might need correcting in one or
more parts at the note which will be cloned in all three parts. I'm also
not sure what might happen if there are chords missing notes. It might
not work at all. The first is hard to fix, the second shouldn't be too
difficult.)

#!/bin/bash

cat test.ly | sed 's/<[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g' 
>part1.ly
cat test.ly | sed 
's/<[^>a-g]*[a-g][a-g]*[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g'
 >part2.ly
cat test.ly | sed 
's/<[^>a-g]*[a-g][a-g]*[^>a-g]*[a-g][a-g]*[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g'
 >part3.ly

c=0
while read -r line; do
  line1[$c]="$line"
  echo "${line1[$c]}" "$line"
  c=$(($c+1))
done part2.ly
c=0; while [[ $c -lt ${#line3[*]} ]]; do echo ${line3[$c]}; c=$(($c+1)); done 
>part3.ly

exit 0


--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://www.woodall.me.uk/


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


Re:Trying to start once again...

2009-01-18 Thread Michael Falkenburg


Here's a slight correction:
I was seeing mich...@michael-desktop:~$ and didn't cd Desktop (with the 
capital D).
Now that I've done THAT, I do see the '.ly' file I want to see. Now I'll 
try the 'lilypond...etc.' part and post the results.








mich...@michael-desktop:~/Desktop$ lilypond 6_wheeled_cycle.ly
GNU LilyPond 2.12.1
Processing `6_wheeled_cycle.ly'
Parsing...
6_wheeled_cycle.ly:1:8: error: quoted string expected after \version
\version
   =2.12.1-1
6_wheeled_cycle.ly:1:9: error: syntax error, unexpected DIGIT
\version=
2.12.1-1
/home/michael/lilypond/usr/share/lilypond/current/ly/init.ly:63:30: 
error: syntax error, unexpected STRING

  (ly:parser-error parser (_
 "expected error, but none found"
error: failed files: "6_wheeled_cycle.ly"


So, now I think that I'm realizing that there's something worng with the 
way my file is set-up.

Perhaps I should post THAT as well?

Also, I'm still needing an answer to setting the path for LilyPondTool 
(...not that I'm in a rush(or complaining)...you guys have been great in 
helping me so far)


M.


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


Re: Thin bars

2009-01-18 Thread Fibonacci Prower
Well, I just tried printing it, and the bars look even worse - not
only are they too thick, they also seem to be a bit too long, so that
they go beyond the limits of the staff on both sides (not sure if I'm
making myself clear on that one).
Is there any way to change that?

2009/1/16 Mats Bengtsson :
> I hope you refer to what you see on a printed paper copy and not to what you
> see on
> the screen using Acrobat reader. As has been discussed on the mailing list,
> there are
> some issues with how the bar lines show up on the screen.
>
>   /Mats
>
> Fibonacci Prower wrote:
>>
>> Hello,
>>
>> Simply put, I find the default bars in lilypond too thick - whether
>> they be the bars automatically put between beats, or the ones inserted
>> by using \bar "something".
>> Is there any way to make them thinner?
>>
>> --
>> $0='!/msfQ0yjoV!fe!sfldbi!psup!pmpT'x19xor print+map{("\e[7m \e[0m",
>> chr ord(chop$0)-1)[$_].("\n")[++$i%72]}split//,unpack'B*',pack'H*',(
>> $P='F'x18)."8186078739E1F0F0E19FCF19CCE6667383CF0733099E67E7F39"
>> ."FCF218067E7F39FCF319E739F860787399E70F0E1$P"#Perl rulz
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
> --
> =
>Mats Bengtsson
>Signal Processing
>School of Electrical Engineering
>Royal Institute of Technology (KTH)
>SE-100 44  STOCKHOLM
>Sweden
>Phone: (+46) 8 790 8463
>   Fax:   (+46) 8 790 7260
>Email: mats.bengts...@ee.kth.se
>WWW: http://www.s3.kth.se/~mabe
> =
>
>



-- 
$0='!/msfQ0yjoV!fe!sfldbi!psup!pmpT'x19xor print+map{("\e[7m \e[0m",
chr ord(chop$0)-1)[$_].("\n")[++$i%72]}split//,unpack'B*',pack'H*',(
$P='F'x18)."8186078739E1F0F0E19FCF19CCE6667383CF0733099E67E7F39"
."FCF218067E7F39FCF319E739F860787399E70F0E1$P"#Perl rulz


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-18 Thread Tim Woodall

And, of course, I found some bugs as soon as I'd posted.

Quick breakdown of how it works incase anyone really wants to hack on
it.

First it splits the three parts out into three files. Basically all it
does is remove the other two notes from inside <>. It does depend on the
chord all being on one line to do this. It also makes sure each chord on a
separate line in the output files. Note that line n in one file
corresponds to line n in the other files as well.

Next it reads in what it has written into three arrays.

For each chord it then calculates the number of notes from the first
note in the previous chord to the first note in this chord (d1) and from
the first note in this chord to the other two notes in this chord (d2
and d3)

It subtracts the distance from the first note of the previous chord to
the other notes in that chord (od1 and od2). Then it calculates how many
octave changes are needed for each step. v1, v2 and v3.

It replaces any existing ', in the chord with the values in v1,
v2 and v3 (note that replacing v1 should be a no-op)

And finally it writes the arrays back into the files it read them from.

Tim.


#!/bin/bash

cat test.ly | sed 
's/<[^<>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g' >part1.ly
cat test.ly | sed 
's/<[^<>a-g]*[a-g][a-g]*[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g'
 >part2.ly
cat test.ly | sed 
's/<[^<>a-g]*[a-g][a-g]*[^>a-g]*[a-g][a-g]*[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g'
 >part3.ly

c=0
while read -r line; do
  line1[$c]="$line"
  c=$(($c+1))
done <}" == "" && "${line1[$c]%<*}" = 
"" ]]; then
nc1=$( note_cannonical "${line1[$c]}" )
nc2=$( note_cannonical "${line2[$c]}" )
nc3=$( note_cannonical "${line3[$c]}" )
echo $nc1 $nc2 $nc3
d1=$( calc_delta $n1 $nc1 )
d2=$(($d1 + $( calc_delta $nc1 $nc2 ) ))
d3=$(($d2 + $( calc_delta $nc2 $nc3 ) ))
echo $d1 $d2 $d3
v1=$( calcoctave $d1 )
v2=$( calcoctave $(($d2-$od2)) )
v3=$( calcoctave $(($d3-$od3)) )
echo $v1 $v2 $v3
out1="$(note $nc1)$v1"
out2="$(note $nc2)$v2"
out3="$(note $nc3)$v3"
od2=$( calc_delta $nc1 $nc2 )
od3=$(($od2 + $( calc_delta $nc2 $nc3 ) ))
echo $od2 $od3

line1[$c]=$( replace_note "${line1[$c]}" $out1 )
line2[$c]=$( replace_note "${line2[$c]}" $out2 )
line3[$c]=$( replace_note "${line3[$c]}" $out3 )
n1=${nc1%%:*}
  fi
  c=$(($c+1))
done

c=0; while [[ $c -lt ${#line1[*]} ]]; do echo ${line1[$c]}; c=$(($c+1)); done 
>part1.ly
c=0; while [[ $c -lt ${#line2[*]} ]]; do echo ${line2[$c]}; c=$(($c+1)); done 
>part2.ly
c=0; while [[ $c -lt ${#line3[*]} ]]; do echo ${line3[$c]}; c=$(($c+1)); done 
>part3.ly

exit 0


--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://www.woodall.me.uk/


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-18 Thread Gilles THIBAULT



goes to
c d e f c' d' e' f'


I don't know if it will help but i did for me something like that :


#(define (has-duration? music)
(ly:duration? (ly:music-property music 'duration)))

#(define (not-has-duration? music)
(not (has-duration? music)))

keepsOnlyFirstNote = #(define-music-function (parser location music) 
(ly:music?)

(music-map
 (lambda (evt)
  (if (eq? 'EventChord (ly:music-property evt 'name))
 (let ((elts (ly:music-property evt 'elements)))
  (if (has-duration? (car elts))
   (ly:music-set-property! evt 'elements (cons
(car elts)
(filter not-has-duration? (cdr elts)))
 evt)
music))

deleteFirstNote = #(define-music-function (parser location music) 
(ly:music?)

(music-map
 (lambda (evt)
  (if (eq? 'EventChord (ly:music-property evt 'name))
 (let ((elts (ly:music-property evt 'elements)))
  (if (has-duration? (car elts))
   (ly:music-set-property! evt 'elements  (cdr elts)
 evt)
music))


music =\relative {
4-> ( ) -. g2 c2
}

\markup { Music with chords }
\new Staff \music
\markup { Music splitted in 2 staffs }
<<
  \new Staff \deleteFirstNote \music
  \new Staff \keepsOnlyFirstNote \music
 >>
%%

Gilles 




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


Re: Suggestion for Notation Reference

2009-01-18 Thread Lasse Rempe

Reinhold Kainhofer wrote:
Tempo indications should not use \mark anyway. They should use \tempo 
"Allegro" instead. (Mis-)Using \mark in our official documentation is a bug in 
my eyes.


For this \mark example I would rather use something like:

c4
\mark "enters the stage"
c c c

Cheers,
Reinhold
  
I would agree with that. In fact, I was looking for tempo indications, 
and first found the examples in this section. However, after I had 
figured out how to left-align them, I ran into the problem of having a 
tempo indication at a regular rehearsal mark ... and then found the 
section describing \tempo in the docs.


Would you consider "Menuetto" / "Trio" as appropriate uses of the \mark 
command? If so, these could perhaps be used in the example.


But even in these cases I would suggest that text in the \mark command, 
unless it comes at the beginning of a line (e.g. at the start of a 
piece) would not usually be centered over the barline it is associated 
to, but rather left-aligned. Do you not agree?


Cheers,
Lasse



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


Re: Thin bars

2009-01-18 Thread Kieren MacMillan

Hi "Fibonacci Prower",


Well, I just tried printing it, and the bars look even worse - not
only are they too thick, they also seem to be a bit too long, so that
they go beyond the limits of the staff on both sides


I've used Lilypond since v1.8, and I've never seen something like  
what you're talking about.
Perhaps your printer is not a PostScript printer (i.e., it is doing  
some sort of faulty emulation)?


Best regards,
Kieren.


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


using ly:get-glyph, ly:font-get-glyph

2009-01-18 Thread Mark Polesky
Two interesting-looking functions (ly:get-glyph, 
ly:font-get-glyph) are listed here...
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/Scheme-functions
...but I can't seem to get them to do anything.

It says that each can "Retrieve a stencil", which
strikes me as useful. I was actually looking for 
a scheme-way of accessing stencils, but the function
description is bewildering to me.

Can I somehow use it like this...
\once \override NoteHead #'stencil = #(ly:get-glyph font index)
?

Is font a string, symbol, or an actual font?
Is index a number? How do I know what number 
a particular glyph is? How does this work???

None of these seemed to work (don't laugh, but
I'm seriously stabbing in the dark here):
(ly:font-get-glyph 'Emmentaler '"Half notehead")
(ly:font-get-glyph 'Emmentaler 'sm1)
(ly:font-get-glyph 'fetaMusic '"Half notehead")
(ly:font-get-glyph 'fetaMusic 'sm1)
(ly:get-glyph "emmentaler-20" 5)
(ly:get-glyph "emmentaler-20" "noteheads.s1")
(ly:get-glyph 'emmentaler-20 'noteheads.s1)
(ly:get-glyph "fetaMusic" 5)
(ly:get-glyph 'fetaMusic 'noteheads.s1)

Also, this warning came up alot:
warning: type check for `stencil' failed;
value `#' must be of type `unknown'

What does this mean? Does the parser freak out
if it knows what the stencil-type is? Is there 
some sort of ly:unspecified->unknown procedure?

Looking forward to learning...
- Mark


  


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


Re: Trying to start once again...

2009-01-18 Thread M Watts

Michael Falkenburg wrote:


mich...@michael-desktop:~/Desktop$ lilypond 6_wheeled_cycle.ly
GNU LilyPond 2.12.1
Processing `6_wheeled_cycle.ly'
Parsing...
6_wheeled_cycle.ly:1:8: error: quoted string expected after \version
\version
   =2.12.1-1
6_wheeled_cycle.ly:1:9: error: syntax error, unexpected DIGIT
\version=
2.12.1-1
/home/michael/lilypond/usr/share/lilypond/current/ly/init.ly:63:30: 
error: syntax error, unexpected STRING

  (ly:parser-error parser (_
 "expected error, but none found"
error: failed files: "6_wheeled_cycle.ly" 



Lily is whinging because you put: \version=2.12.1-1

Try: \version "2.12.1"


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