• R/O
  • SSH
  • HTTPS

midichordhelper: Commit


Commit MetaInfo

Revision40 (tree)
Time2015-01-04 17:51:42
Authorkamide

Log Message

eVocaloid対応歌詞の配列で添字上限チェックが抜けていたのを修正

Change Summary

Incremental Difference

--- MIDIChordHelper/src/camidion/chordhelper/music/MIDISpec.java (revision 39)
+++ MIDIChordHelper/src/camidion/chordhelper/music/MIDISpec.java (revision 40)
@@ -1078,7 +1078,10 @@
10781078 for( int i=6; i<msgdata.length; i++ ) {
10791079 int b = (msgdata[i] & 0xFF);
10801080 if( b == 0xF7 ) break;
1081- String s = b<0 ? "?": MIDISpec.nsx39LyricElements[b];
1081+ String s = (
1082+ b < 0 || b >= MIDISpec.nsx39LyricElements.length ?
1083+ "?": MIDISpec.nsx39LyricElements[b]
1084+ );
10821085 p.append(s);
10831086 }
10841087 str += " pronounce["+p+"]";
--- MIDIChordHelper/src/camidion/chordhelper/ChordHelperApplet.java (revision 39)
+++ MIDIChordHelper/src/camidion/chordhelper/ChordHelperApplet.java (revision 40)
@@ -284,7 +284,7 @@
284284 */
285285 public static class VersionInfo {
286286 public static final String NAME = "MIDI Chord Helper";
287- public static final String VERSION = "Ver.20140417.1";
287+ public static final String VERSION = "Ver.20150104.1";
288288 public static final String COPYRIGHT = "Copyright (C) 2004-2014";
289289 public static final String AUTHER = "@きよし - Akiyoshi Kamide";
290290 public static final String URL = "http://www.yk.rim.or.jp/~kamide/music/chordhelper/";
Show on old repository browser