4

I want a custom \breathe sign that can be freely positioned, like:

staff with comma type breath mark

I have some shortcut code for this:

place = #(define-music-function (parser location xy)
          (pair?)
          #{
            \once \override TextScript.extra-offset = #xy
          #})

comma = \markup \musicglyph "comma"

used as \place #'(2 . 0) a2-\comma. However, it would be much nicer to be able to just write a2-\comma #'(2 . 0). Is there a way to accomplish this?

1 Answer 1

2

The following works here:

comma = #(define-event-function (parser location xy)
          (pair?)
          #{
            \tweak extra-offset #xy ^ \markup \musicglyph "comma"
          #})


{ a2\comma #'(2 . 0) }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.