Knute Snortum <[email protected]> writes: > I have a "best practices" question. I've noticed while looking at snippets > in the LIlyPond docs and the code of experienced writers, that they will > write things like > > \override Parentheses.font-size = #-4 > > with a pound sign before the number, while writing > > \override Parentheses.font-size = -4 > > produces no error or warning. But is it the best practice?
Best practice is writing the # since it makes the type clear: this is not a duration, and it is not a fingering. In some contexts you need to disambiguate this. > Other examples: > > \clef "bass" > > I've always written bass with no quotes. \clef bass_8 would fail, so for consistency use the quotes. > Also: > > \tag #'layout > > where \tag layout seems to work fine. I would pick tag names consistent with LilyPond syntax, then \tag layout is fine. > I don't want to write extra characters, but I also want to write clear > code. What are your thoughts? -- David Kastrup
