Inheritance: AudioLib.Modules.TransferVariable
        public void InitializeDevice()
        {
            DevInfo.DeviceID = "Low Profile - Smash Master";
            #if DEBUG
            DevInfo.DeviceID = DevInfo.DeviceID + " - Dev";
            #endif
            DevInfo.Developer = "Valdemar Erlingsson";
            DevInfo.EditorHeight = 0;
            DevInfo.EditorWidth = 0;
            DevInfo.HasEditor = false;
            DevInfo.Name = "Smash Master";
            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.5";
                p.Index = (uint)i;
                p.Name = ParameterNames[i];
                p.Steps = 0;
                p.Value = 0.5;
                ParameterInfo[i] = p;
            }

            Hp1 = new Highpass1((float)Samplerate);
            LpNoise = new Lowpass1((float)Samplerate);
            GainTF = new Gain(this.Samplerate);
            PostGain = new postGain(Samplerate);
            SaturateLP = new Lowpass1((float)Samplerate);
            ClipperHP = new Highpass1((float)Samplerate);

            Clipper = new LUT();
            Clipper.ReadRecord(Tables.D1N914TF.Split('\n'));
            Clipper.Table = Tables.Upsample(Clipper.Table, 100000);

            Tonestack = new Tonestack((float)Samplerate);
            TF2 = new TF2(Samplerate);
            Contour = new Contour(Samplerate);
            OutHP = new Highpass1((float)Samplerate);
            OutLP = new Lowpass1((float)Samplerate);

            // 16Hz, remove DC bias from input
            Hp1.SetParam(0, 16f);
            LpNoise.SetParam(0, 3500f);
            ClipperHP.SetParam(0, 10f);
            SaturateLP.SetParam(0, 15000);
            Tonestack.FenderMode = true;
            Tonestack.setComponents(0.022e-6, 0.22e-6, 0.022e-6, 1000, 5e6, 6.8e3, 25e3, 1e3, 100e3);
            OutHP.SetParam(0, 30f);

            // initialize all blocks
            UpdateAll();
        }
Ejemplo n.º 2
0
        public void InitializeDevice()
        {
            DevInfo.DeviceID = "Low Profile - Smash Master";
#if DEBUG
            DevInfo.DeviceID = DevInfo.DeviceID + " - Dev";
#endif
            DevInfo.Developer    = "Valdemar Erlingsson";
            DevInfo.EditorHeight = 0;
            DevInfo.EditorWidth  = 0;
            DevInfo.HasEditor    = false;
            DevInfo.Name         = "Smash Master";
            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.5";
                p.Index          = (uint)i;
                p.Name           = ParameterNames[i];
                p.Steps          = 0;
                p.Value          = 0.5;
                ParameterInfo[i] = p;
            }

            Hp1        = new Highpass1((float)Samplerate);
            LpNoise    = new Lowpass1((float)Samplerate);
            GainTF     = new Gain(this.Samplerate);
            PostGain   = new postGain(Samplerate);
            SaturateLP = new Lowpass1((float)Samplerate);
            ClipperHP  = new Highpass1((float)Samplerate);

            Clipper = new LUT();
            Clipper.ReadRecord(Tables.D1N914TF.Split('\n'));
            Clipper.Table = Tables.Upsample(Clipper.Table, 100000);

            Tonestack = new Tonestack((float)Samplerate);
            TF2       = new TF2(Samplerate);
            Contour   = new Contour(Samplerate);
            OutHP     = new Highpass1((float)Samplerate);
            OutLP     = new Lowpass1((float)Samplerate);

            // 16Hz, remove DC bias from input
            Hp1.SetParam(0, 16f);
            LpNoise.SetParam(0, 3500f);
            ClipperHP.SetParam(0, 10f);
            SaturateLP.SetParam(0, 15000);
            Tonestack.FenderMode = true;
            Tonestack.setComponents(0.022e-6, 0.22e-6, 0.022e-6, 1000, 5e6, 6.8e3, 25e3, 1e3, 100e3);
            OutHP.SetParam(0, 30f);

            // initialize all blocks
            UpdateAll();
        }