[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Bend before

From: sir.teddy.the.first
Subject: AW: Bend before
Date: Thu, 26 Mar 2020 21:56:25 +0100



\version "2.20.0"


#(define (make-bend x)

   (make-music 'BendAfterEvent 'delta-step x))


bend =#(define-music-function



        (make-bend (* -1 delta)))


bendBefore  = #(define-music-function




                \once \override BendAfter.rotation = #'(-180 -1 -1)

                \bend $argument 





  c'1\bendAfter #4 e'1 d' \bendBefore #5 e'





This fixes the GUILE-Error by removing the extra “#” before “$argument”, but now I get this error:


warning: Unattached BendAfterEvent

c'1\bendAfter #4 e'1 d'

\bendBefore #5 e'


It is probably looking for a note to attach the “bend” to, but I do not know lilypond and scheme well enough to be able to fix it.


One temporary solution would be to use a \bendAfter command and just manually tweak the rotation via “\once \override BendAfter.rotation = #'(Rotation X Y)”.


Von: lilypond-user <lilypond-user-bounces+sir.teddy.the.first=address@hidden> Im Auftrag von Mogens Lemvig Hansen
Gesendet: Donnerstag, 26. März 2020 20:40
An: Lilypond User <address@hidden>
Betreff: Bend before




The bendBefore code at

does not work for me (version 2.20.0). 


error: GUILE signaled an error for the _expression_ beginning here

\bend #



Does anyone have a solution?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]