alphaTab.model.JsonConverter
Description
This class can convert a full Score
instance to a simple JavaScript object and back for further
JSON serialization.
class JsonConverter
Methods
jsObjectToMidiEvent(unknown) | Converts the given JavaScript object into a MidiEvent object. |
jsObjectToMidiFile(unknown) | Converts the given JavaScript object into a MidiFile object. |
jsObjectToScore(unknown, Settings) | Converts the given JavaScript object into a score object. |
jsObjectToSettings(unknown) | Converts the given JavaScript object into a settings object. |
jsonToScore(string, Settings) | Converts the given JSON string back to a |
jsonToSettings(string) | Converts the given JSON string back to a |
midiEventToJsObject(MidiEvent) | Converts the given MidiEvent object into a serialized JavaScript object. |
midiFileToJsObject(MidiFile) | Converts the given MidiFile object into a serialized JavaScript object. |
scoreToJsObject(Score) | Converts the score into a JavaScript object without circular dependencies. |
scoreToJson(Score) | Converts the given score into a JSON encoded string. |
settingsToJsObject(Settings) | Converts the settings object into a JavaScript object for transmission between components or saving purposes. |
settingsToJson(Settings) | Converts the given settings into a JSON encoded string. |