How to detect a piano key press?

2 visualizaciones (últimos 30 días)
Miguel Martinez
Miguel Martinez el 9 de Nov. de 2020
Respondida: Abhisek Pradhan el 12 de Nov. de 2020
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?

Respuestas (1)

Abhisek Pradhan
Abhisek Pradhan el 12 de Nov. de 2020
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.

Categorías

Más información sobre Simulation, Tuning, and Visualization en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by