Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
On Fri, Oct 2, 2015 at 12:09 PM, David Nalesnik wrote: > David, > > On Fri, Oct 2, 2015 at 11:26 AM, David Kastrup wrote: > >> David Nalesnik writes: >> >> > Hi all, >> > >> > I'm experimenting with a way to support multiple text s

Re: multiple TextSpanners per voice

2015-10-02 Thread David Nalesnik
On Fri, Oct 2, 2015 at 5:49 PM, David Nalesnik wrote: > > Horizontal_bracket_engraver achieves correct ordering of nested brackets > through the side-position-interface array 'side-position-elements. > Brackets closer to the staff are added to the support of brackets further

Re: multiple TextSpanners per voice

2015-10-03 Thread David Nalesnik
On Fri, Oct 2, 2015 at 5:59 PM, David Nalesnik wrote: > > > On Fri, Oct 2, 2015 at 5:49 PM, David Nalesnik > wrote: > >> >> Horizontal_bracket_engraver achieves correct ordering of nested brackets >> through the side-position-interface array 'side-positi

Re: multiple TextSpanners per voice

2015-10-03 Thread David Nalesnik
On Sat, Oct 3, 2015 at 12:02 PM, David Nalesnik wrote: > > > So here is a revised version of the TextSpanner code. > > Oh *drat* Attached the wrong file. Apologies... DN \version "2.19" %% Based on the rewrite of Text_spanner_engraver in %% input/regression/scheme-

Re: multiple TextSpanners per voice

2015-10-05 Thread David Nalesnik
Ok, this should do it. The intention is to provide extra functionality to text spanners. By using this code, you have all the functionality of normal text spanners, but you are able to have multiple spanners per voice. You simply need to swap the regular engraver for this one in a layout block,

Re: multiple TextSpanners per voice

2015-10-20 Thread David Nalesnik
On Tue, Oct 20, 2015 at 11:50 AM, David Kastrup wrote: > Trevor Bača writes: > > > Hi, > > > > I'd like to add that I'm *incredibly* excited by this work. The ability > to > > have multiple text spanners in a voice -- and to tweak each independently > > -- is something I've wanted in LilyPond fo

Re: ly:moment<=? ??

2015-12-20 Thread David Nalesnik
On Sun, Dec 20, 2015 at 7:08 PM, Simon Albrecht wrote: > Hello, > > while getting to terms with the accidentalStyle code I found that it would > be useful (currently only for dodecaphonic-no-repeat-rule, > scm/music-functions.scm:line 1682f.) to have a ly:moment<=? Scheme > predicate function. It

Re: center NoteColumn

2011-12-04 Thread David Nalesnik
Hi Harm, On Tue, Nov 29, 2011 at 5:16 PM, Thomas Morley < thomasmorle...@googlemail.com> wrote: the attached code is my attempt to center a NoteColumn in a measure (like > MultiMeasureRest). > > This is really cool! > > While it works fine in most cases, there is one major problem: > Having a k

Re: center NoteColumn

2011-12-04 Thread David Nalesnik
Hi again. On Fri, Dec 2, 2011 at 4:31 PM, David Nalesnik wrote: > > (See attached file.) > > Oops--that only accidentally works for your problem example since I goofed the filtering. Replace the second definition of lst-2 in the file I last attached with this line and all should be

Re: center NoteColumn

2011-12-06 Thread David Nalesnik
Hi Harm, On Fri, Dec 2, 2011 at 7:06 PM, Thomas Morley wrote: > > But now there's a new problem. Sometimes I've to notice a very small, but > visible displacement of the NoteColumn, if KeyCancellation is left bound > and a new Clef is right bound (mes. 5 of the full test). And I can't figure > o

Re: center NoteColumn

2011-12-08 Thread David Nalesnik
Hi Harm, I've taken a look at your calculations and I think I've found a more straightforward way to determine the offsets for each of the elements. Rather than centering each element first, then moving it with an additional offset as you do, why not simply move everything from its _original_ posi

Re: center NoteColumn

2011-12-08 Thread David Nalesnik
Hi Harm, On Thu, Dec 8, 2011 at 6:50 PM, Thomas Morley wrote: this is great !! And I was not a little but a big blockhead.;) > Hah, no... I'm just a fresh pair of eyes :) Speaking of which, looking with fresh eyes at the file I just attached, I really should have condensed that list of nearly

Re: center NoteColumn

2011-12-11 Thread David Nalesnik
Hi Harm, On Sat, Dec 10, 2011 at 3:42 PM, Thomas Morley < thomasmorle...@googlemail.com> wrote: > Hi David, > > thanks for doing this! I did the next step to simplify the definition, > with defining "read-out". > Yes, this condenses the function quite a bit. Thinking about the problem some more

Re: LSR is now on 2.14

2012-04-01 Thread David Nalesnik
Hi, Simplest way might be for Harm, David and myself to put these in the LSR. > Don't think it'll take that long. I'd then check and approve them - so if > I took 10 and you 2 share the others out, that should be fair? What do you > think? Sure, I'll be happy to take a share. -David

Re: LSR is now on 2.14

2012-04-01 Thread David Nalesnik
Hi Harm, On Sun, Apr 1, 2012 at 3:23 PM, Phil Holmes wrote: > From: "Thomas Morley" > >> To: "Phil Holmes" >> Cc: "David Nalesnik" ; "lilypond-devel" < >> lilypond-devel@gnu.org> >> Sent: Sunday, April 01, 2012 6

Re: LSR is now on 2.14

2012-04-02 Thread David Nalesnik
Hi, On Mon, Apr 2, 2012 at 11:48 AM, Phil Holmes wrote: > Sorry about the top post. Windows mail is sometimes a pain. I'll do > fretted-string-harmonics... to screech-boink. > > > Phil Holmes > > > > Attached the tarball with the missing files from > `Ducumentatione/snippets/new/' > I'll pick

Re: LSR is now on 2.14

2012-04-03 Thread David Nalesnik
Hi Harm, On Tue, Apr 3, 2012 at 8:45 AM, Thomas Morley wrote: > Hi David, > > I just checked our recent addings to the LSR. > > In unfretted-headword.ly I noticed the line: > noflag = \once \override Flag #'style = #'no-flag > > could you change it to: > noflag = \once \override

Re: Center a number above a measure - Issue 2445

2012-04-12 Thread David Nalesnik
Hi James, On Wed, Apr 11, 2012 at 4:28 AM, James wrote: > David, > > I saw that Colin had opened a tracker for your *ly file > > http://code.google.com/p/lilypond/issues/detail?id=2445 > > I'm not a code developer, however I think it might be better to also > open a Rietveld issue so that it get

Re: measure counter engraver

2012-04-24 Thread David Nalesnik
David, On Tue, Apr 24, 2012 at 12:41 AM, David Kastrup wrote: > David Nalesnik writes: > > > The examples are written to work with the latest versions. (I'm using > > the current release candidate.) > > Then one could use make-engraver. > True, true. My mo

Re: measure counter engraver

2012-04-24 Thread David Nalesnik
David, > .Any problems which > > might result will only affect that multi-file run? > > Basically every use of lilypond-book is a multi-file run. So are our > regtests. > Understood. I also won't upload this to the LSR at the current time since it could potentially cause annoyances the next tim

Re: measure counter engraver

2012-04-24 Thread David Nalesnik
Hi Phil, On Tue, Apr 24, 2012 at 9:13 AM, Phil Holmes wrote: > ** > You're OK uploading it to the LSR providing you don't tag it with docs - > it's only those that are imported into the documentation system. > I'm just speaking here from the experience of checking a bunch of LSR files for the 2

Re: measure counter engraver

2012-04-25 Thread David Nalesnik
Hi, Unrelated issue: I notice that the original post with attached files hasn't > shown up on archive 2 on either -user or -devel, even though I sent that > post 13 hours ago. It appears on archive 1, but there the .ly file appears > as a binary data file, which I cannot open. Am I guilty of top

Re: Get the positions of a beam (or other grob with positions)

2012-05-19 Thread David Nalesnik
Hi Janek, On Sat, May 19, 2012 at 8:03 AM, Janek Warchoł wrote: > Hi David & all, > > i want to make arpeggios longer (so that they overshoot the chords a > bit). I've modified your offsetBeamPositions function to work on > Arpeggios instead of Beams (that was easy), but i'm quite surprised to >

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi José, On Mon, May 21, 2012 at 9:09 AM, padovani wrote: > Hello, > > I'm dealing with special noteheads I've designed and I need to move the > stem and the flag differently if stem direction is up or down. > > I would like to create a guile lisp clause that sets the extra-offset > value accordi

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi José, On Mon, May 21, 2012 at 10:20 AM, padovani wrote: > Em 5/21/12 11:44 AM, David Nalesnik escreveu: > >\override Stem #'extra-offset = >> #(lambda (grob) (if (eqv? (ly:stem::calc-direction grob) UP) >> '(-0.02 . -0.25) '(0.02 . 0.25))) >>

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
José, On Mon, May 21, 2012 at 11:02 AM, padovani wrote: > Oh, I'm sorry... I was reading everything in a hurry and didn't got the > second part of your message. No problem! I learned something new about ly:stem::calc-direction because of your email: didn't know that it calculates "ideal" direc

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
7;stem-attachment = #(lambda (grob) (if (eq? (ly:grob-property grob 'direction) UP) '(-0.5 . -0.5)) '(0.5 . 0.5)) \relative c'' { %\override Stem #'color = #red \stemUp c8 \noBeam \customStemAndFlag c \stemDown c \noBeam \custo

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi again, > It would be possible to offset both of them, but I think you might be > better served by approaching the problem from a different angle. You can > control the relative positioning of stem and note head through > 'stem-attachment, which is a property of NoteHead. The flag will move >

Re: Developing for LilyPond

2012-05-23 Thread David Nalesnik
Hi Mike, On Wed, May 23, 2012 at 12:47 AM, m...@mikesolomon.org wrote: > > [ ... ] Your patch is a post-processing corrective for when this fails. > However, the goal of LilyPond is twofold: > > 1) Provide users with the ability to tweak LilyPond's output when for some > reason the automation m

add \shape (issue 6255056)

2012-05-28 Thread david . nalesnik
Reviewers: , Message: Add \shape as a method of modifying the control points of bezier curves. Description: add \shape add \shape as a method of altering bezier curves by offsetting their control-points. Please review this at http://codereview.appspot.com/6255056/ Affected files: A input/reg

Re: add \shape (issue 6255056)

2012-05-28 Thread david . nalesnik
On 2012/05/28 20:23:37, janek wrote: generally LGTM. What about coloring the \shaped curves? This would make checking regtests more obvious to an ordinary person who may be not familiar with this stuff. Good idea! I did this for both regression tests. http://codereview.appspot.com/6255

Re: add \shape (issue 6255056)

2012-05-31 Thread david . nalesnik
Thank you for reviewing this, Neil! On 2012/05/31 16:22:53, Neil Puttock wrote: http://codereview.appspot.com/6255056/diff/5001/input/regression/shape-slurs.ly File input/regression/shape-slurs.ly (right): http://codereview.appspot.com/6255056/diff/5001/input/regression/shape-slurs.ly#newcod

Re: add \shape (issue 6255056)

2012-06-03 Thread david . nalesnik
On 2012/06/03 19:39:35, janek wrote: Hi David, please close this Rietveld issue (crossed circle next to its name). OK, done. Thanks! David http://codereview.appspot.com/6255056/ ___ lilypond-devel mailing list lilypond-devel@gnu.org https://li

generalizing offsets to properties

2012-06-04 Thread David Nalesnik
Hi, After working with \shape (which offsets 'control-points), I've been tinkering with the idea of generalizing offsets to LilyPond's defaults. (Urs Liska brought this up here: http://www.mail-archive.com/lilypond-user@gnu.org/msg71495.html.) I've attached a sketch of a function which attempts

Re: generalizing offsets to properties

2012-06-07 Thread David Nalesnik
Hi Janek, On Tue, Jun 5, 2012 at 12:55 AM, Janek Warchoł wrote: David already knows my opinion ;) - i'd just like to share with you > how this function made my day yesterday! > I have a song with piano accompaniment which contains loads of portato > passages, and they were pushing the height of s

Re: get rid of minimum-[XY]-extents (issue 6294086)

2012-06-19 Thread david . nalesnik
tion, as I did in the offsetting function you mention below). Keith, for an illustration of such "modifying functions" see this email from David Nalesnik: http://lists.gnu.org/archive/html/lilypond-devel/2012-06/msg00102.html http://codereview.appspot.com/6294086/ ___

Re: shape and chords

2012-06-24 Thread David Nalesnik
Hi Jan-Peter, On Wed, Jun 20, 2012 at 2:46 AM, Jan-Peter Voigt wrote: > Hi David, > > ... moving this to devel ... > I had a look into "tie-column.cc": > In the scheme-callback "calc_positioning_done" all ties in a chord are > assigned control-points in a loop. So it might be possible to define

Re: shape and chords

2012-06-25 Thread David Nalesnik
Hi Jan-Peter, On Mon, Jun 25, 2012 at 4:47 AM, Jan-Peter Voigt wrote: > > Now the broken siblings are found, but only the first one is shaped. > But it seems possible ... I will have another look after lunch ;-) > I tried to fix what was amiss in your adaptation of \shape, but I didn't get very

Re: shape and chords

2012-06-26 Thread David Nalesnik
Hi Jan-Peter, First of all, I agree with David Kastrup that this is a situation where a deep fix is in order so that simultaneous ties may be tweaked directly. Your example is working as expected :) > Glad to hear it! > > To make it (more) usable, I think, we need wrapper functions, to avoid

<    1   2   3   4   5