Example #1
0
        public void ApplyPgm(int id, float value)
        {
            var pgm = new VstCCPgm(this, id);

            pgm.Stub.SetParameter(id, value);
            pgm = null;
        }
Example #2
0
        void ProgramAction_BackupPgm(int selectedPgm)
        {
            var pgm = new VstCCPgm(this, (selectedPgm != -1) ? selectedPgm : 0);

            pgmBackup = pgm.GetChunk(false);
            pgm       = null;
        }
Example #3
0
        void ProgramAction_BackupPrs(int pat)
        {
            var pgm = new VstCCPgm(this, (pat != -1) ? pat : 0);

            pgmBackup = pgm.GetChunk(true);
            pgm       = null;
        }
Example #4
0
        void ProgramAction_SetChunk(int id, byte[] value, bool isPat)
        {
            var pgm = new VstCCPgm(this, id);

            if (value != null && value != Bmpty)
            {
                pgm.Apply(this);
            }
        }
Example #5
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 #6
0
 void PgmInit(INaudioVstContainer owner, VstPlugin Context, int selectedPgm)
 {
     if (selectedPgm!=-1) {
         VstCCPgm backupPgm = new VstCCPgm( Context, selectedPgm );
         pgmBackup = backupPgm.GetChunk(true);
     }
     Notify("Initialized");
     //			foreach (VstCCPgm program in VstCCPgm.EnumPrograms(Context))
     //				comboBox1.Items.Add(program);
     //			if (selectedPgm != -1) comboBox1.SelectedIndex = selectedPgm;
     //			comboBox1.SelectedIndexChanged += new EventHandler(PgmChanged);
 }
Example #7
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 #8
0
 public void InitializePrograms()
 {
     programs.Clear(); programs.AddRange(VstCCPgm.EnumPrograms(this));
 }
Example #9
0
        void ProgramAction_SetValue(int id, float value)
        {
            var pgm = new VstCCPgm(this, id);

            pgm.SetParam(id, value);
        }
 public void ParamTest(System.Windows.Forms.ComboBox cbActiveParams, VstPlugin plugin)
 {
     cbActiveParams.Items.Clear();
     var ccp = new VstCCPgm(plugin,plugin.ProgramIndex);
     foreach (int i in ParameterCount(plugin))
     {
         VstCCParam para = ccp[i];
         cbActiveParams.Items.Add(para);
     }
 }