|
|
|
@ -158,7 +158,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
}break; |
|
|
|
|
case 21:{ |
|
|
|
|
final ColorRange TARGETCOLOR = new ColorRange(200,255,200,255,200,255); |
|
|
|
|
final ColorRange SEEKINGCOLOR = new ColorRange(100,255,100,255,100,255); |
|
|
|
|
final ColorRange SEEKINGCOLOR = new ColorRange(120,255,120,255,120,255); |
|
|
|
|
final Color FINALCOLOR = Color.MAGENTA; |
|
|
|
|
for (int i=0;i<arr.length;i++) { |
|
|
|
|
Color col = new Color(arr[i],true); |
|
|
|
@ -334,9 +334,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
ImageIO.write(subRegion,"png",new File("sub.png")); |
|
|
|
|
cutImg.setRGB(0,currentHeight,readRegions.get(i).w,readRegions.get(i).h,arr,0,readRegions.get(i).w); |
|
|
|
|
String val = interpretImage(subRegion,i); |
|
|
|
|
if (!val.isEmpty()) { |
|
|
|
|
sig_data[counter++]=val; |
|
|
|
|
} |
|
|
|
|
sig_data[counter++]=val; |
|
|
|
|
currentHeight+=readRegions.get(i).h+REGION_PADDING; |
|
|
|
|
} |
|
|
|
|
Path output = Paths.get("result.png"); |
|
|
|
@ -350,7 +348,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
System.out.println(Arrays.toString(ja_data)); |
|
|
|
|
System.out.println(Arrays.toString(en_data)); |
|
|
|
|
System.out.println(Arrays.toString(sig_data)); |
|
|
|
|
//interpretOutput(ja_data,en_data);
|
|
|
|
|
interpretOutput(ja_data,en_data,sig_data); |
|
|
|
|
g.dispose(); |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
@ -419,7 +417,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
other+="ex:"+Integer.toString(convertToInt("EX SCORE",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 4:{ |
|
|
|
|
pct=convertToDouble("EFFECTIVE RATE",splitter);//We're lucky excessive and effective rate have the same number of characters...
|
|
|
|
|
pct=convertToDouble(splitter);//We're lucky excessive and effective rate have the same number of characters...
|
|
|
|
|
}break; |
|
|
|
|
case 5:{ |
|
|
|
|
notes[0]=convertToInt("ERROR",splitter); |
|
|
|
|