public static void Init(Chart a_chart, string param)
            {
                ParseParam(param);

                chart = a_chart;

                if (chart.Series.IsUniqueName("Feedback"))
                {
                    s_feedback = Misc.AddSeries("Feedback", Color.Lime, true);
                }

                sound_timer           = new System.Timers.Timer(2000);
                sound_timer.AutoReset = true;
                sound_timer.Elapsed  += OnTimerEvent;
                sound_timer.Enabled   = true;

                stop_timer           = new System.Timers.Timer(1900);
                stop_timer.AutoReset = false;
                stop_timer.Elapsed  += OnStopEvent;

                if (midiOut == null)
                {
                    midiOut = new MidiOut(0);
                }
                midiOut.Volume = 65535;
                //var panSettingCenter = 64;
                //var cce = new ControlChangeEvent(0L, 1, MidiController.Pan, panSettingCenter);
                //midiOut.Send(cce.GetAsShortMessage());

                Enabled = true;
            }
            public static void Init(Chart a_chart)
            {
                chart = a_chart;

                chart.Series.Clear();

                s_max      = Misc.AddSeries("Max", Color.Blue, true);
                s_weighted = Misc.AddSeries("Weighted", Color.Green, true);

                chart.ChartAreas[0].AxisY2.IsStartedFromZero = false;
                chart.ChartAreas[0].AxisY2.Minimum           = double.NaN;
                chart.ChartAreas[0].AxisY2.Maximum           = double.NaN;
            }
            public static DateTime dt_cur; // с 1 января 2019 - для отображения на чарте

            public static void Init(Chart a_chart)
            {
                chart = a_chart;

                chart.Series.Clear();

                s_theta = Misc.AddSeries("Theta", Color.FromArgb(192, 192, 0), true);
                s_alpha = Misc.AddSeries("Alpha", Color.Green, true);
                s_beta  = Misc.AddSeries("Beta", Color.RoyalBlue, true);
                s_total = Misc.AddSeries("Total", Color.Gray, false);

// слишком медленно
//                s_theta.Color = Color.FromArgb(30, s_theta.Color);
//                s_alpha.Color = Color.FromArgb(30, s_alpha.Color);
//                s_beta.Color = Color.FromArgb(30, s_beta.Color);

                //s_total = chart.Series[0];
                //s_theta = chart.Series[3];
                //s_alpha = chart.Series[1];
                //s_beta = chart.Series[2];

                s_total.XValueType = ChartValueType.DateTime;
                s_theta.XValueType = ChartValueType.DateTime;
                s_alpha.XValueType = ChartValueType.DateTime;
                s_beta.XValueType  = ChartValueType.DateTime;

                //chart.ChartAreas[0].AxisX.LabelStyle.Format = "mm:ss";
                chart.ChartAreas[0].AxisX.LabelStyle.Format = "mm:ss";

                chart.ChartAreas[0].AxisY2.Minimum = 0;
                chart.ChartAreas[0].AxisY2.Maximum = 100;

                chart.ChartAreas[0].AxisY.Maximum = 10000;

                dt_start = DateTime.Now;

                //s_theta.ChartType = SeriesChartType.StackedArea;
                //s_alpha.ChartType = SeriesChartType.StackedArea;
                //s_beta.ChartType = SeriesChartType.StackedArea;
            }