public class AldaImporter extends MidiParser
This class is used to import an ALDA file using the alda executable. This works only if ALDA is installed.
The process contains the following steps:
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
programName |
chosenCharset, CTRL_CHANGE_BALANCE, CTRL_CHANGE_BANK_SELECT, CTRL_CHANGE_FOOT_CONTROLLER, CTRL_CHANGE_MODULATION_WHEEL, CTRL_CHANGE_PAN, CTRL_CHANGE_VOLUME, midiFileCharset
transposeLevel
Constructor and Description |
---|
AldaImporter() |
Modifier and Type | Method and Description |
---|---|
protected int |
getImportFormat()
Returns the import format defined in
SequenceCreator as IMPORT_FORMAT_*. |
void |
parse(java.lang.Object fileAsObj)
Parses an ALDA file.
|
createSequence, replaceChannelVolume
getFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transpose
protected int getImportFormat()
MidiParser
Returns the import format defined in SequenceCreator
as IMPORT_FORMAT_*.
Returns SequenceCreator.IMPORT_FORMAT_MIDI
by default. Can be overridden by foreign format importers like ALDA, ABC, and so on.
getImportFormat
in class MidiParser
public void parse(java.lang.Object fileAsObj) throws ParseException
Parses an ALDA file.
parse
in interface IParser
parse
in class MidiParser
fileAsObj
- ALDA file to be parsed.ParseException
- If the file or URL can not be parsed correctly.