Example #1
0
        public static Bpm Deserialize(string bpmValue)
        {
            var bpm = new Bpm();

            var values = bpmValue.Split('=').Select(x => x.Trim()).ToArray();

            float.TryParse(values[0], out bpm.beat);
            float.TryParse(values[1], out bpm.bpm);

            return(bpm);
        }
Example #2
0
        public static Bpms Deserialize(List <string> parameters)
        {
            var bpms = new Bpms();

            var bpmValues = parameters[1].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var bpmValue in bpmValues)
            {
                bpms.bpms.Add(Bpm.Deserialize(bpmValue));
            }

            return(bpms);
        }