Re: Basic LilyPond Cheat Sheet

2011-09-16 Thread Patrick Horgan
On 09/12/2011 04:19 PM, Nick Payne wrote:
> ... elision by patrick...
> I can't print it from Adobe Reader on Ubuntu either. I also opened it
> in the default PDF document viewer that comes with Ubuntu (Evince),
> and in that, most of the text just displays as blocks of various sizes
> and shades - see attached screen dump of part of the page.
That's strange!  I just looked at it in evince 2.32.0 on Ubuntu 11.04
and it was beautiful.  evince DID give 105 errors on the file, I'm
attaching them.  okular gave only 75 of the same errors, e.g. "Error
(294822): Dictionary key must be a name object".   Running evince again
gave 90 of the similar errors.

acroread also showed it well.

Printing:
  acroread - popup saying "The document could not be printed"
  evince - printed without error*
  okular - printed without error*
* other than the errors mentioned above which don't seem to interfere
with the rendering

Patrick

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


Re: New LilyPond tutorial

2011-08-25 Thread Patrick Horgan
Just a web page design sort of comment.  The font is quite small for
older eyes like mine (mid 50s;).  The line spacing is really tight as
well.  I can scale the font up, but the pages still don't breathe.  It
would be a lot more approachable if you didn't try to make everything
fit in such a tight space.

A tutorial is no different than music in that.  More whitespace makes it
easier to absorb things at a glance.

It looks like you're going for a default width of about 800 pixels (840
with the 20 pixel margins on the sides).  That's about as tight as you
can get it with the png sizes for the music.  Since your page won't work
well with hand-held devices anyway, why do you make your width so
narrow?   Laptops and tablets all work with a lot more width.  The IPad
for example is 1024x768.   It just makes you waste all that space on the
sides to go with that 800 pixel width.  You could go with a wider width,
bigger font, bigger line spacing and a, things would breathe.

The tutorial itself is marvelous.

Patrick

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


Re: creating images for web pages

2011-08-07 Thread Patrick Horgan
There's also lily2image.

$ lily2image
Usage:  lily2image  [-v] [-t] [-rN] [-fFORMAT] filename
-v print version number and quit
-aabout - tell about us and exit
-tset background to transparent
-r=Nset resolution to N (usually 72-2000)
-f=FORMATset format to FORMAT one of:
  jpeg, png, tiff, gif, pcx, bmp . . .
-V=viewerset image viewer, examp: -V=evince
filenamea lilypond file
-qquiet mode - no echoes, error code on exit
-pshow created image in a viewer

Created by Jonathan Kulp on this list.  It's a bash script that
automates a lot of the choices you might make.  Making the png
transparent is nice for web pages.  It's at
http://code.google.com/p/lily2image/

Patrick

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


Re: [tablatures] Re: Could I get a critique on my first lilypond tab?

2011-04-23 Thread Patrick Horgan
On 04/23/2011 02:50 AM, Federico Bruni wrote:
> Il giorno sab, 23/04/2011 alle 02.36 -0700, Patrick Horgan ha scritto:
>> I figured it out.  It was the Text_engraver I needed.  So I'm
>> attaching
>> a new version that has H in the appropriate place.  Please let me know
>> if there are better/more elegant ways of doing the things I do here. 
> New version? It looks like the previous file :-)
I added the Text_engraver to the TabStaff, so now the "H"s show up. 
That's the only change, but the output suddenly became closer to what I
want, although I'd really rather have the "H"s show up above the slurs.

> BTW, I don't think that you are allowed to post copyrighted music on a
> public list.
Well, in the US every written work by anyone is copyright upon
creation.  If you were right, nothing could be posted, not even this
email.  I get your point though, I imagine you're saying that posting
(publishing), work that transcribes work that I don't own the copyright
to without the permission of the owner of the original copyright opens
me to the owners assertion that his rights have been violated.I love
watching copyright rules change through the years, but I'm not a lawyer.
I have separately and previously contacted his management company to see
what they think of me sharing the tab online along with the tabs of
dozens of other songs of his out there, but I haven't heard anything
back from them yet.  I'll be sure to let the group know.
> Cheers,
> Federico
Best regards,

Patrick

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


Re: Could I get a critique on my first lilypond tab?

2011-04-23 Thread Patrick Horgan
On 04/23/2011 02:03 AM, Patrick Horgan wrote:
> ...elision by Patrick...
> You'll see my attempt to put H at appropriate places doesn't work. 
> Apparently a TabStaff is missing whatever engraver would put them in?  I
> can put them in the regular staff, and it works, tucking them under the
> Chords, but it's not at all what I want.  Help!!!;)
I figured it out.  It was the Text_engraver I needed.  So I'm attaching
a new version that has H in the appropriate place.  Please let me know
if there are better/more elegant ways of doing the things I do here.

Patrick

\version "2.13.45"

\header {
  title = "Let Him Roll"
  subtitle = "by Guy Clark"
  subsubtitle = "tablature by Patrick Horgan"
  copyright = "Copyright Guy Clark"
}

\layout {
  indent = 0.0
}

hammersNpulls = \relative c {
  \time 4/4
  \key c \major
  \voiceThree
  \stemUp
  s1 s1 s8^"H" s8 s4 s8^"H" s8 s4 s8^"H" s8 s4 s8^"H" s8 s4
  s1 s1^"H" s1 s1
  s1 s1 s1 s1
  s1 s1^"H" s1 s1
}

thechords = \relative c {
  \time 4/4
  \key c \major
  \voiceThree
  \stemUp
  s1^"C" s2 s2^"Cadd9" s1^"Fmaj13" s1
  s1^"Em7/G" s1^"G7" s2^"Cadd9" s2^"C" s1
  s1^"C" s2 s2^"Cadd9" s1^"Fmaj13" s1
  s1^"Em7/G" s1 s2^"Cadd9" s2^"C" s1
}

upper = \relative c {
  \time 4/4
  \key c \major
  \voiceOne
  \stemUp
  < c' g' >2. 4 | 4. g8 e' d c g(   |
  a) d ~ d g,( a) d ~ d g,( | a) d ~ d g,( a) d ~ d4  |

  d4. r8 d e ~ e4 | \appoggiatura e8 4. 8 ~ 8 g,4. |
  d'2 r8 c ~ c g  | r8 b ~ b4 e f   |

  % repeat with variations
  < c g' >2. 4 | 4. g8 e' d ~ d4   |
  d2 r4   | a8 d ~ d g,( a) d ~ d4  |

  d4. r8 d e ~ e4 | \appoggiatura e8 4. 8 ~ 8 g,4. |
  d'2 r8 c ~ c g  | r8 b ~ b4 e f   |

  \bar ":|"
}

lower = \relative c {
  \time 4/4
  \key c \major
  \voiceTwo
  \stemDown
  c4 e g, r   | c e c e | f f f f | f f f f| \break
  g, d' g, d' | g, d' g, d' | c e c e | g, d' g, b | \break
% repeat with variations
  c4 e g, r   | c e c e | f a c,2 | f4 f f f   | \break
  g, d' g, d' | g, d' g, d' | c e c e | g, d' g, b |
}


\score {
  <<
\new StaffGroup = "tab with traditional" <<
  \new Staff = "guitar traditional" <<
	\clef "treble_8"
	\context Voice = "theChords" \thechords % Put chord names in
	\context Voice = "upper" \upper
	\context Voice = "lower" \lower
  >> % regular staff
  \new TabStaff \with { \consists "Text_engraver" } <<
	\context TabVoice = "hammersNpulls" \hammersNpulls
	\context TabVoice = "upper" { \tabFullNotation \upper }
	\context TabVoice = "lower" { \tabFullNotation \lower }
  >>  % tab staff
>> % staff group
  >> % score
}

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


Could I get a critique on my first lilypond tab?

2011-04-23 Thread Patrick Horgan
Anything anyone wants to tell me about better slicker more elegant ways
of doing the same things would be awesome. 

I'm attaching the lilypond file for Let Him Roll, a Guy Clark talking
blues.  He essential plays the same thing over and over.  What I've got
covers the main two variations.

I couldn't find anything that covered hammering and pulling with H and P
either under or over the tab or on the slur line, so just followed the
suggestion to use an appoggiatura for a hammer for something that
switched notes on the beat, and a grace notey sort of thing for a quick
hammer that just borrowed a bit from the beginning of the note for the
original note before the hammer.

I'm not sure how you would know the difference between a hammer and a pull.

You'll see my attempt to put H at appropriate places doesn't work. 
Apparently a TabStaff is missing whatever engraver would put them in?  I
can put them in the regular staff, and it works, tucking them under the
Chords, but it's not at all what I want.  Help!!!;)

Patrick
\version "2.13.45"

\header {
  title = "Let Him Roll"
  subtitle = "by Guy Clark"
  subsubtitle = "tablature by Patrick Horgan"
  copyright = "Copyright Guy Clark"
}

\layout {
  indent = 0.0
}

hammersNpulls = \relative c {
  \time 4/4
  \key c \major
  \voiceThree
  \stemUp
  s1 s1 s8^"H" s8 s4 s8^"H" s8 s4 s8^"H" s8 s4 s8^"H" s8 s4
  s1 s1^"H" s1 s1
  s1 s1 s1 s1
  s1 s1^"H" s1 s1
}

thechords = \relative c {
  \time 4/4
  \key c \major
  \voiceThree
  \stemUp
  s1^"C" s2 s2^"Cadd9" s1^"Fmaj13" s1
  s1^"Em7/G" s1^"G7" s2^"Cadd9" s2^"C" s1
  s1^"C" s2 s2^"Cadd9" s1^"Fmaj13" s1
  s1^"Em7/G" s1 s2^"Cadd9" s2^"C" s1
}

upper = \relative c {
  \time 4/4
  \key c \major
  \voiceOne
  \stemUp
  < c' g' >2. 4 | 4. g8 e' d c g(   |
  a) d ~ d g,( a) d ~ d g,( | a) d ~ d g,( a) d ~ d4  |

  d4. r8 d e ~ e4 | \appoggiatura e8 4. 8 ~ 8 g,4. |
  d'2 r8 c ~ c g  | r8 b ~ b4 e f   |

  % repeat with variations
  < c g' >2. 4 | 4. g8 e' d ~ d4   |
  d2 r4   | a8 d ~ d g,( a) d ~ d4  |

  d4. r8 d e ~ e4 | \appoggiatura e8 4. 8 ~ 8 g,4. |
  d'2 r8 c ~ c g  | r8 b ~ b4 e f   |

  \bar ":|"
}

lower = \relative c {
  \time 4/4
  \key c \major
  \voiceTwo
  \stemDown
  c4 e g, r   | c e c e | f f f f | f f f f| \break
  g, d' g, d' | g, d' g, d' | c e c e | g, d' g, b | \break
% repeat with variations
  c4 e g, r   | c e c e | f a c,2 | f4 f f f   | \break
  g, d' g, d' | g, d' g, d' | c e c e | g, d' g, b |
}


\score {
  <<
\new StaffGroup = "tab with traditional" <<
  \new Staff = "guitar traditional" <<
	\clef "treble_8"
	\context Voice = "theChords" \thechords % Put chord names in
	\context Voice = "upper" \upper
	\context Voice = "lower" \lower
  >> % regular staff
  \new TabStaff = "guitar tab" <<
	\context TabVoice = "hammersNpulls" { \tabFullNotation \hammersNpulls }
	\context TabVoice = "upper" { \tabFullNotation \upper }
	\context TabVoice = "lower" { \tabFullNotation \lower }
  >> % guitar tab
>> % staff group
  >> % score
}

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


Re: How can I get my second tab voice to have stems!

2011-04-20 Thread Patrick Horgan
On 04/20/2011 02:55 AM, Xavier Scheuer wrote:
>  \new TabStaff = "guitar tab" <<
> \new TabVoice = "upper" { \tabFullNotation \upper }
> \new TabVoice = "lower" { \tabFullNotation \lower }
>   >>
Thank you.  This also works:

\new TabStaff = "guitar tab" <<
\context TabVoice = "upper" { \tabFullNotation \upper }
\context TabVoice = "lower" { \tabFullNotation \lower }
>>

Once again I'm reading about context and trying to understand.  I'm a
C/C++ guy and I guess it would make more sense to me if I understood the
data structures.  I understand that the \context will do the \new if
required.  Do they both create a named context exactly the same?

Patrick

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


How can I get my second tab voice to have stems!

2011-04-20 Thread Patrick Horgan
Using GNU LilyPond 2.13.45, with this source there's no stems for the
quarter notes in the bottom voice in the tab staff.  I'm attaching a png
that shows the problem.  (I turned off the footer so the png would be
small instead of being a whole page.)

\version "2.13.45"

\paper {
  oddFooterMarkup = #f
}
tagline = \markup { \center-column { "" ""   "This is my tagline" } }
upper = \relative c {
  \time 4/4
  \key c \major
  \voiceOne
  \stemUp
  < c' g' >2. 4 |
  4. g8 e' d c g( |
  a) d ~ d g,( a) d ~ d g,( |
 a) d ~ d g,( a) d ~ d4  |
}

lower = \relative c {
  \time 4/4
  \key c \major
  \voiceTwo
  \stemDown
  c4 e g, r | c e c e | f f f f | f f f f |
}


\score {
  <<
\new StaffGroup = "tab with traditional" <<
  \new Staff = "guitar traditional" <<
\clef "treble_8"
\context Voice = "upper" \upper
\context Voice = "lower" \lower
  >>
  \new TabStaff = "guitar tab" <<
\tabFullNotation
\context TabVoice = "upper" \upper
\context TabVoice = "lower" \lower
  >>
>>
  >>
}

<>\version "2.13.45"

\paper {
  oddFooterMarkup = #f
}

tagline = \markup { \center-column { "" ""   "This is my tagline" } }
upper = \relative c {
  \time 4/4
  \key c \major
  \voiceOne
  \stemUp
  < c' g' >2. 4 |
  4. g8 e' d c g( |
  a) d ~ d g,( a) d ~ d g,( | 
 a) d ~ d g,( a) d ~ d4  | 
}

lower = \relative c {
  \time 4/4
  \key c \major
  \voiceTwo
  \stemDown
  c4 e g, r | c e c e | f f f f | f f f f |
}


\score {
  <<
\new StaffGroup = "tab with traditional" <<
  \new Staff = "guitar traditional" <<
	\clef "treble_8"
	\context Voice = "upper" \upper
	\context Voice = "lower" \lower
  >>
  \new TabStaff = "guitar tab" <<
	\tabFullNotation
	\context TabVoice = "upper" \upper
	\context TabVoice = "lower" \lower
  >>
>>
  >>
}

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


Re: [OT] Vivi, the Virtual Violinist, plays LilyPond music

2011-03-19 Thread Patrick Horgan

On 03/17/2011 07:15 AM, Marc Mouries wrote:
This is intellectually interesting but the question is not "who 
deserves to create good music?" but rather "who wants to listen to 
music made by someone that does not practice?" and who wants to listen 
to music played by a computer? Sure many times, nowadays, the 
rendition of a computer playing is quite good but who cares? Art 
conveys emotions which are the one thing that make us human and thus 
should be played by human. What's the end goal of such system? Can you 
describe in what is that helpful? Are we one day going to only listen 
to robots playing music?



 Where *will* the limits be, or where *should* the limits be?


Yes very good question. One thing that comes to mind is that I don't 
want to arrive at a point where musician will be teaching computers to 
play instead of learning to play themselves.
We're long past that point.  Many many pop and rock and hip hop 
keyboardists can't really play, i.e. if you asked them to play some 
sheet music or reproduce a particular song, they couldn't do it, but 
they can program loops and effects and assign them to keys and produce 
some excellent music.  Their instrument is the programming and their 
creativity and imagination.


Patrick


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


Re: How do you tell tempo for indications in English

2011-02-02 Thread Patrick Horgan

On 02/02/2011 03:30 AM, Ralph Palmer wrote:



On Tue, Feb 1, 2011 at 11:05 PM, Patrick Horgan <mailto:phorg...@yahoo.com>> wrote:


I'm setting some of O'Neill's Irish tunes, and the tempo
indications are (a selection):

Animated, Boldly, Cheerful, Cheerfully, Gaily, Gracefully, Moderate,
Plaintive, Plaintively, Playful, Playfully, Rather slow, Slow,
Slow and distinctly, Slow and mournful, Slow and tenderly,
Slow and with feeling, Slow with expression, Slow and feeling,
Spirited, Tenderly, Very slow, With animation, With expression,
With feeling, With spirit

What do you do with that?  I can find tables of usual tempo ranges
for italian tempo indications, but I have no idea what to do with
these.  I'd like them to be authentic, in that the midi file would
be about as fast as the tune would usually be played in an Irish
pub.  Does anyone have any ideas?

Patrick


Greetings, Patrick -

The tempo indications are just what they say. There's a lot of 
variation in tempo for the same tune at various sessions.This may not 
be a lot of help, but I would suggest three possibilities: 1) play the 
midi at a default or provisional tempo, decide whether it sounds right 
to you, then modify the tempo accordingly;

But I don't know the repertoire so I don't know what sounds right.
2) get a metronome with a beat input button, play or hum the tune the 
way you think it should go, then tap the metronome button at that pace 
to find the tempo; or

Again, I don't know the repertoire.
3) find a recording or an Irish session musician who will play the 
tune for you, and determine that tempo.
I've tried with some of that with youtube.  Still not helpful for most, 
cause I can't find them.
No hard and fast rules, I'm afraid. I'd like to see the results when 
you're done. Incidentally, if you didn't know, all the O'Neill's tunes 
have been transcribed using ABC format and are freely available. Some 
of them  may give tempos; I don't know. If you want to check them out, 
go to
http://trillian.mit.edu/~jc/cgi/abc/tunefind 
<http://trillian.mit.edu/%7Ejc/cgi/abc/tunefind>
enter the tune name, and you can check out the ABC source file, a 
.jpg, a .png, and other formats.
Yeah, I know that site.  They mention the same problem and that most of 
the files don't have any real tempo indications so the midi files are 
often at weird speeds.
There will be *multiple* hits for each tune. If you want the 
O'Neill's, it will be identified by a number (I can't remember what 
the number is) all the way to the left of the entry.

Thank you,

Patrick

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


Re: How do you tell tempo for indications in English

2011-02-02 Thread Patrick Horgan

On 02/02/2011 06:43 AM, Michael Ellis wrote:

Hi Patrick,

Short of conducting extensive field research in Ireland's pubs, you 
might try asking the question here.


http://www.thesession.org/discussions/

Cheers,
Mike


What a treasure.  Thank you mike.  It lead me to 
http://www.itma.ie/English/Introduction.html.


Patrick

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


Re: How do you tell tempo for indications in English

2011-02-02 Thread Patrick Horgan

On 02/02/2011 03:59 AM, James Lowe wrote:

... elision by patrick ...

I don’t think there is such a thing a 'authentic' tempo range if you are 
referring to setting crotchet/quaver/minim tempo speeds.

What you are asking, it seems is, 'what speed is 'cheerful''?

Which doesn't makes much sense.

I expect it was simply played 'cheerfully' and that would depend on who was 
doing the playing. Also can you be sure that the same tune played in one 'Irish 
pub' is any different from a 'non-Irish pub' or that other 'Irish pub' down the 
road? The music is probably played as fast or slow as the musicians play it and 
that can depend on how many times they have played together, the smell of the 
crowd or simply the number of pints  of the 'black stuff' they have put away 
before/during the gig. ;) 110201-63

Sorry if that sounds a bit flippant, but I am not sure what kind of answer you 
are going to get other than someone else's guestimation of which you could do 
yourself.

Tempo in terms of words (rather than beat numbers) is more about feeling than 
speed.
So what you're saying is that you really don't know.  Still, there must 
be a normal range for a fast jig for example.  If you don't know it's 
ok, but hopefully someone will know.


I don't know the repertoire, but I want to, (on guitar), and it would be 
helpful to know if I'm learning something at half the speed most would 
play it, or conversely at twice the speed.  I'm not looking for anything 
exact, but it would be nice to be in the ballpark rather than down the 
street.


Patrick


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


How do you tell tempo for indications in English

2011-02-01 Thread Patrick Horgan
I'm setting some of O'Neill's Irish tunes, and the tempo indications are 
(a selection):


Animated, Boldly, Cheerful, Cheerfully, Gaily, Gracefully, Moderate,
Plaintive, Plaintively, Playful, Playfully, Rather slow, Slow,
Slow and distinctly, Slow and mournful, Slow and tenderly,
Slow and with feeling, Slow with expression, Slow and feeling,
Spirited, Tenderly, Very slow, With animation, With expression,
With feeling, With spirit

What do you do with that?  I can find tables of usual tempo ranges for 
italian tempo indications, but I have no idea what to do with these.  
I'd like them to be authentic, in that the midi file would be about as 
fast as the tune would usually be played in an Irish pub.  Does anyone 
have any ideas?


Patrick




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


Re: exercise notation

2011-01-25 Thread Patrick Horgan

On 01/25/2011 12:25 PM, lilyp...@josebreden.nl wrote:

Hello,

Singing in a coral I would like to exercise the different parts 
(soprano, alto, bass).

So I would like to generate from a single .ly-file, multiple midi-files:
- all parts together (which is allready working)
- only soprano part
- only alto part
- only bass part
With a small kind of switch.
Sorry I don't know how to do it with a switch, but I've attached 
something that does something similar, it just does it all at once.  
From one lilypond source, O_Magnum_Mysterium.ly, it generates:


O_Magnum_Mysterium-soprano.pdf
O_Magnum_Mysterium-soprano.midi

O_Magnum_Mysterium-alto.pdf
O_Magnum_Mysterium-alto.midi

O_Magnum_Mysterium-tenor.pdf
O_Magnum_Mysterium-tenor.midi

O_Magnum_Mysterium-bass.pdf
O_Magnum_Mysterium-bass.midi

O_Magnum_Mysterium-choir.pdf
O_Magnum_Mysterium-choir.midi

O_Magnum_Mysterium-piano-reduction.pdf

Maybe it will give you an idea.

Patrick
#(set-global-staff-size 18)

\header {
  filename ="o_magnum_mysterium.ly"
  title =   "O Magnum Mysterium"
  poet ="from Matins of Christmas"
  subtitle =	"for mixed chorus, a cappella"
  instrument = "Four Part Voice"
  opus =""
  composer ="Tomás Luis de Victoria (1549-1611)"
  date = "1572"
  mutopiatitle = "O Magnum Mysterium"
  mutopiacomposer = "VictoriaTLd"
  mutopiapoet = "from Matins of Christmas"
  mutopiainstrument = "Voice"
  source = "Arista Edition"
  style = "Renaissance"
  copyright = "Creative Commons Attribution-ShareAlike 3.0"
  typesetter = "Jeff Covey & Patrick Horgan"
  maintainer = "Jeff Covey & Patrick Horgan"
  maintainerEmail = "jeff.covey at pobox dot com & patrick at dbp-consulting dot com"
  maintainerWeb = "http://jeffcovey.net/";
  % brought up to 2.11.49 and minor edits by patr...@dbp-consulting.com
  % put 2.10.33 in as version just because 2.11 is development and not out yet.
  lastupdated = "2008/06/30"

  footer = "Mutopia-2008/06/30-244"
  tagline = \markup {
\override #'(box-padding . 1.0) 
\override #'(baseline-skip . 2.7) 
\box \center-align {
  \small \line {
	Sheet music from \with-url #"http://www.MutopiaProject.org"; \line {
	  \teeny www. \hspace #-1.0 MutopiaProject \hspace #-1.0 \teeny .org 
	  \hspace #0.5
	}
	• \hspace #0.5
	\italic Free to download, with the \italic freedom to distribute, modify and perform.
  }
  \line {
	\small \line {
	  Typeset using \with-url #"http://www.LilyPond.org"; \line {
	\teeny www. \hspace #-1.0 LilyPond \hspace #-1.0 \teeny .org
	  } by \typesetter \hspace #-1.0 . \hspace #0.5 Reference: \footer
	}
  }
  \line {
	\teeny \line {
	  This sheet music has been placed in the public domain by the typesetter,
	  for details see: \hspace #-0.5 
	  \with-url #"http://creativecommons.org/licenses/publicdomain";
	  http://creativecommons.org/licenses/publicdomain
	}
  }
}
  }
}

%{ thanks to jcn for all the help on this one!  :) %}

\version "2.11.49"

global =  {
	\transpose f e
	\key f \minor
	\tempo 4 = 110
	\time 4/4
	\compressFullBarRests
	\override MultiMeasureRest #'expand-limit = 3
	\skip 1*39  \bar "||"
	\skip 1*13  \bar "||" \time 3/4
	\skip 2.*14 \bar "||" \time 4/4
	\skip 1*8   \bar "|."

}

sopranoMelody =  \relative c'' {
	\clef "violin"
	c1 f,2 c' ~ c4 c des des c2 r4
	f des ees f4. f8 f4 c des  c ~ 
	( c8[ bes aes g aes bes c aes]  bes[ aes]  aes[ g16 f] g2 ~ g ) f
% 10
	a1 bes2 a4. ( bes8 c4 )
	des4. ( c8 bes4 ~ bes a ) bes ( aes8 [ g ] f4 ) g aes2
% 15 
	r4 f' des ees f4. f8 f4 des bes c des4. des8 des4 c4. bes8 bes4 ( ~ bes a ) bes2
% 20
	r1 r4 des4 c4. a8 bes4 c des bes des4. des8 des4 des c2 c
% 25
	a4 c c4. c8 c4 d ees2 des?4 ( c8[ bes ] c2 des ) c r1
% 30
	r4 f, bes2 aes4 f g ( a ) bes4. ( c8 des!4 ) des c2 r r1
% 35
	r4 bes ees2 des4 bes c d ees4. ( des8 [ c bes ] bes4 ~
	bes  a8 [ g ] a4 ) a bes2 r
% 40
	a2. a4  a2 bes a4. ( bes8 c4 des ~  des8 [ c ] c4. bes8 bes4 )
	c a2 a4 bes4. bes8 bes2 
% 46
	r4 bes4. ( c8 [ des bes ] c4 ) f ees2 des4 f ees c
	des4. ( c8 [ bes aes ]  aes [ g16 f ]
% 50
	g4 ) g f c' ~ c aes2 des4 ( ~  des8 [ c ] bes2 a4 )
% 53 3/4 time starts here
	bes2 des4 c2 a4 bes4.  aes?8 ( [ bes c] ) des4 c2
	des2 bes4 aes2 f4 g4.  f8 ( [ g aes] )
% 60
	bes2 a4 bes2. r4 r ees des4. ( c8 [ des bes ] 
	c4 ) aes8 ( [ bes c des ] ) ees2 ees4 des4 f2
% 67 back to 4/4 time
	f1 r4 f  f8 ( [ ees des c ] bes4 ) ees4. ( des8 [ c bes ]
	a4 bes2 a4 ) bes1 ~ bes ~ bes ~ bes 
}

altoMelody =  \relative c' {
	\clef "violin"
	r1 r2 f2 ~ f bes, f'2. f4 ges ges f2 r4
	f des ees f4. f8 f4 c des f2 ( e8 [ d ] e2 ) f
% 10
	f1 f2 f4. ( g8

Re: Complex time signature

2011-01-15 Thread Patrick Horgan
Someone mentioned this format and I had the files laying around from 
when they came through the list before.  I didn't keep track of who 
wrote them.

compound-test.png
\version "2.11.62"
compoundTimeSignature = #(define-music-function
  (parser layout timesig compound) (list? list?)
  #{
% graphical display
\once \override Staff.TimeSignature #'Y-offset = #3
\once \override Staff.TimeSignature #'stencil = #ly:text-interface::print
\once \override Staff.TimeSignature #'text = #(markup
   ;; parenthetical display of compound-ness
   #:column(
#:small #:line(
  #:concat ( "("
   ;; list the additive portions of the time signature,
   ;; adding "+" between items.
   (make-line-markup (list-insert-separator
 (map (lambda (n)
 (markup (number->string n)))
  $compound)
 (markup "+")))
  ")"
 ))
   #:override '(baseline-skip . 0)
  ;; main time signature display
  (#:number #:line(
 #:column(
   (number->string (car $timesig))
   (number->string (cadr $timesig)))
 

% measure length + beaming
\set Timing.timeSignatureFraction = #(cons (car $timesig) (cadr $timesig))
\set Timing.beatLength = #(ly:make-moment 1 (cadr $timesig) 0 1)
\set Timing.beatGrouping = $compound
\set Timing.measureLength = #(ly:make-moment (car $timesig) (cadr $timesig) 0 1)
  #})

\version "2.11.62"
\include "compound.ly"

\relative c' {
  \compoundTimeSignature #'(5 8) #'(3 2)
  c8 d16 d e e fis fis gis gis
  \compoundTimeSignature #'(5 8) #'(2 3)
  c,8 d16 d e e fis fis gis gis
  \compoundTimeSignature #'(5 4) #'(2 3)
  c,8 c d d e e f f g g
  \compoundTimeSignature #'(5 4) #'(3 2)
  c,8 c d d e e f f g g

  \compoundTimeSignature #'(8 8) #'(3 3 2)
  a8 a a e' e e c c
  \compoundTimeSignature #'(7 8) #'(2 2 3)
  a a b b cis cis cis

  \time 4/4
  a a b b cis cis d d
}

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


Re: ottava bassa

2011-01-13 Thread Patrick Horgan

On 01/12/2011 07:42 AM, Phil Holmes wrote:

- Original Message - From: 
> If you modify that function in scm/define-music-callbacks.scm to 
'Voice
> instead of 'Staff, then \ottava only applies to the current voice 
(which > is,

> however, probably now what we want by default).


i guess you meant that this is *not* what we want? it really isn't? i 
mean, if you instantiate two voices and put the \ottava indication  
only in one, i guess you only want the octave change only in that  
voice. not uncommon in piano music, among other cases.



The problem with this approach is: if you want the ottavation to apply 
to the staff, which is common, would you need to set it in each 
voice?  And then you'd need to detect that it had already been set and 
not typeset it.
Isn't that frustrating.  We know that this situation (a voice or a 
section of voice that is written an octave differently than played) 
occurs in written notation, not commonly, but not infrequently, and that 
it wasn't in the mind of the person who first wrote this part of 
lilypond.  Has someone written a bug for this?  Sounds like it will be a 
bit of work to get it right.  Would it be possible to have two 
functions, one for voice ottava and one for staff ottava?  i.e. if you 
copy the 17 lines of make-ottava-set and change the function name to 
make-voice-ottava-set and the 'Staff to 'Voice, does that solve the 
problem, or will there be conflicts in the offing?  I would guess that 
you'd either want to use one or the other, I can't think of times that 
they'd both be in the offing.


Patrick


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


Re: Bug in 2.13.44-1?

2011-01-04 Thread Patrick Horgan

On 01/04/2011 06:47 AM, Tim McNamara wrote:

Just another data point, it compiles fine for my on a recent git pull 
from trunk on ubuntu Natty Narwhal.


Patrick

\version "2.12.2"

#(ly:set-option 'delete-intermediate-files #t)

\paper {
 indent = 0.0
 ragged-last = ##f

}

\header {
   title = "Finn McCool"
   subtitle = "Concert Instruments"
   composer = "McNamara"
   meter = "Swing Ballad"
   copyright = "Tim McNamara 2010, All Rights Reserved"
}

harmonies = \chordmode {

r8
% 1
bes2:min7 ges2:7
des1:maj7
bes2:min7 ges2:7
des1:maj7

% 5
bes2:min7 ges2:7
bes2:min7 ees2:7
ees2:min7 aes2:7
des1:maj7

% 9
ces1:min6
ges1:maj7
ces1:min6
ges1:maj7

% 13
ces1:min6
ges1:maj7
aes1:7
des1:maj7


}

melody = \relative c' {
\override Staff.TimeSignature #'style = #'()
\time 4/4
\clef treble
\key des\major

% 1
r1
r1
r1
r1 \break

% 5
r1
r1
r1
r1 \break
% 9
r1
r1
r1
r1 \break

% 13
r1
r1
r1
r1 \break

\bar ":|"

}



\score

{
   <<

 \new ChordNames {
   \set chordChanges = ##t
   \harmonies
 }
 \new Staff \melody
   >>

}




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


Re: Can't build local docs with current git pull

2011-01-01 Thread Patrick Horgan

On 01/01/2011 07:46 AM, Carl Sorensen wrote:

On 12/31/10 11:43 PM, "Patrick Horgan"  wrote:

Is this a known thing or should I look at it?

Please look at it.  It's not a known bug.

Thanks,

Carl

You're welcome, first, is this an issue, or can I ignore it?

langdefs.py: warning: lilypond-doc gettext domain not found.

Patrick

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


Can't build local docs with current git pull

2010-12-31 Thread Patrick Horgan
Did git pull, make dist-clean, make all, make install, all completed 
fine.  Then make doc results in:


Renaming input to: `tablature-fretboard-open-string.ly']
Interpreting music...
[/usr/local/lilypond/out/share/lilypond/current/fonts/otf/emmentaler-20.otf]Segmentation 
fault (core dumped)
command failed: /usr/local/lilypond/out/bin/lilypond -I ./ -I ./out-www 
-I ../../input -I /usr/local/lilypond/Documentation -I 
/usr/local/lilypond/Documentation/snippets -I ../../input/regression/ -I 
/usr/local/lilypond/Documentation/included/ -I 
/usr/local/lilypond/mf/out/ -I /usr/local/lilypond/mf/out/ -I 
/usr/local/lilypond/Documentation/pictures -I 
/usr/local/lilypond/Documentation/pictures/./out-www -dbackend=eps 
--formats=ps,png,pdf  -dinclude-eps-fonts -dgs-load-fonts 
--header=doctitle --header=doctitlede --header=doctitlees 
--header=doctitlefr --header=doctitlehu --header=doctitleit 
--header=doctitleja --header=doctitlenl --header=texidoc 
--header=texidocde --header=texidoces --header=texidocfr 
--header=texidochu --header=texidocit --header=texidocja 
--header=texidocnl -dcheck-internal-types -ddump-signatures 
-danti-alias-factor=2 -I  "/usr/local/lilypond/out/lybook-db"  -I  
"/usr/local/lilypond/input/regression"  -I  
"/usr/local/lilypond/input/regression"  -I  
"/usr/local/lilypond/input/regression/out-www"  -I  
"/usr/local/lilypond/input"  -I  "/usr/local/lilypond/Documentation"  
-I  "/usr/local/lilypond/Documentation/snippets"  -I  
"/usr/local/lilypond/input/regression"  -I  
"/usr/local/lilypond/Documentation/included"  -I  
"/usr/local/lilypond/mf/out"  -I  "/usr/local/lilypond/mf/out"  -I  
"/usr/local/lilypond/Documentation/pictures"  -I  
"/usr/local/lilypond/Documentation/pictures/out-www" --formats=eps  
--verbose  -deps-box-padding=3.00  -dread-file-list 
-dno-strip-output-dir  "


seg fault was here (at grob-property.cc:115)

110
111void
112Grob::internal_set_property (SCM sym, SCM v)
113{
114  internal_set_value_on_alist (&mutable_property_alist_,
115   sym, v);
116
117}

&mutable_property_alist_ is 0x4a, sym is 0xb7309050, and v is 0x1a.

using gcc 4.6.0 on ubuntu meercat

Is this a known thing or should I look at it?

Patrick

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


Re: Can't build lilypond missing lily-guile.hh

2010-12-07 Thread Patrick Horgan

On 12/06/2010 02:05 PM, Patrick Horgan wrote:


No joy.  Still seg-faulting on the simplest files.
But!  It was a gcc bug, not a lilypond bug.  I was using gcc (GCC) 4.6.0 
20101109.  Pulling down and building gcc (GCC) 4.6.0 20101207 and then 
rebuilding lilypond made everything happy.  Sorry for the noise.


Patrick

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


Re: Can't build lilypond missing lily-guile.hh

2010-12-06 Thread Patrick Horgan

On 12/06/2010 10:17 AM, Francisco Vila wrote:

2010/12/6 Patrick Horgan:


patr...@dell$ git checkout
Dflower/include/guile-compatibility.hh
Dlily/guile-init.cc
Dlily/include/lily-guile-macros.hh
Dlily/lily-guile.cc
Dly/guile-debugger.ly
Dscm/guile-debugger.scm

Something or sobebody deleted those files.  What does 'git branch' say?

* master

Also, 'git reset --hard' should restore all deleted files. Use with care!
Checking them out individually restored them already, and I can build 
again, but using lilypond on all files now, always results in:

GNU LilyPond 2.13.42
Processing `strangetabs.ly'
Parsing...
Interpreting music... Segmentation fault (core dumped)

The segfault is with non-useful backtrace in the core because the stack 
is corrupt.   That's after make distclean and autogen.sh and make 
install.   I'm going to try the reset hard, followed by a distclean and 
augogen.sh and make install, since something is messed up...time passing...


No joy.  Still seg-faulting on the simplest files.

#0  is_live (this=0x1a, sym=0xb6baa070, v=0x1a) at grob-property.cc:316
#1  internal_set_value_on_alist (this=0x1a, sym=0xb6baa070, v=0x1a)
at grob-property.cc:123
#2  Grob::internal_set_property (this=0x1a, sym=0xb6baa070, v=0x1a)
at grob-property.cc:115
#3  0x0828c09a in Engraver_dispatch_list::apply (this=0x8df6aa0, gi=...)
at translator-dispatch-list.cc:35
#4  0x080d693f in acknowledge_grobs (this=0x8ddf0b0) at 
engraver-group.cc:122
#5  Engraver_group::acknowledge_grobs (this=0x8ddf0b0) at 
engraver-group.cc:83

#6  0x080d6c40 in Engraver_group::do_announces (this=0x8ddf0b0)
at engraver-group.cc:172
#7  0x080d6c25 in Engraver_group::do_announces (this=0x8dde958)
at engraver-group.cc:162
#8  0x081f9bd1 in one_time_step (self=0x8dde958, ev=0xb6c1cce8)
at score-engraver.cc:152
#9  Score_engraver::one_time_step_callback (self=0x8dde958, ev=0xb6c1cce8)
at score-engraver.cc:145
#10 0x080c6ace in Dispatcher::dispatch (this=0x8dd8130, sev=0xb6c1cce8)
at dispatcher.cc:150
#11 0x080be227 in Context::internal_send_stream_event (this=0x814,
type=0xb6b4ca00, origin=0x0, props=0xbf960a7c) at context.cc:461
#12 0x080fbbcc in Global_context::run_iterator_on_me (this=0x8dddcb0, iter=
0x8dde2d0) at global-context.cc:170
#13 0x080fa56c in ly_interpret_music_expression (mus=0x8dddcb0, 
ctx=0xb6c29d00)

at global-context-scheme.cc:119
#14 0x080fa996 in ly_run_translator (mus=0xb70782b0, output_def=0xb6c29d00)
at global-context-scheme.cc:147
#15 0x081fea2e in Score::book_rendering (this=0x8cfb2d0, 
layoutbook=0x8bb9390,

default_def=0x8ca3bd8) at score.cc:157
#16 0x080947a4 in Book::process_score (this=0x8bb9338, s=0xb6f400e0,
output_paper_book=0x8cb3e28, layout=0x8ca3bd8) at book.cc:230
#17 0x08094cbc in Book::process (this=0x8bb9338, default_paper=0x8c67e18,
default_layout=0x8ca3bd8, parent_part=0x0) at book.cc:296
#18 0x08094d87 in Book::process (this=0x8bb9338, default_paper=0x8c67e18,
default_layout=0x8ca3bd8) at book.cc:201
#19 0x08091fec in ly_book_process (book_smob=0x8ca3bd8,
default_paper=0xb73c6898, default_layout=0xb72f77f8, output=0x1a)
at book-scheme.cc:76
#20 0x004ed60b in scm_gsubr_apply () from /usr/lib/libguile.so.17
#21 0x004d6bd4 in scm_dapply () from /usr/lib/libguile.so.17
#22 0x004d7727 in ?? () from /usr/lib/libguile.so.17
#23 0x004daefb in scm_primitive_eval () from /usr/lib/libguile.so.17
#24 0x081bfb5a in ly_parse_scm (
s=0x8b3a4a5 "(let ((book-handler (if (defined? 
'default-toplevel-book-handle---Type  to continue, or q  
to quit---
r)\n", ' ' , "default-toplevel-book-handler\n", ' ' 
, "toplevel-book-handler)))\n   (cond ((pair? 
toplevel-boo"...,

n=0xbf961038, i=..., safe=false, parser=0x8c56c20) at parse-scm.cc:139
#25 0x082af89f in Lily_lexer::yylex (this=0x8c56f30) at lexer.ll:351
#26 0x082b3d80 in yylex (my_lily_parser=0x8c56c20) at parser.yy:2779
#27 yyparse (my_lily_parser=0x8c56c20) at out/parser.cc:2448
#28 0x081373e8 in Lily_parser::parse_file (this=0x8c56c20, init=Cannot 
access memory at address 0x1a

)
at lily-parser.cc:121
#29 0x08135039 in ly_parse_file (name=0xbf9629b0) at 
lily-parser-scheme.cc:123

#30 0x004d8749 in ?? () from /usr/lib/libguile.so.17
#31 0x004d6c5b in scm_dapply () from /usr/lib/libguile.so.17
#32 0x004d54a8 in scm_apply () from /usr/lib/libguile.so.17
#33 0x004daa4d in scm_call_0 () from /usr/lib/libguile.so.17
#34 0x005393f0 in scm_body_thunk () from /usr/lib/libguile.so.17
#35 0x00539913 in scm_c_catch () from /usr/lib/libguile.so.17
#36 0x00539b5d in scm_catch_with_pre_unwind_handler ()
   from /usr/lib/libguile.so.17
#37 0x004ed60b in scm_gsubr_apply () from /usr/lib/libguile.so.17
#38 0x004d6bd4 in scm_dapply () from /usr/lib/libguile.so.17
#39 0x004d7727 in ?? () from /usr/lib/libguile.so.17
#40 0x004d7812 in ?? () from /usr/lib/libguile.so.17
#41 0x004d6

Re: Can't build lilypond missing lily-guile.hh

2010-12-06 Thread Patrick Horgan

On 12/06/2010 12:14 AM, Francisco Vila wrote:

git checkout HEAD  lily/include/lily-guile.hh
That's strange.  That got it, but I wonder why git pull didn't?  After 
getting it, now it complains about another missing file included from 
lily-guile.hh.


./include/lily-guile.hh:37:34: fatal error: guile-compatibility.hh: No 
such file or directory

compilation terminated.

I can reclone the repository, but I'm intrigued about what sort of state 
things can get in that git won't fetch those.  So anyway I just typed 
git checkout, and got this:


patr...@dell$ git checkout
Dflower/include/guile-compatibility.hh
Dlily/guile-init.cc
Dlily/include/lily-guile-macros.hh
Dlily/lily-guile.cc
Dly/guile-debugger.ly
Dscm/guile-debugger.scm

Then I did a git checkout of each of them.

git checkout flower/include/guile-compatibility.hh
git checkout lily/guile-init.cc
git checkout lily/include/lily-guile-macros.hh
git checkout lily/lily-guile.cc
git checkout ly/guile-debugger.ly
git checkout scm/guile-debugger.scm

Now everything builds fine.  Now I didn't delete them out of my tree.  
Although it's always in the back of my mind that I want to learn the 
lilypond code, I haven't done it yet, so all I ever do is the occasional 
git pull and make install.  Anyone have any ideas what could have gone 
wrong?


Patrick

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


Can't build lilypond missing lily-guile.hh

2010-12-05 Thread Patrick Horgan
Has anyone else seen this?  git pull, make cleandist, autogen.sh with no 
complaints, then make fails with this result:


make[1]: Entering directory `/usr/local/lilypond/lily'
cp -p /usr/local/lilypond/config.hh out/config.hh
rm -f ./out/accidental-engraver.dep; 
DEPENDENCIES_OUTPUT="./out/accidental-engraver.dep 
./out/accidental-engraver.o" g++ -c -Woverloaded-virtual  
-I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing 
-g   -g -fwrapv -DHAVE_CONFIG_H  -DNDEBUG -I./include -I./out 
-I../flower/include -I../flower/./out -I../flower/include  -O2 
-finline-functions -g -pipe -pthread -I/usr/local/include/freetype2 
-I/usr/local/include   -pthread -I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -Wno-pmf-conversions  -W -Wall 
-Wconversion -o out/accidental-engraver.o accidental-engraver.cc

In file included from ./include/accidental-placement.hh:23:0,
 from accidental-engraver.cc:21:
./include/grob-interface.hh:23:25: fatal error: lily-guile.hh: No such 
file or directory

compilation terminated.
make[1]: *** [out/accidental-engraver.o] Error 1
make[1]: Leaving directory `/usr/local/lilypond/lily'
make: *** [all] Error 2


Where can I get lily-guile.hh?

Patrick

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


Re: vim

2010-12-05 Thread Patrick Horgan

On 12/03/2010 09:24 AM, Patrick Karl wrote:

On Dec 3, 2010, at 11:01 AM, lilypond-user-requ...@gnu.org wrote:


Message: 1
Date: Fri, 03 Dec 2010 07:58:07 -0800
From: michael webster
Subject: Re:vim
To: lilypond-user@gnu.org
Message-ID:<7697ea0a-cba0-47c0-b978-b25c6ffd3...@mac.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

in recent comments folks have discouraged vim - I have learned vim
(MacVim) specifically for Lilypond use and have found it terrific.

I have mapped commands to send to lilypond and view pdf or open midi
output in Quicktime player.

The syntax coloring is a pain to install but works. vims capabilities
(eg finding other instances of text the cursor is on, folding,
navigation) and plugins (snippets, alignment) are super useful in a
Lilypond context.

Could you say a few more words about the mapped commands and the syntax 
coloring?  Is there anything you could share?
Is there a section in the lily docs for something like this?  I seem to 
vaguely remember reading something about it long ago.


Patrick

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


Re: How to include a file just once?

2010-01-21 Thread Patrick Horgan
Too bad there's no #ifdef #define #endif or a conditional include on a 
variable known to identify the inclusion of a particular file.


Patrick



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


Re: Incorrect Lilypond version

2010-01-21 Thread Patrick Horgan

hsweet wrote:

Hi all...

I've installed what I think should be Lilypond 2.12 every way I can dream
up, the installation messages say it's installing 2.12. but lilypond -v
still thinks it 2.10.33.
  

Perhaps you have another lilypond earlier in your path?  Type

which lilypond

from the command line and see which one shows up.

whereis lilypond

will show all.

Patrick



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


Re: Incorrect Lilypond version

2010-01-20 Thread Patrick Horgan

Federico Bruni wrote:

...elision by patrick...

I've often wondered why, even though I have a version of LilyPond 
installed from repository (therefore located in /usr/bin), when I 
install a package of a new version that version becomes the default in 
the environment.


For example now:
f...@debian:~$ which lilypond
/home/fede/bin/lilypond

What kind of trick is this?

It's your PATH.  The PATH is how unix/linux finds things.  If you type:

echo $PATH

you'll see that either ~/bin, or /home/fede/bin, comes before /usr/bin.  
They're searched in the order they occur in your PATH.  If you'd like it 
to be different, find the file that sets it when you log in.  It will be 
something like .bashrc or .bash_profile or .profile.  Edit that file and 
change the order of things, (or add too), your PATH.


Patrick



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


Re: Divided voices

2010-01-20 Thread Patrick Horgan




Bertalan Fodor (LilyPondTool) wrote:

  
  
It is important for the same voices to remain in the same Voice context.
  
So if you have this:
  
\new Voice = "soprano" { c8 d e } and you want to go to S1 and S2, you
should use this construct:
  
  \score {
\new Staff {
\new Voice = "soprano" \relative c' { \voiceOne c8 d e( << { f) }
\new Voice = "s2" { \voiceTwo d } >> }
}
}

That is so cool!  I had to reindent it to figure out what happened. 
Who knew you could start a new voice inside another voice midstream!  I
added a couple more simultaneous notes and then a couple of soprano
notes after the join just to make sure I understood it.  This is really
exciting!

\version "2.12.2"

\score {
  \new Staff {
    \new Voice = "soprano" \relative c' {
  \voiceOne c8 d e(
    <<
  { f) g e
  }
  \new Voice = "s2" {
    \voiceTwo d c b
  }
    >>
    c8 c2
    }
  }
}


Patrick





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


Does the lovely Introduction to the 2.12 LM exist in 2.13?

2010-01-18 Thread Patrick Horgan
I hadn't read the LM for some time and thought it would be nice to see 
how it was doing.  I started reading the 2.12 version and was 
wonderfully surprised by the Introduction which gives great history and 
context to understand the rest.  I saw one document issue I thought I 
might bring up with the editors, so checked the 2.13 LM to see if it was 
already dealt with before I bothered people with something that had 
already been fixed.  To my surprise, I couldn't find the section.  I 
thought maybe it moved to essay, but that's different content.  Does it 
still exist somewhere?  If not I recommend everyone go and read it while 
you can;)


Patrick



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


Re: Part name with staff groups/grand staff

2010-01-16 Thread Patrick Horgan

Mats Bengtsson wrote:

You mean like the following example?

Doesn't work with odd numbers of staffs.

Patrick




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


Re: [frogs] Re: Numeric note heads for singers

2010-01-10 Thread Patrick Horgan

pound...@lineone.net wrote:

... elision by patrick ...
  

This:

\layout {
  \context {
\Voice
\consists \ez-numbers-engraver
  }
}
  

Gives this error:
numerNoteHeads2.ly:29:14: error: syntax error, unexpected 
SCM_IDENTIFIER, expecting STRING

   \consists
 \ez-numbers-engraver

on 2.13.11 built from trunk.  I do get an output with pretty numbered 
note heads though.


Patrick



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


Re: 2 songs on one page

2010-01-10 Thread Patrick Horgan




Kieren MacMillan wrote:

  Hi Patrick (et al.),

  
  
for people who haven't used the LSR (lilypond snippet repository) before,
if you click on the pretty pictures of things you want to do,
they turn into lilypond code for you to learn from:)  It's all automagic.

  
  
Your post brings up a good point: each LSR snippet page should explicitly say this.
It would make life easier for everyone.
  

Wouldn't that be grand.  I thought of suggesting it, but wondered about
whether every page should take up space for something people only need
to hear once.   Of course there are a lot of people seeing a page from
the LSR for the first time.

  
Cheers,
Kieren.
  

Regards,
Patrick






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


Re: 2 songs on one page

2010-01-10 Thread Patrick Horgan




Dmytro O. Redchuk wrote:

  У нд, 2010-01-10 у 13:49 +0100, Martin Tarenskeen пише:
  
  
Hi,

I want to put two (little) songs on one page, both complete with title, 
subtitle, and composer headers, but footer information - if any - only at 
the bottom of the page. But I can't figure out how to do this. Help ?

  
  
I believe this can help You?..

http://lsr.dsi.unimi.it/LSR/Item?id=310
  

This will go without saying for most, but for people who haven't used
the LSR (lilypond snippet repository) before, if you click on the
pretty pictures of things you want to do, they turn into lilypond code
for you to learn from:)  It's all automagic.

Patrick






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


I hope you like this off-topic post

2009-12-18 Thread Patrick Horgan
Just quickly, because many will miss this, on gamedev network there's a 
cool little orchestration tutorial.


http://www.gamedev.net/reference/music/features/brfOrchGuide/

Patrick



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


Re: first bar width

2009-12-07 Thread Patrick Horgan

Federico Bruni wrote:

I'm writing a blank sheet to be used for hand writing (see attached file).
The problem is that the first bar of each line is too large compared
with the other bars. I guess this is due to a default padding value of
some property.. I don't know which..
  

You'd want some extra room for key signature.

Patrick



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


I need some pointers

2009-11-16 Thread Patrick Horgan
I've committed to making a key for guitar tablature that will show 
little snippets of tab along with descriptions.  How do I do that?  Any 
pointers greatly appreciated;)  I understand TAB quite well, and vocal 
music on lilypond well, as well, but well, don't understand how TAB on 
lilypond that much, and have never tried to combine text and lily.


Patrick



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


Re: Inline score inside markup - bugs in music alignment

2009-10-30 Thread Patrick Horgan




Graham Percival wrote:

  On Fri, Oct 30, 2009 at 7:55 PM, Patrick Horgan  wrote:
  
  
Don't feel bad.  I have a Masters in Computer Science and I don't understand
Scheme at all in spite of having an AI class that used Scheme about a
million years ago.

  
  

Yes, don't feel bad.  Despite speaking, reading, and writing a
language (English) for over 20 years, I can't understand a single
sentence of Turkish.


Scheme is not hard to learn if you want to learn it.  If you make no
attempt to learn it, then you obviously won't understand it!  We have
contributers writing scheme who haven't taken a single CS class, let
alone getting a degree in the subject.  I have no problem with Jiri's
initial request for help, but don't claim that scheme is hard to
learn.
  

Now Graham, you know I never once claimed it was hard to learn.

Best regards,

Patrick





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


Re: Inline score inside markup - bugs in music alignment

2009-10-30 Thread Patrick Horgan

Jiri Zurek (Prague) wrote:

...elision by Patrick ... I am so sorry
that I did not study computer science so that I would understand scheme
coding, but to my greatest misfortune it is above my capabiblities. I am
alone to be blamed for this, but this is the reason that I am looking for
someone to help.
  
Don't feel bad.  I have a Masters in Computer Science and I don't 
understand Scheme at all in spite of having an AI class that used Scheme 
about a million years ago.


Patrick



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


Re: Just a quick TAB question

2009-10-27 Thread Patrick Horgan




Carl Sorensen wrote:

  

On 10/27/09 12:53 PM, "Patrick Horgan"  wrote:

  
  
Soon to do my first guitar tab piece in lily and was wondering if
there's any way to automagically print out the TAB key, i.e. the thing
that explains to the reader/player what all the TAB symbols mean?

  
  
Nope.

But you could create a TAB key using markup commands and add it to the LSR.
That would be a good contribution to the LilyPond.

And it could even get added as a selected snippet in the documentation.
  

I commit to it.  I suspected it was something I needed to do.

Patrick





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


Just a quick TAB question

2009-10-27 Thread Patrick Horgan
Soon to do my first guitar tab piece in lily and was wondering if 
there's any way to automagically print out the TAB key, i.e. the thing 
that explains to the reader/player what all the TAB symbols mean?  Most 
TAB pieces have one, and since there's a number of /families/ of guitar 
TAB notation commonly used, none of which is quite like the lily one 
(which is using the tabFullNotation, in my opinion superior to any I've 
seen), it's needed.  On an aside note, Stefan Grossman, the English 
country blues historian/expert/god of all blues knowledge, uses TAB 
notation where the fret numbers go in the /spaces/   Bizarre and 
very hard to read.  The lines are supposed to be your strings, I don't 
know what he's using the spaces for.



Patrick



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


Re: indent-ly

2009-10-21 Thread Patrick Horgan

Graham Percival wrote:

What about a version that read from standard input and wrote to
standard input?  I'm thinking about the documentation -- we could
automatically format all lilypond input syntax.
  
On unix a lot of tools default to input coming from one or more file(s) 
whose names are specified on the command line, and output going to 
standard output.  They act as filters and you can put them in 
pipelines.  Some specify one or more  input filename(s) as the only 
non-option command line argument(s).  Many of them have no facility to 
specify output filenames, requiring redirection if you want them to 
write to a file.  Examples include sed, od, hd, col, cut, awk, indent, 
and bc.  One variant you see a lot is that some programs will read a 
file list and after they're done they'll read from stdin until they run 
out of input.


indent, which does for C programs what you're doing for lilypond 
programs has several syntaxes.


indent [options] [input-files]

   This will create a backup of all the input files and then replace 
the original file with prettyfied versions.


indent [options] [-o output-file]

   If no files are specified, it reads from standard in and then if 
there's no -o option it writes to standard out.  If there is a -o option 
it writes to the specified file.


indent [options] [single-input-file] [-o output-file]

   This will write to the output file if -o specified, backup and 
replace the original single-input-file if -o not specified.


indent -st [input-file]

   the -st option means write to standard out, so writes the result of 
prettyfying the input-file to standard out.


Hope this helps.

Patrick



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


Re: title on a separate page (Susan Dittmar)

2009-10-06 Thread Patrick Horgan
Frederick, using 2.13.4, with your version of the title on a separate 
page, I get 434 instances of:


programming error: note head has no event cause
continuing, cross fingers

and 217 instances of:

programming error: these accidentals do not have a pitch
continuing, cross fingers

It follows a pattern, with 2 of the no event cause one's folloed by one 
of the do not have a pitch ones, 217 times.


I get just the same errors from valentin's, and a similar pattern from 
kieren's which then seg faults.


Do you know why?

Patrick



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


Re: Lilypond for drums

2009-10-01 Thread Patrick Horgan

Philippe Hezaine wrote:

 elision done here...

Hi,

There is an error in the typesetting.
The author writes <>
Write it: 8
Cheers.
Thanks!  one quick global search and replace and the code compiles 
cleanly and gives a good output.


Patrick



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


Re: Lilypond for drums

2009-10-01 Thread Patrick Horgan
Just out of curiosity, (since I don't play, nor read, drum music), I 
compiled this with lilypond version 2.13.4 on ubuntu.  It built the 
output, but with many complaints like:

GNU LilyPond 2.13.4
Processing `test.ly'
Parsing...
Interpreting music... [8]
Preprocessing graphical objects...
programming error: note head has no event cause
continuing, cross fingers
programming error: note head has no event cause
continuing, cross fingers
programming error: these accidentals do not have a pitch
continuing, cross fingers

How could it be modified to give the same beautiful output without all 
the complaints?


\version "2.11.58"
\header {
 title = "Drum Excersises Robin"
 subtitle = "week 40 - 2009"
}

% -- Drums --
up = \drummode {
 \voiceOne
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8

 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8
 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8 cymr8

 cymr8 cymr8 <> cymr8 cymr8 cymr8 <> cymr8
 cymr8 cymr8 <> cymr8 cymr8 cymr8 <> cymr8
 cymr8 cymr8 <> cymr8 cymr8 cymr8 <> cymr8
 cymr8 cymr8 <> cymr8 cymr8 cymr8 <> cymr8
}
down = \drummode {
 \voiceTwo

 bd4 bd4 bd4 bd4
 pedalhihat4 pedalhihat4 pedalhihat4 pedalhihat4
 bd4 bd4 bd4 bd4
 pedalhihat4 pedalhihat4 pedalhihat4 pedalhihat4

 bd4 bd4 pedalhihat4 pedalhihat4
 bd4 bd4 pedalhihat4 pedalhihat4
 bd4 bd4 pedalhihat4 pedalhihat4
 bd4 bd4 pedalhihat4 pedalhihat4

 bd4 pedalhihat4 bd4 pedalhihat4
 bd4 pedalhihat4 bd4 pedalhihat4
 bd4 pedalhihat4 bd4 pedalhihat4
 bd4 pedalhihat4 bd4 pedalhihat4
}

drumContents = {
 <<
   \new DrumVoice \up
   \new DrumVoice \down
 >>
}

\score
{
 <<
   \new StaffGroup = "rhythm" <<
 \new DrumStaff \drumContents
   >>
 >>

 \layout {
  indent = #0
 }

 \midi { }
}




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


Re: Lilypond - chord progression

2009-09-03 Thread Patrick Horgan

Christian Henning wrote:

Hi all, thanks for the replies. I could fix all of my problems. I'm
using multipliers now which I find easier to use and to read. Thanks
to Brett Duncan.

This now finishes my first project using lilypond. I like it and will
continue using it. Great stuff!

Christian
  

Well, could we see the final result? :)

Patrick



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


Re: chord durations

2009-09-02 Thread Patrick Horgan

Tim McNamara wrote:

I am a guitarist.

If all he wants is a chord chart, some paper and a pencil would be a 
better approach.  Or even a word processor two write out the chords 
like Ralph Patt did with the Vanilla Book.


http://www.ralphpatt.com/VBook.html

Christian's trying to do something LilyPond is not designed to do when 
what he really needs is a lead sheet, if he wants to use LilyPond 
without a lot of kerfuffling around.  I've sent him information about 
this back-channel.

I agree it would be silly to use lilypond just to generate something like:


|| C7/ / / | C / / / | C / / / | C / / / |
| F / / / | F / / / | C / / / | C / / / |
| G7 / / / | F / / / C / / / | C / / / ||

But what if it was only one of the outputs from the music, which also 
generated tab and sheet music, and midi?  While you're already using the 
data to generate the other useful forms, what you be wrong with using it 
to generate charts, which are a very commonly used thing in the jazz world?


Patrick



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


Re: chord durations

2009-09-02 Thread Patrick Horgan

Tim McNamara wrote:


On Sep 1, 2009, at 9:30 PM, Christian Henning wrote:


Am I right, that lilypond is rarely used for my type of notation?
Meaning rock/pop tunes for acoustic guitar.


No, the style of music makes no difference.  But LilyPond is intended 
for engraving music which is fundamentally based upon notes on the 
staff,  and you seem to be just writing out chord progressions without 
a melody.  LilyPond is really not designed for this.  If you were 
writing in the melody with the chords above the staff, many of your 
problems would be resolved.  I think that what you are trying to do is 
to write out lead sheets,

No he's writing chord charts--pretty common for guitarists.

Patrick



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


Re: new website draft 8: almost giving up

2009-08-12 Thread Patrick Horgan

Definitely like alternative style 1 ( the green ) better.

Patrick



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


Re: staff lines blurred on my website

2009-08-10 Thread Patrick Horgan

It's a matter of not enough dots to have dots in all the right places.

o
o
o
o

Imagine three lines have to be shown by turning on the dots above.

The top and the bottom row line right up with rows of dots so that's easy.

The middle line though goes right in between two rows of dots, so the 
screen would light up the rows of dots on either side of the desired 
position partially to simulate the line where it can't actually draw 
one.   You'd get two crisp black lines with a fuzzy grey line in between.


Patrick



___
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 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?
  
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
    -v             print 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: 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 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?

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: Speed-up compiling

2009-07-29 Thread Patrick Horgan




Michael Käppler wrote:
Hi all,
  
I'm "suffering" from enormous compiling durations on large files. With
"large" I mean a file with about 250 measures and seven staves per
system. The last time I compiled the file completely (without using
showLastLength) I did it overnight, since after one and a half hour
Lilypond still was "Preformatting graphical elements..." (Don't know
what's the correct term in the english version)
  
I know that's my laptop is way too old to do such complex task quickly
- (Athlon XP 2600, 256MB Ram, OpenSUSE 11.1) but are there general
suggestions which help to speed up the compiling process?
  

The one thing you could do is greatly increase your ram to 1GB.  You'll
think you have a new computer for $50-$150.  Here's why.

Here's the problem.

You're thrashing to disk, which means the amount of memory used by
lilypond is far larger than the available real memory and your system
is spending more time moving information between disk and memory than
it is actually running your programs.  Modern operating systems support
virtual memory which means that you can use a larger amount of pretend
memory than the existing real hardware memory.  As much of the virtual
memory will be in the hardware memory as possible including the stuff
you're using the most, and the part that doesn't fit will be located in
a special area of your hard drive.  That means that when lilypond or
another application wants to use more than 256MB of memory to speed
things up, some of the stuff that should be in hardware memory for
speed gets pushed out to the disk.  When lilypond tries to access the
part of memory that's actually on disk, it has to move something else
from hardware memory to disk to make room, and then read the part
you're trying to access from disk back into hardware memory.  

Disks are WAY SLOWER than memory.  A common disk these days might take
10ms (.010 seconds), on average, to access a bit of data.  Memory would
likely take 10ns (.000 000 010 seconds) to access a bit of data.  That
means that getting the data out of memory is a MILLION times faster. 
This is, I'm sure, slowing down many other things for you, not just
lilypond.  256MB or even 512MB is not enough for current software on
current operating systems.  The truth is even worse than I just
explained, because you never get to use the whole 256MB anyway.  Some
of that hardware memory is reserved by the OS for the kernel.  It never
gets swapped out.  It's locked into physical memory.  On my Ubuntu box
right now it's 45MB, although less would be reserved
if there was less available memory--I have 2GB physical memory. Be
thankful you're not using Microsoft Windows.  It uses up a LOT more
memory than Linux just to present you with an interface you can use to
run programs.  Your system would die trying to start up.

Here's the fix.

Without buying a new computer, you can buy new RAM (Random Access
Memory) and you'll THINK that you have a new computer.  It will make
you amazed at the difference!  You will dance around and shout Huzzah! 
Woman will hold up their babies to be kissed by you.  You will get a
promotion and a humanitarian award.  Yes!  It makes that big a
difference!  To find out what kind of RAM you need you can go to the
online memory sites of memory vendors like Kingston or Crucial who have tools you can use
to look up what kind of memory your computer takes.  Your laptop with
Athlon XP 2600, is likely to max out at 1GB-1 2GB.  If it supports 1
1/2 GB don't do it, just get 1GB.  Memory likes to be in amounts that
are powers of two (1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048,
etc.)   1 1/2GB is not any of these and while your hardware may have
special circuitry to support that strange amount, it will actually slow
you down! 

You'll be taking out the 256MB chip and throwing it away.  Depending on
the hardware you'll support a maximum size CHIP of either 512MB or
1GB.  Two 512MB chips supply as much memory as one 1GB chip.  If you
support the 1GB chip, just buy one of those and for around $50 you'll
be happy.  If the maximum size you support is 512MB, you'll have to buy
two of those and it will probably cost you $60-$120.  It's possible
that your hardware will support expanding to 2GB with two 1GB chips for
around $100-$120.  That's up to you, but you wont see a dramatic change
for most applications after 1GB.  2GB will let you run more than one
memory hungry thing at a time and some rare applications can use the
extra memory by themselves (including lilypond with a large enough
input file).  It's up to you.

Go to this
CNET video for more tips about how to expand RAM.  If you search
around there's lots of videos and tutorials about how to do it.  If you
have any more questions just ask.

Best regards,
Patrick

p.s. Memory uses a lot less energy that spinning a disk, so if you have
power saving on which stops spinning your drive when you aren't using
it, you will save much energy and get much longer battery life, and
hel

Re: Lilypond and Jazz chords

2009-07-13 Thread Patrick Horgan




David Fedoruk wrote:

  The original BerkLee Real Fake book is no
longer available, nor are some of the others. These fake books have to
have thousands of clearances to be ablel to put these books together as
they are and be able to be legally sold.
  

Ironically, their The Real Book was a bootleg done by two
students and that's why it's hard to get--nevertheless it's on
thousands of music stands all over the world and you can still find
bootleg editions of it for sale under the counter of hipper music
stores.  It was ground breaking because unlike the official fake books
of the day they attempted to document the real changes being
played by real jazz artists.  Hal Leonard has re-released it as a sixth
edition (to follow the five bootleg editions) that is mostly the same,
only replacing the songs that he couldn't get publishing rights to (no
Frank Zappa sigh), and fixing some problems in the bootleg ones.  If
you get it I recommend the mini editions (in volume I, II, and
three;).  They're just as readable, comb binding to lay flat on a music
stand, and fit in a gig bag better.

Patrick






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


Re: new website draft 5: help wanted, I mean it

2009-07-10 Thread Patrick Horgan

Graham Percival wrote:

I'll volunteer for css and/or proofreading.  I also don't have a job or 
girlfriend;)  I'll be in Peru much of August though and looking for a 
job after that.  Put me to work.  (Although I'll have to confess, as far 
as css goes, the current new stuff is looking great already!)


Patrick

http://percival-music.ca/blogfiles/out/lilypond-general_1.html

There's now an Examples section, thanks to Jonathan Kulp.
- currently, most examples have a "click-to-expand" thing.  Some
  of them don't work expanded, others don't work non-expanded.
  But there's enough working stuff for you to get the idea.

  IS THIS WORTH IT?  Making it work nicely in small+expanded
  versions is turning out to be a pain.  I'm wondering if we
  should just stick to small examples, which are approximately
  infinitely times easier to create/modify/regenerate.


More importantly, we need help.  I recently re-iterated my claim
that the lilypond community should have the
program/bugs/documentation/website they deserve, but currently
this isn't happening -- Patrick and I have spent a ton of time and
effort on this website.

- Patrick wants to spend time programming lilypond.  I also want
  him to spend time programming.  He's doing nifty stuff like
  fixing the SVG output, fixing misc bugs, and cleaning up a ton
  of advanced documentation.

  WE NEED A NEW CSS PERSON.

- I'm wasting a lot of time on mundane jobs.  For example, the old
  news page needs to be put into the new website source.  This
  means going through a bunch of things like
New German translaton!  Aug 07, 2006
Ich nein katza, http://blah";>auf blitzen drie.
  and turning it into
@subheading New German Translation!  2006 Aug 07

Ich nein katza, @uref{http://blah, auf blitzen} drie.
  Not hard.  I could even train an undergraduate to do this job!

  WE NEED SOMEBODY TO WRITE TEXT.

- I tend to rewrite / reword sentences as I work on them, but I
  have a nasty habit of not reading the once I erase stuff and
  write new material.  The result is by native English speakers,
  although it may slightly confusing.  Not what we in a shiny
  new website, that's for certain!

  (also, many sentences on the website could be rewritten to
  reduce the words, reduce the complexity -- remember, we have
  a fair chunk of non-native English readers, so let's not
  elaborate our missives with loquatious (sp) verbitage)

  WE NEED SOMEBODY TO PROOFREAD TEXT.

- Some of the examples could be improved... fancier formatting,
  adding more text to the theory example, etc.

  WE NEED SOMEBODY TO WORK ON .LY FILES.


Now, I'm *completely* capable of doing any of those tasks (even
self-proofreading, once I get into the mood)... but
  a) I don't think I should be doing so much work on this, and
  b) if somebody does those jobs, I can tackle harder stuff.

I'm *really* not doing much this summer other than lilypond -- I
have no job, no studies, no girlfriend -- so it's mainly a
question of "what parts of lilypond do I work on", not "will I
work on something".  So, just like we all benefit from having
Patrick *not* working on CSS stuff, I think we would all benefit
from me *not* working on the website so much.

Cheers,
 -Graham


___
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: website draft 4, help wanted

2009-07-08 Thread Patrick Horgan

Valentin Villenave wrote:


Anyway, I think we're living exciting times with regards to LilyPond,
and no matter how long it takes I do believe we're making history
right here :-)
  
That's exciting!!!  And I believe true.  And I believe that although 
there is much credit to go around, we should recognize how Graham's 
organizational pushing has been a big win for lilypond.


Patrick



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


Re: website draft 4, help wanted

2009-07-07 Thread Patrick Horgan




Valentin Villenave wrote:

  2009/7/6 Mark Polesky :
  
  
I also like the layout of gimp.org.
Click their menu links too.
Nice looking site.

  
  
Since you're mentioning that, http://www.blender.org/ has a top-menu
that is very similar to the new Lily website's draft.
  

It was nice to see that the gimp.org site uses a different, less
dramatic, but more readable style for the developers stuff.  I wish
blender did.  Maybe people that stare at text all day need different
styles than people that stare at images.  I personally am not fond of
the apparently dying fad for dark dramatic web pages.  I'm not seeing
as many as I used to.  For awhile they were everywhere!  For my 54 (in
two day) year old eyes, the dark pages with light text are not nearly
as usable as light (white) pages with dark text.

Patrick





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


Re: new website: draft 3

2009-07-02 Thread Patrick Horgan

Graham Percival wrote:
...oh there was various stuff (I'm sure I don't remember what) elided 
here...

I didn't expect a reference to Nanoha on the -user mailist.  (so
of course I had to add one myself ;)
  

Thank you for that:)

Cheers,
- Graham
  

Regards,
Patrick



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


Re: new website: draft 3

2009-06-28 Thread Patrick Horgan
On the Crash Course page you've made me double my understanding of 
/batch/ system.  When we used it years ago we meant as opposed to 
interactive.  You submitted your batch job with job control and all the 
jobs got ran in batches with all the other jobs that were ready when the 
operator got around to it or as the result of a certain time coming 
around.   We would have used lilypond in an interative system by typing 
the command when we wanted it to run and having it run right then which 
is what I think I do now.  I never have to submit jobs for lilypond and 
it runs interactively when I ask it to.


Patrick



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


Re: new website: draft 3

2009-06-28 Thread Patrick Horgan
On this page 
http://percival-music.ca/blogfiles/out/lilypond-general_6.html#Crash-course 
it mentions that help is wanted because an example is too wide for 
narrow media.  What's the criteria?  It fits in 800x600 just fine and 
these day web-developers say that 1024x768 is the new 800x600.   Much of 
the site certainly doesn't work for hand held devices.


Patrick



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


Re: new website: initial comments

2009-06-23 Thread Patrick Horgan

Graham Percival wrote:

Here's a very rough initial draft of our new website:
http://percival-music.ca/blogfiles/out/lilypond-general_1.html
  
The purple background as used on the documentation page has terrible 
contrast/clash with the blue of unvisited links on Firefox on Linux 
making it really hard to read.  It makes me squint because my brain 
thinks something's out of focus.  Then, after you visit them the visited 
link color is too close to the purple--they almost disappear.  
Additionally, the use of dark colors with black text makes my eyes work 
to hard.  The following choices are more readable on my machine while 
giving a similar effect.


..docs-beginner {
 float: left;
 width: 48%;
 border: 1pt solid black;
 background-color: #99;
}

..docs-normal {
 float: right;
 width: 48%;
 border: 1pt solid black;
 background-color: #ccffee;
}

..docs-advanced {
 display: block;
 margin: 0 auto;
 border: 1pt solid black;
 background-color: #ffddff;
}

Patrick (the other)



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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-10-14 Thread Patrick Horgan

Patrick McCarty wrote:

I'm still experimenting with this.  :-)

I've created another design with a color palette that passes the W3C
Web Content Accessibility guidelines for color contrast:
  

This is great for me!

Patrick


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


Re: unusual Alto Clef

2008-10-14 Thread Patrick Horgan

Jonathan Kulp wrote:
Cool!!  I've attached the infamous Ravel quartet snippet that prompted 
me to post the query about this clef in the first place. Your C clef 
looks nice in there, almost like the original.  Of course in this 
passage there's a switch to treble clef, and when it returns to alto, 
the clef is a teency bit too big (the original is almost the same size 
vertically but less inky), but still this is much closer to the 
appearance of the original score than a standard alto clef.  Thanks 
for creating that, Valentin!  I'm adding it to my snippet definitions 
file. :)
I notice the cool alto clef doesn't have any space in front (to the 
left) like the other clefs.  Is this normal for this clef, or does it 
need to be tweaked?


Patrick


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


Re: \mark, chords and notes collide

2008-10-08 Thread Patrick Horgan

Sebastian Menge wrote:

BTW: Does anyone know the latex-package "layouts" (as introduced in the
latex companion)? It renders the layout of a page with all properties
(margins etc) displayed by lines and text. Something similar would be
awful for lilypond. I always feel like groping in the dark with all
those properties and spacing etc.
  

I'm guessing someone else already replied to this, but if not:

\paper { annotate-spacing = ##t }


does what you want, I think.

Patrick


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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-08 Thread Patrick Horgan

Graham Percival wrote:

On Sun, 05 Oct 2008 14:40:48 -0700
Patrick Horgan <[EMAIL PROTECTED]> wrote:
  

...muchly stuff elided...

Thanks, Graham, I laughed out loud in Pizza My Heart reading this until 
people were staring at me in envy!


Patrick


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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-05 Thread Patrick Horgan

James E. Bailey wrote:

I can see now how the church of emacs was codified.
Ah, he refers to how backwards, emacs is scam e, or an electronic scam!  
I learn more by the hour!


Patrick



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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-05 Thread Patrick Horgan




I think that I've learned the most from the online conversations
between Graham and Valentin, and as a tribute to them, would like to
give what to some may seem an overly obvious interpretation of the
undercurrents in their communications.

Graham Percival wrote:

  On Fri, 3 Oct 2008 22:44:27 +0200
"Valentin Villenave" <[EMAIL PROTECTED]> wrote:
  
  
We've already had that argument one year ago. Back then, I went to
http://en.wikipedia.org/wiki/Word_processor

  
  
The definitive source of all knowledge and wisdom, of course.
  

Of course here Graham is saying, But I always thought it was Monty
Python or Frank Zappa (depending on Astrological imports of course).

  

  Also, what do you mean by "using a specific syntax"? (same
paragraph)
  

  

Obviously a syntax which is specific, you maoing (maoing mean in such a
way as to be in spiritual communion with chairman mao) arguer o'doom!

  
No it doesn't "precisely explain".  The word "this" refers back to
"a specific syntax", which doesn't tell the reader anything.  I
mean, what's a non-specific syntax?
  

Ah, the master pauses to see if we pay attention.  The obvious answer
is that it is a syntax which does not support the needs of the
collective, but in a deeper and more spiritual, non-obvious sense, it
is a syntax which is non-specific!  I hope I deserve your approval
master.

  
I said "an example", not "an @example".
  

Or to put it in another way, 
If you want to know the taste of a pear, you must change the pear by eating it yourself.
If you want to know the theory and methods of revolution, you must take
part in revolution. All genuine knowledge originates in direct experience.--Mao Zedong

  
I was tempted to have a markuplines @lilypond block here, but I
couldn't figure out how to print a multi-page snippet image.

  

N.B. multi-page refers to trans-dimensional personnel who announce the
presence of important functionaries or plenipotentiaries, although
confusingly enough, in some of those dimensions, it refers to several
pages.

  
  
You don't need to quote stuff that you've done.  I know that I'm
right.  I really don't need the ego boost of having you tell me.  :)
  

Yes, the master shows us that the ego is nothing and we are all one in
a cosmic all--or to put it in another way, the collective is everything
and we are nothing except so far as we find our fulfillment in the
achievements of the party.

  No, you maoing look twice.
@noindent
Some of these font families, used for specific items
such as numbers or dynamics, do not provide all
characters, as mentioned in @ref{New dynamic marks} and
@ref{Manual repeat marks}.

Where's this magical comma after the first @ref{} ?!
  

When he refers to the magical comma, and it's seemingly miraculous
appearance, obviously he is quoting mao's famous aphorism:

It is more agreeable to have the power to give than to receive.

So we too must give magical commas, (a metaphor for bread lines)
to the universe, and then, if worthy, may in a Heinleinian sense grok
the comma.

  
I'd actually rather kill \larger.  \smaller \bigger sounds better
than \smaller \larger.
  

Bigger sounds better, the power of
alliteration tied to the magic of commas.  Ah, how could I have not
seen it?  smaller is not alliterative with larger, hence is of less
worth, in the same way that Mao is More!  But don't miss the sense of kill
\larger, i.e. those who resist the collection must be removed, and
in this case violence in the service of the order of the collective is
really peace.

  

  That's as far as I got before I got bored.
  

  

A clear and obvious reference to T. Lobsang Rampa, who decried the
western aversion of boredom as a fleeing from the meditative trance
state.  The master is letting us know that it was time for him to
meditate, and indeed it is time for all of us to meditate.  Oh most
great benificent master, we give our thanks;)  I'm reminded of Chez
Evelyn Underhill who famously said:


It must be brooded upon,
gazed at, seized again and again, as distractions
seem to snatch it from your grasp. A restless boredom, a dreary
conviction of your own incapacity, will presently attack you. This,
too, must be resisted at sword-point.


  
Nice way of admitting you couldn't find anything else since everything
was perfect from there :)

  

The student makes a satirical reference to perfection to show his
understanding that perfection is a journey, not a destination.  It is
clear that  this is an oblique reference to Mao's:

    Classes struggle, some classes triumph, others are eliminated.
Such is
history; such is the history of civilization for thousands of years.

And seems an at lease fortuitous reference to Underhill's sword-point! 
The servant is close to exceeding the master!

  
Uh-huh.
  

Note how Uh-huh has three h's, two u's and a dash.  Backwards, it is
huh-hu.  Need I point out the obvious 8th century b.c. Chinese poetic
reference here?  The 

Re: updated margins-a4-letter.ly

2008-10-04 Thread Patrick Horgan

Graham Percival wrote:

Here's a slightly updated version of my "produce the same score on
A4 and letter paper".  Should be easier to understand.
  

Thanks:)  It crossed the line from extremely cool to elegant.  Beautiful.

Patrick


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Patrick Horgan

Graham Percival wrote:

No, since the -dhelp options change more often, and they're more
advanced stuff anyway.
  
If they continue to change frequently, it'd be a good target for a 
script building the documentation page from the output of the -dhelp


Patrick


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


Re: png cropping

2008-10-03 Thread Patrick Horgan

Francisco Vila wrote:

2008/10/3 Jonathan Kulp <[EMAIL PROTECTED]>:
  

Patrick, you mentioned at some point along the way that it would have been
better if I had started the whole thing in Python instead of bash.  Would
this also have made it easier to port to Windows?

It wouldn't make it any easier or harder.  If you used Python you'd have 
to have the PATH set up and you'd have to have python.  It's just the 
script would have been much easier.


Patrick


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


Re: png cropping

2008-10-03 Thread Patrick Horgan

Jonathan Kulp wrote:
I've actually tried to do this.  I booted into the Windows partition 
of my machine and installed Cygwin and the netpbm package, but I had 
trouble finding the netpbm stuff from the Cygwin bash shell.  The 
shell seemed very isolated from the rest of the machine, as I couldn't 
access any of the documents in my home directory and in general it 
behaved in much the same way that virtual machines do when I've tried 
running them.  I couldn't even figure out how to run Lilypond from the 
Cygwin prompt, and the script pretty much relies on being able to do 
that :)
It's that pesky PATH thing again:)   If you have the stuff on there, and 
a PATH variable that points to the various places, then it will work.


Patrick


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


Re: png cropping

2008-10-02 Thread Patrick Horgan

Tomas Valusek wrote:



Jonathan Kulp napsal(a):
After much revision, addition, and general fussing about with it, I'm 
happy to post the official version of what we're calling 
"lily2image," a  script for converting lilypond source files to 
cropped image files in many different formats suitable for insertion 
into documents (theses, research papers, etc) or web pages.  This 
works equally on Mac and Linux, but not on Windows.
Well, not 100% true.  I imagine if you set up the cygwin stuff (or one 
of the standalone Windoze bash implementations, and got all the netpbm 
utilites installed it would work.  It would be great if someone could 
verify that.   It's just a script, not an executable.


Patrick


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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-10-01 Thread Patrick Horgan

Kurt Kroon wrote:

And while I'm thinking about it, you could deal with the line-height issue
by setting it to 1.125, without any units.
  
Thanks!  I'd read the section on this in the spec, (and just re-read 
it), and it doesn't point out how much better it is for inheritance, and 
I didn't get it.  I will from now on!  Thanks a lot!


Patrick


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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-10-01 Thread Patrick Horgan

Patrick McCarty wrote:

I like your stylesheet, in general.  But I think some of the font
sizes you are using will render parts of the documentation illegible
on certain platforms (such as in the TOC).  I like your choice of
color especially.
  
I know that most of this is personal, but I looked at it and still 
prefer the choice of color in Patrick's except I'd still like more 
contrast in the sidebar.  It's amazing how nice the different left 
margin in the blockquote section looks.  I wouldn't have thought of 
that.  (But of course I will now, in CSS gratitude is shown by 
appropriation! ;)


Patrick


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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-10-01 Thread Patrick Horgan




Patrick, if you add a line-height: 1.125em; to the .settitle section it
fixes the strange overlap on small windows.  The one it inherits from
the body section uses a different em, and although you specify it in
ems, it's inherited in pixels.  Or in CSS speak, you don't inherit the
specified value, but the computed value.  (See the CSS2 spec section
6.1.1 below.  Or, you could just take it out of the body section, but definitely
it looks better with it.

Here's part of the CSS2 spec that explains it and more (trying to whet
your interest so that you'll go to w3c and get your own copy of the
spec;)


  6.1.1 Specified values
  User agents must first assign a specified value to each property based on the
  following mechanisms (in order of precedence):
    1. If the cascade [p. 94] results in a value, use it.
    2. Otherwise, if the property is inherited [p. 92] and the element is not the root of
   the document tree, use the computed value of the parent element.
    3. Otherwise use the property’s initial value. The initial value of each property is
   indicated in the property’s definition.
  6.1.2 Computed values
  Specified values are resolved to computed values during the cascade; for example
  URIs are made absolute and ’em’ and ’ex’ units are computed to pixel or absolute
  lengths. Computing a value never requires the user agent to render the document.
    The computed value of URIs that the UA cannot resolve to absolute URIs is the
  specified value.
    When the specified value is not ’inherit’, the computed value of a property is
  determined as specified by the Computed Value line in the definition of the property.
  See the section on inheritance [p. 92] for the definition of computed values when the
  specified value is ’inherit’.
    The computed value exists even when the property doesn’t apply, as defined by
  the ’Applies To’ [p. 25] line. However, some properties may define the computed
  value of a property for an element to depend on whether the property applies to that
  element.
  6.1.3 Used values
  Computed values are processed as far as possible without formatting the document.
  Some values, however, can only be determined when the document is being laid
  out. For example, if the width of an element is set to be a certain percentage of its
  containing block, the width cannot be determined until the width of the containing
  block has been determined. The used value is the result of taking the computed
  value and resolving any remaining dependencies into an absolute value.
  6.1.4 Actual values
  A used value is in principle the value used for rendering, but a user agent may not
  be able to make use of the value in a given environment. For example, a user agent
  may only be able to render borders with integer pixel widths and may therefore have
  to approximate the computed width, or the user agent may be forced to use only
  black and white shades instead of full colour. The actual value is the used value after
  any approximations have been applied.
  
  




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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-30 Thread Patrick Horgan




Patrick McCarty wrote:

  On Tue, Sep 30, 2008 at 2:04 PM, Patrick Horgan <[EMAIL PROTECTED]> wrote:
  
  
Well done:)  I still prefer Patrick's style and wish it were the default.  I
also wish that Patrick's style affected the sidebar contents.

  
  
Hi Patrick,

What do you mean by the "sidebar contents"?
  

I mean that this section of the css should format more similarly to
div#main.  In particular, I'd like background-color to be white,
(#fff), instead of #eee, because I have 53 year old eyes, and contrast
is more important than it used to be.

div#tocframe {
  position: absolute;
  top: 0;
  right: 73%;
  bottom: 0;
  left: 0;
  padding: 0;
  margin: 0;
  overflow: auto;
  background-color: #eee;
  z-index: 100;
  list-style-type: none;
  font-size: 0.83em;
  line-height: 1.4em;
}


  
Thanks in advance,
-Patrick McCarty

  






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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-30 Thread Patrick Horgan




[EMAIL PROTECTED] wrote:

  On the front page, in Opera on Linux, the word `Reference' overlaps
the previous line:
http://kainhofer.com/~lilypond/Documentation/user/lilypond/index.html

Are you specifying an interline spacing, rather than using the
natural one for the font?

Peter C
  

When the page is made small enough so that Reference wraps, it overlaps
on Firefox on Linux as well.  This image is 800x600.






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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-30 Thread Patrick Horgan

Reinhold Kainhofer wrote:
Huh, I don't quite understand what you mean with the last sentence... What 
should be changed in the sidebar?
  
I like the white background on the main page, the contrast is low on the 
sidebar.  I think it would be much better with a white background as well.


Patrick

Cheers,
Reinhold
- -- 
- --

Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI4qE1TqjEwhXvPN0RAgtBAJ9XiooyMqIRh5aDDLCdZ5CUYBoRXQCg0Ba9
QgOnK7j0Bt/H4Qd6sjrIgA8=
=9N7Z
-END PGP SIGNATURE-

  




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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-30 Thread Patrick Horgan

Reinhold Kainhofer wrote:

http://kainhofer.com/~lilypond/Documentation/user/lilypond/index.html

In particular, look at that page with both the current default and Patrick's 
alternative style
Well done:)  I still prefer Patrick's style and wish it were the 
default.  I also wish that Patrick's style affected the sidebar contents.


Patrick


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


Re: Regarding the new Table of Contents in the GUB docs

2008-09-29 Thread Patrick Horgan

Reinhold Kainhofer wrote:
Ahm, sorry if I sound destructive, but: How hard is it to click 
on "[Contents]", which is located in EVERY gray navigation bar on EVERY page
Does anyone else feel like we're doomed to follow Reinhold having good 
ideas only weeks after he's already had them;)


Patrick


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


Re: lilypond.org down?

2008-09-26 Thread Patrick Horgan

Paul Scott wrote:

Hi,

>From here lilypond.org seems to be down.  I can't even ping it.

Paul Scott
  
From here too--if some can get to it, then something on the backbone 
quit routing for some reason.  I did a traceroute which only worked to 
12 hops, then tried up to 30 with no happiness.  You should be able to 
get anywhere in the internet in 20-22.  I'm guessing someone's routing 
tables are screwed up.  It goes off into xs4all's netword and just 
rattles around for awhile and dies.


traceroute to lilypond.org (82.94.241.173), 30 hops max, 40 byte packets
1  172.16.1.1 (172.16.1.1)  0.588 ms  0.648 ms  0.746 ms
2  bras3-l0.pltnca.sbcglobal.net (151.164.184.79)  23.428 ms  28.827 
ms  34.258 ms

3  76.246.22.2 (76.246.22.2)  35.415 ms  35.896 ms  40.631 ms
4  bb2-g3-0.pltnca.sbcglobal.net (151.164.43.56)  45.345 ms  49.654 ms  
49.964 ms
5  ppp-151-164-38-18.rcsntx.swbell.net (151.164.38.18)  53.895 ms  
55.809 ms  58.520 ms
6  asn6398-bellsouth.pxpaca.sbcglobal.net (151.164.248.234)  61.007 ms  
14.430 ms  23.392 ms
7  10gigabitethernet2-4.core1.ash1.he.net (72.52.92.30)  92.778 ms  
95.785 ms  99.929 ms
8  10gigabitethernet2-1.core1.lon1.he.net (72.52.92.138)  185.327 ms  
190.211 ms  195.135 ms
9  10gigabitethernet1-1.core1.ams1.he.net (72.52.92.82)  210.356 ms  
210.849 ms  212.300 ms
10  ams-ix.sara.xs4all.net (195.69.144.48)  216.472 ms  217.969 ms  
220.446 ms
11  0.so-1-0-0.xr3.3d12.xs4all.net (194.109.5.5)  224.380 ms  226.561 
ms  229.305 ms
12  te5-4.swcolo1.3d12.xs4all.net (194.109.12.30)  208.551 ms  172.022 
ms  174.125 ms

13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

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: WANTED: Design for documentation (Photoshop power users!)

2008-09-26 Thread Patrick Horgan

Alexander Kobel wrote:

Guys, I've been busy the last few weeks and just loosely followed the
ongoing discussions about the doc design, but I just recognized you did
a great job there! And I like the unobtrusive link coloring...

However, one suggestion: Have you talked about the size of the
navigation sidebar? On my 13" MacBook (1280x800), there is /plenty/ of
space wasted (default font settings in Firefox 3, haven't changed
anything). Not sure about other browsers/OSs, and I have no clue if
there are screens below 1024 horizontal resolution still in use in a
noticeable number, but I guess I'd prefer a little narrower setting in
favour of the main text. Just my two pence...
  

I've thought the same.

Patrick


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


Re: choral sample

2008-09-24 Thread Patrick Horgan

Laura Harvey wrote:
Hi - I just downloaded lilypond recently, and am interested in trying out a 
choral piece. I'm confused about the set-up, though, and none of the samples 
that you have on your documentation are specifically for choral works. Do you 
have one handy with one or 2 choral parts (separate staves) AND piano?
  


This is probably overkill but will surely show you everything you want 
to do.  Compiling with lilypond generates soprano, alto, tenor, and bass 
parts, a choral part, a piano reduction part, and various midi parts so 
people can listen to their part.


Patrick

Thank you -
Laura Harvey



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

  


#(set-global-staff-size 18)

\header {
  filename ="o_magnum_mysterium.ly"
  title =   "O Magnum Mysterium"
  poet ="from Matins of Christmas"
  subtitle ="for mixed chorus, a cappella"
  instrument = "Four Part Voice"
  opus =""
  composer ="Tomás Luis de Victoria (1549-1611)"
  date = "1572"

  mutopiatitle = "O Magnum Mysterium"
  mutopiacomposer = "VictoriaTLd"
  mutopiapoet = "from Matins of Christmas"
  mutopiainstrument = "Voice"
  source = "Arista Edition"
  style = "Renaissance"
  copyright = "Creative Commons Attribution-ShareAlike 3.0"
  typesetter = "Jeff Covey & Patrick Horgan"
  maintainer = "Jeff Covey & Patrick Horgan"
  maintainerEmail = "jeff.covey at pobox dot com & patrick at dbp-consulting 
dot com"
  maintainerWeb = "http://jeffcovey.net/";
  % brought up to 2.11.49 and minor edits by [EMAIL PROTECTED]
  % put 2.10.33 in as version just because 2.11 is development and not out yet.
  lastupdated = "2008/06/30"

  footer = "Mutopia-2008/06/30-244"
  tagline = \markup {
\override #'(box-padding . 1.0) 
\override #'(baseline-skip . 2.7) 
\box \center-align {
  \small \line {
Sheet music from \with-url #"http://www.MutopiaProject.org"; \line {
  \teeny www. \hspace #-1.0 MutopiaProject \hspace #-1.0 \teeny .org 
  \hspace #0.5
}
• \hspace #0.5
\italic Free to download, with the \italic freedom to distribute, 
modify and perform.
  }
  \line {
\small \line {
  Typeset using \with-url #"http://www.LilyPond.org"; \line {
\teeny www. \hspace #-1.0 LilyPond \hspace #-1.0 \teeny .org
  } by \typesetter \hspace #-1.0 . \hspace #0.5 Reference: \footer
}
  }
  \line {
\teeny \line {
  This sheet music has been placed in the public domain by the 
typesetter,
  for details see: \hspace #-0.5 
  \with-url #"http://creativecommons.org/licenses/publicdomain";
  http://creativecommons.org/licenses/publicdomain
}
  }
}
  }
}

%{ thanks to jcn for all the help on this one!  :) %}

\version "2.11.49"

global =  {
\transpose f e
\key f \minor
\tempo 4 = 110
\time 4/4
\compressFullBarRests
\override MultiMeasureRest #'expand-limit = 3
\skip 1*39  \bar "||"
\skip 1*13  \bar "||" \time 3/4
\skip 2.*14 \bar "||" \time 4/4
\skip 1*8   \bar "|."

}

sopranoMelody =  \relative c'' {
\clef "violin"
c1 f,2 c' ~ c4 c des des c2 r4
f des ees f4. f8 f4 c des  c ~ 
( c8[ bes aes g aes bes c aes]  bes[ aes]  aes[ g16 f] g2 ~ g ) f
% 10
a1 bes2 a4. ( bes8 c4 )
des4. ( c8 bes4 ~ bes a ) bes ( aes8 [ g ] f4 ) g aes2
% 15 
r4 f' des ees f4. f8 f4 des bes c des4. des8 des4 c4. bes8 bes4 ( ~ bes 
a ) bes2
% 20
r1 r4 des4 c4. a8 bes4 c des bes des4. des8 des4 des c2 c
% 25
a4 c c4. c8 c4 d ees2 des?4 ( c8[ bes ] c2 des ) c r1
% 30
r4 f, bes2 aes4 f g ( a ) bes4. ( c8 des!4 ) des c2 r r1
% 35
r4 bes ees2 des4 bes c d ees4. ( des8 [ c bes ] bes4 ~
bes  a8 [ g ] a4 ) a bes2 r
% 40
a2. a4  a2 bes a4. ( bes8 c4 des ~  des8 [ c ] c4. bes8 bes4 )
c a2 a4 bes4. bes8 bes2 
% 46
r4 bes4. ( c8 [ des bes ] c4 ) f ees2 des4 f ees c
des4. ( c8 [ bes aes ]  aes [ g16 f ]
% 50
g4 ) g f c' ~ c aes2 des4 ( ~  des8 [ c ] bes2 a4 )
% 53 3/4 time starts here
bes2 des4 c2 a4 bes4.  aes?8 ( [ bes c] ) des4 c2
des2 bes4 aes2 f4 g4.  f8 ( [ g aes] )
% 60
bes2 a4 bes2. r4 r ees des4. ( c8 [ des bes ] 
c4 ) aes8 ( [ bes c des ] ) ees2 ees4 des4 f2
% 67 back to 4/4 time
f1 r4 f  f8 ( [ ees des c ] bes4 ) ees4. ( des8 [ c bes ]
a4 bes2 a4 ) bes1 ~ bes ~ bes

Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-23 Thread Patrick Horgan

Patrick McCarty wrote:

Okay, I know what the problem is, but the fix is not simple.  Our
implementation uses a *persistent* and an *alternate* stylesheet, but
since we want the alternate stylesheet to override the default
stylesheet, many of the default styles should be in a *preferred*
stylesheet.  An explanation of the three different types is here:
  
I suspected that and was going to look at it later and now I don't have 
to :O Yea!


I'm glad you figured it out.   The fun of cascading style sheets, no?

Patrick



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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-22 Thread Patrick Horgan




Patrick McCarty wrote:

  On Sun, Sep 21, 2008 at 3:53 PM, John Mandereau
<[EMAIL PROTECTED]> wrote:
  
  
IMHO I prefer Patrick's design over Andrew, it's more colorful but still
serious enough (as Valentin already wrote), and I second Patrick Horgan
comment on links color: maybe we could make links a bit more blue?
We might manage to merge both style sheets into one, but let's hurry up
if we want this to make it into 2.12.0 ;-)

  
  
I just made the links *significantly* more blue.  I'll keep
experimenting.  Let me know if this looks better:
  

It looks great--have you figured out why your css doesn't produce
underlines with Reinhold's copy of the documentation?

Patrick




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


Re: same pages in a4 and letter

2008-09-22 Thread Patrick Horgan

Neil Puttock wrote:

...some stuff elided...
This is rather nifty, but you're reinventing the wheel. :)

Why not use the built-in option instead, i.e., run with -dpaper-size="letter"?
  
because he wanted to be able to switch back and forth via command line 
argument without editing the file.


Patrick


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


Re: showLastLength as a command-line option?

2008-09-22 Thread Patrick Horgan




Valentin Villenave wrote:

  2008/9/22 Jonathan Kulp <[EMAIL PROTECTED]>:
  
  
Would it be possible technically to specify the showLastLength value when
invoking lilypond instead of putting it in the .ly file?  Something like

  
  
Yes! Great idea!

(my useless post du jour :-)
  

Wow!!!  Exceptional response to a great idea!

(my contentless reply to your useless post du jour ;-<)

regards,

Patrick




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


Re: same pages in a4 and letter

2008-09-22 Thread Patrick Horgan

Graham Percival wrote:

I'm preparing my old scores for online publication, but I'm
extremely fussy about engraving.  I want users on both sides of
the Atlantic to be able to print my music easily, but this only
works if the music looks in the same in A4 and Letter paper.
(having page turns in random places is *not* acceptable to me :)
  
You are the man, simple, clear, well documented internally!  A well 
designed general solution for a problem that has troubled many;)


Patrick


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


Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-21 Thread Patrick Horgan




John Mandereau wrote:

  On 2008/09/17, Reinhold Jainhofer wrote:
  
  
On Sunday 14 September 2008 21:50:36 Patrick McCarty wrote:


  I agree that the language selection should be included in the footer,
but I'm not sure how the buildscript will have to be modified.
  

  
  
I'm not sure how to move the lanugage menu into the footer: if we do
this, it should be as visible as before, e.g. with normal text size
(i.e. bigger than the rest of the footer), or with different colors. 
As soon as we agree on a formatting sample, I'll modify the buildscript
accordingly.


  
  
Currently, the footer looks bad with Patrick's design on the server, 
because I have not changed the footer to the HTML structure suggested by 
Patrick.
Is everyone okay to change the footer lines to the following?

  
  
  
  
This page is for LilyPond-2.11.59 (development-branch). 
Your suggestions for the documentation are welcome, please report errors 
to our bug list. 

  
  
I approve this.  I guess you may use usual Graham's ultimatum formula
"Unless anybody complains" in such cases.

IMHO I prefer Patrick's design over Andrew, it's more colorful but still
serious enough (as Valentin already wrote), and I second Patrick Horgan
comment on links color: maybe we could make links a bit more blue?
  

And note that the other Patrick reported that his style was supposed to
produce underlined links, (and did on his machine).  Has anyone looked
into why his CSS doesn't produce the desired underlined links?  (BTW
Green is my favorite color, so of course I like that aspect of
Patrick's CSS.

Patrick

  We might manage to merge both style sheets into one, but let's hurry up
if we want this to make it into 2.12.0 ;-)

Cheers,
John



___
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: png cropping

2008-09-19 Thread Patrick Horgan

Jonathan Kulp wrote:
Thanks for trying it out, Josh!  Glad to hear it worked for you on 
OSX.   Patrick has been dealing with the flags, and I don't really 
understand how to do them, so my very dirty solution would be simply 
to comment out the last bit of the script that opens the file :).  I 
can see how this would be tiresome if you were running it on a bunch 
of files.
It would be cool to have a -q (quiet) mode that didn't have any output, 
just quietly did it's work, and never popped up a viewer.  Of course it 
would return a status to tell you if it was successful.


Patrick


Jon

Josh Parmenter wrote:
I've been following this, and just tested the latest version on 
OSX... quite nice guys!


Perhaps the -V flag can be set to not open the image after it is 
done? This utility will be great for mass creating images (as most 
command line tools are), but having Preview open each one up will get 
very tiring... perhaps if the is no -V passed in, that step can be 
skipped?


Again - quite nice!

Josh





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


Re: png cropping

2008-09-19 Thread Patrick Horgan

Josh Parmenter wrote:
I've been following this, and just tested the latest version on OSX... 
quite nice guys!


Perhaps the -V flag can be set to not open the image after it is done? 
This utility will be great for mass creating images (as most command 
line tools are), but having Preview open each one up will get very 
tiring... perhaps if the is no -V passed in, that step can be skipped?

If you enter -V="" then it will do that. (or just -V= )

Patrick


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


Re: png cropping

2008-09-19 Thread Patrick Horgan




Mark Knoop wrote:

  On Thu, 2008-09-18 at 17:41 -0700, Patrick Horgan wrote:
  
  
Of course if you pick one that eog doesn't know how to display it 
will complain. 

  
  
Perhaps replace eog with xdg-open for better portability?

"xdg-open - opens a file or URL in the user’s preferred application"
  

I didn't know about that:)  I just tried it with -V=xdg-open with a ps
output and a png output and it used evince and eog respectively
automagically;)  I changed it so that it sets its default viewer
dynamically from a list, looking for xdg-open, and if not found, eog,
and if not found evince, and if still not found, at the end politely
tells you that it didn't find a viewer and is only generating output. 
That makes 1.1.1.1 a very minor release since it didn't change anything
visible to the user;)

Patrick

  

  




#!/bin/bash
#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
# Creator  - Jonathan Kulp#
# Johnny come lately assistant - Patrick Horgan   #
#*#
# Change log
#
# 1.1.1.1   Added search for default list of viewers
# 1.1.1 Added -a, -V and much comments changed default
#   viewer to xdg-open
# 1.1   Added checking of return codes so we could
#   abort if something failed.
# 1.0   Initial release
#~~
# setformatlist - gets the list of all the things that
# you can convert to
#~~
setformatlist()
{
currentdir=`pwd`# Remember our current directory
examp=`which ppmtojpeg` # find out where the progs are
returnstatus=$?
if [ $returnstatus -eq 0 ] ; then
OUTDIR="`dirname $examp`" #grab the directory
cd $OUTDIR  # change to it so we can
# find all the programs starting with ppmto
# and remove the initial part so that we can 
# figure out what ppms can be converted to
ppmtos=`ls ppmto* | sed -n s/ppmto//p`
# same for pnmto
pnmtos=`ls pnmto* | sed -n s/pnmto//p`
# Now combine the two, change the space separated
# list into individ line that sort can sort with
# -u to throw away duplicates, then change newlines
# back to spaces so we have a sorted list without
# duplicate of all things we can convert to
alltos=`echo  $ppmtos $pnmtos | tr " " "\n" | sort -u | tr "\n" " "`
fi
cd $currentdir   # Change back so we don't affect anything
}
#~~
# usage is called when we're called incorrectly.
# it never returns
#~~
usage()
{
echo "Usage: " `basename $0` " [-v] [-t] [-rN] [-fFORMAT] filename"
echo "  -v  print version number and quit"
echo "  -a  about - tell about us and exit"
echo "  -t  indicates transparency is desired"
echo "  -r=Nset resolution to N (usually 72-2000)"
echo "  -f=FORMAT   set format to FORMAT one of:"
echo "jpeg, png, tiff, gif, pcx, bmp"
echo "  -V=viewer   set image viewer, examp: -V=evince"
echo "  filenamea lilypond file"
exit -1
}

#~~
# about - tell about us and exit
#~~~~~~
about()
{
echo `basename $0`
echo "  Creator Jonathan Kulp"
echo "  Johnny-come-lately  Patrick Horgan"
exit 0
}

#~~
# Set prompt to the prompt you want to give a user
# goodvals to the list of acceptable values
# call getval
# when it returns your value is in outval
#~~
getval()
{
flag="notdone"
[EMAIL PROTECTED]
until [ $flag == "done" ] ; do
echo -n $prompt " "
read inval
if [ A$inval == "A" ] ; then
# inval is empty
if [ A$default != 'A' ] ; then
# default is set to something
inval=$default
default=""
else
#inval is empty, no default
echo You must enter a value
index=0
echo -n "Expecting one of : "
while [ "$index" -lt "$elementcount" ] ; do
echo -n "$

Re: png cropping

2008-09-19 Thread Patrick Horgan




Jonathan Kulp wrote:
Patrick! 
It's all working beautifully now. 

I must say that you are most awesomely cool.  How wonderful to find
someone that digs in in the best linux/Unix tradition and puts together
a string of programs to achieve a desired result.  Hats off to you.

... much cool stuff elided...
p.s. now
that we have a tool with a version number, I might try learning how to
write a brief manpage for it.  Good idea?
A most excellent idea!  manedit is your friend.  Complete wysiwyg man
editor.  Its help has a complete and easy tutorial.  On ubuntu it's
just sudo apt-get install manedit.  Since
you're doing that I'm adding a -a (about) with your name and mine, some
more comments so others can modify it more easily, and will call it
version 1.1.1.  I also added a -V=viewer, so I could use, for example
evince if the output format was ps.  N.B. evince doesn't display
transparency so if you use it with transparent gifs or pngs you might
think the transparency gone, but it's not. 

    One feature it really needs is an ability to handle the situation
where the output for file.ly is for example, file-page1.png and
file-page2.png.  You'd have to get a wildcard list of things that
matched $STEM*.png and loop over them to do the conversions, then
something like $viewer $STEM*.$FORMAT & at the end.  That would
make it work as it currently does for most things, there'd just be one
thing in the list, but still work for the case where there's something
there.  A generic wildcard is best because someone might have done a
#(define output-suffix "blablabla") and we want to support that case
too.  eog will bring up all the pages and let you page up and page down
through them, and evince will bring a a window for each file.  There's
enough examples in the script so that you could figure out how to do it
if you would.  We could call it 1.1.2;)  If you don't have time let me
know and I'll get to it sometime.  If you do, change the version in the
script, add to the changelog at the top and send me a copy:)  Maybe we
could donate it to the lilypond project.

Patrick


#!/bin/bash
#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
# Creator          - Jonathan Kulp#
# Johnny come lately assistant - Patrick Horgan   #
#*#
# Change log
#
# 1.1.1 Added -a, -V and much comments
# 1.1   Added checking of return codes so we could
#   abort if something failed.
# 1.0   Initial release
#~~
# setformatlist - gets the list of all the things that
# you can convert to
#~~
setformatlist()
{
currentdir=`pwd`# Remember our current directory
examp=`which ppmtojpeg` # find out where the progs are
returnstatus=$?
if [ $returnstatus -eq 0 ] ; then
OUTDIR="`dirname $examp`" #grab the directory
cd $OUTDIR  # change to it so we can
# find all the programs starting with ppmto
# and remove the initial part so that we can 
# figure out what ppms can be converted to
ppmtos=`ls ppmto* | sed -n s/ppmto//p`
# same for pnmto
pnmtos=`ls pnmto* | sed -n s/pnmto//p`
# Now combine the two, change the space separated
# list into individ line that sort can sort with
# -u to throw away duplicates, then change newlines
# back to spaces so we have a sorted list without
# duplicate of all things we can convert to
alltos=`echo  $ppmtos $pnmtos | tr " " "\n" | sort -u | tr "\n" " "`
fi
cd $currentdir   # Change back so we don't affect anything
}
#~~
# usage is called when we're called incorrectly.
# it never returns
#~~
usage()
{
echo "Usage: " `basename $0` " [-v] [-t] [-rN] [-fFORMAT] filename"
echo "  -v  print version number and quit"
echo "  -a  about - tell about us and exit"
echo "  -t  indicates transparency is desired"
echo "  -r=Nset resolution to N (usually 72-2000)"
echo "  -f=FORMAT   set format to FORMAT one of:"
echo "jpeg, png, tiff, gif, pcx, bmp"
echo "  -V=viewer   set image viewer, examp: -V=evince"
echo "  filenamea lilypond file"
exit -1
}

#~~~~~~~~~~
# about -

Re: WANTED: Design for documentation (Photoshop power users!)

2008-09-18 Thread Patrick Horgan

Andrew Hawryluk wrote:

I just learned that there are a lot of Monet Waterlilies to choose
from, so maybe this will be helpful to anyone on the list with
graphics skills:
  
With any of the newer browsers you can use pngs with alpha, and take any 
image and give it much transparency to the point that even with small 
text there wouldn't be a contrast problem using it as a background.  It 
would be a subtle thing.  I'd do it with gimp since I'm an open source 
guy--but Photoshop can probably do it as well, I suppose...just with 
less elegance;)


Patrick

http://commons.wikimedia.org/wiki/Claude_Monet

Andrew


___
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: Bad image with one of the snippets

2008-09-18 Thread Patrick Horgan

Graham Percival wrote:

Yes, because LSR is still running 2.10.  New features won't work
anyway.

Cheers,
- Graham
  

No cheer here, much sadness ensues;(  Is there a plan?

Patrick



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


Re: png cropping

2008-09-18 Thread Patrick Horgan

Jonathan Kulp wrote:

Hi Patrick,

I've been running your script trying to use the command-line 
arguments, and something's happening with the format argument.  I 
specify it with an argument, but then I still get prompted for 
format.  I might not be doing the flag right.  I've tried it with 
-f=jpeg, -f=JPEG, -fJPEG, and I think that's it.  I'll copy the 
terminal output below so you can see.  On this example I use -fGIF and 
while it doesn't make the script fail, it does still ask me for a 
format.  Am I specifying the format wrong?
it would have to be the same as the input from the command line, i.e. 
-f=jpeg or -f=gif---I don't have a clue why it would fail, though with 
our weird crossing of versions I don't know which version you're using.  
I put a version in this one, and if you specify -v it will tell you the 
version and quit.  I fixed the defaults as you asked, and put in 
defaults for N 72 and png, (and if they pick transparency a default of 
png as well).  If the command line args still don't work please let me 
know.  They work here. My experience is that whenever I'm sure I've 
tested everything there are still many bugs, so please let me know:)
BTW, in the script I attached to the last email, you'll notice that 
with transparent background you have a choice between either png or 
gif--it's not forced to png. Is there a way to work this option into 
your version?

Yep, fixed.

Patrick
#!/bin/bash
#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
#*#

#~~
# setformatlist - get's the list of all the things that
# you can convert to
#~~
setformatlist()
{
currentdir=`pwd`
examp=`which ppmtojpeg`
if [ $? -eq 0 ] ; then
OUTDIR="`dirname $examp`"
cd $OUTDIR
ppmtos=`ls ppmto* | sed -n s/ppmto//p`
pnmtos=`ls pnmto* | sed -n s/pnmto//p`
alltos=`echo  $ppmtos $pnmtos | tr " " "\n" | sort -u | tr "\n" " "`
fi
cd $currentdir
}
#~~
# usage is called when we're called incorrectly.
# it never returns
#~~
usage()
{
echo "Usage: " `basename $0` " [-v] [-t] [-rN] [-fFORMAT] filename"
echo "  -v  print version number and quit"
echo "  -t  indicates transparency is desired"
echo "  -r=Nset resolution to N (usually 72-2000)"
echo "  -f=FORMAT   set format to FORMAT one of:"
echo "jpeg, png, tiff, gif, pcx, bmp"
echo "  filenamea lilypond file"
exit -1
}

#~~
# Set prompt to the prompt you want to give a user
# goodvals to the list of acceptable values
# call getval
# when it returns your value is in outval
#~~
getval()
{
flag="notdone"
[EMAIL PROTECTED]
until [ $flag == "done" ] ; do
echo -n $prompt " "
read inval
if [ A$inval == "A" ] ; then
if [ A$default != 'A' ] ; then
inval=$default
default=""
else
echo You must enter a value
index=0
echo -n "Expecting one of : "
while [ "$index" -lt "$elementcount" ] ; do
echo -n "${goodvals["$index"]}" " "
let index++
done
echo
fi
fi
if [ A$inval != "A" ] ; then
index=0
while [ "$index" -lt "$elementcount" ] ; do
if [ ${goodvals[$index]} == $inval ] ; then
flag="done"
outval=${goodvals[$index]}
fi
let index++
done
if [ $flag != "done" ] ; then
index=0
echo -n "Expecting one of : "
while [ "$index" -lt "$elementcount" ] ; do
echo -n "${goodvals["$index"]}" " "
let index++
done
echo
fi
fi
done
}

#~~
# Set prompt to the prompt you want to give a user
# call getnumval
# when it returns your value is in outval
#~~
getnumval()
{
flag="notdone"
until [ $flag == "done" ] ; do
echo -n $prompt " "
read inval
if [ A$inval == "A" ] ; then
if [ A$default != 'A' ] ; then
inval=$default
default=""
else
echo You must enter a value, expecting a posi

Re: Bad image with one of the snippets

2008-09-18 Thread Patrick Horgan

Neil Puttock wrote:


This snippet is version specific to 2.11; it shouldn't really be in
LSR,
Does that imply that there's not supposed to be any snippets to show how 
to do the new 2.11 stuff?


Patrick

 but was added so it can be used in the docs.  Unfortunately, some
of the properties it uses don't have direct equivalents in 2.10 (e.g.
'break-align-anchor-alignment), so it's tricky to match the desired
behaviour.  I've had a fiddle with it, but it's really a lost cause
without altering it significantly.

Valentin, I'll add this to input/new shortly.

Regards,
Neil

  




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


Re: png cropping

2008-09-18 Thread Patrick Horgan
   Alright, this is probably my last version.  It now checks the input 
for format against all the available conversions (found by looking for 
all the programs in the filesystem that start with ppmto and pnmto) and 
if you didn't pick one, gives you all the choices! 


Enter desired output format (jpeg, png, tiff, gif, pcx, bmp) ... :  fooburger
Expecting one of : acad  bmp  ddif  eyuv  fiasco  fits  gif  icr  ilbm  jpeg  
leaf  lj  lss16  map
mitsu  mpeg  neo  palm  pcx  pgm  pi1  pict  pj  plainpnm  png  ps  puzz  rast  
rgb3  rle  sgi  sir
sixel  tga  tiff  tiffcmyk  uil  winicon  xpm  xwd  yuv  yuvsplit  
Enter desired output format (jpeg, png, tiff, gif, pcx, bmp) ... :  tiffcmyk



   Of course if you pick one that eog doesn't know how to display it 
will complain.  If you pick one that requires extra command line 
argument, it will complain.  If you comment out the line that removes ps 
and select ps as the format type, then look at the resultant postscript 
file with a postscript viewer, it's rotated 90 degrees!  Cool:)  That 
looks like a bug in pnmtops.  It's a shame that pnmtotiff doesn't have a 
-transparent argument since tiff supports transparency.


   I also fixed a problem where the validation routines would go crazy 
if you just hit enter when prompted for input.  Also made it not prompt 
for transparency if you already specified a format on the command line 
that doesn't support it, and conversely if you asked for transparency on 
the command line and specified a format that doesn't support it, notes 
your user error and asks you to pick gif or png.


   Thanks for inspiring me Jonathan.  I'd like to make clear that all 
of this script that does any useful work is Jonathan's original script.  
My parts just validate input and add command line arguments.  I've 
developed some general purpose routines for this script that I've wished 
to have for a long time and will reuse often.:)


   I can't believe I spent most of my day on this !

Patrick
#!/bin/bash
#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
#*#

#~~
# setformatlist - get's the list of all the things that
# you can convert to
#~~
setformatlist()
{
currentdir=`pwd`
examp=`which ppmtojpeg`
echo $examp
if [ $? -eq 0 ] ; then
OUTDIR="`dirname $examp`"
cd $OUTDIR
ppmtos=`ls ppmto* | sed -n s/ppmto//p`
pnmtos=`ls pnmto* | sed -n s/pnmto//p`
alltos=`echo  $ppmtos $pnmtos | tr " " "\n" | sort -u | tr "\n" " "`
fi
cd $currentdir
}
#~~
# usage is called when we're called incorrectly.
# it never returns
#~~
usage()
{
echo "Usage: " $0 " [-t] [-rN] [-fFORMAT] filename"
echo "  -t  indicates transparency is desired"
echo "  -r=Nset resolution to N (usually 72-2000)"
echo "  -f=FORMAT   set format to FORMAT one of:"
echo "jpeg, png, tiff, gif, pcx, bmp"
echo "  filenamea lilypond file"
exit -1
}

#~~
# Set prompt to the prompt you want to give a user
# goodvals to the list of acceptable values
# call getval
# when it returns your value is in outval
#~~
getval()
{
flag="notdone"
[EMAIL PROTECTED]
until [ $flag == "done" ] ; do
echo -n $prompt " "
read inval
if [ A$inval == "A" ] ; then
echo You must enter a value
index=0
echo -n "Expecting one of : "
while [ "$index" -lt "$elementcount" ] ; do
echo -n "${goodvals["$index"]}" " "
let index++
done
echo
else
index=0
while [ "$index" -lt "$elementcount" ] ; do
if [ ${goodvals[$index]} == $inval ] ; then
flag="done"
outval=${goodvals[$index]}
fi
let index++
done
if [ $flag != "done" ] ; then
index=0
echo -n "Expecting one of : "
while [ "$index" -lt "$elementcount" ] ; do
echo -n "${goodvals["$index"]}" " "
let index++
done
echo
fi
fi
done
}

#~~
# Set prompt to the prompt you want to give a user
# call getnumval
# when it returns your value is in outval
#~~
getnumval()
{
flag=

Re: png cropping

2008-09-18 Thread Patrick Horgan




Jonathan Kulp wrote:
Ok I
changed a couple of things to make it even more flexible.  I changed
pnmto__ to ppmto__, giving quite a few more output options. I've
suggested a few in the script.  Also added an option to choose either
gif or png when choosing transparent background.  this is fun :)
  

Jonathan, on my system there's no ppmtopng or ppmtotiff and ppmtojpeg
is a link to pnmtojpeg.  This is with Hardy Ubuntu and a fresh install
of the utils.  Annoying, no?  It makes the changes to your script break
on my machine.

I've found that creating symbolic links in /usr/bin like:
 ln -s pnmtopng ppmtopng
 ln -s pnmtotiff ppmtotiff
fixes the problem, but why wouldn't that have been done automagically? 
I removed the netpbm package and it didn't remove my links, so they're
really not part of the package.  Maybe I should file a bug against the
package.  It does reinstall the link from ppmtojpeg to pnmtojpeg when I
reinstall it.  How is it set up on your system?

It seems like to be bulletproof, the script needs to check and see
which of ppmto$FORMAT and pnmto$FORMAT exists and use that, that's easy
to do with which, it already has all the code to look through your PATH.

I'm attaching a new version of my version of your script with that
change and a new routine, getval,  that validates input, you use it
like:

 prompt= "Enter desired output format (jpeg, png, tiff, gif, pcx, bmp): "
 goodvals=("jpeg" "png" "tiff" "gif" "pcx" "bmp")
 getval
 FORMAT=$outval

If the user enters something that's not on the goodvals list, for
example joe, it reprompts them after telling them what they might have
entered:

Enter desired output format (jpeg, png, tiff, gif, pcx, bmp):  joe
Expecting one of : jpeg  png  tiff  gif  pcx  bmp  
Enter desired output format (jpeg, png, tiff, gif, pcx, bmp):  


 Cool, no?  I suppose I should add validation to the command line
arguments as well.
Ok, just did that, resolution checked for numeric both on input and
from the command line, format checked for one of the allowable things,
and check to make sure there's a filename, and print meaningful error
message and a usage statement.  Try it and see if it works for you.
    I'm almost tempted to check for all the pnmto and ppmto and
automatically build the list of allowed types instead of hard coding
them--nah, I'll leave that as an exercise for the reader;)  It really
needs to be done with my version because I only let people use what's
on the list:(  Yours will just work as long as it's a valid format. 
You could grab the outcmd part of my version of your script.  It
automagically picks either ppmto or pnmto and exits with an error if
neither are found.
    I also check for the existence of pnmtojpeg and abort the script if
not found with
a message that the netpbm utilities have to be installed to use the
script.
    Now the script is much larger because of all the checking.

Patrick

Jon
  
  
script attached this time...
  
  
Patrick Horgan wrote:
  
  Jonathan Kulp wrote:

I'm guessing that one of the netpbm tools
will handle transparency, it's just a matter of figuring out which
one.  Didn't this come up on a recent thread?  I seem to remember
trying it out on something and getting a transparent background.  When
I get some time later I'll look into it.  It would be simple enough to
add a prompt asking if you'd like a transparent background, I guess.
  

Now that you mention it that rings a bell with me too!   I'll have to
search---


giftoppm foobar.gif | ppmtogif -transparent '#rgb' > fooquux.gif



works if you want gif.  First translate to ppm, then translate back to
gif  with the -transparent flag specifying which color, (in this case
#fff) will be transparent.


pnmtopng has the transparent argument, but pnmtotiff and jpeg don't
since they don't support transparency...so, using your script, if you
want transparency, you have to choose png for the output, then on the
translation step from ppm just add the appropriate flags.  I just tried
it adding a quick -transparent '#ff' to the command line and then
selecting png so it would work.  It worked like a charm:)


  
  




#!/bin/bash
#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
#*#

#~~
# usage is called when we're called incorrectly.
# it never returns
#~~
usage()
{
echo "Usage: " $0 " [-t] [-rN] [-fFORMAT] filename"
echo "  -t  indicates

Bad image with one of the snippets

2008-09-18 Thread Patrick Horgan
In snippet no. 433 the Rehearsal Marks don't have the alignment you 
might expect.  Grabbing down the snippet and compiling it with the 
current lilypond works fine and produces the desired result, but in the 
image in the snippet, the alignment of the
rehearsal marks never move.  It made it quite confusing when I looked at 
it.  Could someone generate a correct image for it?


Patrick


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


Re: png cropping

2008-09-17 Thread Patrick Horgan




Neil Puttock wrote:

  Hi Jon,

2008/9/17 Jonathan Kulp <[EMAIL PROTECTED]>:
  
  
I'm guessing that one of the netpbm tools will handle transparency, it's
just a matter of figuring out which one.  Didn't this come up on a recent
thread?  I seem to remember trying it out on something and getting a
transparent background.  When I get some time later I'll look into it.  It
would be simple enough to add a prompt asking if you'd like a transparent
background, I guess.

  
  
>From the command line: -dpixmap-format=pngalpha

In a .ly file: #(ly:set-option 'pixmap-format "pngalpha")
  

There must be more than this--I don't get any .png file when I use this
option.  Only postscript and pdf.

Patricki

  
Regards,
Neil

  






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


  1   2   >