public void InitializeDevice() { DevInfo.DeviceID = "Low Profile - Mr. Fuzz"; #if DEBUG DevInfo.DeviceID = DevInfo.DeviceID + " - Dev"; #endif DevInfo.Developer = "Valdemar Erlingsson"; //DevInfo.EditorHeight = e.Height; //DevInfo.EditorWidth = e.Width; DevInfo.HasEditor = false; DevInfo.Name = "Mr. Fuzz"; DevInfo.ProgramCount = 1; DevInfo.Type = DeviceType.Effect; DevInfo.Version = 1000; DevInfo.VstId = DeviceUtilities.GenerateIntegerId(DevInfo.DeviceID); PortInfo[0].Direction = PortDirection.Input; PortInfo[0].Name = "Mono Input"; PortInfo[0].NumberOfChannels = 1; PortInfo[1].Direction = PortDirection.Output; PortInfo[1].Name = "Stereo Output"; PortInfo[1].NumberOfChannels = 2; for (int i = 0; i < ParameterInfo.Length; i++) { var p = new Parameter(); p.Display = "0.5"; p.Index = (uint)i; p.Name = ParameterNames[i]; p.Steps = 0; p.Value = 0.5; ParameterInfo[i] = p; } HpInput = new Highpass1((float)Samplerate); TFStage = new MrFuzz.TFStage((float)Samplerate); DiodeStage = new LUT(); DiodeStage.ReadRecord(Table.DiodeResponse); DiodeStage.Table = Utils.MovingAve(DiodeStage.Table, (int)(DiodeStage.Table.Length / 200.0)); DiodeStage.Table = Table.Upsample(DiodeStage.Table, 100000); LowpassFilter = new Lowpass1((float)Samplerate); HpOutput = new Highpass1((float)Samplerate); // initialize all blocks UpdateAll(); }