Re: accessing absolute pitch data from within \relative?

2009-06-15 Thread Mark Polesky

Kieren MacMillan wrote:
> How's this?
>
> relativeMusic = \relative
> {
> c' d e f g g, a b c1
> }
> 
> \displayLilyMusic \relativeMusic

Kieren,
The \displayLilyMusic is not within the \relative block.
So it's the same situation; the command works fine
outside the \relative block, but not within:

\displayLilyMusic \relative { c' d e f g g, a b c1 }
==>
{
  c''4 d'' e'' f'' g'' g' a' b' c''1 
}

but...

\relative { \displayLilyMusic { c' d e f g g, a b c1 } }
==>
{
  c'4 d e f g g, a b c1
}
..which doesn't help because the octaves are all wrong.

Besides, the console display is not the issue; I want to
be able to access the pitch data from within a macro.

But thanks!
- Mark



  


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


Re: accessing absolute pitch data from within \relative?

2009-06-15 Thread Kieren MacMillan

Hi Mark,


I want to retrieve absolute pitch data from within a \relative
block but I can't figure it out. Here's my work so far. Probably
there's a much easier way. If so, let me know!


How's this?

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

relativeMusic = \relative
{
c' d e f g g, a b c1
}

\displayLilyMusic \relativeMusic

Cheers,
Kieren.


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


accessing absolute pitch data from within \relative?

2009-06-15 Thread Mark Polesky

I want to retrieve absolute pitch data from within a \relative
block but I can't figure it out. Here's my work so far. Probably
there's a much easier way. If so, let me know!

By the way, is this a -user or a -devel question? Sometimes I
post to -devel just so I don't scare -user newbies away with
advanced stuff. Is that a misuse of -devel?

Thanks.
- Mark

__


\version "2.13.1"

#(begin
(use-modules (ice-9 pretty-print))

(define (EventChord? music)
  (eq? (ly:music-property music 'name) 'EventChord))
   
(define (EventChord->NoteEvents EventChord)
  (filter
(lambda (x) (eq? (ly:music-property x 'name) 'NoteEvent))
(ly:music-property EventChord 'elements)))

(define (NoteEvents->pitches NoteEvents)
  (map (lambda (x) (ly:music-property x 'pitch)) NoteEvents))

(define (EventChord->pitches EventChord)
  (NoteEvents->pitches (EventChord->NoteEvents EventChord)))
)

displayPitches = 
#(define-music-function (parser location mus) (ly:music?)
   (music-map
 (lambda (x)
   (if (EventChord? x) (pretty-print (EventChord->pitches x)))
   x)
 mus))

% running \displayPitches *outside* of \relative prints the
% correct pitches:
\displayPitches \relative { 8. }
% ==> (# # #)

% but running \displayPitches *inside* \relative prints the wrong
% pitches:
\relative { \displayPitches 8. }
% ==> (# # #)



  


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


Re: some sort of suppress-accidental?

2009-06-15 Thread Jonathan Kulp

Mark Polesky wrote:

entering { \displayMusic c'! } yields:

(make-music
  'EventChord
  'elements
  (list (make-music
  'NoteEvent
  'force-accidental
  #t
  'duration
  (ly:make-duration 2 0 1 1)
  'pitch
  (ly:make-pitch 0 0 0

I wish there were a similar way to suppress the printing of the
accidental from within the NoteEvent expression.

Something like 'suppress-accidental that would fit right where
'force-accidental goes in the scheme expression. Is that
possible? Would it be difficult to implement?

- Mark



Hi Mark,

I'm very hesitant to make suggestions at all, since I don't know 
scheme, but this interests me and I've been snooping around the 
code trying to figure out where these things are defined.  It 
looks like you could define another character to specify 
"suppress-accidental" in the "define-music-display-methods.scm" 
file, in this block:


;;;
;;; Notes, rests, skips...
;;;

(define (simple-note->lily-string event parser)
  (format #f "~a~a~a~a~{~a~}" ; pitchname octave !? octave-check 
articulations

  (note-name->lily-string (ly:music-property event 'pitch) parser)
  (octave->lily-string (ly:music-property event 'pitch))
  (let ((forced (ly:music-property event 'force-accidental))
(cautionary (ly:music-property event 'cautionary)))
(cond ((and (not (null? forced))
forced
(not (null? cautionary))
cautionary)
   "?")
  ((and (not (null? forced)) forced) "!")
  (else "")))
  (let ((octave-check (ly:music-property event 'absolute-octave)))
(if (not (null? octave-check))
(format #f "=~a" (cond ((>= octave-check 0)
(make-string (1+ octave-check) #\'))
   ((< octave-check -1)
(make-string (1- (* -1 octave-check)) 
#\,))
   (else "")))
""))
  (map-in-order (lambda (event)
  (music->lily-string event parser))
(ly:music-property event 'articulations


I can see where it checks for "?" for cautionary and "!" for 
forced. Assuming, for example, that the character "&" is not used 
for something else (I can't think of anything it's used for in 
lilypond source files), maybe you could add


((and (not (null? suppressed)) suppressed) "&")

But then I don't know where you would define the behavior for 
suppressed.


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


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


Re: development on windows

2009-06-15 Thread Bertalan Fodor
Well, Eclipse runs very well on my netbook with Atom and 2gb ram. But the cdt 
is still very limited. Also its startup from the pen drive is too slop. But 
kdevelop seems all right, which has ctags integration and looks up macro 
definitions in a second.

Bert



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


working on the new website

2009-06-15 Thread Graham Percival
Current version:
  http://percival-music.ca/blogfiles/out/lilypond-general_1.html#Home
got the general design of Introduction and Download, but I've
decided that it's time to get more people involved.  Here's your
cut&paste section; it grabs 12 megs or so.

mkdir web-gop ; cd web-gop
git init-db
git remote add -f -t web-gop -m web-gop origin 
git://git.sv.gnu.org/lilypond.git/
git checkout -b web-gop origin/web-gop


Everything we're doing is inside the texinfo/ directory.  If you
have commit privileges to normal lilypond, you have 'em here as
well.  (but you'll need to change the .git/config file a bit
before you can push.  Instructions should be on the CG.)

Patrick, could you fiddle around in the texinfo/css/ dir?  Do
whatever you want -- add images, remove images, change the css,
split the css into multiple files (I think CSS supports that),
etc.  Don't spend too long on it; I'm still not at all certain
which s we'll end up keeping, what info will actually go on
the front page (which is where most of the CSS will be useful),
etc.  I'm just getting a bit tired of my garish design.  :)


Who else is interested?  In particular,
- do you feel like re-writing the Introduction->Features ?  That's
  best done by a positive person (i.e. not me).

- do you feel like making examples for Introduction->Examples?
  (or quite possibly just use things from input/*.ly, or snippets,
  or whatever)
** no git, texinfo, or anything required!  Just lilypond and email! **

- do you feel like adapting the existing python scripts which set
  up the download links?  This might be do-able in 10 minutes, or
  it might take a bit longer.

- do you feel like wrestling with the web-texi2html-init.pl file
  to make it generate the second layer of the TOC frame?

- do you feel like writing the "doc intro" page?  (i.e. a
  replacement to the current Documentation/index.html, done
  in texinfo in texinfo/documentation.itexi)
   ** this page (and the home page) will probably be the most
 CSS-heavy pages **

I'm totally willing to do any or all of this myself, but if
anybody's interested in taking over these tasks, I'll devote my
time to other stuff (including working towards the 2.14 release).


Andrew, I know that you offered to work on the essay; if you're
still willing, then let's talk.  The only real question (in my
mind) is how much lilypond you want to include, and whether we
need to drag in lilypond-book for the website, or if we can do it
another way.  My hope is to do it another way.
If plain texinfo is fine, go ahead and do whatever you want in
texinfo/essay.itexi, as long as the result compiles.  :)


Oh, and does anybody have any immediate comments (or experience)
with blind users?  As a general rule, I'm quite keen to make
things accessible.  For the specific case of LilyPond, we have at
least one famous blind user, so we should make sure the new
webpage is easy for him/them to navigate.

Cheers,
- Graham


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


Re: is dot-count really a user settable property?

2009-06-15 Thread Han-Wen Nienhuys
On Mon, Jun 15, 2009 at 9:06 PM, Neil Puttock wrote:

>> But neither of these do anything either:
>> { \override Dots #'dot-count = #0 c''4. }
>> { \override Dots #'dot-count = #3 c''4. }
>
> That's because the Dots_engraver overrides 'dot-count, which means
> your override is ignored:
>
>  46       d->set_property ("dot-count", scm_from_int (dur->dot_count ()));
>
> This also means that the callback for 'dot-count
> (dots::calc-dot-count) never gets used.

that would be a bug.

-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


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


some sort of suppress-accidental?

2009-06-15 Thread Mark Polesky

entering { \displayMusic c'! } yields:

(make-music
  'EventChord
  'elements
  (list (make-music
  'NoteEvent
  'force-accidental
  #t
  'duration
  (ly:make-duration 2 0 1 1)
  'pitch
  (ly:make-pitch 0 0 0

I wish there were a similar way to suppress the printing of the
accidental from within the NoteEvent expression.

Something like 'suppress-accidental that would fit right where
'force-accidental goes in the scheme expression. Is that
possible? Would it be difficult to implement?

- Mark



  


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


Re: is dot-count really a user settable property?

2009-06-15 Thread Neil Puttock
2009/6/16 Mark Polesky :

> But neither of these do anything either:
> { \override Dots #'dot-count = #0 c''4. }
> { \override Dots #'dot-count = #3 c''4. }

That's because the Dots_engraver overrides 'dot-count, which means
your override is ignored:

  46   d->set_property ("dot-count", scm_from_int (dur->dot_count ()));

This also means that the callback for 'dot-count
(dots::calc-dot-count) never gets used.

Regards,
Neil


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


Re: is dot-count really a user settable property?

2009-06-15 Thread Mark Polesky

Han-Wen Nienhuys wrote:

> The Dots grob only gets created if the underlying
> note has at least one dot.

But neither of these do anything either:
{ \override Dots #'dot-count = #0 c''4. }
{ \override Dots #'dot-count = #3 c''4. }



  


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


Re: is dot-count really a user settable property?

2009-06-15 Thread Han-Wen Nienhuys
The Dots grob only gets created if the underlying note has at least one dot.

On Mon, Jun 15, 2009 at 8:49 PM, Mark Polesky wrote:
> IR 3.2.24 dots-interface says dot-count is a user
> settable property, but this doesn't do anything:
>
> { \override Dots #'dot-count = #3 c'' }

-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


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


is dot-count really a user settable property?

2009-06-15 Thread Mark Polesky

IR 3.2.24 dots-interface says dot-count is a user
settable property, but this doesn't do anything:

{ \override Dots #'dot-count = #3 c'' }

- Mark



  


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


Re: unable to make doc

2009-06-15 Thread Graham Percival
On Mon, Jun 15, 2009 at 10:54:16PM +0200, Jean-Charles Malahieude wrote:
> Le 11/06/2009 23:02, Graham Percival disait :
>> On Thu, Jun 11, 2009 at 09:12:08PM +0200, Jean-Charles Malahieude wrote:
>>> GPL Ghostscript 8.63 (2008-08-01)
>>
>> Hmm.  I'm using ghostscript 8.62 and building correctly.  GUB was
>> recently updated to use 8.65.
>
> It works well with a 8.64  gohstscript.   I'm still upset  because I  
> don't understand the reason why.

My guess is that 8.63 (that's what you were using, right?)
introduced some bug, which 8.64 fixed?

Sorry I couldn't help more, but at least you can continue doing
things.

Cheers,
- Graham


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


Re: unable to make doc

2009-06-15 Thread Jean-Charles Malahieude

Le 11/06/2009 23:02, Graham Percival disait :

On Thu, Jun 11, 2009 at 09:12:08PM +0200, Jean-Charles Malahieude wrote:

GPL Ghostscript 8.63 (2008-08-01)


Hmm.  I'm using ghostscript 8.62 and building correctly.  GUB was
recently updated to use 8.65.




It works well with a 8.64  gohstscript.   I'm still upset  because I 
don't understand the reason why.


Cheers,
Jean-Charles



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


Re: should we provide an empty stencil?

2009-06-15 Thread Mark Polesky

Gilles THIBAULT wrote:
> empty-stencil is already defined in "define-markup-commands.scm"

Ha! missed that one, thanks.
So I checked out define-markup-commands.scm, and found this:

(define-public empty-stencil (ly:make-stencil '() '(1 . -1) '(1 . -1)))
(define-public point-stencil (ly:make-stencil "" '(0 . 0) '(0 . 0)))

Why does one use '() and the other ""? Is there a difference?

- Mark


  


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


Re: development on windows

2009-06-15 Thread Johannes Schindelin
Hi,

On Mon, 15 Jun 2009, Anthony W. Youngman wrote:

> In message <20090614225255.ga7...@nagi>, Graham Percival
>  writes
> >2)  I don't know what the current favorite fancy IDE is, although
> >I'm fairly certain that Eclipse runs on Linux.  I'm not certain if
> >that would actually be good for LilyPond, though -- does it
> >support C++ and makefiles?  IIRC eclipse is for java stuff.
> 
> Actually, Eclipse is for almost anything ...

Except things like netbooks.

> I seem to remember that IBM are touting it as *the* IDE for developing 
> the U2 databases in (I'm a U2 developer professionally), though I've 
> never been into IDEs so I've not really followed it.
> 
> Eclipse is (iirc) written in Java, but that doesn't mean it's only meant 
> for Java development (emacs is written in lisp, but it's certainly not 
> used just for lisp development!)

You need the "CDT" edition of Eclipse, and last time I checked, which is 
admittedly some time ago, it was pretty limited, which surprised me given 
the sheer size.

Ciao,
Dscho



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


Re: texi2html web page, second attempt

2009-06-15 Thread Anthony W. Youngman
In message <4a33fbd3.2040...@gmail.com>, Jonathan Kulp 
 writes

Graham Percival wrote:


3)  Ok, so why do I want to use texinfo so much?
- makes pdfs+info.  I personally *never* use those formats, but I
  know that some people still use them.  IMO, if we're going to
  support those formats for the manuals, we should support them
  for the information that's on the website.


For what it's worth, I almost always go to the pdf manual first when I 
need to find something.


Ditto. In fact, I actively *dislike* html help - I can never find what 
I'm looking for because a search never finds it, and I can't just scan 
the "document" from top to bottom.


(At least, I can, if like lily you provide an "all in one page" option, 
but in that case I might as well have the pdf, anyways :-)


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



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


Re: development on windows

2009-06-15 Thread Anthony W. Youngman
In message <20090614225255.ga7...@nagi>, Graham Percival 
 writes

2)  I don't know what the current favorite fancy IDE is, although
I'm fairly certain that Eclipse runs on Linux.  I'm not certain if
that would actually be good for LilyPond, though -- does it
support C++ and makefiles?  IIRC eclipse is for java stuff.


Actually, Eclipse is for almost anything ...

I seem to remember that IBM are touting it as *the* IDE for developing 
the U2 databases in (I'm a U2 developer professionally), though I've 
never been into IDEs so I've not really followed it.


Eclipse is (iirc) written in Java, but that doesn't mean it's only meant 
for Java development (emacs is written in lisp, but it's certainly not 
used just for lisp development!)


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



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


Re: should we provide an empty stencil?

2009-06-15 Thread Gilles THIBAULT



Since setting a grob's stencil prop to #f can trigger errors, I
discovered the following workaround. Do we have anything like this
already?

Yes.
empty-stencil is already defined in "define-markup-commands.scm", by :

(define-public empty-stencil (ly:make-stencil '() '(1 . -1) '(1 . -1)))

Well, I cannot tell you the advantages and drawbacks of this version versus 
your proposal...


Gilles 





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


Re: development on windows

2009-06-15 Thread Bertalan Fodor (LilyPondTool)

Yes, that was a good idea. Now I'm gonna try this thing out on my Eee Pc. :)

Jonathan Kulp wrote:

Bertalan Fodor wrote:
Now I'm running lilybuntu in Sun VirtualBox from my pendrive. 
Successfully

built LilyPond, now I start playing with kdevelop.

Thanks for the fun.

Bert



Cool!  Thanks for testing, Bert.  Did you get the Guest Additions 
installed successfully?


Jon






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


Re: development on windows

2009-06-15 Thread Jonathan Kulp

Bertalan Fodor wrote:

Now I'm running lilybuntu in Sun VirtualBox from my pendrive. Successfully
built LilyPond, now I start playing with kdevelop.

Thanks for the fun.

Bert



Cool!  Thanks for testing, Bert.  Did you get the Guest Additions 
installed successfully?


Jon

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


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


should we provide an empty stencil?

2009-06-15 Thread Mark Polesky

Since setting a grob's stencil prop to #f can trigger errors, I
discovered the following workaround. Do we have anything like this
already? If not, shouldn't we? Is there a better way than using an
empty postscript string?

- Mark


#(define-public empty-stencil
   (ly:make-stencil (list 'embedded-ps "") '(0 . 0) '(0 . 0)))

{
  %\override NoteHead #'stencil = ##f
  \override NoteHead #'stencil = #empty-stencil
  c''
}


  


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


Re: development on windows

2009-06-15 Thread Bertalan Fodor
Now I'm running lilybuntu in Sun VirtualBox from my pendrive. Successfully
built LilyPond, now I start playing with kdevelop.

Thanks for the fun.

Bert

> Graham Percival wrote:
>> On Sun, Jun 14, 2009 at 04:44:30PM -0600, Carl D. Sorensen wrote:
>>> On 6/13/09 11:39 PM, "Bertalan Fodor"  wrote:
>>>
 I'm sure there are tools which would make it easier for us, simple not
 hackers, but software engineers, grown up on Microsoft Visual Studio
 end
 Eclipse. I remember that at university I did use some ide for linux
 cpp
 development. That's why I was seeking recommendation.
>>> The standard GNU answer is to use emacs to integrate your compiler,
>>> debugger, etc.  You can open a directory in emacs and then open any
>>> file
>>> from that directory, so it's useful for browsing the source, as well.
>>
>> That's not really what I'd recommend for windows people, though.
>> I'd say two things:
>>
>> 1)  Since this image will install a complete linux distro, you can
>> install any Linux GUI programming IDE you want.
>> (we should specify this in the CG where we discuss the windows
>> iso)
>>
>> 2)  I don't know what the current favorite fancy IDE is, although
>> I'm fairly certain that Eclipse runs on Linux.  I'm not certain if
>> that would actually be good for LilyPond, though -- does it
>> support C++ and makefiles?  IIRC eclipse is for java stuff.
>>
>> (again, I'm happy to dump whatever suggestions people throw at me
>> in the CG)
>>
>
> I've never worked on C++ files, but I opened one up in Geany and
> it had nice syntax highlighting plus a "build" menu with lots of
> options, including targets for make, compiling, building, etc.
> Geany's my favorite GUI editor and it's available for both Windows
> and Linux.  A developer would be better able to judge its worth as
> an IDE, but I like it very much and it's easy to install from the
> repos.
>
> BTW I've been fiddling with my Lilybuntu virtual machine and
> finally figured out how to make it go fullscreen (previously I'd
> only been able to view it in a 800x600 window--very annoying).
> It's a bit of a trick to make this work on a virtual Linux machine
> in Sun's VirtualBox.  Once you get it set up, though, it's really
> amazing.  It's a matter of successfully installing "Guest
> Additions."  I don't know if you want to get into VirtualBox
> issues in the CG, especially since others might use different
> virtualization tools, but getting it set up properly will make a
> big difference in the usability of the virtual machine.  Once it's
> fullscreen it looks as if it's the real OS on your computer.  Very
> nice.  I now have my Windows VMs set up this way (much easier on
> the Windows VMs to set up Guest Additions) and it's excellent for
> testing.
>
> Jon
>
> --
> Jonathan Kulp
> http://www.jonathankulp.com
>
>




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


Re: GUB test-lily/dist-check.py looking at src/ instead of build/ ?

2009-06-15 Thread Han-Wen Nienhuys
On Sun, Jun 14, 2009 at 7:31 PM, Graham
Percival wrote:
> Following up the latest build error, I noticed that
> test-lily/dist-check.py does:
>  ...

> Why is it attempting to link from the ../src/.. dir, instead of
> the ../build/.. dir?  I mean, we shouldn't expect to see any
> generated files like ChangeLog or RELEASE-COMMIT in that dir,
> should we?

correct. I think RELEASE-COMMIT is a new feature and has not been
debugged properly.

-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


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


Re: [PATCH] Re: Problems regarding figured bass

2009-06-15 Thread Jonathan Kulp

Reinhold Kainhofer wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 15. Juni 2009 10:26:09 schrieb Arno Rog:

Reinhold Kainhofer  kainhofer.com> writes:

Hi all,
I'm running into several problems with figured bass while writing another
large orchestral piece. Attached is a sample file highlighting these
issues:

And while we're at it, is it possible to enlarge the figured bass?
The figures are quite small and hardly to read in 'real life' situations.


Ah, you are talking about the accidentals!
Yes, I totally agree with you! Just a few days ago, while proofreading some 
scores I recently wrote, I was thinking exactly the same and I really had 
problems distinguishing the # and naturals! 

Han-Wen seems to agree to some extent, since in commit 
2caf4b6c15f4e94357fadd913777fb75b3458c61 (2005-11-25 19:20:05) he enlarged the 
double-sharp with the message:

* scm/translation-functions.scm (format-bass-figure): make double
sharp larger.

The smaller size of the accidentals were introduced in commit 
220365d152ed25083f94e4ddc5118bcd01b12eaa (2005-10-06 15:12:56) with no useful 
commit message:

(AncientRemoveEmptyStaffContext): switch on
New_figured_bass_engraver by default.


Until now I apply the following patch:
file: usr\share\lilypond\current\scm\translation-functions.scm


Unless there is any good reason, I would propose to completely remove the 
fontsize -2 from the accidentals in figured bass. They are much more readable 
and look much more like the accidentals in old hand-engravings I have at home 
(actually, there the numbers are a bit smaller, but the accidentals are even 
larger than the numbers!).




Totally agreed on this point.  Whenever I have an accidental by 
itself I use this:


bigAccidental = \once \override Staff.BassFigure #'font-size = #'2

But then the accidentals that appear underneath numbers stay small 
because I don't want the numbers to get too big.  Very irritating. 
 Thanks for writing a patch.


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


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


Re: [PATCH] Make some local functions public (was: Re: lily-library.scm question)

2009-06-15 Thread Joe Neeman
On Mon, Jun 8, 2009 at 3:59 AM, Mark Polesky  wrote:

> my version:
>
> (define-public (split-at-predicate predicate lst)
>   "Split LST (into 2 lists) at the first element that returns #f for
>   (PREDICATE previous_element element), and return the 2 new lists as a
>   pair. Example: (split-at-predicate < '(1 2 3 2 1)) ==> ((1 2 3) 2 1)"
>  (if (< (length lst) 2)
>  (cons lst '())
>  (let loop ((L0 (list (car lst))) (L1 (cdr lst)))
>(cond ((null? L1) (cons L0 L1))
>  ((predicate (car (last-pair L0))


last-pair is an O(n) operation, since it has to traverse the whole list,
making split-at-predicate O(n^2) instead of O(n), as it should be. You'd be
better off building L0 backwards and reversing it at the end, so that the
element you need is always at the beginning of a list.

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


[PATCH] Re: Problems regarding figured bass

2009-06-15 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 15. Juni 2009 10:26:09 schrieb Arno Rog:
> Reinhold Kainhofer  kainhofer.com> writes:
> > Hi all,
> > I'm running into several problems with figured bass while writing another
> > large orchestral piece. Attached is a sample file highlighting these
> > issues:
>
> And while we're at it, is it possible to enlarge the figured bass?
> The figures are quite small and hardly to read in 'real life' situations.

Ah, you are talking about the accidentals!
Yes, I totally agree with you! Just a few days ago, while proofreading some 
scores I recently wrote, I was thinking exactly the same and I really had 
problems distinguishing the # and naturals! 

Han-Wen seems to agree to some extent, since in commit 
2caf4b6c15f4e94357fadd913777fb75b3458c61 (2005-11-25 19:20:05) he enlarged the 
double-sharp with the message:
* scm/translation-functions.scm (format-bass-figure): make double
sharp larger.

The smaller size of the accidentals were introduced in commit 
220365d152ed25083f94e4ddc5118bcd01b12eaa (2005-10-06 15:12:56) with no useful 
commit message:
(AncientRemoveEmptyStaffContext): switch on
New_figured_bass_engraver by default.

> Until now I apply the following patch:
> file: usr\share\lilypond\current\scm\translation-functions.scm

Unless there is any good reason, I would propose to completely remove the 
fontsize -2 from the accidentals in figured bass. They are much more readable 
and look much more like the accidentals in old hand-engravings I have at home 
(actually, there the numbers are a bit smaller, but the accidentals are even 
larger than the numbers!).

I've uploaded a patch to the codereview page:
http://codereview.appspot.com/74056
Okay to apply this patch to master?


Cheers,
Reinhold

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

iD8DBQFKNhnETqjEwhXvPN0RApzcAKCRhyN9W02TpWjRFBYMZhh7/LwmWQCeP+ZG
srEblWWBb6pcwYZ63ncMDnY=
=D3CM
-END PGP SIGNATURE-


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