Re: New make-path-stencil function

2013-10-29 Thread David Nalesnik
On Tue, Oct 29, 2013 at 1:48 AM, David Kastrup d...@gnu.org wrote: In the process of working on adding niente circles to Ferneyhough hairpins (Issue 3357), I noticed that these hairpins don't work with line breaks. (They are simply duplicated.) The routine which draws them uses

Re: Slur position : catching Llilypond values...

2011-02-11 Thread David Nalesnik
On 2/11/11, Xavier Scheuer x.sche...@gmail.com wrote: On 8 February 2011 22:56, David Nalesnik dnale...@umail.iu.edu wrote: Hello, There probably is a better way to do this, but the function below seems to do the trick. It adds an offset to the Y-coordinate of either or both of the slur's

Re: Slur position : catching Llilypond values...

2011-02-14 Thread David Nalesnik
On 2/14/11, Dmytro O. Redchuk brownian@gmail.com wrote: Would be great it if allows to specify which grob's positions to alter, like this: \offsetPositions #Arpeggio #'(-2 . 2) Hi, Dmytro -- I actually have been working on a snippet which generalizes another function -- namely, the

Re: Slur position : catching Llilypond values...

2011-02-14 Thread David Nalesnik
Here is my function: offsetBrokenSpanner = #(define-music-function (parser location name offsets) (string? pair?) #{ \overrideProperty $name #'after-line-breaking #(broken-spanner $offsets) #} ) #(define ((broken-spanner offsets) grob) (let* ( ; have we

Re: slur control-points (collides with accidental)

2011-03-08 Thread David Nalesnik
On 3/8/11, Jan-Peter Voigt jp.vo...@gmx.de wrote: This is nice! I mostly use frescobaldi, but I will update jeditlilypondtool on my mac. And I will look, if there is a way, to get lilys points as a default. Jan-Peter On 08.03.2011 12:28, Bertalan Fodor (LilyPondTool) wrote: Would

left-aligning grobs to other grobs

2011-03-08 Thread David Nalesnik
Hi, all -- Attached is a function which started out as an attempt to get tempo indications to line up with the left edge of the time signature. It's been generalized so that you can left-align any grob responsive to 'extra-offset to the closest grob of a specified type in that system (as far as

Re: left-aligning grobs to other grobs

2011-03-08 Thread David Nalesnik
I think this is better asked on the lilypond-dev list as well. So while I don't have an answer (I am not a programmer) I have cc;d that list in case someone is reading that list and not the user lists. James Thank you, James -- I appreciate it,

Re: slur control-points (collides with accidental)

2011-03-09 Thread David Nalesnik
On 3/9/11, Jan-Peter Voigt jp.vo...@gmx.de wrote: Hello David, thanks, this is exactly, what I was looking for! Jan-Peter. Glad I could help! David ___ lilypond-user mailing list lilypond-user@gnu.org

Re: left-aligning grobs to other grobs

2011-03-09 Thread David Nalesnik
, 2011 at 2:44 PM, David Nalesnik dnale...@umail.iu.edu wrote: Hi, all -- Attached is a function which started out as an attempt to get tempo indications to line up with the left edge of the time signature. It's I thought they already did; define-grobs.scm says (MetronomeMark

Re: left-aligning grobs to other grobs

2011-03-14 Thread David Nalesnik
On 3/14/11, Gilles THIBAULT gilles.thiba...@free.fr wrote: Attached is a function . . . Wahoo. Seems to be a very powerfull function. I keep it in my favorites. Thanks David. Glad you can use it! NB If the user enters the value 2 for example as the dir parameter, the function fails.

Re: what about simplifying music notation?

2011-03-14 Thread David Nalesnik
@Marc I think we're offering too much discouragement here instead of helping you figure out how to use LilyPond to experiment with your ideas. So here's an adaptation of a script I use to generate solfege syllables using the NoteNames engraver. By mapping numbers to the Dutch notenames,

explicit page breaks in a score with multiple \score blocks

2011-04-30 Thread David Nalesnik
Hi, all -- I'm using version 2.12.3, and I have a file which has multiple \score blocks and text independent of any \score block. I'm running into problems controlling the layout, specifically getting the page breaks I want, and only those page breaks. I know how to control page breaks _within_

Re: explicit page breaks in a score with multiple \score blocks

2011-05-01 Thread David Nalesnik
On 4/30/11, David Nalesnik dnale...@umail.iu.edu wrote: Hi, all -- I'm using version 2.12.3, and I have a file which has multiple \score blocks and text independent of any \score block. I'm running into problems controlling the layout, specifically getting the page breaks I want, and only

problem with cross-staff stems

2011-06-09 Thread David Nalesnik
Hi all, I’m having a difficulty involving cross-staff stems, and I wonder if someone can help me. In the example below, I would like to have the quarter-note stems joined from one staff to the other, with the stem direction of the eighth-note figure pointing up. (Down would look better in my

Re: Tuplets across barlines?

2011-07-05 Thread David Nalesnik
Hi, Joey -- On Mon, Jul 4, 2011 at 4:55 PM, Joey username652...@gmail.com wrote: Anyone know if it is possible in lilypond to notation tuplets across a barline? Sure, it's possible. See Permitting line breaks within beamed tuplets at

text on analysis brackets

2011-07-08 Thread David Nalesnik
Hi, all -- I'd like to be able to add text to analysis brackets, and I'm running into a problem with nested brackets. In the attached file, I'd like the last bracket to have b over it, but it takes its text from the previous incomplete bracket. (It seems I can add as many nested brackets as I

Re: text on analysis brackets

2011-07-08 Thread David Nalesnik
On 7/8/11, David Nalesnik dnale...@umail.iu.edu wrote: Hi, all -- I'd like to be able to add text to analysis brackets, and I'm running into a problem with nested brackets. In the attached file, I'd like the last bracket to have b over it, but it takes its text from the previous incomplete

Re: text on analysis brackets

2011-07-08 Thread David Nalesnik
On Fri, Jul 8, 2011 at 5:00 PM, Neil Puttock n.putt...@gmail.com wrote: On 8 July 2011 21:09, David Nalesnik dnale...@umail.iu.edu wrote: So to refine the original question: Is there any way to do this without multi-voice trickery? I'm afraid this is a bug

Re: Ragged right for contents but not staff?

2011-07-10 Thread David Nalesnik
On Sun, Jul 10, 2011 at 8:06 PM, Matthew Collett m_coll...@ihug.co.nzwrote: With ragged-right (or ragged-last) turned on, music and the staff stop wherever is natural. With it off, both stretch to the end of the line. Is there any straightforward way to stop the music at its natural length,

Re: Ragged right for contents but not staff?

2011-07-10 Thread David Nalesnik
On Sun, Jul 10, 2011 at 10:27 PM, Matthew Collett m_coll...@ihug.co.nzwrote: On 11/07/2011, at 2:51 pm, David Nalesnik wrote: Is there any straightforward way to stop the music at its natural length, but have empty staff lines stretch the full width? You could override the width

Re: Ragged right for contents but not staff?

2011-07-11 Thread David Nalesnik
On Sun, Jul 10, 2011 at 11:46 PM, Matthew Collett m_coll...@ihug.co.nzwrote: Indeed it does, thank you. And no, my Scheme would _not_ have been up to that. I was still trying to figure out how to access the value of line-width, or indeed any of the \paper variables: the documentation is very

Re: Ragged right for contents but not staff?

2011-07-11 Thread David Nalesnik
On Mon, Jul 11, 2011 at 1:53 PM, Matthew Collett m_coll...@ihug.co.nzwrote: On 12/07/2011, at 2:35 am, Wilbert Berendsen wrote: #(define (fixed-staff-width grob) (ly:output-def-lookup (ly:grob-layout grob) 'line-width)) \layout { ragged-right = ##t \context { \Staff

Re: Ragged right for contents but not staff?

2011-07-11 Thread David Nalesnik
On 7/11/11, Wilbert Berendsen wbs...@xs4all.nl wrote: And to place an ending bar line on the end of the last line I use the alignGrob trick posted to this list sometime ago: http://old.nabble.com/Re%3A-left-aligning-grobs-to-other-grobs-p31138286.html Hi, Wilbert -- Since you found a use

Re: Aligning rehearsal marks with left edge of stave

2011-07-21 Thread David Nalesnik
Hi Nick, On Thu, Jul 21, 2011 at 3:02 PM, Nick Payne nick.pa...@internode.on.netwrote: I can get it to work by using break-align-anchor and manually changing the value until it looks ok, but that means that each mark requires this manual fiddling to align it. I had a look at NR 5.5.1 and

Re: Shaping slurs --- both broken and unbroken

2011-07-24 Thread David Nalesnik
Hello, all -- This is on the LSR, at least. http://lsr.dsi.unimi.it/LSR/Item?id=639 Just thought I'd let you know that Dmytro's function as given on the earlier thread incorporates an older version of my slur-shaping function. I've modified it since, and this newer version appears on the

Re: Shaping slurs --- both broken and unbroken

2011-08-02 Thread David Nalesnik
On Tue, Aug 2, 2011 at 8:20 AM, Urs Liska li...@ursliska.de wrote: Just for entertainment a very nice slur example (attached): a \phrasingSlur spanning three lines :-) breathtaking! ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Roman numeral analysis

2011-08-02 Thread David Nalesnik
On Fri, Jul 29, 2011 at 7:35 AM, m...@apollinemike.com m...@apollinemike.com wrote: On Jul 29, 2011, at 2:33 PM, Jerod Sommerfeldt wrote: I'm new to LilyPond and have been searching for a useful strategy to write out roman numeral analyses for my class' theory worksheets. Here's what I've

Re: Roman numeral analysis

2011-08-03 Thread David Nalesnik
On Wed, Aug 3, 2011 at 11:45 AM, Jerod Sommerfeldt sommerfeldt.je...@gmail.com wrote: Hi David (and all), This \rN function is really terrific and has a great look to it. Thanks! I'm glad you like it! Is there any way to add this as a permanent addition to my LilyPond build? I don't

baseline-skip question

2011-08-26 Thread David Nalesnik
Dear list, I've run into a problem with baseline-skip, and I'm wondering if I've missed something. The attached file demonstrates what happens to a column when the staff size is changed within a layout block. I would expect that the override of StaffSymbol #'staff-space would also scale the

Re: shorten a broken hairpin at a linebreak?

2011-08-29 Thread David Nalesnik
On Mon, Aug 29, 2011 at 3:25 PM, harm6 thomasmorle...@googlemail.comwrote: harm6 wrote: Anyone with a better idea? Hi, Harm -- I've been playing around with your function and experimenting with ways to automate calculation of the whiteout box extents. I recast it to accept offsets from

Re: shorten a broken hairpin at a linebreak?

2011-08-29 Thread David Nalesnik
On Mon, Aug 29, 2011 at 4:50 PM, David Nalesnik david.nales...@gmail.comwrote: \relative c' { \override Hairpin #'color = #red \key ces\major \eraseBrokenHairpin #(list 41 23 15 0 13 0) ;; recast as offsets from line-width Oops, sorry -- above comment should use

Re: shorten a broken hairpin at a linebreak?

2011-08-29 Thread David Nalesnik
Not sure about calculating the other end of the whiteout box (from position of the barline, I suppose). Hi, again -- More experimenting yielded this, which automates the calculation of the width of the whiteout stencil. I'm not sure how to handle the positioning on the first line, hence

Re: shorten a broken hairpin at a linebreak?

2011-08-29 Thread David Nalesnik
Hi, again -- I'm not sure how to handle the positioning on the first line, hence the list of offsets in the input. OK, this should do it! Now all you have to do is call \eraseBrokenHairpin -- no arguments needed -- and it should handle positioning of the whiteout box. I'm guessing that

Re: shorten a broken hairpin at a linebreak?

2011-08-30 Thread David Nalesnik
On Tue, Aug 30, 2011 at 1:59 AM, Mike Solomon mike...@ufl.edu wrote: How about: Mike -- Wow. So that's how it's done! David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: shorten a broken hairpin at a linebreak?

2011-08-30 Thread David Nalesnik
On Tue, Aug 30, 2011 at 9:02 AM, harm6 thomasmorle...@googlemail.comwrote: David Nalesnik-2 wrote: OK, this should do it! Now all you have to do is call \eraseBrokenHairpin -- no arguments needed -- and it should handle positioning of the whiteout box. I'm guessing

centering text on a measure

2011-08-31 Thread David Nalesnik
Hi all, I've been experimenting with a way to center text on measures. (I create a lot of exercises with blanks or roman numerals between the staff, and it's nice not to need to position each one individually by trial and error.) I've come up with the following function which works, but I

Re: centering text on a measure

2011-08-31 Thread David Nalesnik
I've been experimenting with a way to center text on measures. (I create a lot of exercises with blanks or roman numerals between the staff, and it's nice not to need to position each Oops, that would be beneath. ___ lilypond-user mailing list

Re: shorten a broken hairpin at a linebreak?

2011-09-01 Thread David Nalesnik
Hi Harm, Using David's last-bar-Definition [ . . . ] I just wanted to point out that my definition can be shortened a little (by sorting in order from largest coordinate to smallest): #(define (last-bar grob) ;; return the X-coordinate of the last barline on a line (let* ((sys

Re: shorten a broken hairpin at a linebreak?

2011-09-01 Thread David Nalesnik
-musical-column (reverse cols (ly:spanner-set-bound! grob RIGHT musical-column))) % by David Nalesnik: #(define (last-bar grob) ;; return the X-coordinate of the last barline on a line (let* ((sys (ly:grob-system grob)) (array (ly:grob-object sys 'all-elements

Re: shorten a broken hairpin at a linebreak?

2011-09-01 Thread David Nalesnik
On Thu, Sep 1, 2011 at 2:22 PM, David Nalesnik david.nales...@gmail.comwrote: Hi again, Harm -- In my eagerness, I did a rather poor job of cutting and pasting, so I'm attaching the file :) David new-hairpin1.ly Description: Binary data

Re: shorten a broken hairpin at a linebreak?

2011-09-01 Thread David Nalesnik
On Thu, Sep 1, 2011 at 2:52 PM, harm6 thomasmorle...@googlemail.com wrote: Hi David, that's it !! I had experimented with the hairpin-origin, but I didn't manage to introduce it correct. Once more: thanks a lot! You're very welcome! ___

Re: centering text on a measure

2011-09-03 Thread David Nalesnik
On Thu, Sep 1, 2011 at 3:09 AM, Trevor Daniels t.dani...@treda.co.ukwrote: Perhaps you could turn this idea into a music function: \relative c'' { a4 a a a | { a4 a a a | } { \once \override MultiMeasureRest #'transparent = ##t R1_XIII | } a4 a a a | } Thank

Re: centering text on a measure

2011-09-03 Thread David Nalesnik
Hi Harm, On Thu, Sep 1, 2011 at 2:30 PM, harm6 thomasmorle...@googlemail.com wrote: Hi David, don't know anything about the error: ERROR: In procedure ly:grob-object: ERROR: Wrong type argument in position 1 (expecting Grob): () This error-warning must be an error! :) My only guess is

Re: centering text on a measure

2011-09-03 Thread David Nalesnik
Trevor, On Sat, Sep 3, 2011 at 9:56 AM, Trevor Daniels t.dani...@treda.co.ukwrote: It would be nice if TextSpanner could centre its text between the left and right bounds (like the number on a tuplet bracket) but it doesn't, AFAIK. Thank you for this idea! I've adapted the snippet for

Re: shorten a broken hairpin at a linebreak?

2011-09-07 Thread David Nalesnik
Hi, Harm -- tweaking the decrescendi like the diminuendi and doing some minor changes, I come up with: Looks great! I'll definitely use this, though something tells me I won't run into quite as extreme a situation as your example :) Checking my just-bought copy of Gould, I find on pg. 104

Re: centering text on a measure

2011-09-10 Thread David Nalesnik
Hi Trevor, On Sat, Sep 3, 2011 at 1:37 PM, Trevor Daniels t.dani...@treda.co.ukwrote: David Nalesnik wrote Saturday, September 03, 2011 6:36 PM (Unfortunately, if I don't blank out the default stencil, the text appears on top of the extender line You can kill the extender line

Re: centering text on a measure

2011-09-15 Thread David Nalesnik
Hi, Harm -- On Thu, Sep 15, 2011 at 6:18 PM, harm6 thomasmorle...@googlemail.comwrote: I tested your definitions with a longer example using StaffGroup and commented the not used parts with %{ ... %}. (see code below) The log states: ERROR: Wrong type (expecting pair): () And now the

Re: centering text on a measure

2011-09-18 Thread David Nalesnik
On Fri, Sep 16, 2011 at 3:49 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2011/9/16 David Nalesnik david.nales...@gmail.com Hi, Harm -- On Thu, Sep 15, 2011 at 6:18 PM, harm6 thomasmorle...@googlemail.comwrote: I tested your definitions with a longer example using StaffGroup

Re: How to reset a SystemStartBracket-override?

2011-09-19 Thread David Nalesnik
On Mon, Sep 19, 2011 at 6:06 PM, harm6 thomasmorle...@googlemail.comwrote: harm6 wrote: Hi, in the (simplified) example below I can't revert the \override of the SystemStartBracket, although I set \once and tried with \revert. I want the \override to be printed only at the first

Re: How to reset a SystemStartBracket-override?

2011-09-19 Thread David Nalesnik
On Mon, Sep 19, 2011 at 7:15 PM, David Nalesnik david.nales...@gmail.comwrote: \version 2.14.2 #(define (my-callback grob) (let* ((orig (ly:grob-original grob)) (siblings (if (ly:grob? orig) (ly:spanner-broken-into orig

Re: How to reset a SystemStartBracket-override?

2011-09-19 Thread David Nalesnik
On Mon, Sep 19, 2011 at 7:23 PM, David Nalesnik david.nales...@gmail.comwrote: On Mon, Sep 19, 2011 at 7:15 PM, David Nalesnik david.nales...@gmail.comwrote: \version 2.14.2 #(define (my-callback grob) (let* ((orig (ly:grob-original grob)) (siblings (if (ly:grob? orig

Re: centering text on a measure

2011-09-22 Thread David Nalesnik
Hi Harm, On Tue, Sep 20, 2011 at 6:58 PM, harm6 thomasmorle...@googlemail.comwrote: Hi David, testing your newest code I've got no errors any more! But sometimes there is a strange behaviour. Testing the attached code I receive centerTest-1.pdf with an offset of the red Line in the

Re: centering text on a measure

2011-09-22 Thread David Nalesnik
On Thu, Sep 22, 2011 at 6:08 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, 2011/9/23 David Nalesnik david.nales...@gmail.com Hi Harm, If there were some way to add a tag to a grob (not just a music expression), this would all be much simpler. Something like

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 8:59 AM, Dmytro O. Redchuk brownian@gmail.comwrote: On Fri 23 Sep 2011, 10:30 luis jure wrote: i see that this override changes the placement of all the objects belonging to Script, including articulation marks like accent and the rest. anyway, i prefer to use a

Re: centering text on a measure

2011-09-23 Thread David Nalesnik
On Thu, Sep 22, 2011 at 6:08 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, Running centerGrobBetween_rev2.ly the log states: Failure to center #Grob TextScript between LeftEdge and BarLine Present in system? LeftEdge #t BarLine #t left bound: #Grob LeftEdge right

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 4:38 PM, Thomas Morley thomasmorle...@googlemail.com wrote: But I didn't manage to shorten it. Not sure if this is expressed in the best form, but putting this line at the top of the file should change the 'padding value of the tentuo mark only: #(assoc-set!

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 5:08 PM, eluze elu...@gmail.com wrote: now we need a way to only override the relevant items - i.e. to replace the padding for tenuto in the original list! (then we even get rid of the \layout part!) anybody has ideas?! Yes, with the line I just posted you don't

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
Hi Harm, On Fri, Sep 23, 2011 at 5:52 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2011/9/24 Thomas Morley thomasmorle...@googlemail.com There might be another point of interest: How to reset? I'm aware it could be done with a new #(assoc-set! ... ) using default values. I

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 7:28 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2011/9/24 David Nalesnik david.nales...@gmail.com Hi Harm, On Fri, Sep 23, 2011 at 5:52 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2011/9/24 Thomas Morley thomasmorle...@googlemail.com

Re: placement sostenuto

2011-09-24 Thread David Nalesnik
Hi Harm, On Sat, Sep 24, 2011 at 8:59 AM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, I don't know, why it doesn't work this way. But the following seems to be successful: #(define (proc x y) (lambda (grob) (if (eq? (ly:grob-property grob 'direction) 1)

Re: placement sostenuto

2011-09-25 Thread David Nalesnik
Hi Harm, On Sun, Sep 25, 2011 at 1:01 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2011/9/24 David Nalesnik david.nales...@gmail.com I don't know if I've gotten at the name of the articulation in the best way, but this works. One drawback is that there can only be one override

Re: placement sostenuto

2011-09-25 Thread David Nalesnik
On Sun, Sep 25, 2011 at 6:24 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, thanks a lot! You're welcome! I added ls as an argument to the definition to get the possibility to access different alists in polyphonic situations: Good idea. One thought I had is that

Re: centering text on a measure

2011-09-29 Thread David Nalesnik
Hi Harm, On Thu, Sep 29, 2011 at 5:59 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, I thought a while about your hackishness :) As a first step it seems to be possible to add a grob-custom-property to define-grob-properties.scm in some way (thanks to Arnold from the

Re: centering text on a measure

2011-10-01 Thread David Nalesnik
On Thu, Sep 29, 2011 at 8:26 PM, David Nalesnik david.nales...@gmail.comwrote: Hi Harm, Wonderful! Thank you so much! The log now offers no comment on my hackery :) I tried this with a two-voice example (see center-between.ly), and sure enough, the problem with choosing the wrong grobs

Re: recursive music function definitions broken in 2.14 ?

2011-10-03 Thread David Nalesnik
Hi Juha, On Mon, Oct 3, 2011 at 6:57 AM, Juha Erkkila j...@turnipsi.no-ip.org wrote: Howdy, I had some lilypond code that worked in 2.12 versions, but appears broken in 2.14. I had used a construction in which a music function calls itself. Here's an example:

Re: recursive music function definitions broken in 2.14 ?

2011-10-03 Thread David Nalesnik
I removed the $ from firsttag and othertags, and it seems to work in 2.14.2. tags = #(define-music-function (parser location tags music) (list? ly:music?) (cond ((null? tags) music) (else (let ((firsttag (car tags))

Re: centering text on a measure

2011-10-03 Thread David Nalesnik
Hi Harm, On Mon, Oct 3, 2011 at 10:08 AM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, setting 'markers to a list is a great idea and I've never got warnings or wrong output. Your definition should be putted in the LSR as soon as it's updated to 2.14. I'm glad that it

Re: centering text on a measure

2011-10-04 Thread David Nalesnik
Hi Harm, On Mon, Oct 3, 2011 at 5:29 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, I'm only a musician and music-teacher without any previous programming-experience, trying to learn scheme and to dive into lilypond-internals deeper and deeper. So excuse me if I remark

Re: articulating a group of notes

2011-10-05 Thread David Nalesnik
Hello, On Wed, Oct 5, 2011 at 4:40 PM, Pato Press tdy.p...@gmail.com wrote: Hi all, I'm writing a simple score that have a group of different notes all with the same articulation over their head. Is there a way to articulate a group of notes? Or I have to add to each note the same

Re: Change TextScript horizontal anchor point

2011-10-08 Thread David Nalesnik
Hi Xavier, On Sat, Oct 8, 2011 at 7:42 AM, Xavier Scheuer x.sche...@gmail.com wrote: Hi, By default, TextScript anchor point is located at the left side of the note head. I'd like to have TextScript centered ( #'self-alignment-X = #CENTER ) on the *center* of the note head. Is there an

Re: Change TextScript horizontal anchor point

2011-10-08 Thread David Nalesnik
Hi again, On Sat, Oct 8, 2011 at 8:11 AM, David Nalesnik david.nales...@gmail.comwrote: I think this snippet is what you're looking for: http://lsr.dsi.unimi.it/LSR/Snippet?id=637 Best, David Here it is as an engraver: http://www.lilypond.org/doc/v2.14/Documentation/snippets/text

Re: How to read out the slope of a beam?

2011-10-11 Thread David Nalesnik
Hi Harm, On Sat, Oct 8, 2011 at 6:38 PM, harm6 thomasmorle...@googlemail.com wrote: Hi, trying to hack Beam stencil, I need to read out the slope of the original Beam. I thought reading out the y-extent, the x-extent and using the quotient would do the job. But I was wrong: this quotient

Re: Override ties

2011-10-13 Thread David Nalesnik
Hi Ed, On Thu, Oct 13, 2011 at 12:25 PM, Ed Gordijn ed.klari...@gmail.com wrote: case this works even better then tweaking the control points! Sorry Urs! Am I right is this not yet documented? I tried to make a music function and that didn't work. Do you know why not? Try this: \version

Re: Override ties

2011-10-13 Thread David Nalesnik
On Thu, Oct 13, 2011 at 12:36 PM, David Nalesnik david.nales...@gmail.comwrote: Hope this helps! I probably should mention that I've used a backquote: ` not ' For more explanation, see: http://www.gnu.org/software/guile/manual/html_node/Expression-Syntax.html#index-quasiquote-2441 David

Re: English.ly breaks all flats for key signature

2011-10-14 Thread David Nalesnik
Hi Peter -- On Fri, Oct 14, 2011 at 9:29 AM, Peter Otto kayakfish...@gmail.com wrote: Unable to get any flats in the Key Signature when I include the English.ly When I enter es for \key it returns E double sharp. e will work as well. All flats i.e. eis will fail. You need to use the

Re: How to read out the number of beams and the space between them?

2011-10-16 Thread David Nalesnik
Hi, Harm -- On Sun, Oct 16, 2011 at 10:27 AM, harm6 thomasmorle...@googlemail.comwrote: In the little test-function below I have to put in the beam-count manually. And the value of the between-beam-space is a guess. Any hint to improve? You can get the space between the beams from the

Re: How to read out the number of beams and the space between them?

2011-10-16 Thread David Nalesnik
Hi again, I sent that off too quickly... Instead of #(define ((stencil-plus-bracket beam-count) grob) use #(define (stencil-plus-bracket grob) -David ___ lilypond-user mailing list lilypond-user@gnu.org

Re: How to read out the number of beams and the space between them?

2011-10-16 Thread David Nalesnik
Hi Harm, On Sun, Oct 16, 2011 at 2:36 PM, Thomas Morley thomasmorle...@googlemail.com wrote: I regarded the gap-property, but \once\override Beam #'gap = #15 seems to do nothing, so I dropped that thought. You have to do this instead: \once \override Beam #'length-fraction = #15 (See

Re: How to read out the number of beams and the space between them?

2011-10-17 Thread David Nalesnik
Hi again Harm, I've been thinking about this some more. Specifically, I've noticed that adding the beam widths and the spaces between the beams doesn't seem to add up precisely to the total extent of the beam. The result is that the size of the bracket is off -- noticeably so in the first

Re: How to read out the number of beams and the space between them?

2011-10-19 Thread David Nalesnik
Hi Harm, On Mon, Oct 17, 2011 at 5:15 PM, harm6 thomasmorle...@googlemail.comwrote: I've been thinking about this some more. Specifically, I've noticed that adding the beam widths and the spaces between the beams doesn't seem to add up precisely to the total extent of the beam. The

Re: Slur as TupletBracket

2011-10-22 Thread David Nalesnik
On Sat, Oct 22, 2011 at 4:29 AM, m...@apollinemike.com m...@apollinemike.com wrote: In 2.14.0 the TupletNumber Y-offset callback doesn't exist [ . . . ] Hi Mike, I don't understand... I just tried http://lsr.dsi.unimi.it/LSR/Snippet?id=646 which relies on an override of TupletNumber

Re: Slur as TupletBracket

2011-10-22 Thread David Nalesnik
On Sat, Oct 22, 2011 at 8:26 AM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi Mike, your function doesn't work for me. I get a wrong output (with 2.14.2 and 2.15.13) -attached png Hi all, The numbers fed into control-points should not be the absolute X-coordinates. (The X of

Re: ly:stencil-extent gives not the exact value?

2011-10-22 Thread David Nalesnik
Hi Harm, On Sat, Oct 22, 2011 at 11:35 AM, harm6 thomasmorle...@googlemail.comwrote: Hi, the following function should rebuild a beam. \version 2.14.2 #(set-global-staff-size 20) #(define (test-stencil grob) (let* ((beam (ly:beam::print grob)) (beam-extent-x

Re: ly:stencil-extent gives not the exact value?

2011-10-23 Thread David Nalesnik
Hi Harm, On Sun, Oct 23, 2011 at 7:47 AM, Thomas Morley thomasmorle...@googlemail.com wrote: Surely you noticed that I'm not a native-english-speaker. This is one of the cases where I've got a problem. I can't translate blot-diameter and so I don't know what it is or how to use. (Of course

Re: Making feathered beams more variable

2011-10-23 Thread David Nalesnik
Hi Harm, On Sun, Oct 23, 2011 at 8:21 AM, harm6 thomasmorle...@googlemail.comwrote: the attached file is a first attempt to make feathered beams more variable. p.e.: http://old.nabble.com/file/p32705102/beam15.png This is really cool! What a great function!! Some problems persist: The

Re: Making feathered beams more variable

2011-10-27 Thread David Nalesnik
Hi Harm, On Tue, Oct 25, 2011 at 12:05 PM, harm6 thomasmorle...@googlemail.comwrote: Hi David, David Nalesnik-2 wrote: Hi Harm, On Mon, Oct 24, 2011 at 4:09 PM, Thomas Morley thomasmorle...@googlemail.com wrote: I'm looking for a method to integrate something like

Re: Making feathered beams more variable

2011-10-28 Thread David Nalesnik
Hi Harm, On Fri, Oct 28, 2011 at 8:18 AM, Thomas Morley thomasmorle...@googlemail.com wrote: Hi David, 2011/10/28 David Nalesnik david.nales...@gmail.com [ . . . ] Maybe you could think of some artful way to modify the function in music-functions-init.ly to incorporate the increase

Re: Making feathered beams more variable

2011-10-28 Thread David Nalesnik
Hi again, On Fri, Oct 28, 2011 at 4:31 PM, David Nalesnik david.nales...@gmail.comwrote: I worked on this a bit, and I came up with something which will handle the accel./rit. pattern which you've been using with your feathered beam function. It works just like \featherDurations, except you

Re: Making feathered beams more variable

2011-10-29 Thread David Nalesnik
Hi Harm, On Sat, Oct 29, 2011 at 9:47 AM, Thomas Morley thomasmorle...@googlemail.com wrote: To make it possible to enter the same arguments to both, featherDurationTest and grow-dir-var, I added some conditions to the turnaround-argument and the end-multiplier. Good idea -- thank you for

Re: Making feathered beams more variable

2011-10-30 Thread David Nalesnik
Hi Harm, I added (if (ly:stencil? (ly:stem::print grob)) ... to the function (and some construction-helpers, maybe deleted). Now it works with \change Staff, too. 2.15.13 or higher is still needed. All you need here is a call to ly:stem::print first; there's no need to integrate it into the

Re: Making feathered beams more variable

2011-10-31 Thread David Nalesnik
Hi Harm, On Sun, Oct 30, 2011 at 7:08 PM, Thomas Morley thomasmorle...@googlemail.com wrote: \once \override Stem #'stem-end-position = #-8 Works fine with 2.14.2 and \change Staff. But there is no effect in the following example. \version 2.14.2 { a'8 [ \once \override Score.Stem

Re: Cello fingering indications

2011-10-31 Thread David Nalesnik
Hi Colin, On Sun, Oct 30, 2011 at 9:50 PM, Colin Campbell c...@shaw.ca wrote: Further Googling gives http://lsr.dsi.unimi.it/LSR/**Snippet?id=616http://lsr.dsi.unimi.it/LSR/Snippet?id=616 which is closer in appearance, but I haven't the Scheme fu to modify the stringNumberSpanner function

Re: Making feathered beams more variable

2011-11-03 Thread David Nalesnik
Hi Harm, On Tue, Nov 1, 2011 at 2:40 PM, harm6 thomasmorle...@googlemail.com wrote: I tried to make an automated definition (first attachment) and to integrate it in the grow-beam-var-definition (second attachment). This feature will only work with kneed beams and if the directions of the

Re: How to change the stem-length?

2011-11-07 Thread David Nalesnik
Hi Harm, On Sun, Nov 6, 2011 at 6:56 AM, harm6 thomasmorle...@googlemail.com wrote: But when using it in a cross-staff example with kneed-beams, I've noticed a problem: Some stems are affected some not. Oddly enough, when changing the global-staff-size, I retrieve different results. I don't

Re: ly:stencil-combine-at-edge ignores minimum parameter

2011-11-11 Thread David Nalesnik
Hi Paul, If this change was made can someone tell me how to correct this code in 2.15.17? #(define (scoop-stencil grob) (ly:stencil-combine-at-edge (ly:note-head::print grob) 0 -1 (grob-interpret-markup grob (markup #:with-dimensions '(0 . 0) '(0 . 0) #:translate '( -2 . -2)

Re: center NoteColumn

2011-12-02 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

Re: center NoteColumn

2011-12-02 Thread David Nalesnik
Hi again. On Fri, Dec 2, 2011 at 4:31 PM, David Nalesnik david.nales...@gmail.comwrote: (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

Re: Need a new articulation glyph...

2011-12-04 Thread David Nalesnik
Hi George, I'd appreciate some feedback on how to implement a new ornament: http://old.nabble.com/file/**p32910828/Untitled.pnghttp://old.nabble.com/file/p32910828/Untitled.png It's a Bach ornament known as a slide, and is normally played by playing the 2 consecutive notes below and

Re: center NoteColumn

2011-12-06 Thread David Nalesnik
Hi Harm, On Fri, Dec 2, 2011 at 7:06 PM, Thomas Morley thomasmorle...@googlemail.com 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

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_

<    1   2   3   4   5   6   7   8   9   10   >