\fontsize in staff-space units

2020-02-05 Thread Paolo Prete
Hello, is it possible to have a text with height set in staff-space units? For example, I would like that the height of " \markup { foo } " is X * (1 staff-space) where X can be integer of decimal. Thanks, P

Re: Problem with outside-staff-priority

2020-02-05 Thread Paolo Prete
Sorry for the redundant question. I forgot that I already obtained an answer for the same question (and I did not delete in my "how-to" list, meanwhile) http://lilypond.1069038.n5.nabble.com/Outside-staff-priority-and-vertical-order-of-grobs-td226058.html On Wed, Feb 5, 2020 at 10:3

Re: Y - offset problem on TupletBracket

2020-02-05 Thread Paolo Prete
On Wed, Feb 5, 2020 at 11:07 PM David Kastrup wrote: > Paolo Prete writes: > > > >> > >> Possibly > >> > >> \once \override TupletBracket.Y-offset = #(lambda (grob) > >>(* -20 > >>

Re: Y - offset problem on TupletBracket

2020-02-05 Thread Paolo Prete
On Wed, Feb 5, 2020 at 10:32 PM David Kastrup wrote: > Paolo Prete writes: > > > Hello, > > > > as you can test with the following snippet, TupletBracket doesn't take > into > > account its direction when setting Y-offset (tested both on stable and > >

Problem with outside-staff-priority

2020-02-05 Thread Paolo Prete
Hello, what's wrong in the following code? (tested on both 2.18 and 2,19) I would like that the Script grob appear below the other grobs, then I set the lowest value for its outside-staff-priority, but it appears above the TupletBracket. How can I fix this? Thanks, P % { \once

visualize-staff-padding (was \offset Y-offset)

2020-02-05 Thread Paolo Prete
Hello Aaron, as you can see in the following code, your (great and useful) function, which visualizes the staff-padding of a grob, fails if I set an outside-staff-priority for a TupletBracket. Is there a fix for this? Thank you very much Best, Paolo %% #(define line-thickness 0.2)

Y - offset problem on TupletBracket

2020-02-05 Thread Paolo Prete
Hello, as you can test with the following snippet, TupletBracket doesn't take into account its direction when setting Y-offset (tested both on stable and 2.19.83 versions) { \once \override TupletBracket.direction = #UP \once \override TupletBracket.Y-offset = -20 \tuplet 3/2 { c'''4 c'' c''} }

Outside-staff-priority ignored for OttavaBracket

2020-02-05 Thread Paolo Prete
Hello, please consider this snippet: %%% { \override Staff.TextSpanner.bound-details.left.text = \markup { \small \bold "Rit." } \once \override Slur.outside-staff-priority = 100 \once \override DynamicText.outside-staff-priority = 200 \once \override TupletBracket.outside-staff-priority =

Re: Draw background lines/grid

2020-01-28 Thread Paolo Prete
On Tue, Jan 28, 2020 at 1:46 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > is it possible to draw one or more horizontal lines, above/below the > staff, that are completely ignored for collisions with the score's grobs? > > Absolutely: just use

Draw background lines/grid

2020-01-27 Thread Paolo Prete
Hello, is it possible to draw one or more horizontal lines, above/below the staff, that are completely ignored for collisions with the score's grobs? Also: is it possible to draw a *grid* as a background for the score? Thanks, P

Re: visualize-padding

2020-01-26 Thread Paolo Prete
On Sat, Jan 25, 2020 at 3:05 PM Aaron Hill wrote: > On 2020-01-24 9:12 am, Paolo Prete wrote: > > I'm trying to implement the work-around you suggested. > > TupletNumber doesn't cause the discussed weird space. > > > nstead, simply replace the normal stencil proced

Re: Y-offset issue on TupletBracket

2020-01-24 Thread Paolo Prete
On Saturday, January 25, 2020, Knute Snortum wrote: > You didn't say what version you were using, but it looks like 2.18.2 > and 2.19.83 do the same thing. > > I tried it with both 2.18.2 and 2.19.83

Y-offset issue on TupletBracket

2020-01-24 Thread Paolo Prete
Hello, >From what I see, Y-offset gives weird results on a TupletBracket fakeRulerUp = { \once \hide NoteHead \once \hide Stem c'} { %doesn't do anything \override TupletBracket.Y-offset = 5 \tuplet 3/2 { c' c' c' } \fakeRulerUp % not only the middle line of the staff is ignored; it

Re: visualize-padding

2020-01-24 Thread Paolo Prete
On Wed, Jan 22, 2020 at 11:56 PM Aaron Hill wrote: > On 2020-01-22 7:26 am, Paolo Prete wrote: > > The problem is associated with: > > > > https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00467.html > > > > Sorry if I insist again with thi

Re: visualize-padding

2020-01-22 Thread Paolo Prete
Y > > All of my helper functions for overlaying stencils are really just > hacks; they might work for some grobs and fail for others. And when > things stop working, you just have to look for another hack. For > instance, if messing with the stencil for TupletBracket is not working, > perhaps

Re: HorizontalBracket's stencil

2020-01-22 Thread Paolo Prete
On Wed, Jan 22, 2020 at 8:47 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Rutger, > > > Cannot you fake it using a TupletBracket (\tuplet 1/1) and override the > TupletNumber.text? > > Absolutely — that’s a great solution. > > Hi Kieren and Rutger, Unfortunately I can't use

HorizontalBracket's stencil

2020-01-22 Thread Paolo Prete
Hello, is it possible to obtain a stencil, for a HorizontalBracket, similar to the TupletBracket one? Something like: some-text | | I see that there is a .bracket-flare property for the grob, but it's not enough for achieving this result.

visualize-padding (was: \offset Y-offset)

2020-01-22 Thread Paolo Prete
To Aaron (and any other helpful contributor): As you can see in the below snippet, the visualize-padding function you so kindly provided, doesn't work in some cases with TupletBracket. Here is a snippet where the bug occurs. The problem is associated with:

Weird behavior for after-line-breaking

2020-01-21 Thread Paolo Prete
Hello, please consider the following snippet. The procedure called at after-line-breaking doesn't do *anything*, but a weird space is added between staves. If you remove the \override line OR the \tuplet, this doesn't happen Why?? Is there a fix for this? The error happens for both 2.18 and 2.19

Highlight the y reference point for the "padding" property

2020-01-21 Thread Paolo Prete
Hello, Is there a way to draw a line on the reference point of the "padding" property? Aaron already wrote a snippet for obtaining that for the X-offset property (where the x-ref-point is on the x-parent): \version "2.19.83" { \once \override DynamicText.after-line-breaking = #(lambda

Re: \offset Y-offset

2020-01-21 Thread Paolo Prete
On Tue, Jan 21, 2020 at 10:30 AM Aaron Hill wrote: > On 2020-01-19 7:15 am, Paolo Prete wrote: > > I'm looking at your code and I don't understand what is it intended to > > do. > > You write: "% Test with bracket that is positioned by Y-offset." >

Re: String to scheme

2020-01-20 Thread Paolo Prete
:37 Uhr schrieb Paolo Prete < > paolopr...@gmail.com>: > > > > Hello, > > > > is it possible to make a music expression from strings? It would be > useful for building expressions with combination of string chunks. > Something like: > > > > &g

String to scheme

2020-01-20 Thread Paolo Prete
Hello, is it possible to make a music expression from strings? It would be useful for building expressions with combination of string chunks. Something like: \version "2.19.45" strToMusicExpr = #(define-music-function (parser location token1 token2 token3 mus) (string? string? string?

Re: Draw a line on the X reference point of a grob

2020-01-19 Thread Paolo Prete
> > > In 2.18, the NoteHead is considered the X parent of the DynamicText. > However, in 2.19, the NoteColumn is the parent. NoteColumn does not > have an existing stencil to overlay, so the \stencil markup command > fails. Here's a version that supplies a dummy stencil: > > > \version

Re: Draw a line on the X reference point of a grob

2020-01-19 Thread Paolo Prete
On Sun, Jan 19, 2020 at 9:52 PM Aaron Hill wrote: > > > \version "2.18.2" > { >\once \override DynamicText.after-line-breaking = #(lambda (grob) > (let* ((x-parent (ly:grob-parent grob X)) > (orig-sten (ly:grob-property x-parent 'stencil))) >

Draw a line on the X reference point of a grob

2020-01-19 Thread Paolo Prete
Hello. IIUC, the reference point for the X-offset property (or any other x-shifting property that preserves the avoid-collisions algo) is on the X- parent grob of the grob I want to modify. Is there a way to draw a line on this grob, so that I can visually well see the distance that I'm going to

\offset Y-offset (was: Distance of a grob from its reference point)

2020-01-19 Thread Paolo Prete
Hello Aaron, sorry for the (a bit) late reply. I'm looking at your code and I don't understand what is it intended to do. You write: "% Test with bracket that is positioned by Y-offset." but from what I see, the bracket is positioned by both outside-staff-padding and y-offset inside

Re: Distance of a grob from its reference point

2020-01-17 Thread Paolo Prete
On Fri, Jan 17, 2020 at 11:08 PM Aaron Hill wrote: > On 2020-01-17 4:34 am, Paolo Prete wrote: > > I said (and I confirm) that *\offset Y-offset is broken*. This command > > should be blacklisted, given that it leads to random results. > > That's all. > > I believe I

Re: Distance of a grob from its reference point

2020-01-17 Thread Paolo Prete
On Fri, Jan 17, 2020 at 3:33 AM Aaron Hill wrote: > On 2020-01-16 4:01 pm, Paolo Prete wrote: > > This gives a clearer overview, thanks, but I would not use it, even if > > it > > produces the wanted result. > > Sorry if I implied otherwise, but I thought

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Fri, Jan 17, 2020 at 12:31 AM Aaron Hill wrote: > > This time, you omitted the overrides to prevent padding and > staff-padding from influencing the test: > > \version "2.19.45" > notes = \fixed c''' { \ottava 1 f4 4 4 \ottava 0 f, } > > { >% Make sure these properties do not

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 11:35 PM Aaron Hill wrote: > > > You forgot to \revert outside-staff-padding *before* applying > extra-offset. > > Right, But even with \revert, the issue remains, because in any case the value of 0.56 for outside-staff-padding doesn't produce a shift. See:

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 11:09 PM Paolo Prete wrote: > > % > > 0.56 s exactly the quantity corresponding to extra-offset to 0.1. But if > you produce a SVG file, and open it with a text editor, you will see three > pairs of coordinates: > > (fir

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
Hi Robin, On Thu, Jan 16, 2020 at 10:05 PM Robin Bannister wrote: > Paolo Prete wrote: > > > And I really thank you. Offsetting brackets is a *very*, *very* important > > feature in professional music engraving. > > You're welcome. I'm sorry to say that I made additi

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 8:01 PM Robin Bannister wrote: > Paolo Prete wrote: > > So this 0.46 is just for outside-staff-padding. > And I really thank you. Offsetting brackets is a *very*, *very* important feature in professional music engraving. Best, Paolo

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 7:22 PM Carl Sorensen wrote: > My testing found that \offset didn’t work with outside-staff-padding for > OttavaBracket grobs. > That's great, because with this method the user is not forced to use a ruler. Then, the best one. I just tested it and now we can say that,

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 5:33 PM Robin Bannister wrote: > OR > > 3) make outside-staff-padding 0.46 more than needed vertical shift > e.g. 2.46 > > Cheers, Robin > This is *precious* info. Please, can you tell/confirm if 1) you are referring to \offset command ? 2) is it applicable as a

Re: Override a StaffSymbol property outside \new Staff { ... } context

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 1:43 PM Simon Albrecht wrote: > Hi Paolo, > > it seems like you have some very specific setup of lilypond files and > framework and need a solution that works within that, but you’re trying > to avoid explaining the whole setup either because it’s too much effort > or for

Re: Override a StaffSymbol property outside \new Staff { ... } context

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 4:49 AM Aaron Hill wrote: > > However, why jump through such Scheme hoops when LilyPond syntax is more > direct? > > Thank you Aaron. I used a misleading topic, sorry. I wanted a set of layout properties which is shared by all the scores I edit. So I can simply import it

Re: Distance of a grob from its reference point

2020-01-16 Thread Paolo Prete
On Thu, Jan 16, 2020 at 11:45 AM Michael Gerdau wrote: > > > FWIW: Prior to reading this thread I wasn't even aware, that \offset > might not do what I want in all situations. I use it occasionally and > like it - works for me. > > Claiming it is completely broken seems way over the top to me. >

Re: Override a StaffSymbol property outside \new Staff { ... } context

2020-01-15 Thread Paolo Prete
On Thu, Jan 16, 2020 at 3:15 AM Aaron Hill wrote: > On 2020-01-15 5:15 pm, Paolo Prete wrote: > > Hello, > > > > is it possible to override a property of StaffSymbol outside a > > \new Staff \with { ... } > > context? > > &g

Override a StaffSymbol property outside \new Staff { ... } context

2020-01-15 Thread Paolo Prete
Hello, is it possible to override a property of StaffSymbol outside a \new Staff \with { ... } context? I would like to obtain something like: %%% #scheme-code-for-overriding-staffsymbol-for-all-the-staves-in-the-score { c' c' c' c' } %%% Thanks

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
On Thu, Jan 16, 2020 at 1:16 AM Aaron Hill wrote: > On 2020-01-15 3:59 pm, Paolo Prete wrote > > If you are pushing things by small amounts akin to font kerning, then > collisions are unlikely and extra-offset is often the right tool for the > job. > "If you are pushing

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
On Thu, Jan 16, 2020 at 1:31 AM Carl Sorensen wrote: > > > It may be desirable, but it’s not **necessary** to add a warning. At > this point, I don’t think we have the infrastructure to add the warning. > I did not know that. I thought that such a modification was a one-line change.

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
Yes, but, it's necessary too to add a *warning* on the Lilypond output. This is much more clear for the user than the documentation. On Thu, Jan 16, 2020 at 1:12 AM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Wednesday, January 15, 2020 at 4:45 PM > *To:

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
Aaron Hill wrote: > On 2020-01-15 1:57 pm, Paolo Prete wrote: > > I quote Carl's words: > > > > "So offset applies to the *estimated* position, and then the spacing > > engine > > works on the offset+estimated postion and ends up putting things where > >

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
not see that as bad criticism. I'm telling that because it could save time to other people. On Thu, Jan 16, 2020 at 12:22 AM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Wednesday, January 15, 2020 at 4:16 PM > *To: *Carl Sorensen > *Cc: *Lilypond-User

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
the offset with a ruler (in a very uncomfortable way, though, given that you have to offset the ruler as well with the ref point of the grob). Thanks, Paolo On Wed, Jan 15, 2020 at 11:55 PM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Wednesday, January 1

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
py to find a way to use this properties. They are essential for the automatic avoid-collision algos. On Wed, Jan 15, 2020 at 10:57 PM Paolo Prete wrote: > I quote Carl's words: > > "So offset applies to the *estimated* position, and then the spacing > engine works on the offset

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
to offset an estimated position. How could you do that if you don't know this estimated position? Best, P On Wed, Jan 15, 2020 at 10:46 PM Aaron Hill wrote: > On 2020-01-15 1:21 pm, Paolo Prete wrote: > > Without a proper behavior of the "\offset" command you cannot d

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
wrote: > > > > > *From: *Paolo Prete > *Date: *Tuesday, January 14, 2020 at 8:10 PM > *To: *Aaron Hill > *Cc: *Lilypond-User Mailing List > *Subject: *Re: Distance of a grob from its reference point > > > > > > > > > > I really can'

Re: Distance of a grob from its reference point

2020-01-15 Thread Paolo Prete
set" command you cannot do nor the automatic 2) placement, nor a fine tuning. Best, Paolo It seems (I apologize if that is coming across sarcastically, but I am afraid I lack better wordsmithing.) On Wed, Jan 15, 2020 at 4:50 AM Aaron Hill wrote: > On 2020-01-14 7:10 pm,

Re: Distance of a grob from its reference point

2020-01-14 Thread Paolo Prete
On Tue, Jan 14, 2020 at 10:10 PM kieren_macmillan kieren_macmillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo (et al.), > > > Why do I need to move a grob? > > For the simple fact that any score, in order to have a * professional * > > appearance, needs HUNDREDS of these adjustments. > >

Re: Distance of a grob from its reference point

2020-01-14 Thread Paolo Prete
Sorry, broken link Here's the correct one: https://filebin.net/sy6z7b39fcounb5j > > I am a convinced open source developer and already 10 years ago I used > Lilypond to create my scores, because I wanted to avoid Finale, Sibelius > and other proprietary software (which I used before). In the

Re: Distance of a grob from its reference point

2020-01-14 Thread Paolo Prete
to the other grobs. So I dedicated myself to the LilyJSSVG editor. Here is what came out: https://github.com/paolo-prete/LilyJSSVG/blob/master/LilyJSSVG.gif Try making these micro- (or big) adjustments with just the text editor. You will go crazy. Note one * very important * thing. This Editor adds

Distance of a grob from its reference point

2020-01-13 Thread Paolo Prete
Hello. Is there a way to obtain, for a given grob 1) its *calculated* distance from its reference point? (from what I see, the reference Y of an OttavaBracket is the middle line of the associated staff...) I tried ly:grob-staff-position (see the snippet below), but it doesn't seem to give this

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
Sorry for the typo WRONG: 1) At this point, given that Y-offset can't be used for properly offsetting (\offset) the OttavaBracket (unless you use a ruler and place its reference point of the bracket, which is very tedious), is there any any other property that can be used? CORRECT 1) At this

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
) Is there a way to pull out the actual finished position (or the distance from its reference point), so that I can compare it with the wanted position? On Mon, Jan 13, 2020 at 9:46 PM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Monday, January 13, 2020 at 1:33 PM >

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
Does it mean that similar issues can happen with the same property applied to other grobs, like DynamicLineSpanner ? Thanks, Best P On Mon, Jan 13, 2020 at 9:20 PM Carl Sorensen wrote: > > > On 1/13/20, 12:25 PM, "Kieren MacMillan" > wrote: > > Hi Paolo (et al.), > > > Well, I

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
\)\ottava #0 r4 \once \offset Y-offset 1 Staff.OttavaBracket \ottava #1 c8\( 8\)\ottava #0 r4 } On Mon, Jan 13, 2020 at 9:07 PM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Monday, January 13, 2020 at 12:21 PM > *To: *David Nalesnik >

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
You are right. I made the same test one minute ago :-) Well, definitely a bug. Is there a workaround for this at least in 2.19 ? Otherwise the OttavaBracket interface is almost unusable (except for the extra-offset property) On Mon, Jan 13, 2020 at 8:25 PM Kieren MacMillan <

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
Well, I investigated as well. I think that the only way to solve this is to use the combination Y-offset + \offset + 2.19 As you can see, this seems to work in 2.19 http://lilybin.com/yb5u35/12 And it doesn't work in 2.18. Correct me if I'm wrong: this is currently the *only* proper way to

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
On Mon, Jan 13, 2020 at 4:36 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > But it doesn't work in many cases. For example, in my snippet I'm forced > to use a ruler If I want to shift the bracket exactly +2 staff-spaces more. > Then I have to put the starting point

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
est, Paolo On Mon, Jan 13, 2020 at 4:22 PM Robin Bannister wrote: > Paolo Prete wrote: > > > (A) + (B) > > make me suspect that the whole OttavaBracket interface is buggy. > > > It may not be exactly what you want, but I have the feeling that you > haven't tried outside-

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
On Mon, Jan 13, 2020 at 3:35 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > > > Not in my example: I know its reference point is exactly 10 spaces from > the reference point of the staff. ;) > > This happens because you have chosen a value that you know at a glance

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
On Mon, Jan 13, 2020 at 2:37 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > from what I read in the documentation > > http://lilypond.org/doc/v2.19/Documentation/learning/moving-objects > > ... there are two ways to place items like the OctaveBracket. > > > > 1) The

Re: Shift up OttavaBracket

2020-01-13 Thread Paolo Prete
iences. HTH, Paolo On Mon, Jan 13, 2020 at 4:16 AM Carl Sorensen wrote: > > > > > *From: *Paolo Prete > *Date: *Sunday, January 12, 2020 at 7:31 PM > *To: *Aaron Hill > *Cc: *lilypond-user > *Subject: *Re: Shift up OttavaBracket > > > > As said in the first post

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
Hi Kieren, look at my last post. Repositioning the OttavaBracket requires an unknown offset. best, Paolo On Mon, Jan 13, 2020 at 2:26 AM kieren_macmillan kieren_macmillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > Unfortunately, with extra-offset I have the disadvantage that all

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
> > > > outside-staff-padding does the job only if reset; see: > > http://lilybin.com/yb5u35/4 > > > Wrong link. Look at: >> > http://lilybin.com/yb5u35/5

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
-offset concerning the starting offset. Best, Paolo On Mon, Jan 13, 2020 at 2:31 AM Aaron Hill wrote: > On 2020-01-12 5:17 pm, Paolo Prete wrote: > > Unfortunately, with extra-offset I have the disadvantage that all the > > other > > objects are not moved

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
Unfortunately, with extra-offset I have the disadvantage that all the other objects are not moved automatically (smart repositioning) Does my example show a bug/missing feature for OttavaBracket? Thanks, Paolo On Mon, Jan 13, 2020 at 1:56 AM Aaron Hill wrote: > If you want to move the bracket

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
olo, > > On Sun, Jan 12, 2020 at 5:27 PM Paolo Prete wrote: > > > > Try this with both stable and unstable > > > > http://lilybin.com/yb5u35/1 > > > > On Mon, Jan 13, 2020 at 12:20 AM David Nalesnik < > david.nales...@gmail.com> wrote: > >

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
Try this with both stable and unstable http://lilybin.com/yb5u35/1 On Mon, Jan 13, 2020 at 12:20 AM David Nalesnik wrote: > On Sun, Jan 12, 2020 at 5:13 PM Paolo Prete wrote: > > > > Thanks very much David. > > Just tested and it works with 2.19 (not with 2.18, though)

Re: Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
Thanks very much David. Just tested and it works with 2.19 (not with 2.18, though) On Mon, Jan 13, 2020 at 12:06 AM David Nalesnik wrote: > On Sun, Jan 12, 2020 at 4:54 PM Paolo Prete wrote: > > > > Hello. > > > > Please consider this example: > > >

Shift up OttavaBracket

2020-01-12 Thread Paolo Prete
Hello. Please consider this example: {{ \ottava #1 c c c c \ottava #0 }} How can I shift up the ottava bracket exactly TWO staff spaces above its calculated position? Both: \override Staff.OttavaBracket.Y-offset = ... and \override Staff.OttavaBracket.staff-padding = ...

Re: Sustain pedal problems with voices/staffs (re-posted)

2020-01-11 Thread Paolo Prete
%% \version "2.19.83" upper = { s1 } lower = { c'8[\sustainOn \change Staff = "upper" d'' e'' f'']\sustainOff r2 } \score { \new PianoStaff << \new Staff = "upper" \upper \new Staff = "lower" \lower >> \layout { } \midi { } }

Sustain pedal problems with voices/staffs (re-posted)

2020-01-11 Thread Paolo Prete
Hello. What about the status of this? http://lilypond.1069038.n5.nabble.com/Sustain-pedal-problems-with-voices-staffs-td157131.html It's a very annoying missing feature/bug . Is there a fix or workaround/alternative for avoiding that, other than using an additional Dynamics layer? Best, P

Re: Hairpin position

2020-01-11 Thread Paolo Prete
Hello Michael and Andrew, please look at this (2.19.83): { \once \override DynamicText.extra-offset = #'(-2 . -3) a'\p\< a' a' a'\ff } Obviously, the hairpin is not automatically moved so to be aligned with the moved DynamicText. I wonder if is there a way to achieve this. Best, P On

Hairpin position

2020-01-10 Thread Paolo Prete
Hello, given: {{ a'\p\< a' a' a'\ff }} ... how can I move the hairpin so that its start and end dynamics (p and ff, in this case) are automatically repositioned? (otherwise: how can I move the dynamics so that the hairpin is automatically repositioned?) Thanks. Best, P

Easy cross staff

2020-01-06 Thread Paolo Prete
Hello all, I was a little bit reluctant to publish this (the Scheme code has to be cleaned, better indented etc.) but given that it seems to me that it works well and avoids many limitations of the cross-staff interface, I am happy to share it. http://lilybin.com/eoxzn9/2 Is there any volunteer

Re: ANN: LilyJSSVG, first pre-release (BIG improvement)

2020-01-06 Thread Paolo Prete
Hi Simon you have to download it and play with a common player, as explained in the homepage of the project. There's not an embedded viewer in Github, sorry. best, Paolo. On Mon, Jan 6, 2020 at 4:01 PM Simon Albrecht wrote: > Hi Paolo, > > On 05.01.20 23:32, Paolo Prete wrote:

ANN: LilyJSSVG, first pre-release (BIG improvement)

2020-01-05 Thread Paolo Prete
Hello all, I am very happy to announce the first version of the LilyJSSVG editor, after the various tests made in the previous days (I have not yet committed the release, but everything is ready). https://github.com/paolo-prete/LilyJSSVG As you can see, this version brings VERY IMPORTANT

A visible stencil for a NoteColumn grob

2019-12-29 Thread Paolo Prete
Hello. 1) How can I associate a stencil to a NoteColumn grob? I would like to show a vertical line in correspondence of it, but it seems that \override NoteColumn.stencil ... has no effect. 2) is it possible to associate an output-attributes list to the NoteColumn grob, as well (so that it

Re: LilyJSSVG

2019-12-29 Thread Paolo Prete
On Sun, Dec 29, 2019 at 11:04 AM Martin Tarenskeen wrote: > > > On Sun, 29 Dec 2019, Paolo Prete wrote: > > > https://github.com/paolo-prete/LilyJSSVG > > > Unlike the previous script, there is no need for copy and paste: the > editor offers a textarea that is a

LilyJSSVG

2019-12-28 Thread Paolo Prete
for the tuning of curves through the mouse https://github.com/paolo-prete/LilyJSSVG At the moment, in addition to the tuning of curves and beams, it is possible to position texts, dynamics and articulations. The code is designed to be easily extended, in order to add other objects to be positioned

Question about GPL license

2019-12-28 Thread Paolo Prete
Hello all, In these days, I worked at my Javascript script which allows to place Lilypond's grobs with the mouse. I think I'm ready to share a test version on Github. >From what I see, the only license that I can use for it is GPLv3. Can you confirm that? I just saw this article about the bad

Re: Output file extension

2019-12-23 Thread Paolo Prete
Hi Melt: I just solved in this way ( I looked at https://stackoverflow.com/questions/21816306/guile-scheme-redefine-another-modules-internal-function for understanding how a redefinition of a module's function works): Lot of dependencies to fix as a consequence, but it works:

Re: Put the property of a grob in the output-attributes list

2019-12-23 Thread Paolo Prete
attributes? > > El dom., 22 dic. 2019 a las 14:04, Paolo Prete () > escribió: > >> Thank you again Stefano. This helps again and you will see how good it >> will fit in the library I'm coding. >> However, I can't make it work for a TextScript (either before the >

Output file extension

2019-12-22 Thread Paolo Prete
Hello, is it possible, in some way (without an external script) to override the extension for the output file? I need that output.svg is renamed as output.html Thanks

Re: Put the property of a grob in the output-attributes list

2019-12-22 Thread Paolo Prete
utes outprop))) > \tweak Beam.output-attributes.id #id #mus #} ) > (else #{ \tweak output-attributes.id #id #mus #} >mexp))) > > \relative { c'4 d8-\token [ e ] \token f g c,4 } > % > > The code cou

Put the property of a grob in the output-attributes list

2019-12-22 Thread Paolo Prete
Hello all. the following function (thanks to Stefano!) inserts the beam-thickness property of a Beam in the list of output-attributes of the corresponding SVG item. It does its job if I place the function soon before a beam symbol "[". But it doesn't work (no errors, but the output-attributes

Re: Need help with Scheme code

2019-12-19 Thread Paolo Prete
tes outprop))) > #mexp #} ) > (else mexp >mexp))) > > \relative { c'4 d8 -\token [ e ] f -\token [ g ] c,4 } > > > I wrote the token function in a way that I think will be easy for you to > expand, testing for differe

Re: Need help with Scheme code

2019-12-18 Thread Paolo Prete
ay, with and without your modification. > > > > In your lilypond file put: > > \displayMusic oldmusic > > \displayMusic newmusic > > > > And what you can see wht you have to write by observing the differences > > > > Jaap > > > > *From:* lilyp

Re: Need help with Scheme code

2019-12-18 Thread Paolo Prete
Var current-value-of-beam-thickness ) On Wed, Dec 18, 2019 at 5:14 AM Aaron Hill wrote: > On 2019-12-17 6:01 pm, Paolo Prete wrote: > > And thanks again to the Scheme-master Aaron. > > I appreciate the kind words, though I doubt my experience rises to the > level of "mas

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
, Dec 18, 2019 at 2:07 AM Aaron Hill wrote: > On 2019-12-17 4:21 pm, Paolo Prete wrote: > > Hi Stefano, > > > > unfortunately, it doesn't increment the counter globally, and the two > > ids > > in the SVG file are identical > > You will need to define a music

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
Hi Kieren, yes, of course! please let me know how to use it On Wed, Dec 18, 2019 at 1:32 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > The ids must be: foobar_1, foobar_2 etc. > > Can they be foobar.1, foobar.2, etc. instead? > Lilypond has a nice built-in

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
ing (serial) \etc > > \relative { c'4 d8 -\token [ e ] f -\token [ g ] c,4 } > > I will test your snippet for modifying beams later! Thank you for the work > you are doing. > > Hope this helps! > Stéfano > > El mar., 17 dic. 2019 a las 19:23, Paolo Prete () >

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
gt; > token = -\tweak output-attributes #'((id . "foobar")) \etc > > \relative { c'4 d8 -\token [ e ] f2 } > > That achieves half of what you want. Now, how to make "foobar" > automatically increment I don't know, perhaps someone else can help with > that. > &

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
That achieves half of what you want. Now, how to make "foobar" > automatically increment I don't know, perhaps someone else can help with > that. > > Hope that helps! > Stéfano > > El mar., 17 dic. 2019 a las 19:06, Paolo Prete () > escribió: > >> Hello all, >

Need help with Scheme code

2019-12-17 Thread Paolo Prete
Hello all, In order to automate the reverse process of the lilypond+javascript snippets (write the GUI modifications of the grobs to the .ly file) I need to make the following code work: % token = \tweak output-attributes #'((id . "foobar")) \score { { a8

Re: Indentation, was Re: A snippet for editing Beams using the mouse

2019-12-16 Thread Paolo Prete
at 2:17 AM David Wright wrote: > On Mon 16 Dec 2019 at 23:55:52 (+0100), Paolo Prete wrote: > > P.S) I don't know why the browser's viewer messes up the indentation of > > these attachments. > > If so, I ask if are there volunteers to fix that and re-post the snippet > (I >

<    1   2   3   4   5   6   >