public class LilypondExporter extends MidiExporter
This class is used to export a LilyPond file using the midi2ly executable (belongs to LilyPond). This works only if midi2ly is available.
Steps:
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
programName |
sourceCharset, targetCharset
Constructor and Description |
---|
LilypondExporter() |
Modifier and Type | Method and Description |
---|---|
ExportResult |
export(java.io.File file)
Exports an LilyPond 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 Lilypond exports, RP-026 tags shall be avoided. Lilypond 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 an LilyPond file.
export
in class MidiExporter
file
- LilyPond file to be exported.ExportException
- 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