public class MusescoreImporter extends MidiParser
This class is used to import a file using the MuseScore. This works only if MuseScore 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 |
---|
MusescoreImporter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFilePath()
Returns the absolute path of the successfully parsed file.
|
void |
parse(java.io.File file)
Imports a file using MuseScore.
|
createSequence, replaceChannelVolume
getFileFormat, getFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transpose
public static java.lang.String getFilePath()
Returns the absolute path of the successfully parsed file. Returns null, if no file has been successfully imported or the successfully imported file has not been imported by MuseScore.
public void parse(java.io.File file) throws ParseException
Imports a file using MuseScore.
parse
in interface IParser
parse
in class MidiParser
file
- file to be imported.ParseException
- If the file can not be parsed correctly.