Пример #1
0
 public IEnumerable <VstCCParam> GetParameters()
 {
     for (int i = 0; i < plugin.PluginInfo.ParameterCount; i++)
     {
         yield return(VstCCParam.Load(this, i));
     }
 }
Пример #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)));
     }
 }
Пример #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);
        }
Пример #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;
 }
Пример #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; }
 }
Пример #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; }
 }
Пример #7
0
 public VstCCParam this[int i] {
     get { return(VstCCParam.Load(this, i)); }
 }
Пример #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; }
 }
Пример #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; }
 }