alphaTab.model.JsonConverter
This class can convert a full Score instance to a simple JavaScript object and back for further
JSON serialization.
class JsonConverterMethodsโ
jsObjectToMidiEventโ
Converts the given JavaScript object into a MidiEvent object.
| Parameter | Summary |
|---|---|
midiEventAll | (no description) |
Returnsโ
The converted MidiEvent.
jsObjectToMidiFileโ
Converts the given JavaScript object into a MidiFile object.
| Parameter | Summary |
|---|---|
jsObjectAll | The javascript object to deserialize. |
Returnsโ
The converted MidiFile.
jsObjectToScoreโ
Converts the given JavaScript object into a score object.
| Parameter | Summary |
|---|---|
jsObjectAll | The javascript object created via |
settingsAll | The settings to use during conversion. |
Returnsโ
The converted score object.
jsObjectToSettingsโ
Converts the given JavaScript object into a settings object.
| Parameter | Summary |
|---|---|
jsObjectAll | The javascript object created via |
Returnsโ
The converted Settings object.
jsonToScoreโ
Converts the given JSON string back to a Score object.
| Parameter | Summary |
|---|---|
jsonAll | The JSON string |
settingsAll | The settings to use during conversion. |
Returnsโ
The converted score object.
jsonToSettingsโ
Converts the given JSON string back to a Score object.
static jsonToSettings(json: string): Settings| Parameter | Summary |
|---|---|
jsonAll | The JSON string |
Returnsโ
The converted settings object.
midiEventToJsObjectโ
Converts the given MidiEvent object into a serialized JavaScript object.
| Parameter | Summary |
|---|---|
midiEventAll | (no description) |
Returnsโ
A serialized MidiEvent object without ciruclar dependencies that can be used for further serializations.
midiFileToJsObjectโ
Converts the given MidiFile object into a serialized JavaScript object.
| Parameter | Summary |
|---|---|
midiAll | The midi file to convert. |
Returnsโ
A serialized MidiFile object without ciruclar dependencies that can be used for further serializations.
scoreToJsObjectโ
Converts the score into a JavaScript object without circular dependencies.
| Parameter | Summary |
|---|---|
scoreAll | The score object to serialize |
Returnsโ
A serialized score object without ciruclar dependencies that can be used for further serializations.
scoreToJsonโ
Converts the given score into a JSON encoded string.
static scoreToJson(score: Score): string| Parameter | Summary |
|---|---|
scoreAll | The score to serialize. |
Returnsโ
A JSON encoded string.
settingsToJsObjectโ
Converts the settings object into a JavaScript object for transmission between components or saving purposes.
| Parameter | Summary |
|---|---|
settingsAll | The settings object to serialize |
Returnsโ
A serialized settings object without ciruclar dependencies that can be used for further serializations.
settingsToJsonโ
Converts the given settings into a JSON encoded string.
static settingsToJson(settings: Settings): string| Parameter | Summary |
|---|---|
settingsAll | The settings to serialize. |
Returnsโ
A JSON encoded string.