MELODY

Plays a melody in 2-letter code.
2,5K Downloads
Aktualisiert 11. Nov 2004

Keine Lizenz

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;

Zitieren als

Vassili Pastushenko (2025). MELODY (https://www.mathworks.com/matlabcentral/fileexchange/6217-melody), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R10
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0