chordGen - %all of the notes represented by the inputted...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function vecsnd = chordGen(vecf,sf,duration) %Given a vector containing one or more frequencies, a sampling %frequency, and a duration, write a function chordGen. It will create %a sound vector using the sin function that, when played at the inputted %sampling frequency, lasts for the inputted duration and is a chord of
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %all of the notes represented by the inputted frequencies. Your chord %should be scaled so that max(abs(chord))==1, it must be a column %vector (Mx1), and 1/fs should be the first time value used. for ndx = 1:length(vecf)...
View Full Document

This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Tech.

Ask a homework question - tutors are online