public SFBank(SoundFont2 sf, int index) { this.index = index; this.bank = sf.hyde.phdr[index].bank; this.preset = sf.hyde.phdr[index].preset; this.PresetName = IOHelper.GetString(sf.hyde.phdr[index].presetName); }
static public string GetKeyRange(SoundFont2 mod, int gen) { int hi = (int)mod.hyde.igen[gen].genHi, lo = (int)mod.hyde.igen[gen].genLo; return(string.Format("{0} to {1}", mod.nn[hi], mod.nn[lo])); }
static public string GetRootKey(SoundFont2 mod, SoundFont2.IGEN gen) { return(mod.nn[gen.genHi]); }
static public string GenString(SoundFont2 sf, int genIndex) { return(((SFGenConst)sf.hyde.igen[genIndex].gen).ToString()); }
static public string[] Range2StringA(SoundFont2 sf, int genIndex) { return(new string[] { Range2String(sf, genIndex) }); }
static public string Range2String(SoundFont2 sf, int genIndex) { return(string.Format("{0:00#} - {1:00#}", sf.hyde.igen[genIndex].genHi, sf.hyde.igen[genIndex].genLo)); }