Exemplo n.º 1
0
        public TodoEngine()
        {
            this.enabled     = false;
            this.selectedvar = null;
            this.LearnMode   = false;
            this.AnyDevice   = true;

            this.mididevice = new TodoMidiDevice(this);
            this.oscdevice  = new TodoOscDevice(this);
        }
Exemplo n.º 2
0
        private static void PersistMidi(StringBuilder sb, TodoMidiDevice midi)
        {
            sb.AppendLine("<Midi>");

            sb.AppendLine("<Inputs>");
            foreach (string s in midi.InputAuto)
            {
                string inputline = "<Input AutoStart=\"[inputname]\" />";
                inputline = inputline.Replace("[inputname]", s);
                sb.AppendLine(inputline);
            }
            sb.AppendLine("</Inputs>");

            sb.AppendLine("<Outputs>");
            foreach (string s in midi.OutputAuto)
            {
                string outputline = "<Output AutoStart=\"[outputname]\" />";
                outputline = outputline.Replace("[outputname]", s);
                sb.AppendLine(outputline);
            }
            sb.AppendLine("</Outputs>");
            sb.AppendLine("</Midi>");
        }