No BSD License  

Highlights from
MELODY

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 1.24 KB File ID: #6217

MELODY

by Vassili Pastushenko

 

09 Nov 2004 (Updated 11 Nov 2004)

Plays a melody in 2-letter code.

| Watch this File

File Information
Description

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;

MATLAB release MATLAB 5.2 (R10)
Other requirements None
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Nov 2004 Urs Schwarz (us)

our dear CSSMer dr pastushenko seems to have a lot of idle time to frolic... anyhow, this code is so obviously and completely superfluous, i just must give it a 5/5 :-) us

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
sound Vassili Pastushenko 22 Oct 2008 07:35:01
matlab Vassili Pastushenko 22 Oct 2008 07:35:01
note Vassili Pastushenko 22 Oct 2008 07:35:01
player Vassili Pastushenko 22 Oct 2008 07:35:02
utilities Vassili Pastushenko 22 Oct 2008 07:35:02

Contact us at files@mathworks.com