File Exchange

image thumbnail

Matlab Piano

version (14.6 KB) by m f
A matlab Piano GUI


Updated 29 Aug 2008

No License

Plays and records tones with a piano-like interface. Can change the type of wave that is generated, the length of the tone by adjusting the time signature or selecting a different type of note, and can output the recorded tones to a .wav file. The .wav output feature might be buggy becuase it was not fully tested.

Cite As

m f (2020). Matlab Piano (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (19)

its a lovely piece created

U20121 1033

ChiWen Chen

Muhmmad Abbasi

DangDang Lang

excllent work

suraj gaikwad


Anushka Witharana


Great! Thanx for sharing!!




maybe the code could use piano equation to generate frequency for each key :)


Hello. I am a freshman student at mechanical engineering. I try to make a piano on matlab gui for final project but I don't know how I make exactly. Your piano is fine but I don't understand exactly how you make it. Only keybord is enough for my project but I need help. I will appreciate if you help me.
Thank you in advance.

Rushabh Agrawal

Samantha Weakenson

It's code is great; however, you will need Matlab v7.6.0 in order to try it out tho.
good luck!!

Qadeer Ahmed

Its not working

Diego Barragán


oliver cai

not work

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux