MatLabPiano
                    Version 1.0.0.0 (1.82 KB) by  
                  Alex Dytso
                
                
                  This is a simple code that generates music by pressing keys.
                
                  
              This is a simple code that generates music by pressing keys.
The code uses a special function  that avoids pressing enter after each key
Unfortunately the function "sound" makes the code slow. This must be fixed in future versions. Any help will be greatly appreciated. 
Cite As
Alex Dytso (2025). MatLabPiano (https://ch.mathworks.com/matlabcentral/fileexchange/40123-matlabpiano), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
              Created with
              R2011a
            
            
              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 > Piano sounds >
      Find more on Piano sounds in Help Center and MATLAB Answers
    
  Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
