Re: placement sostenuto

2011-09-26 Thread luis jure
on 2011-09-25 at 20:27 David Nalesnik wrote: >Good idea. like wow, i couldn't expect that my original post would trigger all this thread (most of it way over my head, i'm afraid...) thank you all! ___ lilypond-user mailing list lilypond-user@gnu.org

Re: placement sostenuto

2011-09-26 Thread Dmytro O. Redchuk
On Fri 23 Sep 2011, 09:07 David Nalesnik wrote: > I was experimenting with this approach, but 'padding doesn't seem to respond > when set to a procedure. In the following snippet, the first override > works, the second doesn't. Am I missing something? > > \version "2.14.2" > > { > \once \ove

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 i

Re: placement sostenuto

2011-09-25 Thread Thomas Morley
Hi David, 2011/9/25 David Nalesnik > > You could change the function to map ly:grob-set-property! onto the alist > if a match is found: > > \version "2.14.2" > > #(define ls '( > ("staccato" . ((color . (0 1 0 > ("accent" . ((font-size . 4)(color . (1 0 0 > ("tenuto" . ((rot

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 > >> >> 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 of >> 'after-li

Re: placement sostenuto

2011-09-25 Thread Thomas Morley
Hi David 2011/9/24 David Nalesnik > Hi Harm, > >> > Thanks for the insight! > > So then you could do something like this: > I tried, but without success. :) \version "2.14.2" > > #(define (padding-for-tenuto x) >(lambda (grob) > (if (equal? "tenuto" (ly:prob-property (assoc-ref (ly:g

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-24 Thread Thomas Morley
2011/9/24 David Nalesnik > ( . . .) > > In the following snippet, the override of 'Y-offset works, but the one of > 'padding doesn't. > > \version "2.14.2" > > \relative c' { > \once \override Script #'padding = #(lambda (grob) (if (eq? > (ly:grob-property grob 'direction) UP) 5 0.2)) > c1^

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 > >> Hi Harm, >> >> On Fri, Sep 23, 2011 at 5:52 PM, Thomas Morley < >> thomasmorle...@googlemail.com> wrote: >> >>> >>> >>> 2011/9/24 Thomas Morley >>> There might be anot

Re: placement sostenuto

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

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 > >> >> 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 was wrong

Re: placement sostenuto

2011-09-23 Thread Thomas Morley
2011/9/24 Thomas Morley > > 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 was wrong: This doesn't work! Sorry! But: > Is there another, easier method? > > Best, > Harm > > _

Re: placement sostenuto

2011-09-23 Thread Thomas Morley
2011/9/24 David Nalesnik > > > On Fri, Sep 23, 2011 at 5:08 PM, eluze 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

Re: placement sostenuto

2011-09-23 Thread David Kastrup
"Dmytro O. Redchuk" writes: > On Fri 23 Sep 2011, 13:48 David Kastrup wrote: >> ten = -\tweak #'padding #.75 -- >> >> { c''1\ten } > Great, even { c''1^\ten } and { c''1_\ten } do work, > thanks .) I wished the documention made it easier to figure out the kinds of thing that just happen to work

Re: placement sostenuto

2011-09-23 Thread Thomas Morley
2011/9/24 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 'paddin

Re: placement sostenuto

2011-09-23 Thread eluze
Am 24.09.2011, 00:08 Uhr, schrieb 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

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 5:08 PM, eluze 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 need to in

Re: placement sostenuto

2011-09-23 Thread eluze
Am 23.09.2011, 23:38 Uhr, schrieb Thomas Morley : Hi, this does the job: \version "2.14.2" #(define-public my-script-alist `( ("accent" . ( %- Test \layout { \context {

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 Thomas Morley
2011/9/23 eluze > > i'm neither expert nor knowledgeable with scheme but i would prefer a > solution that lets you define your own preferences and include them with > -dinclude-settings=….ly > > afaics in script.scm a list is defined with (sub-)properties of many/all > script objects. > > now it

Re: placement sostenuto

2011-09-23 Thread eluze
i'm neither expert nor knowledgeable with scheme but i would prefer a solution that lets you define your own preferences and include them with -dinclude-settings=….ly afaics in script.scm a list is defined with (sub-)properties of many/all script objects. now it should be possible to re

Re: placement sostenuto

2011-09-23 Thread David Nalesnik
On Fri, Sep 23, 2011 at 8:59 AM, Dmytro O. Redchuk wrote: > 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 global \overrid

Re: placement sostenuto

2011-09-23 Thread Dmytro O. Redchuk
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 global \override in my template, instead > of individual tweaks. > > i understan

Re: placement sostenuto

2011-09-23 Thread eluze
nice abbreviation, thanks! i wonder however if - and how - one could override the default padding (.20) defined in \script.scm, as to continue to use the normal liylpond syntax! Eluze ___ lilypond-user mailing list lilypond-user@gnu.org https://

Re: placement sostenuto

2011-09-23 Thread luis jure
on 2011-09-23 at 13:40 eluze wrote: >i think it's called tenuto in lilypond of course! [in lilypond and elsewhere :-), i just had a lapsus...] > and it belongs to the Script objects. you could change the distance to > the notehead with > >\once \override Script #'padding = #.75 this works! a

Re: placement sostenuto

2011-09-23 Thread Dmytro O. Redchuk
On Fri 23 Sep 2011, 13:48 David Kastrup wrote: > ten = -\tweak #'padding #.75 -- > > { c''1\ten } Great, even { c''1^\ten } and { c''1_\ten } do work, thanks .) -- Dmytro O. Redchuk"Easy to use" is easy to say. Bug Squad --

Re: placement sostenuto

2011-09-23 Thread David Kastrup
eluze writes: > hello > > i think it's called tenuto in lilypond and it belongs to the Script > objects. you could change the distance to the notehead with > > \once \override Script #'padding = #.75 > > and/or define a function which you can apply before you insert a tenuto: > > myTenuto = { \on

placement sostenuto

2011-09-23 Thread eluze
hello i think it's called tenuto in lilypond and it belongs to the Script objects. you could change the distance to the notehead with \once \override Script #'padding = #.75 and/or define a function which you can apply before you insert a tenuto: myTenuto = { \once \override Script #'paddi

placement sostenuto

2011-09-22 Thread luis jure
hello list, i'm here again after a long time without using lilypond (meaning that i'm already forgetting the little i ever managed to learn about it...) i'm using the sostenuto sign (c--), but for my taste the default placement is too close to the head of the note. i'm trying to include a global