MELODY

版本 1.0.0.0 (800 字节) 作者: Vassili Pastushenko
Plays a melody in 2-letter code.
2.5K 次下载
更新时间 2004/11/11

无许可证

Just a New Year joke:
a MATLAB note player:
a melody can be represented as a column of notes, e.g.

>>gam=[
'do'
're'
'mi'
'fa'
'so'
'la'
'ci'
'd2'
];

>>Z=melody(gam,2);
Z is input for sound:

>>sound(Z/2)

By default MELODY plays russian Xmas song "Elochka" with freq. factor 3, e.g.

>>melody;

引用格式

Vassili Pastushenko (2024). MELODY (https://www.mathworks.com/matlabcentral/fileexchange/6217-melody), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R10
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Audio and Video Data 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0