Play MIDI Note
PLAYMIDINOTE Obtain information about a Midi note like its frequency and
name in the equitempered scale assuming A4 is 440Hz.
[NOTENAME, FREQ] = PLAYMIDINOTE(MIDINUM) returns name of the note correspondig to Midi note number MIDINUM and also returns its frequency
FREQ in Hz.
[NOTENAME, FREQ] = PLAYMIDINOTE(MIDINUM, 1) same as above, and additionally plays the specified note for one second.
[NOTENAME, FREQ] = PLAYMIDINOTE(MIDINUM, 1, DUR) same as above, and plays the specified note duration DUR seconds.
Cite As
Atul Ingle (2026). Play MIDI Note (https://www.mathworks.com/matlabcentral/fileexchange/37359-play-midi-note), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
