(New page: Category:2010 Fall ECE 438 Boutin Category:blog =Lecture 1 Blog, ECE302 Spring 2013, Prof. Boutin= Monday January 7, 2011 (Week 3) - See [[LectureScheduleECE3...)
 
Line 8: Line 8:
  
  
 +
MATLAB Code for Randomly Generated Music:
 +
 +
<source lang="matlab">
 +
t=0:1/8192:0.4;
 +
do=sin(2*pi*262*t);
 +
fa=sin(2*pi*349*t);
 +
sol=sin(2*pi*329*t);
 +
r=rand; if r<0.5, x=do;, elseif r<0.75, x=sol;, else, x=fa; end, sound(x)
 +
 +
</source>
 
Relevant links
 
Relevant links
 
*[http://www.bgfl.org/custom/resources_ftp/client_ftp/ks2/music/piano/index.htm The virtual keyboard]
 
*[http://www.bgfl.org/custom/resources_ftp/client_ftp/ks2/music/piano/index.htm The virtual keyboard]

Revision as of 07:48, 7 January 2013


Lecture 1 Blog, ECE302 Spring 2013, Prof. Boutin

Monday January 7, 2011 (Week 3) - See Course Outline.


In the first lecture, we covered the syllabus. We then began discussing the concept of a "set" and covered some basic notation.


MATLAB Code for Randomly Generated Music:

t=0:1/8192:0.4;
do=sin(2*pi*262*t);
fa=sin(2*pi*349*t);
sol=sin(2*pi*329*t);
r=rand; if r<0.5, x=do;, elseif r<0.75, x=sol;, else, x=fa; end, sound(x)

Relevant links


Action items for students:

Next: Lecture 2


Back to 2013 Spring ECE302 Boutin

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn