public void SetScale(string name)
        {
            BaseMusicData scale;

            if (dataStore.TryGetValue(name, out scale))
            {
                currScale     = scale;
                currScaleName = scale.name;
            }
        }
 protected void AddMusicData(string name, int[] notes)
 {
     // base behaviour is to add to dataStore, overwrite if already exists
     // ensure notes have at least one value
     if (notes.Length > 0)
     {
         BaseMusicData data = new BaseMusicData(name, notes);
         dataStore.Add(name, data);
     }
 }
 private void Setup()
 {
     CreateDefaultScales();
     currScaleName = "major";
     currScale     = dataStore[currScaleName];
 }