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 LinuxKategorien
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Mehr zu Audio and Video Data finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |