Beispiel #1
0
        public List <int> UDPPortList(UDPMidiPort ump)
        {
            List <int> l = new List <int>();

            foreach (OutputMidi om in ump.oml)
            {
                l.Add(FindOutputPort(om.Name));
            }

            return(l);
        }
Beispiel #2
0
        public void Add(int port, OutputMidi midiport)
        {
            UDPMidiPort u = list.Find(x => x.UDPInPort == port);

            if (u != null)
            {
                if (u.oml.Find(x => x.Name == midiport.Name) == null)
                {
                    u.oml.Add(midiport);
                }
            }
            else
            {
                list.Add(new UDPMidiPort(port, midiport));
            }
        }