Esempio n. 1
0
        //cons
        public VSTPanel(VSTRig _rig, int _plugNum)
        {
            InitializeComponent();

            rig         = _rig;
            audiwin     = rig.controlPanel.auditwin;
            host        = rig.controlPanel.host;
            midiDevices = rig.controlPanel.midiDevices;

            plugNum = _plugNum;
            this.lblPlugName.Text = plugName;
            plugPath = null;
            fileName = null;
            plugin   = null;

            this.Size = new Size(PANELWIDTH, PANELHEIGHT);

            pluginInfoWnd  = null;
            paramEditorWnd = null;
            editorWindow   = null;

            midiInDevice     = null;
            midiInUnit       = null;
            midiOutDeviceNum = -1;

            audioOut = "no output";
        }
Esempio n. 2
0
        public void unloadPlugin()
        {
            //close child windows
            if (pluginSettingsWnd != null)
            {
                pluginSettingsWnd.Close();
                pluginSettingsWnd = null;
            }
            if (pluginInfoWnd != null)
            {
                pluginInfoWnd.Close();
                pluginInfoWnd = null;
            }
            if (paramEditorWnd != null)
            {
                paramEditorWnd.Close();
                paramEditorWnd = null;
            }
            if (editorWindow != null)
            {
                editorWindow.Close();
                editorWindow = null;
            }

            //disconnect midi i/o
            if (midiInDevice != null)
            {
                disconnectMidiInput(midiInDevice, midiInUnit);
            }

            host.unloadPlugin(plugin);     //disconnect and unload back end
        }
Esempio n. 3
0
        //- plugin parameter window -------------------------------------------

        private void btnPlugParam_Click(object sender, EventArgs e)
        {
            btnPlugParam.Enabled        = false;
            paramEditorWnd              = new PluginParamWnd(this);
            paramEditorWnd.Text         = plugName + " parameters";
            paramEditorWnd.Icon         = audiwin.Icon;
            paramEditorWnd.FormClosing += new FormClosingEventHandler(paramWindow_FormClosing);
            paramEditorWnd.Show();
        }