X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Foutput-socket.scm;h=083d5a081be223493612e8be276aa4f366de2664;hb=2a0b1965e27a65b8ba1cfbad38ab4d25f5ec6aa6;hp=20a16b3bfff361c26da8fa991a3f1f761620f4fd;hpb=4adbd7c841b5342669eebd0d84c4e285df06a4d6;p=lilypond.git diff --git a/scm/output-socket.scm b/scm/output-socket.scm index 20a16b3bff..083d5a081b 100644 --- a/scm/output-socket.scm +++ b/scm/output-socket.scm @@ -11,6 +11,7 @@ (define (dummy . rest) "") +(display (ly:all-stencil-expressions)) (for-each (lambda (x) (module-define! (current-module) @@ -48,13 +49,12 @@ breapth width depth height blot-diameter )) -(define (music-cause grob) +(define (event-cause grob) (let* ((cause (ly:grob-property grob 'cause))) (cond - ((ly:music? cause) cause) - ((ly:grob? cause) (music-cause cause)) + ((ly:stream-event? cause) cause) (else #f)))) @@ -82,9 +82,9 @@ (define-public (grob-cause offset grob) (let* - ((cause (music-cause grob)) - (tag (if (and cause (integer? (ly:music-property cause 'input-tag))) - (ly:music-property cause 'input-tag) + ((cause (event-cause grob)) + (tag (if (and cause (integer? (ly:event-property cause 'input-tag))) + (ly:event-property cause 'input-tag) -1)) (name (cdr (assoc 'name (ly:grob-property grob 'meta)))) ) @@ -113,3 +113,12 @@ (escape-string string) )) + +(define (bezier-sandwich lst thick) + (format + #f + "bezier_sandwich ~a [~a]" + thick + (string-append + (string-join (map (lambda (x) (format "(~a,~a)" (car x) (cdr x))) + lst) ","))))