SUNY Geneseo Department of Mathematics
Friday, October 16
Math 230 01
Fall 2015
Prof. Doug Baldwin
vertcat
, horzcat
)[ tune, rate ] = audioread( 'Vogelfaenger.wav' );
>> size( tune )
ans =
1123353 2
>> sound( tune, rate )
>> length(tune)
ans =
1123353
>> halfLength = floor(length(tune)/2)
halfLength =
561676
>> halfTune = tune( 1:halfLength, : );
>> sound( halfTune, rate )
>> rate
rate =
44100
>> tune8 = tune( 1:8:end, : )
>> sound( tune8, rate/8 );
>> tune12 = tune( 1:12:end, : );
>> sound( tune12, rate/12 );
>> doubleTune = [ halfTune, halfTune ];
>> size( doubleTune ) % Oops, wrong concatenation
ans =
561676 4
>> doubleTune = [ halfTune; halfTune ];
>> size( doubleTune )
ans =
1123352 2
>> sound( doubleTune, rate );