public class MusescoreExporter extends MidiExporter
This class is used to export a file from MIDI to something else using MuseScore. This works only if MuseScore is installed.
Steps:
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
programName |
sourceCharset, targetCharset
Constructor and Description |
---|
MusescoreExporter() |
Modifier and Type | Method and Description |
---|---|
ExportResult |
export(java.io.File file)
Exports a file.
|
protected java.lang.String |
getTargetCharset()
Determins and returns the target charset from the according charset combobox.
|
protected boolean |
mustIncludeRp026Tags()
Determins if RP-026 tags (charset switch or meta info) shall be included into the exported MIDI file or not.
|
cloneSequence
createFile
protected boolean mustIncludeRp026Tags()
Determins if RP-026 tags (charset switch or meta info) shall be included into the exported MIDI file or not.
Returns true per default but can be overridden by a derived class.
For Musescore exports, RP-026 tags shall be avoided. Musescore doesn’t understand the meaning anyway and would show them as text instead.
mustIncludeRp026Tags
in class MidiExporter
public ExportResult export(java.io.File file) throws ExportException
Exports a file.
export
in class MidiExporter
file
- file to be exportedExportException
- If the file can not be exported correctly..protected java.lang.String getTargetCharset()
MidiExporter
Determins and returns the target charset from the according charset combobox.
Can be overridden to return a charset from a different combobox or a hard-coded value, depending on the format.
getTargetCharset
in class MidiExporter