]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/catalan.ly
Update a comment.
[lilypond.git] / ly / catalan.ly
index 1739ae0862a5546cc139a9a2ba5b62ac74cef896..0977bd95e22150ddba6e390b6cf3f00de6fb10e7 100644 (file)
@@ -1,74 +1,95 @@
+%%%% common Catalan names for notes
+%%%% This file is part of LilyPond, the GNU music typesetter.
+%%%%
+%%%% Copyright (C) 1998--2010 Jaume Obrador <jobrador@ipc4.uib.es>
+%%%%
+%%%% LilyPond is free software: you can redistribute it and/or modify
+%%%% it under the terms of the GNU General Public License as published by
+%%%% the Free Software Foundation, either version 3 of the License, or
+%%%% (at your option) any later version.
+%%%%
+%%%% LilyPond is distributed in the hope that it will be useful,
+%%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%%%% GNU General Public License for more details.
+%%%%
+%%%% You should have received a copy of the GNU General Public License
+%%%% along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
+
+\version "2.12.0"
+
 %{
 
- Common catalan names for notes. "b" means flat (bemoll), "d" means sharp (diesi).
- Also "s" is included for sharp (sostingut).  Both "diesi" and "sostingut" are approved
- by "Diccionari de la Llengua Catalana" from "Institut d'Estudis Catalans".
+  b  = flat (bemoll)
+  bb = double-flat
 
- Adapted from italiano.ly.
+  d  = sharp (diesi)
+  dd = double-sharp
 
- English: a   b   c   d   e   f   g
- Catalan: la  si  do  re  mi  fa  sol
+  s  = sharp (sostingut)
+  ss = double-sharp
 
- For spanish naming just use the sharp sign "s" (sostenido) instead of "s"
-(sostenido) .
-%}
+  English: c   d   e   f   g   a   b
+  Catalan: do  re  mi  fa  sol la  si
 
-% contributed by Jaume Obrador <jobrador@ipc4.uib.es>
+  Adapted from italiano.ly.
 
+%}
 
-% For using "sostingut" notation, which is also correct
-\notenames #'(
-       (dobb . ( -1 0 -2 ))
-       (dob . ( -1 0 -1 ))
-       (do . ( -1 0 0 ))
-       (dod . ( -1 0 1 ))
-       (dodd . ( -1 0 2 ))
-       (rebb . ( -1 1 -2 ))
-       (reb . ( -1 1 -1 ))
-       (re . ( -1 1 0 ))
-       (red . ( -1 1 1 ))
-       (redd . ( -1 1 2 ))
-       (mibb . ( -1 2 -2 ))
-       (mib . ( -1 2 -1 ))
-       (mi . ( -1 2 0 ))
-       (mid . ( -1 2 1 ))
-       (midd . ( -1 2 2 ))
-       (fabb . ( -1 3 -2 ))
-       (fab . ( -1 3 -1 ))
-       (fa . ( -1 3 0 ))
-       (fad . ( -1 3 1 ))
-       (fadd . ( -1 3 2 ))
-       (solbb . ( -1 4 -2 ))
-       (solb . ( -1 4 -1 ))
-       (sol . ( -1 4 0 ))
-       (sold . ( -1 4 1 ))
-       (soldd . ( -1 4 2 ))
-       (labb . ( -1 5 -2 ))
-       (lab . ( -1 5 -1 ))
-       (la . ( -1 5 0 ))
-       (lad . ( -1 5 1 ))
-       (ladd . ( -1 5 2 ))
-       (sibb . ( -1 6 -2 ))
-       (sib . ( -1 6 -1 ))
-       (si . ( -1 6 0 ))
-       (sid . ( -1 6 1 ))
-       (sidd . ( -1 6 2 ))
-       (dos . ( -1 0 1 ))
-       (doss . ( -1 0 2 ))
-       (res . ( -1 1 1 ))
-       (ress . ( -1 1 2 ))
-       (mis . ( -1 2 1 ))
-       (miss . ( -1 2 2 ))
-       (fas . ( -1 3 1 ))
-       (fass . ( -1 3 2 ))
-       (sols . ( -1 4 1 ))
-       (solss . ( -1 4 2 ))
-       (las . ( -1 5 1 ))
-       (lass . ( -1 5 2 ))
-       (sis . ( -1 6 1 ))
-       (siss . ( -1 6 2 ))
-)
+pitchnamesCatalan = #`(
+       (dobb . ,(ly:make-pitch -1 0 DOUBLE-FLAT))
+       (dob . ,(ly:make-pitch -1 0 FLAT))
+       (do . ,(ly:make-pitch -1 0 NATURAL))
+       (dod . ,(ly:make-pitch -1 0 SHARP))
+       (dodd . ,(ly:make-pitch -1 0 DOUBLE-SHARP))
+       (rebb . ,(ly:make-pitch -1 1 DOUBLE-FLAT))
+       (reb . ,(ly:make-pitch -1 1 FLAT))
+       (re . ,(ly:make-pitch -1 1 NATURAL))
+       (red . ,(ly:make-pitch -1 1 SHARP))
+       (redd . ,(ly:make-pitch -1 1 DOUBLE-SHARP))
+       (mibb . ,(ly:make-pitch -1 2 DOUBLE-FLAT))
+       (mib . ,(ly:make-pitch -1 2 FLAT))
+       (mi . ,(ly:make-pitch -1 2 NATURAL))
+       (mid . ,(ly:make-pitch -1 2 SHARP))
+       (midd . ,(ly:make-pitch -1 2 DOUBLE-SHARP))
+       (fabb . ,(ly:make-pitch -1 3 DOUBLE-FLAT))
+       (fab . ,(ly:make-pitch -1 3 FLAT))
+       (fa . ,(ly:make-pitch -1 3 NATURAL))
+       (fad . ,(ly:make-pitch -1 3 SHARP))
+       (fadd . ,(ly:make-pitch -1 3 DOUBLE-SHARP))
+       (solbb . ,(ly:make-pitch -1 4 DOUBLE-FLAT))
+       (solb . ,(ly:make-pitch -1 4 FLAT))
+       (sol . ,(ly:make-pitch -1 4 NATURAL))
+       (sold . ,(ly:make-pitch -1 4 SHARP))
+       (soldd . ,(ly:make-pitch -1 4 DOUBLE-SHARP))
+       (labb . ,(ly:make-pitch -1 5 DOUBLE-FLAT))
+       (lab . ,(ly:make-pitch -1 5 FLAT))
+       (la . ,(ly:make-pitch -1 5 NATURAL))
+       (lad . ,(ly:make-pitch -1 5 SHARP))
+       (ladd . ,(ly:make-pitch -1 5 DOUBLE-SHARP))
+       (sibb . ,(ly:make-pitch -1 6 DOUBLE-FLAT))
+       (sib . ,(ly:make-pitch -1 6 FLAT))
+       (si . ,(ly:make-pitch -1 6 NATURAL))
+       (sid . ,(ly:make-pitch -1 6 SHARP))
+       (sidd . ,(ly:make-pitch -1 6 DOUBLE-SHARP))
 
+       ;; Now that we have espanol.ly, should these be junked? --jcn
+       (dos . ,(ly:make-pitch -1 0 SHARP))
+       (doss . ,(ly:make-pitch -1 0 DOUBLE-SHARP))
+       (res . ,(ly:make-pitch -1 1 SHARP))
+       (ress . ,(ly:make-pitch -1 1 DOUBLE-SHARP))
+       (mis . ,(ly:make-pitch -1 2 SHARP))
+       (miss . ,(ly:make-pitch -1 2 DOUBLE-SHARP))
+       (fas . ,(ly:make-pitch -1 3 SHARP))
+       (fass . ,(ly:make-pitch -1 3 DOUBLE-SHARP))
+       (sols . ,(ly:make-pitch -1 4 SHARP))
+       (solss . ,(ly:make-pitch -1 4 DOUBLE-SHARP))
+       (las . ,(ly:make-pitch -1 5 SHARP))
+       (lass . ,(ly:make-pitch -1 5 DOUBLE-SHARP))
+       (sis . ,(ly:make-pitch -1 6 SHARP))
+       (siss . ,(ly:make-pitch -1 6 DOUBLE-SHARP))
+)
 
+pitchnames = \pitchnamesCatalan
 
-\version "1.3.96";
+#(ly:parser-set-note-names parser pitchnames)