Engraver Programming Question

2014-09-24 Thread Jay Vara
I am not top-posting I tried to build in a way to get the measurePosition and measureLength in a user defined engraver (lines 13 and 14). The idea was to change them as needed. As a first step, I wanted to print the values - I tried putting in a format statement (line 23). The program runs

Re: Engraver Programming Question

2014-09-24 Thread Jan-Peter Voigt
Hi Jay, to output something, you have to display it. The format function returns the formatted string. If you insert #t (true) prior the format string, it will output the result to stdout: (format #t length ~a position ~a note-names ~a ~% measure-len measure-pos note-names) HTH

Re: Engraver Programming Question

2014-09-24 Thread Jay Vara
Jan Hi Jay, to output something, you have to display it. The format function returns the formatted string. If you insert #t (true) prior the format string, it will output the result to stdout: (format #t length ~a position ~a note-names ~a ~% measure-len