Paul, this certainly cleans things up! Thank you. A minor follow up question - in this code the cross notehead "dot" glyph is being printed and offset through markup - would it be possible to replace the symbol directly (\once \override Dots #'stencil = #??????), ensuring that the new glyph would be printed in the exact same position? David
On 16 March 2014 22:00, Paul Morris <[email protected]> wrote: > David Stephen Grant wrote > > Ideally I'd like to be able to append something other than . to a > > duration, > > that would then automatically assign the correct duration value to the > > note, and change the dot symbol. > > Hello, the next step would be to put your solution in a music function as > shown below. Then you would just add \crs (or whatever you called your > fuction) before any dotted note you wanted to make a "crossed" note. > Pretty > close to your ideal scenario, but not all the way. > > HTH, > -Paul > > > \version "2.18.0" > > crs = > #(define-music-function > (parser location note) > (ly:music?) > #{ > \once \override Dots #'stencil = #ly:text-interface::print > \once \override Dots #'text = \markup { > \halign #-2 > \abs-fontsize #6 > \musicglyph #"noteheads.s2cross" > } > \scaleDurations 5/6 { #note } > #}) > > \relative c' { > << > \new Staff { > c4 c16 a a8 a2 a1 > } > > \new Staff { > \crs c4. > a16 > a8 a2 a1 > } > > \new Staff { > c4. > a8 a2 a1 > } > >> > } > > > > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/Replace-dot-symbol-tp160473p160477.html > Sent from the User mailing list archive at Nabble.com. > > _______________________________________________ > lilypond-user mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/lilypond-user >
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
