OutputMatrix GetMatrix(UpmixComboBox instrument)
        {
            UpmixOption ret = UpmixOption.Full;

            instrument.Dispatcher.Invoke(() => ret = (UpmixOption)instrument.SelectedItem);
            return(new OutputMatrix(ret));
        }
        public OutputMatrix(UpmixOption option)
        {
            switch (option)
            {
            case UpmixOption.Center:
                LeftInput = new float[8] {
                    0, 0, out2, 0, 0, 0, 0, 0
                };
                RightInput = new float[8] {
                    0, 0, out2, 0, 0, 0, 0, 0
                };
                break;

            case UpmixOption.Front:
                LeftInput = new float[8] {
                    1, 0, 0, 0, 0, 0, 0, 0
                };
                RightInput = new float[8] {
                    0, 1, 0, 0, 0, 0, 0, 0
                };
                break;

            case UpmixOption.Screen:
                LeftInput = new float[8] {
                    out2, 0, out3, 0, 0, 0, 0, 0
                };
                RightInput = new float[8] {
                    0, out2, out3, 0, 0, 0, 0, 0
                };
                break;

            case UpmixOption.QuadroSide:
                LeftInput = new float[8] {
                    out2, 0, 0, 0, 0, 0, out2, 0
                };
                RightInput = new float[8] {
                    0, out2, 0, 0, 0, 0, 0, out2
                };
                break;

            case UpmixOption.QuadroRear:
                LeftInput = new float[8] {
                    out2, 0, 0, 0, out2, 0, 0, 0
                };
                RightInput = new float[8] {
                    0, out2, 0, 0, 0, out2, 0, 0
                };
                break;

            default:
                LeftInput = new float[8] {
                    out3, 0, 0, 0, out3, 0, out3, 0
                };
                RightInput = new float[8] {
                    0, out3, 0, 0, 0, out3, 0, out3
                };
                break;
            }
        }