bezier-sandwich proposals

2009-04-12 Thread Mark Polesky
Here's the ps draw_bezier_sandwich routine from line 127 of music-drawing-routines.ps. I've annotated it to show how it pulls thickness controls off the stack. I put periods between some values to simplify reading (they're not part of the stack). Currently there are 17 thickness controls:

Re: 'avoid-slur proposals

2009-04-13 Thread Mark Polesky
Neil Puttock wrote: Adding avoid-phrasing-slur would mean duplicating all the slur avoidance code just for the sake of a different name. What about making some sort of property alias (don't know if that's the right word). Such that if the parser (or interpreter or whatever) sees

Re: Improve implementation of dashed slurs

2009-04-17 Thread Mark Polesky
Carl D. Sorensen wrote: On 4/17/09 1:34 PM, n.putt...@gmail.com wrote: http://codereview.appspot.com/41099/diff/1021/58 File lily/arpeggio.cc (right): http://codereview.appspot.com/41099/diff/1021/58#newcode168 Line 168: Stencil mol (Lookup::slur (curve, lt, lt, SCM_UNDEFINED));

Re: Improve implementation of dashed slurs

2009-04-18 Thread Mark Polesky
Werner LEMBERG wrote: An example of a useful dashed bezier-sandwich arpeggio would be when indicating arpeggios presumed to have been accidentally omitted from a manuscript, within an urtext edition. I don't think so. The proper way would be rather to use an arpeggio typeset with a

linux distro recommendations?

2009-05-08 Thread Mark Polesky
Hey everyone... I'm thinking about finally running the (windows-linux me) procedure, and I'm wondering what distros you developers prefer to use (and why). - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org

here's a better code-comment for draw_bezier_sandwich

2009-05-18 Thread Mark Polesky
can someone check this and add it to the source? Thanks. - Mark proposed change for: music-drawing-routines.ps line 126 _ % this is for drawing slurs and barre-indicators. /draw_bezier_sandwich % x5 y5 x6 y6 x7 y7 % x4 y4 % x1

Re: here's a better code-comment for draw_bezier_sandwich

2009-05-18 Thread Mark Polesky
Carl, the line with % x0 y0 didn't make it to git. - Mark % this is for drawing slurs and barre-indicators. /draw_bezier_sandwich % x5 y5 x6 y6 x7 y7 % x4 y4 % x1 y1 x2 y2 x3 y3 % x0 y0 %

Re: here's a better code-comment for draw_bezier_sandwich

2009-05-18 Thread Mark Polesky
Carl, should we also add something similar... between lines 77 and 78 of output-ps.scm? between lines 117 and 118 of output-socket.scm? between lines 206 and 207 of output-svg.scm? Also - Carl D. Sorensen wrote: If you have the capability of formatting your own patches with git, that

Re: git not fetching from origin...

2009-05-19 Thread Mark Polesky
Carl D. Sorensen wrote: OK, so try the instructions in 1.5.6. Do you have both branches listed, as described in 1.5.6? When the Local Branch radio button is selected, only lily-local appears. When the Tracking Branch is selected, only origin/master appears. The Fetch Tracking Branch checkbox

Re: git not fetching from origin...

2009-05-24 Thread Mark Polesky
Oh man, this is just way too frustrating. Maybe it's a Windows thing, but nothing about git is clear to me anymore. I feel like I'm trying to learn from three different manuals, none of which quite work. Then I try out a couple of git commands in the bash shell and next thing I know,

Re: git not fetching from origin...

2009-05-24 Thread Mark Polesky
forgot the png... attachment: editmsg.png___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: git not fetching from origin...

2009-05-24 Thread Mark Polesky
And how do I exit the EDIT_COMMITMSG window? I've included an image showing the window. If I click on the X button, the whole git bash shell closes along with it. That can't be right. Okay, this one I figured out. It says here

where to put useful lists in the docs?

2009-05-25 Thread Mark Polesky
Hi everyone, I got stuck trying to determine which grobs get attached to musical paper-columns, and which grobs get attached to non-musical paper-columns, so I wrote these list-generating scheme procedures: (define grobs-sorted-by-paper-column (let loop

Re: where to put useful lists in the docs?

2009-05-25 Thread Mark Polesky
Mark Polesky wrote: (define grobs-sorted-by-paper-column (let loop ((remaining all-grob-descriptions) (musical '()) (non-musical '())) (cond ((null? remaining) (cons musical non-musical)) ((ly:assoc-get 'non-musical (cdar remaining

Re: where to put useful lists in the docs?

2009-05-25 Thread Mark Polesky
Mark Polesky wrote: Incidentally, I found I could simplify these with filter: Here's a proposal: Here are two generic functions that could be incorporated into IR 4 Scheme functions (though if C++ is required, someone else would have to help). (define (ly:sort-alist

git on Windows (was: Re: git not fetching from origin...)

2009-05-25 Thread Mark Polesky
Trevor Daniels wrote: I'd be happy to make changes to the Windows git section of the CG if someone can point out the bit or bits that are difficult to understand. Trevor, here are some unanswered questions that I think should be answered in the CG. I'll have more later, but I'll start with

Re: git on Windows (was: Re: git not fetching from origin...)

2009-05-26 Thread Mark Polesky
To: Johannes Schindelin johannes.schinde...@gmx.de Cc: Mark Polesky markpole...@yahoo.com; Jonathan Kulp jonlancek...@gmail.com; Carl D. Sorensen c_soren...@byu.edu; lilypond-devel lilypond-devel@gnu.org Sent: Tuesday, May 26, 2009 1:57:07 AM Subject: Re: git on Windows (was: Re: git not fetching

Re: where to put useful lists in the docs?

2009-05-27 Thread Mark Polesky
Mark Polesky wrote: Here are two generic functions that could be incorporated into IR 4 Scheme functions (though if C++ is required, someone else would have to help). I've updated ly:sort-alist to cope with non-numeric values. Here they are again: #(define (ly:sort-alist alist prop

Re: where to put useful lists in the docs?

2009-05-27 Thread Mark Polesky
Mark Polesky wrote: I've updated ly:sort-alist to cope with non-numeric values. Here they are again: oops. the last ly:sort-alist won't work. This one will. (define (ly:sort-alist alist prop) #! Return a sorted list of pairs (entry . prop-value) of alist entries that have prop as a key

[PATCHES] Re: FW: two patches

2009-05-27 Thread Mark Polesky
0001-Lilypond-LilyPond.patch Description: Binary data 0002-Typos.patch Description: Binary data 0003-betweenLilypondSystem-betweenLilyPondSystem.patch Description: Binary data 0004-Lilypond-LilyPond-in-translated-docs.patch Description: Binary data

[PATCH] (was: Re: suspicious break-align values)

2009-05-27 Thread Mark Polesky
Neil Puttock wrote: 2009/5/27 Joe Neeman : On Wed, 2009-05-27 at 02:17 -0700, Mark Polesky wrote: line 408 of define-grobs.scm lists staff in a break-align-orders vector. Is that a typo? I think so. line 49 of lsr/creating-simultaneous-rehearsal-marks.ly reads: \once \override

[PATCH] List choices in break-align-symbols docstring.

2009-05-27 Thread Mark Polesky
- Mark 0002-List-choices-in-break-align-symbols-docstring.patch Description: Binary data ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

better error msg for ambiguous (de)crescendo?

2009-05-28 Thread Mark Polesky
I want to change this: programming error: (de)crescendo on items with specified volume. Here are my candidates: warning: impossible or ambiguous (de)crescendo. warning: impossible or ambiguous (de)crescendo (MIDI). warning: ignoring impossible or ambiguous (de)crescendo. warning:

Re: better error msg for ambiguous (de)crescendo?

2009-05-28 Thread Mark Polesky
Ian Hulin wrote: What makes the (de)crescendo as coded impossible or ambiguous? I agree, we need to be as precise as possible, but we need to also give the user as big a steer as we can towards sorting the problem. See

what happened to lilypond.git/summary at gnu.org?

2009-05-28 Thread Mark Polesky
Umm... what's going on? All of a sudden lilypond's entire history goes back all of 8 hours... http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=summary - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org

Re: where to put useful lists in the docs?

2009-05-29 Thread Mark Polesky
Neil Puttock wrote: A much more suitable home would be lily-library.scm, but you'd need to document them manually as Graham suggests. Oh my gosh, why was I never told about lily-library.scm before? That is one of the most useful little files I've seen in a while. Is it mentioned in the docs?

[PATCH] Re: where to put useful lists in the docs?

2009-05-29 Thread Mark Polesky
Mark Polesky wrote: ... I've ended up writing quite a few of these functions without knowing that they were all here. Here's another useful set of procedures that is not in lily-library.scm. These functions make quick work of calculating offsets, extents, bounding-boxes, etc. I've attached

where does symbol-append come from?

2009-05-29 Thread Mark Polesky
Why does this work? symbol-append is not listed in the guile manual, nor do I see it in the lilypond source. It was an accident that I discovered this at all, and subsequently I saw that it's implemented in MIT/GNU Scheme, but *not* in guile. What's going on? Are there other cool functions that I

Re: where does symbol-append come from?

2009-05-29 Thread Mark Polesky
Patrick McCarty wrote: As a rule, whenever I find functions that are not defined in LilyPond's source, and not listed the Guile manual, I always check Guile's source code. Ha! That's exactly what I tried, but with git.sv.gnu.org down, I wasn't able to access it. But thanks for the

lily-library.scm question

2009-05-29 Thread Mark Polesky
In lily-library.scm, why are some procedures defined with define-public and some others only with define? - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: lily-library.scm question

2009-05-29 Thread Mark Polesky
Patrick McCarty wrote: The define procedures are generally only available within a single module define-public creates a sort of *global procedure*; any module has access to it. Yes, but how would I access list-minus, or cons-map from another file if I wanted to? In lily-library.scm,

Re: [PATCH] Re: where to put useful lists in the docs?

2009-05-30 Thread Mark Polesky
- Original Message From: Mark Polesky markpole...@yahoo.com To: Mark Polesky markpole...@yahoo.com; Neil Puttock n.putt...@gmail.com Cc: lilypond-devel lilypond-devel@gnu.org Sent: Friday, May 29, 2009 1:42:16 AM Subject: [PATCH] Re: where to put useful lists in the docs? Mark

Re: [PATCH] Re: where to put useful lists in the docs?

2009-05-30 Thread Mark Polesky
Nicolas Sceaux wrote: This is not the way to do it in guile scheme. When you find yourself using primitive-eval, ask yourself if there is not a better way. To write code that writes codes, use macros: read about defmacro. Also note that you usually don't use underscores in function names.

Re: [PATCH] Re: where to put useful lists in the docs?

2009-05-30 Thread Mark Polesky
Mark Polesky wrote: ... To write code that writes codes, use macros: read about defmacro. ... ... sometimes I can't read between the concise lines of R5RS or the guile reference manual. Okay, I've been going in circles for an hour trying to assemble anything remotely similar to what

\code{} problem

2009-06-03 Thread Mark Polesky
Why didn't this patch work? http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commitdiff;h=269248a11ada074066deb061d64df70ee7b4deec I changed \var{} to \code{} but it still shows up as \var{} in the html.

Hungarian news item on english webpage

2009-06-05 Thread Mark Polesky
Is the Hungarian-language news item on the lilypond.org hopmepage supposed to be there? It seems a little odd. Better if it were translated to English, I think. - Mark A LilyPond weboldala magyaru - May 22, 2009 Elkészült a lilypond.org nagy részének magyar fordítása a LilyPond honosítási

unexpected \unfoldRepeats behavior

2009-06-06 Thread Mark Polesky
I tried to answer a question on -user but hit a brick wall. \unfoldRepeats failed to work when the music block was funneled from 2 separate expressions. Can someone explain this to me? Why does the following code work for voiceA but not for voiceB? Thanks. - Mark

Re: tagging 2.13.1

2009-06-06 Thread Mark Polesky
Does anybody remember which commit was used for 2.13.1? We should tag that. Isn't it this one? http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=e49c69e6d1e507f60348fa168332175ec6d42b0a ___ lilypond-devel mailing list

[PATCH] should it be @code{\\addInstrumentDefinition} ?

2009-06-06 Thread Mark Polesky
In a patch I submitted some days ago...

Re: tagging 2.13.1

2009-06-06 Thread Mark Polesky
, in that case I'm pretty sure I've narrowed it down to these two: Reinhold Kainhofer Better detection which characters need to be quoted... http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=0ac32e91fab38b860ad951b8f0cd4700f79ba86a Mark Polesky Change wording of paper-column-interface

html validator yields errors

2009-06-07 Thread Mark Polesky
Clicking on the lilypond.org W3C HTML 4.0 validator button yields errors:

Re: adjusting a system's NonMusicalPaperColumn Y-offset by a relative distance

2009-06-07 Thread Mark Polesky
Kieren MacMillan wrote: For 'Y-offset adjustments, I'd like to be able to give a relative adjustment (e.g., -10 means raise 10 spaces from where Lilypond would *normally* put it). Is there a way I can get a callback function (giving the current position) in order to accomplish this? Kieren,

Anyone want to apply these patches?

2009-06-07 Thread Mark Polesky
List choices in break-align-symbols docstring. http://lists.gnu.org/archive/html/lilypond-devel/2009-05/msg00475.html Make some local functions public. http://lists.gnu.org/archive/html/lilypond-devel/2009-05/msg00522.html If anyone has an objection to either patch, let me know. Thanks. - Mark

[PATCHES] NR 4.4.3 (ex.1) \override - \overrideProperty

2009-06-07 Thread Mark Polesky
These overrides in the first example should clearly be \overrideProperty \override NonMusicalPaperColumn #'line-break-system-details #'((alignment-offsets . (0 -15))) \override NonMusicalPaperColumn #'line-break-system-details #'((X-offset . 20) (Y-offset . 40)

Re: adjusting a system's NonMusicalPaperColumn Y-offset by a relative distance

2009-06-07 Thread Mark Polesky
Kieren, This is an excellent question, but I'm afraid I've reached the point where I'm going in circles. I think you'll have to ask someone else! But I'm very interested in seeing the solution. Sorry ): - Mark ___ lilypond-devel mailing

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

2009-06-07 Thread Mark Polesky
Neil Puttock wrote: -(define (split-at-predicate predicate lst) +(define-public (split-at-predicate predicate lst) Can you amend the docstring for this, since the example given is a bit broken (the cons part shouldn't be there): (split-at-predicate (lambda (x y) (= (- y x) 2)) '(1 3 5 9 11)

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

2009-06-14 Thread Mark Polesky
Anyone want to double-check (and apply) my rewrite of split-at-predicate? http://lists.gnu.org/archive/html/lilypond-devel/2009-06/msg00226.html Thanks - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org

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

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

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

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. } ___

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

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

Re: accessing absolute pitch data from within \relative?

2009-06-16 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:

empty-stencil and point-stencil

2009-06-16 Thread Mark Polesky
Trevor, could you add a bit to your recent LM 4.3.1 patch about empty-stencil and point-stencil? They are suitable substitutes for #'stencil = ##f. \override grob #'stencil = #empty-stencil \override grob #'stencil = #point-stencil See

Re: some sort of suppress-accidental?

2009-06-16 Thread Mark Polesky
Han-Wen Nienhuys wrote: 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? It's quite simple to do. Attached is a patch which uses an ampersand to hide accidentals.

Re: some sort of suppress-accidental?

2009-06-16 Thread Mark Polesky
Graham Percival wrote: I can't figure out how to use \tweak to get inside chords... But the presence of the functionality (without the syntax) should be enough for me (for the moment). http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Tweaking-methods about 65% down

Re: [PATCH] Make some local functions public

2009-06-16 Thread Mark Polesky
Jay Anderson wrote: Also it should avoid length when a null? check will do. Here's the function with those changes: (define-public (split-at-predicate predicate lst) Split a list into 2 lists at the first element that returns #f for (predicate previous_element element). Return the two

improving cheatsheet appearance

2009-06-17 Thread Mark Polesky
In cheatsheet.itely I propose changing line 70 (in time signature) from \override Staff.Clef #'transparent = ##t to \override Staff.Clef #'stencil = #empty-stencil Also, in key signature (lines 95-102), the auto-generated \paper block is \paper { #(define dump-extents #t) indent = 0\mm

Re: some sort of suppress-accidental?

2009-06-17 Thread Mark Polesky
Neil, do you think remove-accidental would be more semantically accurate than hide-accidental? I'm thinking that \hideNotes still leaves space where the notes would be, but this function doesn't (at least that's my understanding). - Mark

Re: some sort of suppress-accidental?

2009-06-17 Thread Mark Polesky
Neil Puttock wrote: do you think remove-accidental would be more semantically accurate than hide-accidental? Not particularly, since that implies that it exists in the first place. By that logic, I would think prevent- or suppress- would be more accurate. - Mark

Re: some sort of suppress-accidental?

2009-06-18 Thread Mark Polesky
Werner LEMBERG wrote: Please don't extend the syntax lightly. Try to make something based on music functions or \tweak first; if it finds wide spread adoption, you can always add cute syntax later. Given the infrequency of this request, I second this. Just found this... (:

Re: how about \accidental-once #note ? (Re: some sort of suppress-accidental?)

2009-06-18 Thread Mark Polesky
Ted Walther wrote: How about instead of \suppress-accidental, we had this: \accidental-once noneaes \accidental-once natural aes \accidental-once is aes \accidental-once isisaes \accidental-once es aes \accidental-once esesaes So you could explicitly set the

ppppp but no fffff

2009-06-18 Thread Mark Polesky
dynamic-scripts-init.ly why is there p but no f? - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

define-grobs.scm properties not alphabetical

2009-06-18 Thread Mark Polesky
Any reason why properties listed in define-grobs.scm are not in alphabetical order? Sometimes I get a little frustrated looking stuff up in IR 3.1. Do they need to be in any particular order? - Mark ___ lilypond-devel mailing list

Re: ppppp but no fffff

2009-06-18 Thread Mark Polesky
Graham Percival wrote: why is there p but no f? IIRC I asked this 3-4 years ago, and the answer was that somebody had seen p in the literature (a Tchaik symphony, maybe?), but nobody had seen a f. on the last page of book 2 of the Ligeti etudes. Not that I

Re: define-grobs.scm properties not alphabetical

2009-06-18 Thread Mark Polesky
Patrick McCarty wrote: IIUC, every grob is self-contained, so it shouldn't matter which order they are in. Maybe in the past someone wanted to group related grobs together (like the internal grob property list), thus the comment. Alphabetical order makes the most sense to me in this case,

Re: define-grobs.scm properties not alphabetical

2009-06-18 Thread Mark Polesky
- Original Message From: Mark Polesky markpole...@yahoo.com To: Patrick McCarty pnor...@gmail.com; Graham Percival gra...@percival-music.ca Cc: lilypond-devel lilypond-devel@gnu.org Sent: Thursday, June 18, 2009 10:08:52 PM Subject: Re: define-grobs.scm properties

Re: define-grobs.scm properties not alphabetical

2009-06-18 Thread Mark Polesky
Patrick McCarty wrote: Oops, I didn't read your email carefully enough. :-) The properties (except for meta, as you noted) can be in any order. I am okay with a case-insensitive ordering. BTW, it looks like the grob list is not completely alphabetized (AmbitusAccidental follows

Re: define-grobs.scm properties not alphabetical

2009-06-19 Thread Mark Polesky
One curious thing I've noticed when looking over this is in the definition for Script: line 1477: ;; don't set direction here: it breaks staccato. ...then 9 lines later, direction is set... line 1486: (direction . ,ly:script-interface::calc-direction) I don't know if that means

Re: define-grobs.scm properties not alphabetical

2009-06-19 Thread Mark Polesky
Carl D. Sorensen wrote: Any reason why properties listed in define-grobs.scm are not in alphabetical order? Sometimes I get a little frustrated looking stuff up in IR 3.1. That file contains: ;;; todo:: reorder sensibly. and IMO alphabetical is a sensible order. Alphabetical

Re: define-grobs.scm properties not alphabetical

2009-06-19 Thread Mark Polesky
One curious thing I've noticed when looking over this is in the definition for Script: line 1477: ;; don't set direction here: it breaks staccato. ...then 9 lines later, direction is set... line 1486: (direction . ,ly:script-interface::calc-direction) I don't know if that

console output elusive for Windows users

2009-06-19 Thread Mark Polesky
Windows users compiling according to LM 2.1.1 will never see the console output. Is it possible to send the standard output also to the .log file? - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org

guile sandbox without guile

2009-06-19 Thread Mark Polesky
This may be totally obvious to everyone here, but Windows users can't just run guile without running LilyPond (I'm thinking for users who are working on learning scheme). At least not to my knowledge. I've been using a very simple trick (don't expect to be impressed) to work around this. In a

proposals for LM B. Scheme tutorial

2009-06-20 Thread Mark Polesky
Here are some proposed additions to LM B. Scheme tutorial These are things that I wished I knew when I was starting! I haven't made a patch because I want to get feedback from you guys first. Thanks - Mark ***(I'm leaving this paragraph as it is) LilyPond uses the Scheme programming language,

Re: guile sandbox without guile

2009-06-21 Thread Mark Polesky
Neil Puttock wrote: I looked through the archives, and there's a post here from Gilles which implies it hasn't worked for a long time: http://lists.gnu.org/archive/html/lilypond-user/2007-09/msg00581.html Following his advice, navigating to C:\Program Files\LilyPond\usr works. even

Re: define-grobs.scm properties not alphabetical

2009-06-21 Thread Mark Polesky
Graham Percival wrote: I prefer case-insensitive so X-offset and Y-offset are near the bottom (where I expect to find them). Let me know if you object. Please use the alphabetical ordering used in other SCM files. I don't mind if you move around the uppercased properties in all SCM

Automatic rest splitting?

2009-06-21 Thread Mark Polesky
1.2.3 Displaying rhythms (Automatic note splitting) says: The Completion_heads_engraver only affects notes; it does not split rests. Is there a stumbling block? How easily could this be changed? I'm finding myself in situations where splitting rests would come in handy. Or could there be a

Re: lilypond vs. GNU/LilyPond

2009-06-22 Thread Mark Polesky
Bertalan Fodor wrote: On the new website, I'm following the previous website which simply wrote LilyPond. Does anybody want to make a strong case in favor of replacing this with GNU/LilyPond everywhere? (or maybe just once or twice, in the intro or something like that?) I hope

Re: guile sandbox without guile

2009-06-22 Thread Mark Polesky
Trevor Daniels wrote: Mark, do you want to make a patch for the changes to LM B which you want to see, or shall I extract some changes from your note and the various comments? If you do it, I think we should document both of these methods for Windows (or three, if we mention git bash).

is Score.LyricText really a bad syntax?

2009-06-22 Thread Mark Polesky
In particular, spaces must be used around the dot and the equals sign in commands like @code{\override Score . LyricText #'font-size = #5} and before and after the entire command. Really? What's the risk of doing Score.LyricText? Non-spaced context.grob dots are all over the docs; do we need to

Re: is Score.LyricText really a bad syntax?

2009-06-22 Thread Mark Polesky
James E. Bailey wrote: I don't know where in the documentation this is... It's in Trevor's patch from 9 hours ago:

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

2009-06-22 Thread Mark Polesky
Jay Anderson wrote: 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

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

2009-06-22 Thread Mark Polesky
Jay Anderson wrote: Actually, I like this much better. A couple things: - It doesn't handle an empty list as input. Or is an error the correct behavior? - I'm not the biggest fan of multiple return values. You could do (cons (take lst (1+ i)) (drop lst (1+ i))) instead (unless there are

changing \version number in Welcome*.ly files

2009-06-23 Thread Mark Polesky
Should we get in the habit of changing the \version numbers in Welcome-to-LilyPond-MacOS.ly and Welcome-to-LilyPond.ly every time the version is bumped? At least we should remember to do it after we bump into 2.14.0 and before we release 2.14.0. - Mark

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

2009-06-23 Thread Mark Polesky
I also took a look at the next procedure, split-list-by-separator. My revised version is below. Unless I hear otherwise, I'll send a patch soon. - Mark ;; current version (define-public (split-list-by-separator lst sep?) (display (split-list-by-separator '(a b c / d e f / g) (lambda (x)

Re: [PATCH] Make some local functions public

2009-06-23 Thread Mark Polesky
Here's a patch. I retained the definition styles: (define (split-at-predicate ... (define-public (split-list-by-separator ... I'd like to change certain other procedures from define to define-public (review this thread for more details), but I'll do that in a separate patch once this one gets

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

2009-06-23 Thread Mark Polesky
Han-Wen Nienhuys wrote: I also took a look at the next procedure, split-list-by-separator. My revised version is below. Unless I hear otherwise, I'll send a patch soon. Maybe you guys can look into making a test framework for the Scheme library functions. It should be fairly simple to

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

2009-06-23 Thread Mark Polesky
Han-Wen Nienhuys wrote: I mean to have an automated set of tests, that checks for example that (eq? (split-at-predicate odd? '(2 3 6 8 9 0)) '((2) (6 8) (0))) holds. It would be .ly file that runs Scheme function on a set of inputs, and compares them to a set of outputs to make

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

2009-06-24 Thread Mark Polesky
Han-Wen Nienhuys wrote: (eq? (split-at-predicate odd? '(2 3 6 8 9 0)) '((2) (6 8) (0))) holds. It would be .ly file that runs Scheme function on a set of inputs, and compares them to a set of outputs to make sure that they match. I second that, but would advice to have a

Re: Automatic rest splitting?

2009-06-24 Thread Mark Polesky
Neil Puttock wrote: A Completion_rests_engraver would be the right approach. I don't think there's any stumbling block (indeed, you can knock up a rough and ready version based on Completion_heads_engraver in a few minutes); it's just waiting for someone to implement it properly, which

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

2009-06-24 Thread Mark Polesky
Carl D. Sorensen wrote: I *am* interested in helping with this, but could someone apply my final patch on this? http://lists.gnu.org/archive/html/lilypond-devel/2009-06/msg00528.html It's been almost a month since I started with this...

Re: define-grobs.scm properties not alphabetical

2009-06-24 Thread Mark Polesky
set to #t to see the effect of above sort. (if #f (begin (load debug-groblist.scm) (display groblist-debug-string))) ;; ly-sort.scm ;; ;; LilyPond-specific sorting of symbols, strings, and alists. ;; ;; (c) 2009 Mark Polesky ;; ;; for an explanation/rationale, see: ;; http

[PATCH] Remove email address.

2009-06-25 Thread Mark Polesky
Hey everyone, Sorry if this is a sensitive topic... but I figured we should probably remove Rune's e-mail address from AUTHORS.texi. Patch attached. - Mark 0001-Remove-email-address.patch Description: Binary data ___ lilypond-devel mailing

Re: define-grobs.scm properties not alphabetical

2009-06-25 Thread Mark Polesky
Carl D. Sorensen wrote: I like this, because it makes the out-of-order stuff be only a programmer's problem, and programmers can use searches to find the code they're looking for. To an extent, I would say. There's obvious value to well-organized code. The more searches a programmer needs to

Re: define-grobs.scm properties not alphabetical

2009-06-25 Thread Mark Polesky
Carl D. Sorensen wrote: I have not put a question mark on ci because ? is used in SICP to indicate a predicate (i.e. a function returning a boolean) rather than a boolean value directly. I like it. Nice subtlety. Forgot to make that change in the previous post (butI've noted it). - Mark

Re: define-grobs.scm properties not alphabetical

2009-06-25 Thread Mark Polesky
Oops, just discovered that (ly:char? #\ #\?) returns #t... (tweaking some more) - Mark ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: define-grobs.scm properties not alphabetical

2009-06-25 Thread Mark Polesky
Here are 2 versions of the same procedure. Is the second one *too* concise and cryptic? - Mark (define (ly:string-compare a b ci) (let ((mismatch (first-diff-chars a b ci))) (if mismatch (if (car mismatch) (if (cdr mismatch) ((if ci ly:char-ci? ly:char?)

propsed new file: lily-sort.scm

2009-06-25 Thread Mark Polesky
-alphanumeric characters ( !?=:-_). Also I think the initial comments are kind of lengthy, maybe someone can comment on that, too. Thanks. - Mark ;; lily-sort.scm ;; ;; LilyPond-specific sorting of symbols, strings, and alists. ;; ;; (c) 2009 Mark Polesky ;; ;; This file implements a LilyPond

Re: propsed new file: lily-sort.scm

2009-06-25 Thread Mark Polesky
Carl D. Sorensen wrote: precisely where should I enter lily-sort.scm in the file lily.scm? IIUC, it can go anywhere in the list, as long as it's before any files that need to use its functions when they are loaded. Then I'll put it just before define-event-classes.scm, which is the first

  1   2   3   4   5   6   7   >