SUNY Geneseo Department of Mathematics
Friday, February 12
Math 230 02
Spring 2016
Prof. Doug Baldwin
>> [s,f] = audioread( 'Vogelfaenger.wav' );
>> sound( s, f );
>> s2 = s( 1:2:end, 1:2 ); % The sound sampled at half the original rate
>> sound( s2, f/2 );
>> s8 = s2( 1:4:end, 1:2 ); % Sampled at 1/8 original rate
>> sound(s8,f/8);
>> f/8 % Aliasing could be a threat at 1/8 original rate
ans =
5.5125e+03
>> s16 = s8( 1:2:end, 1:2 ); % 1/16 original rate
>> f/16 % Anything over about 1300 cps will alias
ans =
2.7562e+03
>> sound( s16, f/16 );
>> sound( s2, f ); % Play sound with incorrectly high sampling rate