lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fret Diagram markup


From: Nicolas Sceaux
Subject: Re: Fret Diagram markup
Date: Mon, 17 May 2004 22:24:07 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Mon, 17 May 2004 12:33:31 -0600, Carl a dit : 

 > Attached is a copy of the latest fret diagram markup function. [...]

The following remarks are purely stylistic. You may want to:

 - use hyphens in variable and function names, eg subtract-base-fret
   instead of subtractbasefret;

 - use less generic names, eg parse-fret-string or fret-parse-string
   or fret:parse-string instead of parsestring;

 - not leave parentheses alone on a line, all closing parens should
   put together at the end of an expression.

Maybe `format' (the one borrowed from Common Lisp) can do the job
of `integer->roman'.

guile> (integer->roman 23)
"xxiii"
guile> (use-modules (ice-9 format))
guile> (format #f "~(~:@r~)" 23)
"xxiii"

~:@r means write roman number, and ~(...~) means lowercase. See:
http://www.gnu.org/software/guile/docs/guile-ref/Formatted-Output.html

nicolas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]