public void init()
 {
     readConfigFile();
     guruA.init(bcrLinks);
     guruB.init(bcrLinks);
     behringer.init(bcrLinks, bcrRechts);
 }
Example #2
0
        public void readConfigFile()
        {
            try
            {
                StreamReader reader = File.OpenText("d:\\home\\daniel\\desk\\devices.txt");

                int a;

                a = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                behringerLinks.init(a);
                guruA.init(a);
                guruB.init(a);
                behringerRechts.init(Convert.ToInt16(reader.ReadLine().Split(':')[1]));
                bcrLive         = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                triggerCCefx[0] = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                triggerCCefx[1] = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                triggerCCefx[2] = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                triggerCCefx[3] = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                midiYakeOffset  = Convert.ToInt16(reader.ReadLine().Split(':')[1]);
                midiYokeOffset  = Convert.ToInt16(reader.ReadLine().Split(':')[1]);

                reader.Close();
                Console.WriteLine("gelesen");
            }
            catch (Exception exc)
            { Console.WriteLine("fehler"); }
        }