Omit naturals in chord symbols

This commit is contained in:
Matthias Neeracher 2011-09-26 04:49:44 +02:00
parent b24fc07200
commit c942def59c
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,10 @@ const char * kVLFancyNames[] =
{ {
SCALE, "R", kVLNaturalStr, kVL2SharpStr, kVLSharpStr, "", kVLFlatStr, kVL2FlatStr SCALE, "R", kVLNaturalStr, kVL2SharpStr, kVLSharpStr, "", kVLFlatStr, kVL2FlatStr
}; };
const char * kVLFancyChordNames[] =
{
SCALE, "R", "", kVL2SharpStr, kVLSharpStr, "", kVLFlatStr, kVL2FlatStr
};
const char * kVLLilypondNames[] = const char * kVLLilypondNames[] =
{ {
"c d ef g a b", "r", "", "isis", "is", "", "es", "eses" "c d ef g a b", "r", "", "isis", "is", "", "es", "eses"

View File

@ -19,6 +19,7 @@ extern const char * kVL2SharpStr;
extern const char * kVL2FlatStr; extern const char * kVL2FlatStr;
extern const char * kVLNaturalStr; extern const char * kVLNaturalStr;
extern const char * kVLFancyNames[]; extern const char * kVLFancyNames[];
extern const char * kVLFancyChordNames[];
extern const char * kVLLilypondNames[]; extern const char * kVLLilypondNames[];
// //
// UTF-8 representation of pitch // UTF-8 representation of pitch
@ -38,7 +39,7 @@ int8_t VLParsePitch(std::string & str, size_t at, uint16_t * accidental);
void VLChordName(int8_t pitch, uint16_t accidental, uint32_t steps, void VLChordName(int8_t pitch, uint16_t accidental, uint32_t steps,
int8_t rootPitch, uint16_t rootAccidental, int8_t rootPitch, uint16_t rootAccidental,
std::string & baseName, std::string & extName, std::string & rootName, std::string & baseName, std::string & extName, std::string & rootName,
const char * names[] = kVLFancyNames); const char * names[] = kVLFancyChordNames);
// //
// Parse chord name, erase from string // Parse chord name, erase from string