public void InitializeDevice()
{
DevInfo.DeviceID = "Low Profile - Biquad";
#if DEBUG
DevInfo.DeviceID = DevInfo.DeviceID + " - Dev";
#endif
DevInfo.Developer = "Valdemar Erlingsson";
DevInfo.EditorHeight = 0;
DevInfo.EditorWidth = 0;
DevInfo.HasEditor = false;
DevInfo.Name = "Biquad Filter";
DevInfo.ProgramCount = 1;
DevInfo.Type = DeviceType.Effect;
DevInfo.Version = 1000;
DevInfo.VstId = DeviceUtilities.GenerateIntegerId(DevInfo.DeviceID);
PortInfo[0].Direction = PortDirection.Input;
PortInfo[0].Name = "Stereo Input";
PortInfo[0].NumberOfChannels = 2;
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.0";
p.Index = (uint)i;
p.Name = ParameterNames[i];
p.Steps = 0;
p.Value = 0.0;
ParameterInfo[i] = p;
}
SetParameter(P_TYPE, 0.0);
SetParameter(P_FREQ, 0.5);
SetParameter(P_SLOPE, 0.5);
SetParameter(P_Q, 0.5);
SetParameter(P_GAIN, 0.5);
}