public static void Initialize() { TimeStretchProfiles = new Dictionary <string, TimeStretchProfile>(); // TODO: Load all profiles from an XML file // TODO: AutomaticAA must be kept hard coded/built in the code TimeStretchProfile profile = new TimeStretchProfile(); profile.Id = "AutomaticAA"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 0; profile.Sequence = 0; profile.Overlap = 0; profile.Description = "Automatic with AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_RockPop1"; profile.UseAAFilter = true; profile.AAFilterLength = 192; profile.SeekWindow = 90; profile.Sequence = 30; profile.Overlap = 30; profile.Description = "Rock/Pop 1 with Strong AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_RockPop2"; profile.UseAAFilter = true; profile.AAFilterLength = 64; profile.SeekWindow = 120; profile.Sequence = 60; profile.Overlap = 60; profile.Description = "Rock/Pop 2 with Soft AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_SpeechAA"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 40; profile.Sequence = 10; profile.Overlap = 10; profile.Description = "Speech 1 with AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_Optimum"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 80; profile.Sequence = 20; profile.Overlap = 20; profile.Description = "Optimum for Music and Speech"; TimeStretchProfiles.Add(profile.Id, profile); if (TimeStretchProfiles.TryGetValue(Properties.Settings.Default.DefaultTimeStretchProfile, out profile)) { DefaultProfile = profile; } else { DefaultProfile = TimeStretchProfiles["AutomaticAA"]; } }
public static void Initialize() { TimeStretchProfiles = new Dictionary<string, TimeStretchProfile>(); // TODO: Load all profiles from an XML file // TODO: AutomaticAA must be kept hard coded/built in the code TimeStretchProfile profile = new TimeStretchProfile(); profile.Id = "AutomaticAA"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 0; profile.Sequence = 0; profile.Overlap = 0; profile.Description = "Automatic with AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_RockPop1"; profile.UseAAFilter = true; profile.AAFilterLength = 192; profile.SeekWindow = 90; profile.Sequence = 30; profile.Overlap = 30; profile.Description = "Rock/Pop 1 with Strong AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_RockPop2"; profile.UseAAFilter = true; profile.AAFilterLength = 64; profile.SeekWindow = 120; profile.Sequence = 60; profile.Overlap = 60; profile.Description = "Rock/Pop 2 with Soft AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_SpeechAA"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 40; profile.Sequence = 10; profile.Overlap = 10; profile.Description = "Speech 1 with AA Filter"; TimeStretchProfiles.Add(profile.Id, profile); profile = new TimeStretchProfile(); profile.Id = "Practice#_Optimum"; profile.UseAAFilter = true; profile.AAFilterLength = 128; profile.SeekWindow = 80; profile.Sequence = 20; profile.Overlap = 20; profile.Description = "Optimum for Music and Speech"; TimeStretchProfiles.Add(profile.Id, profile); if (TimeStretchProfiles.TryGetValue(Properties.Settings.Default.DefaultTimeStretchProfile, out profile)) DefaultProfile = profile; else DefaultProfile = TimeStretchProfiles["AutomaticAA"]; }