public class SidDatabase extends Object
Constructor and Description |
---|
SidDatabase(String hvscRoot) |
Modifier and Type | Method and Description |
---|---|
String |
getPath(SidTune tune)
Get tune path contained in the commented line above the song length line.
|
String |
getRandomPath() |
double |
getSongLength(SidTune tune)
Get song length of the current song in seconds.
|
double |
getTuneLength(SidTune tune)
Get tune length (sum of all song length contained in the tune) in seconds.
|
protected Random random
public SidDatabase(String hvscRoot) throws IOException
IOException
public double getTuneLength(SidTune tune)
tune
- tune to get the length forpublic double getSongLength(SidTune tune)
tune
- tune to determine the current songpublic String getPath(SidTune tune)
tune
- MD5 checksum of the tune is used to identify the pathpublic String getRandomPath()
Copyright © 2018 Ken Händel. All rights reserved.