artcl0ud_rc-racer-prototype/Assets/MidiPlayer/Scripts/MPTKSoundFont/ImBank.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;


namespace MidiPlayerTK
{
    /// <summary>
    /// ImBank of an ImSoundFont
    /// </summary>
    public class ImBank
    {
        public int BankNumber;
        //public ImPreset[] Presets;
        public HiPreset[] defpresets;
        [XmlIgnore]
        public string Description = "DEPRECATED";
        [XmlIgnore]
        public int PatchCount;

        public List<string> GetDescription()
        {
            List<string> description = new List<string>();
            try
            {
                if (defpresets != null)
                    foreach (HiPreset preset in defpresets)
                        if (preset != null)
                        {
                            description.Add(string.Format("[{0:000}] {1}", preset.Num, preset.Name));
                        }
            }
            catch (System.Exception ex)
            {
                MidiPlayerGlobal.ErrorDetail(ex);
            }
            return description;
        }
    }
}
