public InputIntervalBox(Interval inputInterval)
 {
     InitializeComponent();
     textLabel.Text = inputInterval.Abbreviation;
     added = false;
     interval = inputInterval;
 }
 public void playInterval(Interval intervalToPlay, bool ascending, int rootNote)
 {
 }
 public void playInterval(Interval intervalToPlay, int rootNote)
 {
 }
Example #4
0
        private void loadIntervalsFromXMLNode(XElement intervalReader)
        {
            intervals = new Dictionary<Guid, Interval>();

            foreach (XElement currentInterval in intervalReader.Elements("interval") ?? XElement.EmptySequence)
            {
                string intervalName = currentInterval.Attribute("name").Value;
                string intervalAbbreviation = currentInterval.Attribute("abbreviation").Value;

                string intervalDistanceString = currentInterval.Attribute("distance").Value;
                int intervalDistance = int.Parse(intervalDistanceString);

                string intervalIDString = currentInterval.Attribute("id").Value;
                Guid intervalID = Guid.Parse(intervalIDString);

                Interval newInterval = new Interval(intervalName, intervalAbbreviation, intervalDistance, intervalID);

                intervals.Add(intervalID, newInterval);
            }
        }