1\version "2.19.22" 2 3\header{ 4 5 texidoc= "Tests @code{define-event-function} by creating a trivial 6function converting a markup into a dynamic script post-event. As 7opposed to music functions, a direction indicator is not required." 8 9} 10 11\layout { ragged-right = ##t } 12 13dynScript = 14#(define-event-function (text) (markup?) 15 (make-dynamic-script text)) 16 17\relative { 18 c'1\dynScript pp 19 c^\dynScript "fp" 20 c_\dynScript "spz" 21} 22 23