public JsonObject Exchange() { return(new JsonObject() { ["HoldBegin"] = HoldBegin.Exchange(), ["HoldEnd"] = HoldEnd.Exchange(), ["StepNotes"] = stepNotes.Select(s => s.Exchange()).ToList() }); }
public void Exchange(JsonObject json) { HoldBegin.Exchange(json["HoldBegin"]); HoldEnd.Exchange(json["HoldEnd"]); foreach (var step in json["StepNotes"]) { var tmp = new HoldRelay(new LanePotision(0), new TimingPosition(1, 0), new NoteSize(1)); tmp.Exchange(step); Put(tmp); } }