SUNY Geneseo Department of Mathematics
Wednesday, February 11
Math 230 02
Spring 2015
Prof. Doug Baldwin
sound
function plays a sound wave>> f = 440;
>> t = 0 : 1/4000 : 0.5;
>> tone = sin( 2 * pi * f * t );
>> sound( tone, 4000 );
>> sound( tone, 4000 );
>> tone2 = sin( 2 * pi * 2*f * t );
>> longtone = [ tone tone2 ];
>> sound( longtone, 4000 );
>> [v,rate] = audioread( 'Vogelfaenger.wav' );
>> rate
rate =
44100
>> size(v)
ans =
1123353 2
>> sound( v, rate )
>> i = 1 : 12 : length(v);
>> v2 = v( i, : );
>> sound( v2, rate/12 );
>> load handel
>> sound( y, Fs );
>> sound( v, rate )