문제
트리거 손가락 (MIDI 태블릿)을 가지고 있으며 입력을 라이브로 읽고 프레스 키에 따라 Python이 동작을 실행할 수 있기를 원합니다.
Windows 용이 필요하고 바람직하게는 Python 2.5 +로 작업합니다.
감사
해결책
피그 게임 내장이 포함되어 있습니다 미디 모듈, Linux, Windows 및 MacOS에서 사용할 수 있으며 매우 잘 지원됩니다.
예를 들어, 다음은 다음에 대한 문서입니다 pygame.midi.input:
Input is used to get midi input from midi devices.
Input(device_id)
Input(device_id, buffer_size)
Input.close - closes a midi stream, flushing any pending buffers. closes a midi stream, flushing any pending buffers.
Input.poll - returns true if there's data, or false if not. returns true if there's data, or false if not.
Input.read - reads num_events midi events from the buffer. reads num_events midi events from the buffer.
대안을 찾고 있다면 Pythoninmusic 파이썬 위키에서.
MIDI 입력 및 출력과 관련된 다양한 프로젝트가 있으며 일부는 Windows 용도가 있습니다. (각 프로젝트 후 작은 서명을 클릭하십시오. 프로젝트 홈페이지 링크를 따라 가십시오)
나는 그들 중 어느 것도 개인적으로 사용하지 않았지만, 그것이 당신이 시작하는 데 도움이 될 것이라고 확신합니다.
제휴하지 않습니다 StackOverflow