|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object at.ofai.music.beatroot.BeatRoot
public class BeatRoot
The main class of the BeatRoot application. Processes the command line arguments (see processArgs()) and creates the three main objects:
gui
- the graphical user interface object, which
displays the audio and beat data and processes mouse and key events;audioPlayer
- the object which deals with audio output,
playing the audio data with or without percussion sounds marking the beats;audioProcessor
- processes audio to find onsets, and calls
the tempo induction and beat tracking methods
Field Summary | |
---|---|
protected java.lang.String |
argsFile
Input file for batch processing where each line contains a list of arguments for a BeatRoot run |
protected java.lang.String |
audioIn
File name of audio input file |
protected AudioPlayer |
audioPlayer
The object that deals with audio output |
protected AudioProcessor |
audioProcessor
The object that deals with processing the audio data |
protected boolean |
batchMode
Flag indicating that no GUI input is expected, i.e. |
protected java.lang.String |
beatsFile
Input file name for annotated beat times (for evaluating BeatRoot) |
protected java.lang.String |
beatsIn
Input file name of beat times in TMF format (instead of automatic beat tracking) |
protected java.lang.String |
featureFile
Input file name for (onset) feature file, instead of audio input, for ICASSP'07 paper |
protected Chooser |
fileChooser
The dialog window for selecting files for opening and saving data |
protected GUI |
gui
The graphical user interface (frame) object |
protected static boolean |
ignoreWarnings
Flag indicating whether warning messages should be ignored or displayed |
protected boolean |
onsetOnly
Flag to load/save onsets |
protected boolean |
playWithBeats
Flag indicating whether audio with beats should be played after processing is complete |
protected java.io.BufferedReader |
reader
For reading argsFile |
protected boolean |
silentFlag
Flag for suppressing messages to standard output |
protected java.lang.String |
textOutputFile
Output file name for saving the beat times in text format, one to a line |
protected int |
useAnnotation
For beat tracking with the first n notes given, this is the value of n. |
Constructor Summary | |
---|---|
BeatRoot(java.lang.String[] args)
Constructor. |
Method Summary | |
---|---|
static void |
error(java.lang.String message)
Print an error message and opens an exit dialog. |
protected java.lang.String[] |
getArgs()
Reads a line from the arguments file argsFile , and converts
it into an array of Strings, allowing for quoted strings. |
static void |
main(java.lang.String[] args)
Entry point for BeatRoot application. |
void |
processArgs(java.lang.String[] args)
Process command line arguments. |
static void |
quit()
Open an exit dialog. |
static java.lang.String[] |
stringToArgs(java.lang.String s)
|
static void |
warning(java.lang.String message)
Print a warning message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GUI gui
protected AudioPlayer audioPlayer
protected AudioProcessor audioProcessor
protected Chooser fileChooser
protected java.lang.String audioIn
protected java.lang.String textOutputFile
protected java.lang.String beatsIn
protected java.lang.String beatsFile
protected java.lang.String featureFile
protected java.lang.String argsFile
protected boolean onsetOnly
protected int useAnnotation
protected java.io.BufferedReader reader
protected boolean playWithBeats
protected boolean batchMode
protected boolean silentFlag
protected static boolean ignoreWarnings
Constructor Detail |
---|
public BeatRoot(java.lang.String[] args)
args
- Optional command line arguments.processArgs(String[])
Method Detail |
---|
public void processArgs(java.lang.String[] args)
protected java.lang.String[] getArgs()
argsFile
, and converts
it into an array of Strings, allowing for quoted strings.
String[]
public static java.lang.String[] stringToArgs(java.lang.String s)
public static void quit()
public static void warning(java.lang.String message)
message
- The warning messagepublic static void error(java.lang.String message)
message
- The error messagepublic static void main(java.lang.String[] args)
args
- Optional command line arguments (see constructor for details)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |