Re: opening files with Notepad

2005-07-13 Thread Paul Scott

David Tweet wrote:

That's weird, I just opened wtk-1-fugue2.ly  
(one of the examples from the website) in Notepad and it seems like 
the newline character is getting printed as an empty rectangle(???).


That's because the files on the website are *nix text files.  Their 
lines end with a newline character (line feed).  NotePad (DOS) expects 
lines to end with CRLF (carriage return, line feed) and doesn't expect 
line feed alone so it replaces with the symbol for non-printable control 
character (ASCII or ANSI code < 32).


To use those files on MS Windows you need to convert all the line 
endings from *nix to DOS.  There are a number of simple programs to 
convert the files or get an editor like EditPad Lite which can do the 
conversion.



The files I made in emacs display fine though.

I use XEmacs on Windows XP, so I can get all the fun syntax 
highlighting colors.  For Windows I would recommend it over Gnu Emacs, 
just because it allows you to take advantage of WinXP's ClearType font 
smoothing ( _much_ easier on the eyes ).  You can get it for free at 
http://www.xemacs.org 


Did you try opening the website files in XEmacs?

Paul



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


Re: lilypond-book problem remains in 2.6.1

2005-07-13 Thread Nicholas Haggin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graham Percival wrote:
> A single file would be good -- something that contains any TeX preamble
> (that is necessary to reproduce this problem), any lilypond code, etc.

Will be coming up after I take the CCNA tomorrow.

> Oh, actually this could be a different issue: with \book, the lilypond
> example
> takes up the entire page.  

That's the issue, then. My initial mail made it sound like I was
getting page breaks after every \score, when in fact I was just
getting a page break after every \book.

> My suggestion is to set
> \paper { vsize = whatever }
> manually inside your lilypond code.  I use 10\in for letterpaper; I
> don't know
> what a good number is for A4.  And if you want to use custom footers, then
> that number would need to be less.

Aargh. This complicates things because, in some cases, I have a
bunch of verses written out under the music, and then the footer
(which isn't a page footer per se, but rather a "hymn footer."). In
this second case, of course, all the extra verses plus the footer
are on the next page. As you can see, I had been counting on the
music output to stop right below the final staff.
Hand-hacking, here I come.

- --
Nicholas Haggin

A.M.D.G.

Find my public keys at my website: http://nhaggin.freeshell.org/
-BEGIN PGP SIGNATURE-

iD8DBQFC1dIJYbuXiaDnyW4RAkmXAJ4+NDLszif2JA/dpV4PxvmuDBgI5gCeKtqH
mjTVEJcTVRHkvp/qaSt/b6c=
=VBf0
-END PGP SIGNATURE-


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


Re: lilypond-book problem remains in 2.6.1

2005-07-13 Thread Graham Percival


On 13-Jul-05, at 10:33 AM, Nicholas Haggin wrote:


Graham Percival wrote:

Could you construct a minimal example that demonstrates the problem?
That would greatly help the investigation.  Could you then send the
example to bug-lilypond ?


Will do. How much more minimal than the example I posted do you want?


A single file would be good -- something that contains any TeX preamble
(that is necessary to reproduce this problem), any lilypond code, etc.


Having searched, read past emails, and having futzed with the
scores a bit, the output begins to resemble 2.4, excepting the page
break after each score. It's annoying for me because, in the current
format, each hymn has a footer containing tune name/meter/composer
and author/translator, which now gets shoved onto another page. Are
there any plans to eliminate the automatic page break after scores
in a \book, or shall that feature stand?


I just discovered this yesterday; consider it a bug.  Again, please 
create

the smallest possible (and definitely single-file) example and send to
bug-lilypond.  However, I'm having some difficulty reproducing my
example in a small file.

Oh, actually this could be a different issue: with \book, the lilypond 
example

takes up the entire page.  My suggestion is to set
\paper { vsize = whatever }
manually inside your lilypond code.  I use 10\in for letterpaper; I 
don't know
what a good number is for A4.  And if you want to use custom footers, 
then

that number would need to be less.

Cheers,
- Graham



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


Re: opening files with Notepad

2005-07-13 Thread David Tweet
That's weird, I just opened wtk-1-fugue2.ly (one of the examples from
the website) in Notepad and it seems like the newline character is
getting printed as an empty rectangle(???).  The files I made in
emacs display fine though.



I use XEmacs on Windows XP, so I can get all the fun syntax
highlighting colors.  For Windows I would recommend it over Gnu
Emacs, just because it allows you to take advantage of WinXP's
ClearType font smoothing ( _much_ easier on the eyes ).  You can
get it for free at http://www.xemacs.org



Other things like jedit might be better or easier, I just haven't tried them.

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


Re: Maximum ghostscript input filesize? Adjustable parameter?

2005-07-13 Thread Trevor Baca
On 7/13/05, Graham Percival <[EMAIL PROTECTED]> wrote:
> 

> 
> > 2. If it's not possible (or worth taking the time to tinker with gs)
> > could someone offer me a pointer on what file I can edit to have Lily
> > stop calling gs?
> 
> Does "lilypond --ps foo.ly" not work?

Yes! --ps works perfectly.

Thank you, Graham.

Trevor.


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


Re: force accidentals

2005-07-13 Thread Stephen

Mehmet a ecrit:

I beg your pardon if I did not express myself as well as a native English

speaking person.>

I felt unusually confident I knew what you really meant because I have one 
of the Universal Editions you were talking about as a reference and we had 
discussed it a little further. Your english is really very good.



The function is very useful and it must be uploaded at the code snippets.>


I am having trouble with it when I put it in a PianoStaff.


Please quote the message to which your replying, in order to bring some

context to the discussion>

I am trying, but it does not happen automatically because I am not subscibed 
to user-lilypond only lilypond-devel.



then engine compares note alterations with the

key signature, which contains only non-existant alterations.>

When I place the functions inside a PianoStaff, it prints a key signature 
unfortunately.


Skipping the explanation, I'll just attach the example I made if you don't 
mind.


The KeySignature print-function override only occurs after the line breaks 
are set. Removing the engraver nullifies the function entirely.


I am wondering if there is a way to override the print-function before 
line-breaking? Perhaps in the layout block. Or is there a way to get the 
note alterations we want without creating a key signature. I already 
experimented with the pitch-alist to no avail. How does "tonic 
(ly:make-pitch -1 4 0)" work? I there something we can do there to stop 
printing the key signature? I think this is the most staight-forward way to 
manipulate the accidetal_engraver.cc to do what we want without re-writing 
it, but can it be done without creating a real key signature at all?


Alternatively, perhaps I don't understand where to place the function. Or 
perhaps there might be a way to change the context of the function? Maybe 
just the right context would put it outside the scope of printing the 
keysignature while still affecting the notes. Anyway, it is a nice function.


Check out atonicKey.ly to see what I am talking about.

By the way, the error messages also stopped once it started to print a key 
signature.


Stephen 
  \version "2.6.0"
  
  atonicKey = 
  #(def-music-function (parser location) ()
 #{ #(ly:export (make-music 'EventChord
 'origin $location
 'elements (list (make-music 'KeyChangeEvent
  'tonic (ly:make-pitch -1 4 0)
  'pitch-alist '((5 . 1)
 (6 . 1)
 (0 . 1)
 (1 . 1)
 (2 . 1)
 (3 . 1)
 (4 . 1))
\set Score . extraNatural = ##f #})
  
  \layout { 
%\context { \Staff \remove Key_engraver }
raggedright = ##t 
  }
  
  \context PianoStaff <<
  \override PianoStaff.KeySignature #'print-function = ##f
  \context Staff = upper \transpose c c' { 
\time 6/8
\tempo 4.=80
\override Score.Hairpin #'height = #'0.5
\override Score.Beam #'auto-knee-gap = #'4.5
\set Score.allowBeamBreak = ##t
\override Score.MetronomeMark #'extra-offset = #'(5.0 . 2.0)
#(set-accidental-style 'modern-voice)

% Add bar numbers in a cirlce every 5th bar
\override Score.BarNumber  #'break-visibility = #end-of-line-invisible
\set Score.barNumberVisibility = #(every-nth-bar-number-visible 5)
\override Score.BarNumber #'font-size = #1
\override Score.BarNumber #'print-function
= #(make-stencil-circler 0.1 0.25 Text_interface::print)

\clef G
\atonicKey 
r8^\markup { " " \translate #(cons -5.5 2.25) \bold \huge " Rasch" }
e'-.\p f'-. g4^>( \< des'8^.) \! | 
ges es8. ^\< as16( \! d8-.) r b ~ ^\sf | \noBreak b 
\once \override Script #'extra-offset = #'(0.5 . -0.5) c^^[
\once \override Script #'extra-offset = #'(0.5 . 0.0) a,^^] r r
\once \override Script #'extra-offset = #'(0.5 . 0.0) 
\once \override DynamicText #'extra-offset = #'(-0.9375 . -1.75) 
as^. ^\p \break 
<< {
  \override Script #'extra-offset = #'(0.5 . 0.0) 
  \override DynamicText #'self-alignment-X = #1 
  \override DynamicText #'extra-offset = #'(-0.875 . -2.375) 
  ces'-. r r ges[ c']-.-> ^\sf } \\ {
  \override Script #'extra-offset = #'(-0.5 . 0.0)
  es( d)-. f( ~ f[ e]) } >>
f'\rest |
  }
  \context Staff = lower \transpose c c { 
\clef F 
\atonicKey
r4 r8 bes8.^^\mf[ ces'^^ | 
des^^ g^^] r8 << { << { c^\p( a, | d4 gis,16) }
  \once \override Hairpin #'extra-offset = #'(0.0 . -1.375)
  { s4 \< | s4*8/45 
  \once \override Hairpin #'extra-offset = #'(0.0 . -1.8125)
  s4*22/45 \> s4*3/12 s4*1/12 \! s16 } >> } 
\\ { 
  \override Script #'extra-offset = #'(-0.5 . 0.0)

Re: opening files with Notepad

2005-07-13 Thread Jay Hamilton, Sound and Silence
I use something called TestEd in XP, it's  free and is more powerful 
than notepad etc... and works fine for input editting ly files.

Jay

Paul Scott wrote:


Daniel Ballenger wrote:


Try wordpad.  I don't think notepad cares about \n (newlines).  Thus
causing your run-together problem
 

WordPad isn't really a text editor.  I don't know how LilyPad is 
related to EditPad (they look about the same) but there are several 
good free text editors.  I use EditPad Lite which knows how to convert 
line termination between DOS and *nix (and Mac).


Paul Scott



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




--
Childhood is a Journey not a race- Emma Sadinsky aged 8
Jay Hamilton
Sound and Silence
206-328-7694
www.soundand.com



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


Re: lilypond-book problem remains in 2.6.1

2005-07-13 Thread Nicholas Haggin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graham Percival wrote:
> Could you construct a minimal example that demonstrates the problem?
> That would greatly help the investigation.  Could you then send the
> example to bug-lilypond ?

Will do. How much more minimal than the example I posted do you want?

> One way to completely eliminate these problems is to use \book{} around
> your scores.  You may wish to do a few searches on the mailists to see
> the history about lilypond-book, \book, and margins.

Having searched, read past emails, and having futzed with the
scores a bit, the output begins to resemble 2.4, excepting the page
break after each score. It's annoying for me because, in the current
format, each hymn has a footer containing tune name/meter/composer
and author/translator, which now gets shoved onto another page. Are
there any plans to eliminate the automatic page break after scores
in a \book, or shall that feature stand?

- --
Nicholas Haggin

A.M.D.G.

Find my public keys at my website: http://nhaggin.freeshell.org/
-BEGIN PGP SIGNATURE-

iD8DBQFC1VBvYbuXiaDnyW4RAmUfAJ41vUSSUa0xqbMqB3H4/gyONtdBTQCeKN1X
6uZFuKdYRL92p9pvk5cZUOM=
=xH1d
-END PGP SIGNATURE-


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


Re: opening files with Notepad

2005-07-13 Thread Daniel Johnson
Paul Scott wrote:

> Daniel Ballenger wrote:
>
>> Try wordpad.  I don't think notepad cares about \n (newlines).  Thus
>> causing your run-together problem
>>  
>
> WordPad isn't really a text editor.  I don't know how LilyPad is
> related to EditPad (they look about the same) but there are several
> good free text editors.  I use EditPad Lite which knows how to convert
> line termination between DOS and *nix (and Mac).
>
> Paul Scott

If you have Java installed, you might want to try installing jEdit
(http://www.jedit.org/) which has plugins that can handle syntax
highlighting etc. for Lilypond.

Microsoft-built editors in general will choke when opening documents
created on Unix-like systems (including Linux & OSX), because the
end-of-line character(s) for Microsoft is CR+LF while Unix uses LF. 
(And to top it off, old Macs used CR.)  Any decent programmer's editor
can gracefully make the conversion between the styles.  Also, if you're
using Lilypond >= 2.5, jEdit can save documents in UTF-8 format, which
lets you include any Unicode character in your files, not just those
accessible from your American or Western European keyboard.

--Daniel


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


Re: lilypond-book problem remains in 2.6.1

2005-07-13 Thread Laura Conrad
> "GP" == Graham Percival <[EMAIL PROTECTED]> writes:

GP> On 11-Jul-05, at 4:05 PM, Nicholas Haggin wrote:
>> The output issues I posted about earlier (to lilypond-user only)
>> remain under 2.6.1, although the other bugs I ran into are now fixed.
>> 
>> http://nhaggin.freeshell.org/lilybook-trouble/
>> 
>> Again, note the vertical placement of staves in hymnal.pdf.

GP> I think the problem is the horizontal placement, not the vertical.  I
GP> thought
GP> this bug had been fixed...

The similar problem I had with 2.5.x has gone away on 2.6.0.


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




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


Re: Maximum ghostscript input filesize? Adjustable parameter?

2005-07-13 Thread Graham Percival


On 8-Jul-05, at 10:03 PM, Trevor Baca wrote:

A.  I've tried ripping input data out of "test.ly" and, if I go down
from 64 staves to about 45 staves, then the call to gs runs perfectly!


Could you provide us with this test.ly ?  Remove any of your personal
composition stuff (if you're concerned about copyright, but also so that
we have as small an example as possible) and send it to
bug-lilypond.


2. If it's not possible (or worth taking the time to tinker with gs)
could someone offer me a pointer on what file I can edit to have Lily
stop calling gs?


Does "lilypond --ps foo.ly" not work?

Cheers,
- Graham



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


Re: Stems up and down

2005-07-13 Thread Erik Sandberg
On Monday 11 July 2005 13.34, Georges Roux wrote:
> Problems with J.S.Bach and polyphony
> Have one voice, but played as 2 voices
> I need the stems up for the "upper voice" and down for the "lower
> voice", as in 2 voices but in one voice ;-)
>
> \time 3/4
> cis16 a,16_"forte" a'16 a,16 gis'16 a,16 a'16 a,16 b'16 a,16 gis'16
> a,16   %63
>
> Something like:
> \time 3/4
> cis16\stemUp a,16_"forte"\stemDown a'16\stemUp a,16\stemDown
> gis'16\stemUp a,16\stemDown ...

I don't understand exactly what you want, but is it something like this?
\new Staff << {cis16[ s a s gis s a s b s gis] }  \\ {s a,[ s a s a s a]} >>

Erik


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


RE: Using Scheme inside header markup

2005-07-13 Thread Sven Axelsson
> From: Graham Percival [mailto:[EMAIL PROTECTED] 
> On 12-Jul-05, at 12:43 PM, Sven Axelsson wrote:
> 
> >> There is a little subtlety with options: -dno-comment means
> >> that you set
> >> the `comment' option to #f, whereas -dcomment means that you
> >> set comment
> >> to #t.
> 
> > Aargh! That's it alright! Thanks a lot for helping me out here.
> 
> I'm quite interested in this; once you have a working example that
> detects command-line options, could you post it here?  It'd also
> be good to include it in LSR, even if can't display the results of
> different command-line options in LSR.  :)

Sure. Basically it works just as shown in Nicholas Sceaux last mail.

In my case I use it to conditionally include extra fields in the
header, so I do something like this:

\paper {
  bookTitleMarkup = \markup {
% Normal markup for getting the header fields goes here.
% Turn my extra field on or off depending on the command line flag.
#(ly:export (if (ly:get-option 'show-comment) 
 (markup #:fromproperty 'header:comment)
 (markup)))
  }
}

and then call Lilypond with

lilypond -dshow-comment file.ly

to turn on the comment field. And as shown in the quoted part above,
do not call your option no-comment (or no-whatever), since
the getopt library uses that as a toggle for boolean flags.
-dcomment is #t, -dno-comment is #f.

You can also use use non-boolean defines, like

lilypond -dmy-option=43 file.ly

and then use the value passed somewhere, like as a parameter 
to some setting in \page or \layout maybe.
-- 
Sven Axelsson



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