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, midiFileCharset
FORMAT_ABC, FORMAT_ALDA, FORMAT_LY, FORMAT_MIDI, FORMAT_MIDICAPL, FORMAT_MUSESCORE, transposeLevel
Constructor and Description |
---|
LilypondImporter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFilePath()
Returns the absolute path of the successfully parsed LilyPond file.
|
void |
parse(java.io.File file)
Parses a LilyPond file.
|
createSequence, replaceChannelVolume
getFileFormat, getFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transpose
public static java.lang.String getFilePath()
Returns the absolute path of the successfully parsed LilyPond file. Returns null, if no file has been successfully parsed or the last successfully parsed file is not a LilyPond file.
public void parse(java.io.File file) throws ParseException
Parses a LilyPond file.
parse
in interface IParser
parse
in class MidiParser
file
- LilyPond file to be parsed.ParseException
- If the file can not be parsed correctly.