public class LilypondImporter extends MidiParser
This class is used to import a LilyPond file using the lilypond executable. This works only if LilyPond 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 |
|---|
LilypondImporter() |
| 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 a LilyPond 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 a LilyPond file.
parse in interface IParserparse in class MidiParserfileAsObj - LilyPond file to be parsed.ParseException - If the file or URL can not be parsed correctly.