How to detect a piano key press?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a midi piano and a camera. My goal is that while I'm playing every time I press a key on the piano a photo is taken for later processing. How can I do that in real time?
댓글 수: 0
답변 (1개)
Abhisek Pradhan
2020년 11월 12일
Musical Instruments Digital Interface (MIDI) in Audio Toolbox can be used to create, send & receive MIDI messages. So it can be used to set up a piano with MATLAB. And for setting up the webcam using a support package, refer the following link.
For clicking pictures with a keypress, callback functions can be implemented along with a keypress event to simulate this scenario.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!