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
transposeLevel
Constructor and Description |
---|
MusescoreImporter() |
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)
Imports a file using MuseScore.
|
createSequence, replaceChannelVolume
getFileName, getFilePath, getTransposeLevel, postprocessSequence, preprocess, setTransposeLevel, transpose
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
public void parse(java.lang.Object fileAsObj) throws ParseException
Imports a file using MuseScore.
parse
in interface IParser
parse
in class MidiParser
fileAsObj
- file to be imported.ParseException
- If the file or URL can not be parsed correctly.