|
|
@ -158,7 +158,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
case 21:{ |
|
|
|
case 21:{ |
|
|
|
final ColorRange TARGETCOLOR = new ColorRange(200,255,200,255,200,255); |
|
|
|
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; |
|
|
|
final Color FINALCOLOR = Color.MAGENTA; |
|
|
|
for (int i=0;i<arr.length;i++) { |
|
|
|
for (int i=0;i<arr.length;i++) { |
|
|
|
Color col = new Color(arr[i],true); |
|
|
|
Color col = new Color(arr[i],true); |
|
|
@ -334,9 +334,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
ImageIO.write(subRegion,"png",new File("sub.png")); |
|
|
|
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); |
|
|
|
cutImg.setRGB(0,currentHeight,readRegions.get(i).w,readRegions.get(i).h,arr,0,readRegions.get(i).w); |
|
|
|
String val = interpretImage(subRegion,i); |
|
|
|
String val = interpretImage(subRegion,i); |
|
|
|
if (!val.isEmpty()) { |
|
|
|
sig_data[counter++]=val; |
|
|
|
sig_data[counter++]=val; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
currentHeight+=readRegions.get(i).h+REGION_PADDING; |
|
|
|
currentHeight+=readRegions.get(i).h+REGION_PADDING; |
|
|
|
} |
|
|
|
} |
|
|
|
Path output = Paths.get("result.png"); |
|
|
|
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(ja_data)); |
|
|
|
System.out.println(Arrays.toString(en_data)); |
|
|
|
System.out.println(Arrays.toString(en_data)); |
|
|
|
System.out.println(Arrays.toString(sig_data)); |
|
|
|
System.out.println(Arrays.toString(sig_data)); |
|
|
|
//interpretOutput(ja_data,en_data);
|
|
|
|
interpretOutput(ja_data,en_data,sig_data); |
|
|
|
g.dispose(); |
|
|
|
g.dispose(); |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -419,7 +417,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
other+="ex:"+Integer.toString(convertToInt("EX SCORE",splitter))+","; |
|
|
|
other+="ex:"+Integer.toString(convertToInt("EX SCORE",splitter))+","; |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
case 4:{ |
|
|
|
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; |
|
|
|
}break; |
|
|
|
case 5:{ |
|
|
|
case 5:{ |
|
|
|
notes[0]=convertToInt("ERROR",splitter); |
|
|
|
notes[0]=convertToInt("ERROR",splitter); |
|
|
|