public class AbcImporter extends MidiParser
This class is used to import an ABC file using the abc2midi executable (belongs to abcMIDI). https://ifdo.ca/~seymour/runabc/top.html
This works only if abc2midi 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 |
---|
AbcImporter() |
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 ABC file.
|
createSequence, replaceChannelVolume
getFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transpose
public void parse(java.lang.Object fileAsObj) throws ParseException
Parses an ABC file.
parse
in interface IParser
parse
in class MidiParser
fileAsObj
- ABC file to be parsed.ParseException
- If the file or URL can not be parsed correctly.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