private void InitializeParameters() { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = _plugin.PluginPrograms.ParameterInfos; // retrieve the category for all delay parameters. VstParameterCategory paramCategory = _plugin.PluginPrograms.GetParameterCategory(ParameterCategoryName); // delay time parameter VstParameterInfo paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Transp."; paramInfo.Label = "Halfs"; paramInfo.ShortLabel = "#"; paramInfo.MinInteger = -100; paramInfo.MaxInteger = 100; paramInfo.LargeStepFloat = 5.0f; paramInfo.SmallStepFloat = 1.0f; paramInfo.StepFloat = 2.0f; paramInfo.DefaultValue = 0.0f; TransposeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); }
private void InitializeParameters(PluginParameters parameters) { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = parameters.ParameterInfos; // retrieve the category for all delay parameters. VstParameterCategory paramCategory = parameters.GetParameterCategory(ParameterCategoryName); // delay time parameter var paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Transp.", Label = "Halfs", ShortLabel = "#", MinInteger = -100, MaxInteger = 100, LargeStepFloat = 5.0f, SmallStepFloat = 1.0f, StepFloat = 2.0f, DefaultValue = 0.0f }; TransposeMgr = paramInfo .Normalize() .ToManager(); parameterInfos.Add(paramInfo); }
private void InitializeParameters() { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = _plugin.PluginPrograms.ParameterInfos; // retrieve the category for all delay parameters. VstParameterCategory paramCategory = _plugin.PluginPrograms.GetParameterCategory(ParameterCategoryName); // delay time parameter VstParameterInfo paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Gain", Label = "Db", ShortLabel = "Db", MinInteger = -100, MaxInteger = 100, LargeStepFloat = 20.0f, SmallStepFloat = 1.0f, StepFloat = 10.0f, DefaultValue = 0.0f }; GainMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); }
/// <summary> /// Initialized VstParameterManagerDict by createing a VstParameterManager for each MSS /// parameter. /// </summary> protected void InitializeVstParams() { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = this.pluginPrograms.ParameterInfos; //itterate over each MssParameterID foreach (MssParameterID paramId in MssParameterID.GetValues(typeof(MssParameterID))) { VstParameterInfo paramInfo = MssToVstParameterInfo(paramId); parameterInfos.Add(paramInfo); VstParameterManager paramMgr = new VstParameterManager(paramInfo); //Adds listener to changes made to a parameter from the host paramMgr.PropertyChanged += new PropertyChangedEventHandler(VstParameterManager_PropertyChanged); VstParameterManagerDict.Add(paramId, paramMgr); } }
private void InitializeParameters() { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = _plugin.PluginPrograms.ParameterInfos; // retrieve the category for all melter parameters. VstParameterCategory paramCategory = _plugin.PluginPrograms.GetParameterCategory(ParameterCategoryName); var paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Tap"; paramInfo.Label = "Tap"; paramInfo.ShortLabel = "|"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 2; paramInfo.LargeStepFloat = 1.0f; paramInfo.SmallStepFloat = 1.0f; paramInfo.StepFloat = 1.0f; paramInfo.CanRamp = true; paramInfo.DefaultValue = 0f; InputTapMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "LeftGain"; paramInfo.Label = "LftGn"; paramInfo.ShortLabel = "%"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1; paramInfo.LargeStepFloat = 0.10f; paramInfo.SmallStepFloat = 0.03f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 1.0f; LeftVolumeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "RghtGain"; paramInfo.Label = "RghtGn"; paramInfo.ShortLabel = "%"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1; paramInfo.LargeStepFloat = 0.10f; paramInfo.SmallStepFloat = 0.03f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 1.0f; RightVolumeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Invert"; paramInfo.Label = "Invert"; paramInfo.ShortLabel = "!"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1; paramInfo.LargeStepFloat = 1f; paramInfo.SmallStepFloat = 1f; paramInfo.StepFloat = 1f; paramInfo.IsSwitch = true; paramInfo.DefaultValue = 0f; this.InverterMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Balance"; paramInfo.Label = "Balance"; paramInfo.ShortLabel = "Bal"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 240; paramInfo.LargeStepFloat = 10f; paramInfo.SmallStepFloat = 3f; paramInfo.StepFloat = 5f; paramInfo.DefaultValue = 120f; this.OutputBalanceMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); }
/// <summary> /// Constructeur /// </summary> public Delay() { // On instancie une nouvelle collection d'informations pour les paramètres du délai _paramInfos = new VstParameterInfoCollection(); #region Initialize Parameters // Paramètres du temps du délai VstParameterInfo paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "dt"; paramInfo.Label = "Delay Time"; paramInfo.ShortLabel = "T-Dly:"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1000; paramInfo.LargeStepFloat = 100.0f; paramInfo.SmallStepFloat = 1.0f; paramInfo.StepFloat = 10.0f; paramInfo.DefaultValue = 200f; _delayTimeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // Paramètre de feedback du délai paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "fb"; paramInfo.Label = "Feedback"; paramInfo.ShortLabel = "Feedbk:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.2f; _feedbackMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // Paramètre de "dry" du délai (à quel niveau est le signal d'origine) paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "dl"; paramInfo.Label = "Dry Level"; paramInfo.ShortLabel = "DryLvl:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.8f; _dryLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // Paramètre de "wet" du délai (à quel niveau est le signal traité) paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "wl"; paramInfo.Label = "Wet Level"; paramInfo.ShortLabel = "WetLvl:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.4f; _wetLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); #endregion // On s'abonne à l'event de changement de la propriété de temps du délai _delayTimeMgr.PropertyChanged += new PropertyChangedEventHandler(_delayTimeMgr_PropertyChanged); }
// This method initializes the plugin parameters this Dsp component owns. private void InitializeParameters() { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = _plugin.PluginPrograms.ParameterInfos; // retrieve the category for all delay parameters. VstParameterCategory paramCategory = _plugin.PluginPrograms.GetParameterCategory(ParameterCategoryName); // delay time parameter VstParameterInfo paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Time"; paramInfo.Label = "MilSecs"; paramInfo.ShortLabel = "ms"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1000; paramInfo.LargeStepFloat = 100.0f; paramInfo.SmallStepFloat = 1.0f; paramInfo.StepFloat = 10.0f; paramInfo.DefaultValue = 200f; DelayTimeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); // feedback parameter paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Feedbck"; paramInfo.Label = "Factor"; paramInfo.ShortLabel = "*"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.2f; FeedbackMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); // dry Level parameter paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Dry Lvl"; paramInfo.Label = "Decibel"; paramInfo.ShortLabel = "Db"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.8f; DryLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); // wet Level parameter paramInfo = new VstParameterInfo(); paramInfo.Category = paramCategory; paramInfo.CanBeAutomated = true; paramInfo.Name = "Wet Lvl"; paramInfo.Label = "Decibel"; paramInfo.ShortLabel = "Db"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.4f; WetLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); parameterInfos.Add(paramInfo); }
/// <summary> /// Constructs a new instance. /// </summary> public Delay() { _paramInfos = new VstParameterInfoCollection(); #region Initialize Parameters // delay time parameter VstParameterInfo paramInfo = new VstParameterInfo { CanBeAutomated = true, Name = "dt", Label = "Delay Time", ShortLabel = "T-Dly:", MinInteger = 0, MaxInteger = 1000, LargeStepFloat = 100.0f, SmallStepFloat = 1.0f, StepFloat = 10.0f, DefaultValue = 200f }; _delayTimeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // feedback parameter paramInfo = new VstParameterInfo { CanBeAutomated = true, Name = "fb", Label = "Feedback", ShortLabel = "Feedbk:", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.2f }; _feedbackMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // dry Level parameter paramInfo = new VstParameterInfo { CanBeAutomated = true, Name = "dl", Label = "Dry Level", ShortLabel = "DryLvl:", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.8f }; _dryLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // wet Level parameter paramInfo = new VstParameterInfo { CanBeAutomated = true, Name = "wl", Label = "Wet Level", ShortLabel = "WetLvl:", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.4f }; _wetLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); #endregion _delayTimeMgr.PropertyChanged += new PropertyChangedEventHandler(_delayTimeMgr_PropertyChanged); }
/// <summary> /// Constructs a new instance. /// </summary> public Delay() { _paramInfos = new VstParameterInfoCollection(); #region Initialize Parameters // delay time parameter VstParameterInfo paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "dt"; paramInfo.Label = "Delay Time"; paramInfo.ShortLabel = "T-Dly:"; paramInfo.MinInteger = 0; paramInfo.MaxInteger = 1000; paramInfo.LargeStepFloat = 100.0f; paramInfo.SmallStepFloat = 1.0f; paramInfo.StepFloat = 10.0f; paramInfo.DefaultValue = 200f; _delayTimeMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // feedback parameter paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "fb"; paramInfo.Label = "Feedback"; paramInfo.ShortLabel = "Feedbk:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.2f; _feedbackMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // dry Level parameter paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "dl"; paramInfo.Label = "Dry Level"; paramInfo.ShortLabel = "DryLvl:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.8f; _dryLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); // wet Level parameter paramInfo = new VstParameterInfo(); paramInfo.CanBeAutomated = true; paramInfo.Name = "wl"; paramInfo.Label = "Wet Level"; paramInfo.ShortLabel = "WetLvl:"; paramInfo.LargeStepFloat = 0.1f; paramInfo.SmallStepFloat = 0.01f; paramInfo.StepFloat = 0.05f; paramInfo.DefaultValue = 0.4f; _wetLevelMgr = new VstParameterManager(paramInfo); VstParameterNormalizationInfo.AttachTo(paramInfo); _paramInfos.Add(paramInfo); #endregion //_delayTimeMgr.ValueChanged += new System.EventHandler<System.EventArgs>(_delayTimeMgr_ValueChanged); _delayTimeMgr.PropertyChanged += new PropertyChangedEventHandler(_delayTimeMgr_PropertyChanged); }
public PressorParameters() { Parameters = new VstParameterInfoCollection(); #region params var threshInfo = new VstParameterInfo { CanBeAutomated = true, Name = "Thrshld", Label = "Threshold", ShortLabel = "-db", MinInteger = 0, MaxInteger = 60, SmallStepFloat = 0.1f, StepFloat = 1f, LargeStepFloat = 3f, DefaultValue = 12, }; Parameters.Add(threshInfo); var ratInfo = new VstParameterInfo { CanBeAutomated = true, Name = "Ratio", Label = "Ratio", ShortLabel = ": 1", MinInteger = 1, MaxInteger = 60, StepInteger = 1, LargeStepInteger = 3, DefaultValue = 4f, }; Parameters.Add(ratInfo); var attInfo = new VstParameterInfo { CanBeAutomated = true, Name = "Attack", Label = "Attack", ShortLabel = "ms", MinInteger = 1, MaxInteger = 1000, StepInteger = 1, LargeStepInteger = 10, DefaultValue = 50f, }; Parameters.Add(attInfo); var relInfo = new VstParameterInfo { CanBeAutomated = true, CanRamp = true, Name = "Release", Label = "Release", ShortLabel = "ms", MinInteger = 1, MaxInteger = 1000, StepInteger = 1, LargeStepInteger = 10, DefaultValue = 50f, }; Parameters.Add(relInfo); var kneeInfo = new VstParameterInfo { CanBeAutomated = true, CanRamp = true, Name = "Knee", Label = "Knee", ShortLabel = "", MinInteger = 0, MaxInteger = 10, StepInteger = 1, LargeStepInteger = 1, DefaultValue = 0, }; Parameters.Add(kneeInfo); var mGainInfo = new VstParameterInfo { CanBeAutomated = true, CanRamp = true, Name = "MkGain", Label = "MakeUpGain", ShortLabel = "db", MinInteger = 0, MaxInteger = 60, StepInteger = 1, LargeStepInteger = 1, DefaultValue = 0, }; Parameters.Add(mGainInfo); #endregion _thresholdMgr = Parameters.ElementAt(0).Normalize().ToManager(); _ratioMgr = Parameters.ElementAt(1).Normalize().ToManager(); _attackMgr = Parameters.ElementAt(2).Normalize().ToManager(); _releaseMgr = Parameters.ElementAt(3).Normalize().ToManager(); _kneeMgr = Parameters.ElementAt(4).Normalize().ToManager(); _makeupMgr = Parameters.ElementAt(5).Normalize().ToManager(); SetUpInitialValues(); SetUpPropertyChangedEvents(); }
// This method initializes the plugin parameters this Dsp component owns. private void InitializeParameters(PluginParameters parameters) { // all parameter definitions are added to a central list. VstParameterInfoCollection parameterInfos = parameters.ParameterInfos; // retrieve the category for all delay parameters. VstParameterCategory paramCategory = parameters.GetParameterCategory(ParameterCategoryName); // delay time parameter var paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Time", Label = "MilSecs", ShortLabel = "ms", MinInteger = 0, MaxInteger = 1000, LargeStepInteger = 100, StepInteger = 10, DefaultValue = 200f }; DelayTimeMgr = paramInfo .Normalize() .ToManager(); parameterInfos.Add(paramInfo); // feedback parameter paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Feedbck", Label = "Factor", ShortLabel = "*", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.4f }; FeedbackMgr = paramInfo .Normalize() .ToManager(); parameterInfos.Add(paramInfo); // dry Level parameter paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Dry Lvl", Label = "Decibel", ShortLabel = "Db", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.8f }; DryLevelMgr = paramInfo .Normalize() .ToManager(); parameterInfos.Add(paramInfo); // wet Level parameter paramInfo = new VstParameterInfo { Category = paramCategory, CanBeAutomated = true, Name = "Wet Lvl", Label = "Decibel", ShortLabel = "Db", LargeStepFloat = 0.1f, SmallStepFloat = 0.01f, StepFloat = 0.05f, DefaultValue = 0.4f }; WetLevelMgr = paramInfo .Normalize() .ToManager(); parameterInfos.Add(paramInfo); }