public IEnumerable <VstCCParam> GetParameters() { for (int i = 0; i < plugin.PluginInfo.ParameterCount; i++) { yield return(VstCCParam.Load(this, i)); } }
public IEnumerable <KeyValuePair <int, VstCCParam> > GetKeyedParameters() { for (int i = 0; i < plugin.PluginInfo.ParameterCount; i++) { yield return(new KeyValuePair <int, VstCCParam>(i, VstCCParam.Load(this, i))); } }
static public VstCCParam Load(VstCCPgm p, int id) { VstCCParam pc = new VstCCParam() { ID = id, ProgramID = p.ID }; pc.Stub = p.Stub; return(pc); }
public static VstCCParam Load(VstCCPgm p, int id) { VstCCParam pc = new VstCCParam(){ ID = id, ProgramID = p.ID }; pc.Stub = p.Stub; return pc; }
/// i haven't tested throwing this call when a plugin is closed, /// or isnt running. public void SetParamAutomated(VstCCParam value) { try { plugin.HostCommandStub.SetParameterAutomated(value.ID,value.Value); } catch { throw; } }
/// i haven't tested throwing this call when a plugin is closed, /// or isnt running. public void SetParam(VstCCParam value) { try { plugin.PluginCommandStub.SetParameter(value.ID,value.Value); } catch { throw; } }
public VstCCParam this[int i] { get { return(VstCCParam.Load(this, i)); } }
/// i haven't tested throwing this call when a plugin is closed, /// or isnt running. public void SetParam(VstCCParam value) { try { plugin.PluginCommandStub.SetParameter(value.ID, value.Value); } catch { throw; } }
/// i haven't tested throwing this call when a plugin is closed, /// or isnt running. public void SetParamAutomated(VstCCParam value) { try { plugin.HostCommandStub.SetParameterAutomated(value.ID, value.Value); } catch { throw; } }