nplay
Version 1.0.0.0 (1.81 KB) by
Naor Movshovitz
Plays a musical tune given notes and durations. (REQUIRES nsound.m)
NPLAY(music) plays a tune on the speakers using the nsound function to create pitch vectors for each note and MATLAB's sound function to play
the notes on the speakers. Each row of the cell array music represents one note to be played, and the duration to play it. The notes are specified using standard English notation, e.g., C, D#, etc. Supported notes are those recognized by nsound.m. Can you thing of a more convenient write short musical tunes? Contact me.
Cite As
Naor Movshovitz (2026). nplay (https://www.mathworks.com/matlabcentral/fileexchange/11221-nplay), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Find more on Audio and Video Data in Help Center and MATLAB Answers
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 | should be in category utilities>sound |
