public void ApplyPgm(int id, float value) { var pgm = new VstCCPgm(this, id); pgm.Stub.SetParameter(id, value); pgm = null; }
void ProgramAction_BackupPgm(int selectedPgm) { var pgm = new VstCCPgm(this, (selectedPgm != -1) ? selectedPgm : 0); pgmBackup = pgm.GetChunk(false); pgm = null; }
void ProgramAction_BackupPrs(int pat) { var pgm = new VstCCPgm(this, (pat != -1) ? pat : 0); pgmBackup = pgm.GetChunk(true); pgm = null; }
void ProgramAction_SetChunk(int id, byte[] value, bool isPat) { var pgm = new VstCCPgm(this, id); if (value != null && value != Bmpty) { pgm.Apply(this); } }
static public VstCCParam Load(VstCCPgm p, int id) { VstCCParam pc = new VstCCParam() { ID = id, ProgramID = p.ID }; pc.Stub = p.Stub; return(pc); }
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); }
public static VstCCParam Load(VstCCPgm p, int id) { VstCCParam pc = new VstCCParam(){ ID = id, ProgramID = p.ID }; pc.Stub = p.Stub; return pc; }
public void InitializePrograms() { programs.Clear(); programs.AddRange(VstCCPgm.EnumPrograms(this)); }
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); } }