lilypond-user
[Top][All Lists]
Advanced

[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

        (delta)

        (integer?)

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

 

bendBefore  = #(define-music-function

                (argument)

                (integer?)

              #{

                \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

 

Hi,

 

The bendBefore code at

http://lilypond.1069038.n5.nabble.com/bends-before-notes-how-to-td22214.html

does not work for me (version 2.20.0). 

 

error: GUILE signaled an error for the _expression_ beginning here

\bend #

$argument

 

Does anyone have a solution?

 

Regards,

Mogens

 

 

 


reply via email to

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