Example #1
0
 public IEnumerable <VstCCParam> GetParameters()
 {
     for (int i = 0; i < plugin.PluginInfo.ParameterCount; i++)
     {
         yield return(VstCCParam.Load(this, i));
     }
 }
Example #2
0
 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)));
     }
 }
Example #3
0
        static public VstCCParam Load(VstCCPgm p, int id)
        {
            VstCCParam pc = new VstCCParam()
            {
                ID = id, ProgramID = p.ID
            };

            pc.Stub = p.Stub;
            return(pc);
        }
Example #4
0
 public static VstCCParam Load(VstCCPgm p, int id)
 {
     VstCCParam pc = new VstCCParam(){ ID = id, ProgramID = p.ID };
     pc.Stub = p.Stub;
     return pc;
 }
Example #5
0
 /// 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; }
 }
Example #6
0
 /// 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; }
 }
Example #7
0
 public VstCCParam this[int i] {
     get { return(VstCCParam.Load(this, i)); }
 }
Example #8
0
 /// 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; }
 }
Example #9
0
 /// 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; }
 }