How to detect a piano key press?

3 次查看(过去 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?

回答(1 个)

Abhisek Pradhan
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.

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by