Esempio n. 1
0
        public void saveNewPatch()
        {
            patchNameWnd      = new PatchNameWnd(this);
            patchNameWnd.Icon = auditwin.Icon;
            if (currentRig.currentPatch != null)
            {
                patchNameWnd.txtPatchname.Text = currentRig.currentPatch.name;
            }

            DialogResult result = patchNameWnd.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                return;
            }

            currentRig.addNamedPatch(patchNameWnd.txtPatchname.Text);
        }
Esempio n. 2
0
        int vstnum;         //for debugging

        public ControlPanel(AudimatWindow _auditwin)
        {
            auditwin = _auditwin;

            //init backend
            vashti      = new Vashti();
            host        = new VSTHost(vashti);
            midiDevices = new MidiSystem();

            InitializeComponent();

            //child windows
            patchNameWnd = null;

            //model
            currentRig     = null;
            curRigFilename = null;
            curRigPath     = Application.StartupPath;
            curPluginPath  = Application.StartupPath;

            vstnum = 0;

            isRunning = false;
        }