Re: Catch direction operators

2020-02-27 Thread Pierre Perol-Schneider
Thank you David. Le jeu. 27 févr. 2020 à 11:33, David Kastrup a écrit : > Schneidy writes: > > > Hi Paul et all, > > I'd like to get your function work with v2.19. > > convert-ly gives the following error: > > Expecting music, found (list (quote Slur)) > > Any idea? > > Use \propertyTweak rathe

Re: Catch direction operators

2020-02-27 Thread David Kastrup
Schneidy writes: > Hi Paul et all, > I'd like to get your function work with v2.19. > convert-ly gives the following error: > Expecting music, found (list (quote Slur)) > Any idea? Use \propertyTweak rather than \tweak in the function. -- David Kastrup

Re: Catch direction operators

2020-02-27 Thread Schneidy
Hi Paul et all, I'd like to get your function work with v2.19. convert-ly gives the following error: Expecting music, found (list (quote Slur)) Any idea? TIA, cheers, Pierre -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

Re: Catch direction operators

2013-10-09 Thread Paul Morris
tp://lilypond.1069038.n5.nabble.com/Catch-direction-operators-tp151552p152031.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Catch direction operators

2013-10-08 Thread David Kastrup
Paul Morris writes: > David Kastrup wrote >> Looks fine. \colorizeDir is not actually being used as a tweak here, >> but then that makes pretty little sense anyway. > > Ok, I've added it here: > http://lsr.dsi.unimi.it/LSR/Item?id=889 > > Since it requires 2.17 I had to comment out the whole thi

Re: Catch direction operators

2013-10-08 Thread Paul Morris
ew this message in context: http://lilypond.1069038.n5.nabble.com/Catch-direction-operators-tp151552p152012.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Catch direction operators

2013-10-08 Thread David Kastrup
Paul Morris writes: > dak wrote >> You can add it wherever you want. I don't see it making any sense as an >> addition to LilyPond proper as it is a rather special use case. It may >> still be nice as a snippet as it is simple, flexible, and powerful. The >> use cases also show \tweak as an in

Re: Catch direction operators

2013-10-08 Thread Paul Morris
b) c''-3\4-"xy" c''_3^\4^"xy" c''^3_\4_"xy" } \new Voice \with { \mapList #colorizeDir Slur.TextScript } { \music } \new Voice \with { \mapList #colorizeDir #(map car all-grob-descriptions) } { \music } -- View this message in co

Re: Catch direction operators

2013-10-01 Thread David Kastrup
Urs Liska writes: > Am 01.10.2013 12:19, schrieb Urs Liska: >> Am 01.10.2013 12:17, schrieb Franciszek Boehlke: >>> lambda (x) (car x) is exactly the same as car. You should be able >>> to write just >>> #(map car all-grob-descriptions) >>> instead. >>> >> >> Thanks. Now I see that it didn't _s

Re: Catch direction operators

2013-10-01 Thread Urs Liska
Am 01.10.2013 12:19, schrieb Urs Liska: Am 01.10.2013 12:17, schrieb Franciszek Boehlke: lambda (x) (car x) is exactly the same as car. You should be able to write just #(map car all-grob-descriptions) instead. Thanks. Now I see that it didn't _seem_ to work because I ran the wrong LilyPo

Re: Catch direction operators

2013-10-01 Thread Urs Liska
Am 01.10.2013 12:17, schrieb Franciszek Boehlke: lambda (x) (car x) is exactly the same as car. You should be able to write just #(map car all-grob-descriptions) instead. Thanks. Now I see that it didn't _seem_ to work because I ran the wrong LilyPond version :-[

Re: Catch direction operators

2013-10-01 Thread Franciszek Boehlke
lambda (x) (car x) is exactly the same as car. You should be able to write just #(map car all-grob-descriptions) instead. 2013/10/1 Urs Liska > Am 01.10.2013 12:04, schrieb David Kastrup: > > Urs Liska writes: >> >> Am 29.09.2013 17:04, schrieb David Kastrup: >>> \new Voice \with { \m

Re: Catch direction operators

2013-10-01 Thread Urs Liska
Am 01.10.2013 12:04, schrieb David Kastrup: Urs Liska writes: Am 29.09.2013 17:04, schrieb David Kastrup: \new Voice \with { \mapList #colorizeDir Slur.StringNumber.TextScript } \new Voice \with { \mapList #colorizeDir #(map (lambda (x) (car x)) all-grob-descriptions) } Adds the option of c

Re: Catch direction operators

2013-10-01 Thread David Kastrup
Urs Liska writes: > Am 29.09.2013 17:04, schrieb David Kastrup: >> \new Voice \with { \mapList #colorizeDir Slur.StringNumber.TextScript } > > \new Voice \with { \mapList #colorizeDir #(map (lambda (x) (car x)) > all-grob-descriptions) } > > Adds the option of coloring all grobs with a 'direction

Re: Catch direction operators

2013-10-01 Thread Urs Liska
Am 29.09.2013 17:04, schrieb David Kastrup: \new Voice \with { \mapList #colorizeDir Slur.StringNumber.TextScript } \new Voice \with { \mapList #colorizeDir #(map (lambda (x) (car x)) all-grob-descriptions) } Adds the option of coloring all grobs with a 'direction property. Urs

Re: Catch direction operators

2013-09-29 Thread MING TSANG
David Nalesnik, Thank you.  By reading the log message, I cannot decipher what it means. Emanuel, Ming From: David Nalesnik To: MING TSANG Cc: "lilypond-user@gnu.org" Sent: Sunday, September 29, 2013 9:43:59 AM Subject: Re: Catch direction operat

Re: Catch direction operators

2013-09-29 Thread David Kastrup
David Kastrup writes: > Thomas Morley writes: > >You can write: >colorizeDir = >#(define-music-function (parser location item) > (symbol-list-or-music?) > (define (grob-colorize-dir grob) > (let ((ev (event-cause grob))) > (case (ly:event-property ev 'di

Re: Catch direction operators

2013-09-29 Thread David Kastrup
Thomas Morley writes: You can write: colorizeDir = #(define-music-function (parser location item) (symbol-list-or-music?) (define (grob-colorize-dir grob) (let ((ev (event-cause grob))) (case (ly:event-property ev 'direction) ((1) red

Re: Catch direction operators

2013-09-29 Thread Thomas Morley
2013/9/29 David Kastrup : > Urs Liska writes: > >>>You can write: >>> >>>#(define-music-function (parser location item) >>> (symbol-list-or-music?) >>> (define (grob-colorize-dir grob) >>> (let ((ev (event-cause grob))) >>> (case (ly:event-property ev 'direction) >>> ((1)

Re: Catch direction operators

2013-09-29 Thread David Nalesnik
Hi Ming, On Sun, Sep 29, 2013 at 8:37 AM, MING TSANG wrote: > I was following the caption subject in lily user list. I run the > following (copy from the lists). I got error, please see the log at the > end of lily code. > Thanks, > Ming > > %lily code starts % > \version "2.17

Re: Catch direction operators

2013-09-29 Thread MING TSANG
I was following the caption subject in lily user list.I run the following (copy from the lists).  I got error, please see the log at the end of lily code. Thanks, Ming %lily code starts % \version "2.17.27" colorizeDir = #(define-music-function (parser location item) (symbol-list-

Re: Catch direction operators

2013-09-29 Thread David Kastrup
Urs Liska writes: >>You can write: >> >>#(define-music-function (parser location item) >> (symbol-list-or-music?) >> (define (grob-colorize-dir grob) >> (let ((ev (event-cause grob))) >> (case (ly:event-property ev 'direction) >> ((1) red) >> ((-1) blue) >>

Re: Catch direction operators

2013-09-29 Thread Urs Liska
David Kastrup schrieb: >Urs Liska writes: > >> Hi David, >> >> this is great! >> >> Am 29.09.2013 09:51, schrieb David Kastrup: >>> David Kastrup writes: >>> colorizeDir = #(define-music-function (parser location item) (symbol-list-or-music?) (define (grob-colorize-

Re: Catch direction operators

2013-09-29 Thread David Kastrup
Urs Liska writes: > Hi David, > > this is great! > > Am 29.09.2013 09:51, schrieb David Kastrup: >> David Kastrup writes: >> >>> colorizeDir = >>> #(define-music-function (parser location item) >>>(symbol-list-or-music?) >>>(define (grob-colorize-dir grob) >>> (let ((ev (event-cause

Re: Catch direction operators

2013-09-29 Thread Urs Liska
Hi David, this is great! Am 29.09.2013 09:51, schrieb David Kastrup: David Kastrup writes: colorizeDir = #(define-music-function (parser location item) (symbol-list-or-music?) (define (grob-colorize-dir grob) (let ((ev (event-cause grob))) (and ev (ly:event-property ev 'dir

Re: Catch direction operators

2013-09-29 Thread David Kastrup
David Kastrup writes: > colorizeDir = > #(define-music-function (parser location item) > (symbol-list-or-music?) > (define (grob-colorize-dir grob) > (let ((ev (event-cause grob))) > (and ev (ly:event-property ev 'direction #f) > red))) > #{ \tweak color #grob-colori

Re: Catch direction operators

2013-09-29 Thread David Kastrup
David Nalesnik writes: > Hi Urs, > > > On Sat, Sep 28, 2013 at 12:13 PM, Urs Liska wrote: > >> Hi, >> >> I have a 'function' that redefines commands like \slurUp to color the >> corresponding grob (highlighting manual interventions during score >> development). >> >> Is it possible to 'catch' in

Re: Catch direction operators

2013-09-29 Thread Urs Liska
Am 29.09.2013 09:23, schrieb Urs Liska: Hi David, Am 29.09.2013 00:36, schrieb David Nalesnik: Hi Urs, ... I couldn't get any results with a music function, but a little experimenting got me a tiny engraver which responds to the directional operators. Not sure how useful this is, It is v

Re: Catch direction operators

2013-09-29 Thread Urs Liska
Hi David, Am 29.09.2013 00:36, schrieb David Nalesnik: Hi Urs, ... I couldn't get any results with a music function, but a little experimenting got me a tiny engraver which responds to the directional operators. Not sure how useful this is, It is very useful, thank you. I __

Re: Catch direction operators

2013-09-28 Thread David Nalesnik
Hi Urs, On Sat, Sep 28, 2013 at 12:13 PM, Urs Liska wrote: > Hi, > > I have a 'function' that redefines commands like \slurUp to color the > corresponding grob (highlighting manual interventions during score > development). > > Is it possible to 'catch' instances of grobs whose direction has be

Catch direction operators

2013-09-28 Thread Urs Liska
Hi, I have a 'function' that redefines commands like \slurUp to color the corresponding grob (highlighting manual interventions during score development). Is it possible to 'catch' instances of grobs whose direction has been set by the ^ and _ operators and call a music function on the affected