- (*)Obtain info from a mono audio file:
Write a MATLAB script that can read the wave file "welcome.wav" and display the following information within this script.
- Number of sample points.
- Samping rate.
- Bit resolution
- Number of channels.
- Time duration of the recording (in terms of seconds)
- ½Ð¼g¤@Ó MATLAB µ{¦¡ wavInfo01.m¡AŪ¤J welcome.wav Àɮס]¦ì©ó¥»®Ñ©Òªþ¥úºÐ¤§¤¤¡^¡A¨Ã¥Ñ¦¹µ{¦¡¦L¥X¤U¦C¸ê°T¡G
- µ°T¸ê®ÆÂI¼Æ
- ¨ú¼ËÀW²v
- ¸ÑªR«×¡]¨CÓ¨ú¼ËÂI¥Ñ¦h¤Ö¦ì¤¸¨Óªí¥Ü¡^
- Án¹D¼Æ
- ¿ýµ®É¶¡ªø«×¡]¥H¬í¬°³æ¦ì¡^
- (*)Obtain info from a stereo audio file:
Repeat the previous exercise with a MATLAB program to obtain the same information from the wave file "flanger.wav".
- «½Æ¤W¤@ÃD¡]µ{¦¡ÀɦW¬° wavInfo02.m¡^¡A¦ý¬O±NÀɮקאּ flanger.wav¡]¦¹Àɮצì©ó¥»®Ñ©Òªþ¥úºÐ¤§¤¤¡^¡C¤@¯ëªº CD µ¼Ö¬O±Ä¥ÎÂùÁn¹D¿ýµ¡A¨ú¼ËÀW²v¬O 44.1 kHz¡A¸ÑªR«×¬O 16 bits/sample¡C½Ð°Ý¦b³o¼Ëªº±¡ªp¤U¡A¤@º¥|¤ÀÄÁªººqY¬O¼g¦¨ wav ÀɮסA·|¤j¬ù¦û±¼¦h¤ÖµwºÐªÅ¶¡¡H¡]¥Ñ¦¹²ßÃD§A´N¥i¥Hª¾¹D MP3 ¡BWMA¡BAAC µ¥À£ÁY¥\¯àªº¥i¶Q¤F¡I¡^
- ½Ð®Ú¾Ú¤U¦Cµ{¦¡½X¦^µª°ÝÃD¡C
[y, fs]=wavread('welcome.wav');
wavplay(y,1.0*fs,sync);
wavplay(y,1.2*fs,sync);
- 'sync' ¥Nªí¤°»ò·N«ä¡H
- ¦pªG§ï¬°§â²Ä¤@Ó 'sync' §ï¬° 'async'¡A·|¦³¤°»ò®t§O¡H
Ans:
- 'sync' ¥Nªí±Nµ°T¸ê®Æ´`§Ç°e¨ì³â¥z¼½©ñ¡C
- §ÚÌ·|¦P®ÉÅ¥¨ì¨âÓÁnµ¼½©ñ¡C
- ¥H [y, fs]=wavread('welcome.wav') Ū¤Jµ°T¸ê®Æ«á¡A½Ð°Ý¤U¦Cþ¤@Ó±Ôz¦³¡uË©ñ¡vªº®ÄªG¡H
- wavplay(y, 0.5*fs, 'async');
- wavplay(-y, fs, 'sync');
- wavplay(-y, -fs, 'sync');
- wavplay(flipud(y), fs, 'sync');
- ¹ï©ó¤@¬qÁnµ°T¸¹ y ¤Î¹ïÀ³ªº¨ú¼ËÀW²v fs¡AY¥H¤U¦C¤è¦¡¨Ó¼½©ñ¡A¦óªÌ³y¦¨ªºµ¶q³Ì¤j¥Bµoµ³Ì¦y¾U¡H
- sound(y, fs)
- sound(y, fs*2)
- sound(y*2, fs)
- sound(y*2, fs*2)
- MATLAB ¨Ï¥Î wavread Ū¤J wav Àɮפ§«á¡A·|±Nµ°T¸ê®ÆÀx¦s¦¨¦óºØ¸ê®Æ«¬ºA¡H¦bþӰ϶¡¡H
- int, [-10,10]
- double, [-1,1]
- int, [-32768,32767]
- double, [-10,10]
- wav Àɮפº³¡Àx¦sµ°T¸ê®Æªº¸ê®Æ«¬ºA¡A³Ì±`¨£ªº¬Oþ¨âºØ¡H?¨ä¼ÆȽd³ò¬°¦ó¡H
Ans:
- uint8 (unsigned 8-bit integers), [0, 255]
- int16 (signed 16-bit integer), [-32768, 32767]
- MATLAB ¨Ï¥Î wavread Ū¤J wav Àɮפ§«á¡A¦p¦ó±Nì©lµ°T¸ê®ÆÂà´«¦¨ MATLAB ¤º³¡¸ê®Æ¡H
Ans:
- uint8 ==> (x-128)/128.
- int16 ==> x/32768.
- ¡u§Ö¼Ö¹|¡v²ÃЦp¤U¡G
¢²¢²¢³¢´¢x¢´¢³¢²¢±¢x¢°¢°¢±¢²¢x¢²¡D¢± ¢± ¡ß¢x
½Ð¼g¤@¬q³Ì²³æªº MATLAB µ{¦¡¨Ó¼½©ñ¦¹¬q²ÃСC
Ans:
semitone=[60 62 64 65 67]; % Conversion from the simple score to semitone
simpleScore=[3 3 4 5 5 4 3 2 1 1 2 3 3 2 2];
beat=[1 1 1 1 1 1 1 1 1 1 1 1 1.5 0.5 2];
fs=8000;
signal=[];
for i=1:length(simpleScore);
time=linspace(0, beat(i)/2, fs*beat(i)/2);
f=440*2^((semitone(simpleScore(i))-69)/12);
y=sin(2*pi*f*time);
signal=[signal y];
end
sound(signal, fs);
- (*)Wave recording:
Write a MATLAB script to record 10 seconds of your utterance such as "My name is Roger Jang and I am a senior student at the CS department of National Taiwan University". Save your recording as myVoice.wav. Other recording parameters are: sample rate = 16 KHz, bit resolution = 16 bits. Please use the script to print out answers to the following questions within the MATLAB window.
- How much space is taken by the audio data in the MATLAB workspace?
- What the data type of the audio data?
- How do you compute the amount of the required memory from the recording parameters?
- What is the size of myVoice.wav?
- How many bytes is used in myVoice.wav to record overheads other than the audio data itself?
- ½Ð¼g¤@¬q MATLAB µ{¦¡ recordMyVoice01.m¡A¿ý¤U§AÁ¿ªº¤@¬q¸Ü¡G¡u§Ú¬Oxxx¡A¤µ¦~xx·³¡A¬Oxx¤j¾Çxx¨tx¦~¯Åªº¾Ç¥Í¡v¡A¨Ã±N¤§Àx¦s¦¨ÀÉ®× myvoice.wav¡C¿ýµ±ø¥ó¦p¤U¡G¿ýµ®É¶¡¬O 10 ¬í¡A¨ú¼ËÀW²v¬O 11025 Hz¡A¸ÑªR«×¬O 8 bits/sample¡C½Ð°Ý¡G
- ¬ÛÃöªºµ°TÅܼƦb MATLAB ªº¤u§@ªÅ¶¡¦û±¼¦h¤Ö°O¾ÐÅé¡H
- ¦¹Åܼƪº¸ê®Æ«¬ºA¬O¤°»ò¡H
- ¦p¦ó¥Ñ¬ÛÃöªº¿ýµ±ø¥ó¨Ópºâ±oª¾¦¹ÅܼƩҦû±¼ªº°O¾ÐÅé¤j¤p¡H
- myvoice.wav ªºÀɮפj¤p¬°¦ó¡H
- ÀɮץΤF¦h¤Ö¦ì¤¸²Õ¨Ó°O¿ý°£¤Fµ°T¸ê®Æ¥H¥~ªº¸ê°T¡H
- ¤WÃD©Ò¿ý»sªºÀɮ׬°³æÁn¹D¡C½Ð¼¶¼g¤@¬q MATLAB µ{¦¡ one2twoChannel01.m¡A¯à°÷Ū¤J myvoice.wav¡A±N¨äµ°T¸ê®ÆÂনÂùÁn¹D¡A¨ÃÅý¨ä¼½©ñ®É¡A²£¥ÍÁn·½¦b¨âÓ³â¥z¤§¶¡´å²¾ªº®ÄªG¡A³Ì«á¦A±N¦¹¸g¹L³B²zªºÂùÁn¹Dµ°TÀx¦s©ó myvoice2.wav¡C¡]¦¹ÃD»ÝnŪªÌµo´§¤@¤U·Q¹³¤O¡A¥i°Ñ¦Ò flanger.wav Àɮתº¥ª¡B¥kÁn¹Dªºªi§Î¡C¡^
- (**)Create the illusion of a moving sound source:
Record your own voice of "my name is xxx and I am a student at xxx university", and save the mono recording to myVoice.wav. Write a MATLAB script that can read the audio data from myVoice.wav, duplicate the audio data to create a stereo audio, and then modify the volume of each channels such that the playback can create an illusion that the sound source is moving between your two speakers. (Hint: You can observe the waveforms of the two channels in flanger.wav.)
- (*)Reverse playback:
Write a MATLAB script to accomplish the following tasks:
- Record your utterance of "we" and play it backwards. Does it sound like "you"? (Please save the result to a wave file and demo its playback to the TA.)
- Record your utterance of "you" and play it backwards. Does it sound like "we"? (Please save the result to a wave file and demo its playback to the TA.)
- Record your utterance of "¤W®ü¦Û¨Ó¤ô¨Ó¦Û®ü¤W" (for Chinese students) or "We are you" (for international students) and play it backwords. What does it sound like? (Please save the result to a wave file and demo its playback to the TA.)
- Record your utterance of "¤@¤G¤T¥|¤¤»¤C¤K¤E¤Q" and play it backwards. Which digits can you recognize? Why?
- Can you think of any other utterances that sound meaningful when played backwords?
- ½Ð¼¶¼g¤@¬q MATLAB µ{¦¡ checkReverse01.m¡A¥ý¿ý¤U§A¦Û¤vÁ¿¡uwe¡vªºÁnµ¡AµM«á±Nªi§Î«e«áÄAË¡A¦A¼½©ñ¥X¨Ó¡A½Ð°Ý¼½¥X¨ÓªºÁnµ¹³¤£¹³¬O¦b°á¡uyou¡vªºÁnµ¡H«½Æ¤Wz¨BÆJ¡A¦ý¬O³o¦¸¿ý¤U§A¦Û¤vÁ¿¡uyou¡vªºÁnµ¡A±Nªi§Î«e«áÄAË«á¦A¼½©ñ¥X¨Ó¡A¹³¤£¹³¬O¦b°á¡uwe¡v¡H¬°¤°»ò¡H
- (*)Audio signal manipulation:
Write a MATLAB script to record your utterance of "today is my birthday". Try to explain the playback effect you observe after you try the following operations on the audio signals.
- Multiply the audio signals by -1.
- Reverse the audio signals in time axis.
- Multiply the audio signals by 10.
- Replace each sample by its square root.
- Replace each sample by its square.
- Clip the waveform such that sample data out of the range [-0.5, 0.5] are set to zero.
- Modify the waveform such that samples in the range [-0.5, 0.5] are set to zero; samples out of the range [-0.5, 0.5] are moved toward zero by the amount 0.5.
- (*)°ò¥»¿ýµ:
½Ð¥Î MATLAB ¼g¤@¤p¬qµ{¦¡¡A¶i¦æ¿ýµ¤T¬í¡A¿ýµªº¤º®e¬O¡u¥xÆW¤j¾Ç¸ê°T¨t¡v¡A¨ä¤¤¨ú¼ËÀW²v¬O 16 KHz¡A¸ÑªR«×¬O 8 ¦ì¤¸¡A½Ð±Nµ°TÀx¦s¦¨ myVoice.wav ÀɮסC
- ½Ð°ÝÀɮפj¤p¬°¦ó¡H
- Y±Nµ°T¥ª¥kÄA˨Ӽ½©ñ¡A·|¦³¤°»ò®ÄªG¡H
- Y±Nµ°T¤W¤UÄA˨Ӽ½©ñ¡A©Î¦³¤°»ò®ÄªG¡H
- Y±Nµ°T¼¥H10¿¡A©Î¦³¤°»ò¼½©ñ®ÄªG¡H
- Y±Nµ°Tªº¤j¤p¶i¦æ¶}¥¤è¡A·|¦³¤°»ò¼½©ñ®ÄªG¡H
- Y±Nµ°Tªº¤j¤p¶i¦æ¥¤è¡A·|¦³¤°»ò¼½©ñ®ÄªG¡H
- Y±Nµ°T¶W¹L[-0.5, 0.5]ªº³¡¤À§¡³]©w¬°¹s¡A·|¦³¤°»ò¼½©ñ®ÄªG¡H
- Y±Nµ°T¤¶©ó[-0.5, 0.5]ªº³¡¤À§¡¬å±¼¡A·|¦³¤°»ò¼½©ñ®ÄªG¡H
¡]´£¥Ü¡G·|¥Î¨ìªº«ü¥O¦³ wavrecord, wavwrite, flipud, sign, sound µ¥¡C¡^
- (*)Audio signal grafting:
Write a MATLAB script to accomplish the following tasks. (You need to find the boundaries by trials and errors, and put the related boundary indices into your MATLAB program for creating the required audio segments.)
- For Mandarin-speaking student: Record your utterance of "²MµØ¤j¾Ç¸ê°T¨t" and save it to a file first.
- If you connect the consonant part of "¤j" to the vowel part of "¨t", can you get the sound of "¦a"? (Please save the result to a wave file and demo its playback to the TA.)
- If you connect "¨t" to the vowel part of "¤j", can you get the sound of "¤U"? (Please save the result to a wave file and demo its playback to the TA.)
- For international students: Record your utterance of "keep it simple" and save it to a file.
- Can you get the sound of "pimple" by connecting some portions of "Keep" and "simple"?
(Please save the result to a wave file and demo its playback to the TA.)
- Can you get the sound of "simplest" by connect some portions of your recording?
(Please save the result to a wave file and demo its playback to the TA.)
- (**)Experiments on the sample rate:
Write a MATLAB script to record your utterance of "my name is ***" with a sample rate of 32 KHz and 8-bit resolution. Try to resample the audio signals at decreasing sample rates of 16 KHz, 8 KHz, 4 KHz, 2 KHz, 1 KHz, and so on. At which sample rate you start to have difficulty in understanding the contents of the utterance?
- (**)
Experiments on adding noise:
Write a MATLAB script to record your utterance of "my name is ***" with a sample rate of 8 KHz and 8-bit resolution. We can add noise to the audio signals by using the following program snippet:
k = 0.1;
y2 = y + k*randn(length(y), 1); % Add noise
sound(y2, 8000); % Playback
plot(y2);
Increase the value of k by 0.1 each time and answer the following questions.
- At what value of K you start to have difficulty in understanding the content of the playback?
- Plot the waveforms at different values of k. At what value of k you start to have difficulty in identifying the fundamental period of the waveform?
- (**)Voice signal encryption:
Write a function that can take a wave file, encrypt it, and save it as another wave file. The I/O format is
myEncrypt(inputFileName, outputFileName);
where "inputFileName" is a string specifying the input wave file, and "outputFileName" is a string specifying the output wave file. The encryption process is like this (assuming y is the original signal and z is the encrypted signal):
- z=y;
- if y(i)>0, z(i)=1-y(i) for all i
- if y(i)<0, z(i)=-1-y(i) for all i
- z=flipud(z);
Note that:
- The encrypted file can be converted to the original file using the same function.
- Be aware that this is a naive encryption; better methods exist.
- (*)Create Sine waves:
- Create a sine wave of 4-second duration and 440-Hz frequency, with a sample rate of 16000.
- Create a sine wave of 4-second duration, 16000-Hz sample rate, with a frequency linearly varying from 0 to 800 Hz.
- (**)Generate sine wave with time-varying frequencies:
Write a function to generate a sine wave with time-varying frequencies. The I/O format is
outputSignal=mySine(duration, freq);
where freq is a two-element vector [f1, f2], indicating the frequency of the sine wave should change linearly from f1 (for the first sample point) to f2 (for the last sample point). Note that
- The sample rate is 16 KHz.
- The first sample is zero, starting from time 0. (In other words, the time vector is (0:duration*fs-1)/fs, and the function to invoke is "sin".)
Note that he instantaneous frequency of $y=sin(2\pi\phi(t))$ is $\phi'(t)$. Therefore you can use the following conditions to find $\phi(t)$:
$$
\left\{
\begin{matrix}
\phi'(t)=at+b,\\
\phi'(0)=f_1,\\
\phi'(duration-1/fs)=f_2,\\
sin(2\pi\phi(0))=0.\\
\end{matrix}
\right.
$$
Hint: Here is a snippet for generating a 3-second sine wave of 440Hz:
duration=3;
f=440;
fs=16000;
time=(0:duration*fs-1)/fs;
y=sin(2*pi*f*time);
plot(time, y);
sound(y, fs);
- (*)Create sirens:
Use combination of sine waves to generate the sound of sirens (that you usually hear from an ambulance). Here is an example.
- (**)Create beats:
- Create a sine wave y1 of 3-second duration and 440-Hz frequency, with a sample rate of 16000.
- Create a sine wave y2 of 3-second duration and 444-Hz frequency, with a sample rate of 16000.
- Try "sound(y1+y2, fs)", what do you hear? Please use math derivation to explain such phenomenon of "acoustic beats". What is the frequency of the beats in this case?
- (**)Create time-varying beats:
- Create y1 as the previous exercise.
- Create y2 which has a time-varying frequency from 440-Hz to 500-Hz (which changes linearly with time).
- Try to play y1+y2 and explain what you hear.
- (**)Resample audio signals:
Write a MATLAB script to resample the audio signals in "sunday.wav" such that new waveform has a new sample rate of 11025. Plot these two waveform in the suplot(2, 1, 1). Plot their absolute difference in subplot(2, 1, 2).
- (*)Ū¤J¾ã¼Æªºµ°T¸ê®Æ:
½Ð¼g¤@Ó¨ç¼Æ wavRead2.m¡A¨ä¥Îªk©M MATLAB ¤º«Øªº¨ç¼Æ wavread.m ¬Û¦P¡A¥Îªk¦p¤U¡G
[y, fs, nbits] = wavread2('file.wav');
°ß¤@¤£¦PÂI¡A¬O©Ò¶Ç¦^¨Óªºµ°TÅÜ¼Æ y ¬O¾ã¼ÆÈ¡A¦pªG nbits ¬O 8¡A«h y ªº½d³ò¥²¶·¤¶©ó -128 ¨ì 127 ¤§¶¡¡F¦pªG nbits ¬O 16¡A¨º»ò y ªº½d³ò´N·|¤¶©ó -32768 ¦Ü 32767 ¤§¶¡¡C
¡]´£¥Ü¡G§A¥²¶·¥ýÁA¸Ñ wavread() ªº¥Îªk¡C¡^
- (**)¦p¦ó«Ø¥ßµ®Ø:
½Ð¼g¤@Ó¨ç¼Æ buffer2.m¡A¥Îªk¦p¤U
framedY = buffer2(y, frameSize, overlap);
¨ä¤¤ y ¬Oµ°T°T¸¹¡AframeSize ¬Oµ®ØªºÂI¼Æ¡Aoverlap «h¬O¬Û¾Fµ®Ø«Å|ªºÂI¼Æ¡AframedY «h¬O¤@Ó¯x°}¡A¨ä¦C¼Æµ¥©óµ®ØªºÂI¼Æ¡A¦æ¼Æ«hµ¥©óµ®Øªº¼Æ¥Ø¡C¡]Y³Ì«á´XÂIªºµ°T¤£¨¬¥H¶ëº¡¤@Óµ®Ø¡A«h±Ë±ó³o´XÂI¸ê®Æ¡C¡^¨Ï¥Î½d¨Ò¦p¤U¡G
>> y=[1 2 3 4 5 6 7 8 9 10 11 12 13 14];
>> buffer2(y, 4, 1)
ans =
1 4 7 10
2 5 8 11
3 6 9 12
4 7 10 13
¥t¡A½Ð°Ý³oÓ¨ç¼Æ buffer2.m ©M Signal Processing Toolbox ¤¤ªº buffer ¨ç¼Æ¦³¦ó¤£¦P¡H
- (*)¨ú¼ËÀW²vªº¼vÅT:
½Ð¥Î MATLAB ¼g¤@¤p¬qµ{¦¡¡A¶i¦æ¿ýµ¨â¬í¡A¿ýµªº¤º®e¬O¡u§Ú¬O¬Y¬Y¬Y¡v¡A¨ä¤¤¨ú¼ËÀW²v¬O 32 KHz¡A¸ÑªR«×¬O 8 ¦ì¤¸¡A½Ð±Nµ°TÀx¦s¦¨ myVoice2.wav ÀɮסC½Ð¹ï°T¸¹¶i¦æ«·s¨ú¼Ë¡]Resample¡^¡AÅý¨ú¼ËÀW²vÅܦ¨ 16 KHz, 8 KHz, 4 KHz, 2 KHz ...µ¥µ¥¡A½Ð°Ý·í¨ú¼ËÀW²v±¼¨ì¦h§C®É¡A§A¤w¸gÅ¥¤£¥X¨Óì¥ýªºÁnµ¡H
- (*)Âø°Tªº¼vÅT:
½Ð¥Î MATLAB ¼g¤@¤p¬qµ{¦¡¡A¶i¦æ¿ýµ¨â¬í¡A¿ýµªº¤º®e¬O¡u§Ú¬O¬Y¬Y¬Y¡v¡A¨ä¤¤¨ú¼ËÀW²v¬O 8 KHz¡A¸ÑªR«×¬O 8 ¦ì¤¸¡C°²³]µ°T°T¸¹¬O¦s¦b¤@Ó¦æ¦V¶q y¡A§ÚÌ¥i¥H¥H¤U¦C¤è¦¡¥[¤JÂø°T¡G
k = 0.1;
y2 = y + k*randn(length(y), 1); % ¥[¤JÂø°T
sound(y2, 8000); % ©ñµ
plot(y2);
·í k 鴄 0.1¡B0.2¡B0.3 µ¥ºCºC¼W¤j®É¡AºCºC§AªºÁnµ·|¶V¨Ó¶V¼Ò½k¡C
- ½Ð°Ý¨ì k ȬO¦h¤Ö®É¡A§A·|Å¥¤£¥X¨Óì¥ýÁ¿¸Üªº¤º®e¡H
- ½Ð°Ý¨ì k ȬO¦h¤Ö®É¡A§A·|¬Ý¤£¥X¨Ó y2 ¥]§t¤@¬qÁnµªº°T¸¹¡H¡]´«¨¥¤§¡A¦b©ñ¤j y2 ªº¹Ï§Î«á¡A§A¤w¸g¬Ý¤£¥X¨Ó¦³°ò¥»¶g´Áªº¦s¦b¡C¡^
- (**)«·s¨ú¼Ë:
½Ð¥Î interp1 «ü¥O¡A¹ï myVoice2.wav ªºµ°T¶i¦æ«·s¨ú¼Ë¡AÅý¨ú¼ËÀW²vÅܦ¨ 11025 Hz¡A¨Ã±Nµ²ªGÀx¦s¦¨ myVoice3.wav¡C
- (*)®É¶¡¤ÏÂ༽©ñ:
¦b¤U¦Cªº¿ýµ¤Î¼½©ñ¹Lµ{¡A½Ð¦Û¦æ¿ï©w¿ýµ°Ñ¼Æ¡A¿ýµ®É¶¡ 3 ¬í§Y¥i¡C
- ½Ð¿ý»sÁnµ¡u¤W®ü¦Û¨Ó¤ô¨Ó¦Û®ü¤W¡v¡A½Ð¥ý¥¿¦V¼½©ñ¤@¦¸¡AµM«á¦A½Âà®É¶¡¶b¨Ó¤Ï¦V¼½©ñ¤@¦¸¡AÅ¥¬Ý¬Ý¦³®É»ò®t§O¡C§A¥i¥H±q¤Ï¦V¼½©ñªºÁnµ¡A¹w´úì¥ý¥¿¦V¼½©ñªºÁnµ¶Ü¡H
- ½Ð¿ý»sÁnµ¡uwe are you¡v¡AºÉ¶q©ñ¥Án½Õ¡C½Ð¥ý¥¿¦V¼½©ñ¤@¦¸¡AµM«á¦A½Âà®É¶¡¶b¨Ó¤Ï¦V¼½©ñ¤@¦¸¡AÅ¥¬Ý¬Ý¦³®É»ò®t§O¡C¬°¦ó»ò¤Ï¦V¼½©ñ©M¥¿¦V¼½©ñÅ¥¨ìÃþ¦üªºÁnµ¡H¤¤¤å¬O§_¦³Ãþ¦üªº½d¨Ò¡H
¡]´£¿ô¡G°²³]¿ýµ©Ò±oªºµ°T¦V¶q¬O y¡A¥i¥H¨Ï¥Î flipud(y) ¨Ó¶i¦æ¤W¤U½Âà©Î fliplr(y) ¨Ó¶i¦æ¥ª¥k½Âà¡C¡^
- (*)
µ°T°Å±µ:
½Ð¥Î MATLAB §¹¦¨¤U¦C¨Æ¶µ¡G
- ¥ý¶i¦æ¿ýµ¡A¨ú¼ËÀW²v¬° 16 KHz¡A¸ÑªR«×¬° 16 Bits¡A¿ýµ®É¶¡¤T¬í¡A¿ýµ¤º®e¬O¡u²MµØ¤j¾Ç¸ê°T¨t¡v¡A½Ð°ÝÀɮפj¤p¬°¦ó¡H¦p¦óª½±µ¥Ñ¿ýµ³]©w¨Ópºâ¦¹¤j¤p¡H
- ½ÐÆ[¹îªi§Î¡A±N©Ò¦³ªº®ðµ³]©w¬°ÀRµ¡]°T¸¹È¬°¹s¡^¡A¦sÀÉ«á¼½©ñÅ¥¬Ý¬Ý¡C¬O§_¯àÅ¥¥X¨Óì¥ýªº¤º®e¡H
- ½ÐÆ[¹îªi§Î¡A±N©Ò¦³ªº¥Àµ³]©w¬°ÀRµ¡]°T¸¹È¬°¹s¡^¡A¦sÀÉ«á¼½©ñÅ¥¬Ý¬Ý¡C¬O§_¯àÅ¥¥X¨Óì¥ýªº¤º®e¡H
- Y±N¡u¤j¡vªº«e¥b³¡¡]£x¡^±µ¨ì¡u¨t¡vªº«á¥b³¡¡]£¸¡^¡A·|¤£·|±o¨ì¡u§C¡vªºÁnµ¡H°Å±µ«á¦s¦¨ wav ÀÉ¡A¦A¼½©ñ¥X¨ÓÅ¥¬Ý¬Ý¡C
- Y±N¡u¨t¡vªº«e¥b³¡¡]££¡^±µ¨ì¡u²M¡vªº«á¥b³¡¡]£¸£¶¡^¡A·|¤£·|±o¨ì¡u¬P¡vªºÁnµ¡H°Å±µ«á¦s¦¨ wav ÀÉ¡A¦A¼½©ñ¥X¨ÓÅ¥¬Ý¬Ý¡C
- (*)
µ°T°Å±µ2:
½Ð§ï¥Î CoolEdit ¨Ó§¹¦¨¤W¤@ÃD¡C
- (***)³æÁn¹DÅÜÂùÁn¹D:
¥»ÃD±N¤@Ó³æÁn¹Dµ°TÀɮ׸g¹L³B²z«á¡AÅܦ¨¤@Ó¥ª¥k´å²¾ªºÂùÁn¹Dµ°TÀɮסC
- ½Ð±N¦¹ÀÉ®× flanger.wav ªº¥ª¥kÁn¹Dªi§Îµe¥X¨Ó¡C¥Ñ©ó¥ª¥kÁn¹Dªºµ¶qº¥¶i¤¬¸É¡A¦]¦¹¦b¼½©ñ®É¡A·|²£¥Íµ·½¦b¥ª¥kÁn¹D´å²¾ªº®ÄªG¡C
- ½Ð¨Ï¥Î load handel.mat ¨Ó¸ü¤J¤@Óµ°T y ¤Î¨ú¼ËÀW²v Fs¡A½Ð¥é·Ó flanger.wav ªº¤è¦¡¡A²£¥Í¤@ÓÂùÁn¹Dªºµ°TÀÉ®× handel.wav¡A¨Ï¨äÁnµ´å²¾ªº¯S©Ê©M flanger.wav Ãþ¦ü¡C