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, midiFileCharsettransposeLevel| 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, replaceChannelVolumegetFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transposeprotected int getImportFormat()
MidiParserReturns 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 MidiParserpublic void parse(java.lang.Object fileAsObj)
throws ParseException
Parses an ALDA file.
parse in interface IParserparse in class MidiParserfileAsObj - ALDA file to be parsed.ParseException - If the file or URL can not be parsed correctly.