Ejemplo n.º 1
0
        static readonly object Lock          = new object(); // Lock for multi-thread safety

        // Constructor
        CMidiInput()
        {
            // Listen for incoming PD messages on port 4444
            mcUDPReader = new Ventuz.OSC.UdpReader(4444);

            // Reset class variables
            Reset();
        }
Ejemplo n.º 2
0
        static readonly object Lock           = new object(); // Lock for multi-thread safety

        // Constructor
        CSoundInput()
        {
            // Reset all data to default values
            iLowerPitchRange  = iUpperPitchRange = 0;
            iMiddlePitchRange = iOneThirdOfPitchRange = iTwoThirdsOfPitchRange = 0;
            sProfileName      = "";

            // Listen for incoming PD messages on port 5555
            mcUDPReader = new Ventuz.OSC.UdpReader(5555);

            // Reset commonly changed variables
            Reset();
        }