Re: Writing a function

2019-05-12 Thread Aaron Hill
On 2019-05-12 3:40 am, David Kastrup wrote: Rok Kršmanc writes: Hi! I would like to write a function for the next music expression: \once \override TextScript.extra-offset = #'(0 . 1) c^"o" Here is my try: f = #(define-music-function (parser location offset music)   (number? ly:music?)   #{

Re: Writing a function

2019-05-12 Thread David Kastrup
Rok Kršmanc writes: > Hi! > > I would like to write a function for the next music expression: > \once \override TextScript.extra-offset = #'(0 . 1) > c^"o" > > Here is my try: > f = > #(define-music-function (parser location offset music) >   (number? ly:music?) >   #{ >     \once \override TextS

Writing a function

2019-05-12 Thread Rok Kršmanc
Hi! I would like to write a function for the next music expression: \once \override TextScript.extra-offset = #'(0 . 1) c^"o" Here is my try: f = #(define-music-function (parser location offset music)   (number? ly:music?)   #{     \once \override TextScript.extra-offset = #'(0 . $offset)     $m