예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        /// <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);
            }
        }
예제 #3
0
 public NAudioVstContainer(IMidiParserUI parent)
 {
     this.parent = parent;
     this.vstPlayer = new NAudioVST(this);
     this.pluginManager = new VstPluginManager(this);
 }
예제 #4
0
 /// <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;
 }
예제 #5
0
 /// <summary>Handles ActivePluginReset event</summary>
 public static void HandlePluginReload(ListView list, VstPluginManager PluginManager)
 {
     if ( list.SelectedItems.Count > 0 ) list.SelectedItems[0].Tag = PluginManager.ActivePlugin;
 }
예제 #6
0
        public ChannelAssignment Create(
			VstPluginManager manager,
			int index)
        {
            return Create(manager,index,null,null,null);
        }
예제 #7
0
        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;
        }
예제 #8
0
 static void ActivePluginChanged(TreeView tree, VstPluginManager PluginManager)
 {
 }
예제 #9
0
 /// <summary>Action: ListView.ItemSelectionChangd (</summary>
 public static void Reload(TreeView tree, VstPluginManager PluginManager)
 {
     //			PluginManager.ReloadActivePlugin();
 }