|
From: | Kevin Patrick Barry |
Subject: | arrows |
Date: | Mon, 15 Oct 2012 23:17:12 +0100 |
\relative c' {
\override Glissando #'bound-details #'right #'Y = #-7
\override Glissando #'bound-details #'right #'X = #28.5
\override Glissando #'(bound-details right arrow) = ##t
\override Glissando #'arrow-length = #0.6
\override Glissando #'arrow-width = #0.25
e1 g
g\glissando
\override Glissando #'bound-details #'right #'X = #34.57
g\glissando
\override Glissando #'bound-details #'right #'X = #40.65
g\glissando
g g
}
Some of these things could be included in the .ily files that I use for examples, but the drawback is that they also affect ordinary glissandi. Ideally I would like to define a function that can create arrows, but that doesn't effect settings for other objects (glissandi are excellent for just drawing lines between two notes). I made some progress with this (see below) but I am fumbling around in the dark. I managed to recreate a glissando in a scheme function, but I have no idea how to set properties or change them. My attempts to stick properties into the following function all meet with errors (also, why does it not seem to matter whether I specify a glissando-event or a note-event?):
glissarrow = #(define-music-function (parser location glissando-event)
(ly:music?)
(set! (ly:music-property glissando-event 'articulations)
(cons (make-music 'GlissandoEvent)
(ly:music-property glissando-event 'articulations)))
glissando-event)
I apologise again for being so verbose, especially about something that is mostly just a quality-of-life issue, but I am severely time constrained. I wonder if it might be better to just use an image editor to draw what I want on the png files. I really would like to be able to do these things myself (and eventually to contribute) but the learning curve for scheme is intimidating (at least for me!). Thanks in advance for any help, and I really hope I haven't overlooked an obvious answer in the documentation, like last time :/
Kevin Barry
[Prev in Thread] | Current Thread | [Next in Thread] |