/// <summary>This method is a response to VstPluginManager.PluginListRefreshed</summary> public static void ItemsRefresh(ListView list, VstPluginManager PluginManager) { list.Items.Clear(); list.Groups.Clear(); list.ShowGroups = true; list.Groups.Add(group_effects,group_effects); list.Groups.Add(group_instruments,group_instruments); foreach (VstPlugin ctx in PluginManager.VstEffects) { ListViewItem lvItem = new ListViewItem(ctx.PluginCommandStub.GetEffectName()); lvItem.Group = list.Groups[group_effects]; lvItem.SubItems.Add(ctx.PluginCommandStub.GetProductString()); lvItem.SubItems.Add(ctx.PluginCommandStub.GetVendorString()); lvItem.SubItems.Add(IntVersion.GetString(ctx.PluginCommandStub.GetVendorVersion())); lvItem.SubItems.Add(ctx.Find<string>("PluginPath")); lvItem.Tag = ctx; list.Items.Add(lvItem); } foreach (VstPlugin ctx in PluginManager.VstInstruments) { ListViewItem lvItem = new ListViewItem(ctx.PluginCommandStub.GetEffectName()); lvItem.Group = list.Groups[group_instruments]; lvItem.SubItems.Add(ctx.PluginCommandStub.GetProductString()); lvItem.SubItems.Add(ctx.PluginCommandStub.GetVendorString()); lvItem.SubItems.Add(IntVersion.GetString(ctx.PluginCommandStub.GetVendorVersion())); lvItem.SubItems.Add(ctx.Find<string>("PluginPath")); lvItem.Tag = ctx; list.Items.Add(lvItem); } }
/// <summary>This method is a response to VstPluginManager.PluginListRefreshed</summary> public static void ItemsRefresh(TreeView tree, VstPluginManager PluginManager) { NodeVstI.Nodes.Clear(); foreach (VstPlugin ctx in PluginManager.VstInstruments) { TreeNode node = NodeVstI.Nodes.Add(ctx.Title); node.Tag = ctx; node.ToolTipText = string.Format("{0}\nby {1}",ctx.Title,ctx.Vendor); } NodeVstE.Nodes.Clear(); foreach (VstPlugin ctx in PluginManager.VstEffects) { TreeNode node = NodeVstE.Nodes.Add(ctx.Title); node.Tag = ctx; node.ToolTipText = string.Format("{0}\nby {1}",ctx.Title,ctx.Vendor); } }
public NAudioVstContainer(IMidiParserUI parent) { this.parent = parent; this.vstPlayer = new NAudioVST(this); this.pluginManager = new VstPluginManager(this); }
/// <summary>Action: ListView.ItemSelectionChangd (</summary> public static void HandlePluginSelected(ListView list, VstPluginManager PluginManager) { if (list.SelectedItems.Count > 0) PluginManager.ActivePlugin = list.SelectedItems[0].Tag as VstPlugin; // else PluginManager.ActivePlugin = null; }
/// <summary>Handles ActivePluginReset event</summary> public static void HandlePluginReload(ListView list, VstPluginManager PluginManager) { if ( list.SelectedItems.Count > 0 ) list.SelectedItems[0].Tag = PluginManager.ActivePlugin; }
public ChannelAssignment Create( VstPluginManager manager, int index) { return Create(manager,index,null,null,null); }
public ChannelAssignment Create( VstPluginManager manager, int index, string c_from, string c_to, string[] cc) { ChannelAssignment module = new ChannelAssignment(); module.GeneratorIndex = index; module.From = c_from; module.To = c_to; module.Pat = manager.GeneratorModules[index].PluginCommandStub.GetProgram(); if (cc!=null) module.CC = string.Join(",",cc); return module; }
static void ActivePluginChanged(TreeView tree, VstPluginManager PluginManager) { }
/// <summary>Action: ListView.ItemSelectionChangd (</summary> public static void Reload(TreeView tree, VstPluginManager PluginManager) { // PluginManager.ReloadActivePlugin(); }