Skip to content

Commit

Permalink
Small mistake in key signature evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
BShakhovsky committed Jul 10, 2018
1 parent 7fdb697 commit de2d1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Piano/MidiParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void MidiParser::ParseKeySignatureMetaEvent()
case 2: log_.append(message_.isKeySignatureMajorKey()
? TEXT(") -> D-Major tone\r\n") : TEXT(") -> H-Minor tone\r\n")); break;
case 3: log_.append(message_.isKeySignatureMajorKey()
? TEXT(") -> A#-Major tone\r\n") : TEXT(") -> F#-Minor tone\r\n")); break;
? TEXT(") -> A-Major tone\r\n") : TEXT(") -> F#-Minor tone\r\n")); break;
case 4: log_.append(message_.isKeySignatureMajorKey()
? TEXT(") -> E-Major tone\r\n") : TEXT(") -> C#-Minor tone\r\n")); break;
case 5: log_.append(message_.isKeySignatureMajorKey()
Expand Down Expand Up @@ -189,4 +189,4 @@ void MidiParser::Parse()
// do not check earlier, otherwise empty data-tracks will be also shown in track-list
}
}
}
}

0 comments on commit de2d1e0

Please sign in to comment.