[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bends before notes... how to?
From: |
Valentin Villenave |
Subject: |
Re: bends before notes... how to? |
Date: |
Sun, 15 Jul 2007 15:08:43 +0200 |
2007/7/15, Daniele Russo <address@hidden>:
Not bad! But, I was interested in a different type of bend, much more short,
like this (see attachment)
Here is a new command : \bendStart
it needs two arguments :
\bendStart #number {ghostnote}
the ghostnote will not be printed; its only purpose is to specify the
placement of the bend sign.
%%% snip %%%
#(define (make-bend x)
(make-music 'BendAfterEvent
'delta-step x))
bend =
#(define-music-function (parser location delta) (integer?)
(make-bend (* -1 delta)))
bendStart =
#(define-music-function (parser location argument music) (integer? ly:music?)
#{ \hideNotes
\once \override NoteColumn #'X-extent = #'(0 . 4)
\cadenzaOn
\bend #$argument
\grace $music \cadenzaOff
\unHideNotes
#} )
\paper {
ragged-right = ##t }
\relative {
\bendStart #-2 { g' } b8 a g fis e2 }