Skip to content

Commit

Permalink
Move output of length and fadelength. Update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius committed Jul 10, 2023
1 parent 3914cc4 commit dde4fe4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Name of dumper: Datschge
Comments: Bramble Maze
Date SPC was dumped:
Emulator used to dump SPC: Unknown
Length (seconds): 253
Fade length (milliseconds): 10000
-----------
XID6 tags:
-----------
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/se/anosh/spctag/TagReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public void go(final CommandLine cmd) {
System.out.println("File header: " + myFile.getHeader());
String format = myFile.isBinaryTagFormat() ? "Binary" : "Text";
System.out.println("Tag format: " + format);
System.out.printf("Length (seconds): %d\n", myFile.getLengthSeconds() );
System.out.printf("Fade length (milliseconds): %d\n", myFile.getFadeLengthMilliseconds());
}
System.out.println("Artist: " + myFile.getArtist()); // composer
System.out.println("Song title: " + myFile.getSongTitle());
Expand All @@ -85,6 +83,10 @@ public void go(final CommandLine cmd) {

System.out.println("Date SPC was dumped: " + myFile.dateDumpWasCreated());
System.out.println("Emulator used to dump SPC: " + myFile.getEmulatorUsedToCreateDump().getName());
if (cmd.hasOption(VERBOSE)) {
System.out.printf("Length (seconds): %d\n", myFile.getLengthSeconds() );
System.out.printf("Fade length (milliseconds): %d\n", myFile.getFadeLengthMilliseconds());
}

if (cmd.hasOption(VERBOSE) || cmd.hasOption(XID6)) {
try {
Expand Down

0 comments on commit dde4fe4

Please sign in to comment.