def slave_open(tty_name):

    result = os.open(tty_name, os.O_RDWR)
    try:
        from fcntl import ioctl, I_PUSH
    except ImportError:
        return result
    try:
        ioctl(result, I_PUSH, "ptem")
        ioctl(result, I_PUSH, "ldterm")
    except IOError:
        pass
    return result
Converts a MIDI program number to the corresponding General MIDI
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/pty.py/slave_open--crossover with--dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/utilities.py/program_to_instrument_class