[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow predefined diagrams regardless of note names language. (issue2
From: |
v . villenave |
Subject: |
Re: Allow predefined diagrams regardless of note names language. (issue2791041) |
Date: |
Fri, 29 Oct 2010 08:11:00 +0000 |
OK, will push.
http://codereview.appspot.com/2791041/diff/1/ly/predefined-guitar-fretboards.ly
File ly/predefined-guitar-fretboards.ly (right):
http://codereview.appspot.com/2791041/diff/1/ly/predefined-guitar-fretboards.ly#newcode20
ly/predefined-guitar-fretboards.ly:20: #(set! pitchnames
default-language)
On 2010/10/29 06:17:52, Graham Percival wrote:
Cool! Is there any way to make this easy for normal users to use?
(then again,
can we think of any case where a composer would want to be switching
input
languages? not in normal circumstances, but would anybody ever want
to define
some music to be used in a \include file ? ... hmm, that seems a bit
far-fetched. ok, ignore this idea)
Hmm. At most, we could just document that in order to include a file
with another language, one has to do:
\language "newlanguage"
\include "my_included_file.ly"
\language "previouslanguage"
Also note that unlike \include "blah.ly", \language may even be used
inside a music expression!
(BTW: In these fretboard files, I'm not actually using \language since I
don't need to change the parser's note names, but merely the pitchnames
definition that's used by chordmode.)
http://codereview.appspot.com/2791041/