1
00:00:00,012 --> 00:00:04,448
We have seen how to calculate spectra of
signals, of sequences.

2
00:00:04,448 --> 00:00:08,998
Now, once, you have the spectrum and it is
not the wide band spectrum, but it is

3
00:00:08,998 --> 00:00:13,209
mostly around the certain frequency, we
can specify types of signals.

4
00:00:13,209 --> 00:00:17,887
For example, if most of the energy of a
signal is around the origin, we call it a

5
00:00:17,887 --> 00:00:21,114
low-pass signal.
If it has the energy concentrated

6
00:00:21,114 --> 00:00:24,056
somewhere else, we call it a band-pass
signal.

7
00:00:24,056 --> 00:00:28,637
And if it's energy is around minus pi or
plus pi frequency, that is called a

8
00:00:28,637 --> 00:00:32,127
high-pass signal.
Now, we're going to see a modulation

9
00:00:32,127 --> 00:00:36,475
theorem for the fluid transform, which
allows to transform a signal.

10
00:00:36,475 --> 00:00:41,575
Let's say from low-pass into a band-pass
signal or to deimmolate the signal which

11
00:00:41,575 --> 00:00:44,458
from a high frequency into a low
frequency.

12
00:00:44,459 --> 00:00:49,741
This is obtained simply by multiplying by
cosine of the adequate frequency.

13
00:00:49,741 --> 00:00:55,051
Once we have the modulation theorem, we
can do a very practical application which

14
00:00:55,051 --> 00:00:59,841
is actually tuning a guitar.
So tuning particular string to another

15
00:00:59,841 --> 00:01:05,134
string or to a reference sinusoid, I use
in some of the modulation theorem, may be

16
00:01:05,134 --> 00:01:09,638
you've used this trick or you've heard
musicians use it on stage.

17
00:01:09,639 --> 00:01:14,899
Now you'll see how a Fourier modulation
theorem is actually behind it.

18
00:01:14,899 --> 00:01:20,453
Module 4.8, Sinusoidal Modulation.
We are going to look at different types of

19
00:01:20,453 --> 00:01:24,872
signals, namely low-pass, high-pass and
band-pass signals.

20
00:01:24,872 --> 00:01:29,894
From there, we move to sinusoidal
modulation which is a way to shift a

21
00:01:29,894 --> 00:01:34,761
signal, for example lowpass signal, to
become a bandpass signal.

22
00:01:34,761 --> 00:01:40,448
Using these tools, we are going to look at
a very practical application which is

23
00:01:40,448 --> 00:01:44,882
mainly tuning of a guitar.
There are three broad categories of

24
00:01:44,882 --> 00:01:50,726
signals depending on where the spectral
energy actually is mostly concentrated.

25
00:01:50,726 --> 00:01:55,835
The easiest one and most natural one is
low-pass signals, sometimes called

26
00:01:55,835 --> 00:01:59,834
baseband signals.
Then we have high-pass signals, where the

27
00:01:59,834 --> 00:02:04,784
frequency content is mostly around high
frequencies, and in between, you have

28
00:02:04,784 --> 00:02:08,694
band-pass signals.
Now, there will be a difference between

29
00:02:08,694 --> 00:02:13,406
discrete time and continuous time signals
as we shall see, but these basic

30
00:02:13,406 --> 00:02:19,374
categories are present in both cases.
So let's look at the low-pass spectrum.

31
00:02:19,374 --> 00:02:25,844
As you can see, the energy is mostly
concentrated around the origin, around 0

32
00:02:25,844 --> 00:02:31,266
and there is no energy outside.
This is now high-pass signal.

33
00:02:31,266 --> 00:02:37,682
The energy is around pi or minus pi and
there is no energy around the origin.

34
00:02:37,682 --> 00:02:43,382
Finally, the band-pass signal.
In this case, it's concentrated around pi

35
00:02:43,382 --> 00:02:48,846
over 2 at minus pi over 2 and pi over 2.
Since this is an example of a real

36
00:02:48,846 --> 00:02:55,054
spectrum it has this symmetry that we have
seen in the properties of the DTFT,

37
00:02:55,054 --> 00:03:01,807
consider now sinusoidal modulation.
This is obtained by taking a signal x n

38
00:03:01,807 --> 00:03:06,459
and multiplying it by a cosine of omega c
times n.

39
00:03:06,459 --> 00:03:14,209
What will this produce on the spectrum
when we know x of n, and its DTFT capital

40
00:03:14,209 --> 00:03:19,892
X of e to the j omega?
So it is the DTFT of xn multiplied by a

41
00:03:19,892 --> 00:03:25,827
cosine of omega c times n.
So that's the DTFT of using Euler's

42
00:03:25,827 --> 00:03:32,727
formula, as usual of x of n multiplied by
both e to the j omega cm and e to the

43
00:03:32,727 --> 00:03:37,080
minus j omega cn.
And, this simply creates a double

44
00:03:37,080 --> 00:03:42,875
spectrum, namely is equal to 1 half,
capital x of e to the j omega shifted to

45
00:03:42,875 --> 00:03:48,820
omega c and shifted to minus omega c.
So usually, we take xn as a baseband and

46
00:03:48,820 --> 00:03:54,426
omega c is called the carrier frequency.
Now, to get the intuition for this

47
00:03:54,426 --> 00:03:59,991
formula, think of the following case.
Think of x of n being as a constant, so we

48
00:03:59,991 --> 00:04:05,865
simply have the DTFT of cosine velocity n,
which of course has these two peaks at

49
00:04:05,865 --> 00:04:11,013
omega c and minus omega c as we know from
the DTFT of a cosine function.

50
00:04:11,013 --> 00:04:16,582
So this gives an equation so if xn is a
very, very narrow band low-pass signal.

51
00:04:16,582 --> 00:04:22,084
It looks a little bit like a constant.
And then, through modulation, it will be

52
00:04:22,084 --> 00:04:25,731
moved to these two peaks at omega c and
minus omega c.

53
00:04:25,731 --> 00:04:30,006
Let's do this pictorially.
So we start with a spectrum here.

54
00:04:30,006 --> 00:04:33,416
It's a triangle or a spectrum around the
origin.

55
00:04:33,416 --> 00:04:36,219
We move it to omega c multiply it by 1
half.

56
00:04:36,219 --> 00:04:40,973
That's the first green spectrum, then we
move it to minus omega c.

57
00:04:40,973 --> 00:04:46,617
It's a blue spectrum also multiplied by 1
alpha, and this is the result, the red

58
00:04:46,617 --> 00:04:51,591
spectrum now after modulation.
So the central peak has been moved into

59
00:04:51,591 --> 00:04:57,690
two alphas big peaks at alpha omega c.
We know that spectrum is 2 pi periodic, so

60
00:04:57,690 --> 00:05:04,320
let's show a few periods here for minus 4
pi to plus 4 pi shifted to omega c, green

61
00:05:04,320 --> 00:05:11,435
specturm shifted to minus omega c, blue
spectrum, and the resulting red spectrum.

62
00:05:11,435 --> 00:05:17,119
Now, I want us to be careful if the
modulation frequency grows beyond a

63
00:05:17,119 --> 00:05:22,778
certain point and we're going to
demonstrate this again pictorially.

64
00:05:22,778 --> 00:05:29,082
So here, omega c is very close to pi, the
maximum frequency, close to minus pi, the

65
00:05:29,082 --> 00:05:32,683
blue spectrum.
And we see now that we have a funny

66
00:05:32,683 --> 00:05:37,015
looking spectrum around plus or minus pi
and plus or minus 3 pi.

67
00:05:37,015 --> 00:05:42,187
This is not exactly what we had expected,
so if we blow it up, we can see that we

68
00:05:42,187 --> 00:05:47,517
don't have the triangle spectrum anymore,
we have a piece of the triangles and

69
00:05:47,517 --> 00:05:52,904
something funny around minus pi and pi.
Let us look at some applications of what

70
00:05:52,904 --> 00:05:55,824
we have just learned about signal
modulation.

71
00:05:55,824 --> 00:05:59,875
So, for example, voice and music are
typically low-pass signals.

72
00:05:59,875 --> 00:06:04,681
They don't have infinitely high
frequencies, because anyways, it wouldn't

73
00:06:04,681 --> 00:06:09,430
be heard by the human hearing system.
Radio channels, on the other hand, are

74
00:06:09,430 --> 00:06:13,232
bandpass signals, because we need to
modulate them high up.

75
00:06:13,232 --> 00:06:18,551
Otherwise, there is too much interference
or too much loss in transmission.

76
00:06:18,551 --> 00:06:23,757
Modulation is the process of bringing a
baseband signal, for example, a voice

77
00:06:23,757 --> 00:06:27,776
signal into the transmission band for
radio transmission.

78
00:06:27,776 --> 00:06:33,260
And demodulation is the inverse or the
dual of modulation and it will bring back

79
00:06:33,260 --> 00:06:36,758
the signal from a bandpass down to the
baseband.

80
00:06:36,759 --> 00:06:40,606
So let us look at this demodulation
process.

81
00:06:40,606 --> 00:06:47,251
It is simply done by multiplying the
received signal by the same carrier again.

82
00:06:47,251 --> 00:06:50,901
So we have yn is xn times cosine of omega
cn.

83
00:06:50,901 --> 00:06:57,472
It's spectrum, we have seen before y equal
to g omega is a combination of the two

84
00:06:57,472 --> 00:07:01,807
spectra shifted to omega c and minus
omega, omega c.

85
00:07:01,807 --> 00:07:06,223
The DTFT of yn multiplied by two cosine of
omega cn.

86
00:07:06,223 --> 00:07:13,130
Well, it's going to be the combination of
capital Y shifted to omega c and to omega

87
00:07:13,130 --> 00:07:18,206
c and minus omega c.
Then, we replace the formula we just had

88
00:07:18,206 --> 00:07:23,641
before so we have four terms.
One shifted by 2 omega c and also one by

89
00:07:23,641 --> 00:07:28,314
minus 2 omega c, and two terms that are
actually at zero origin.

90
00:07:28,314 --> 00:07:34,394
And so, we have indeed capital Xe to the j
omega on plus 1 half and two modulated

91
00:07:34,394 --> 00:07:37,663
versions at 2 omega c and minus to omega
c.

92
00:07:37,663 --> 00:07:42,982
Let's do this pictorially.
So the DTFT of x n is shown here.

93
00:07:42,982 --> 00:07:47,789
So it's a spectrum, triangle spectrum
around the origin.

94
00:07:47,789 --> 00:07:54,395
Then it's modulated version has two peaks
at minus omega c and plus omega c.

95
00:07:54,395 --> 00:08:01,847
Then yn multiplied by cos omega cn has two
shifted version, one to the right by omega

96
00:08:01,847 --> 00:08:07,454
c, it's the green one, one to the left by
omega c is the blue one.

97
00:08:07,454 --> 00:08:14,474
And totally, the sum of these two which
has a peak around the origin, which is of

98
00:08:14,474 --> 00:08:18,632
height 2 and a 2 also peak, which are
around pi.

99
00:08:18,632 --> 00:08:23,589
We have now the picture of the DTFT of the
demodulated version.

100
00:08:23,589 --> 00:08:29,893
It looks like the original spectrum around
the origin, but it has these two peaks

101
00:08:29,893 --> 00:08:35,555
closer to minus pi and pi which were not
present in the original signal.

102
00:08:35,555 --> 00:08:40,381
So, we have the baseband, but we have
these two spurious high frequency

103
00:08:40,381 --> 00:08:45,889
components, and we will have to learn how
to actually get rid of them, and this will

104
00:08:45,889 --> 00:08:50,602
be the topic of the next module.
Finally,we're going to see a real

105
00:08:50,602 --> 00:08:56,206
application, a really useful application,
that is, it is tuning your guitar.

106
00:08:56,206 --> 00:09:02,815
The abstraction of the problem is that you
have reference sinusoid at some frequency

107
00:09:02,815 --> 00:09:06,407
omega 0.
You have a tunable sinusoid of frequency

108
00:09:06,407 --> 00:09:09,628
omega.
And we would like to make omega, omega 0

109
00:09:09,628 --> 00:09:14,201
as close as possible, actually equal and
this only by listening to it.

110
00:09:14,201 --> 00:09:19,667
And what we are going to do here is a
beating between these two frequencies when

111
00:09:19,667 --> 00:09:23,825
they are close enough.
And then by tuning, we can bring this

112
00:09:23,825 --> 00:09:29,453
beating to essentially frequency zero at
what point omega is equal to omega note

113
00:09:29,453 --> 00:09:34,681
and we have tuned our guitar string with
respect to a reference frequency.

114
00:09:34,681 --> 00:09:40,079
So how are we going to go about this?
Well, first we bring omega close to omega

115
00:09:40,079 --> 00:09:43,465
north.
That's sort of easy if you have a minimum

116
00:09:43,465 --> 00:09:47,556
of musical ear.
When these two frequencies are close, we

117
00:09:47,556 --> 00:09:52,716
play both sinusoids together, then we have
to remember trigonometry.

118
00:09:52,716 --> 00:09:58,578
And we write xn, which is a sum of cos
omega 0 n plus cos of omega n, in terms of

119
00:09:58,578 --> 00:10:04,722
a sum and a difference of these two
frequencies, which finally can be written

120
00:10:04,722 --> 00:10:11,346
approximately as two times the cos of the
difference, delta of omega times n and the

121
00:10:11,346 --> 00:10:17,663
cosine of the base frequency omega naught.
From this formula we see there are two

122
00:10:17,663 --> 00:10:23,942
components, there are the errors signals,
the cosine of delta omega N and there is a

123
00:10:23,942 --> 00:10:29,530
modulation signal, The cosign at omega 0.
When omega is close to omega 0, the error

124
00:10:29,530 --> 00:10:34,287
signal is very low frequency, so we cannot
really hear it, because it's such a low

125
00:10:34,287 --> 00:10:37,442
frequency.
So the modulation will bring it up to the

126
00:10:37,442 --> 00:10:42,270
hearing range and we are going to actually
hear it as an oscillation of the carrier

127
00:10:42,270 --> 00:10:46,127
frequency.
And we're going to see this pictorially in

128
00:10:46,127 --> 00:10:51,187
just a moment.
Let's look at the pictorial demonstration

129
00:10:51,187 --> 00:10:55,116
here.
So we start omega 0 is 2 pi times 0.2.

130
00:10:55,116 --> 00:11:03,826
Omega is 2 pi times 0.22, its a difference
which is actually half of the difference

131
00:11:03,826 --> 00:11:10,362
between the 2 is 2 pi times 0.01.
We see now interestingly, we have the

132
00:11:10,362 --> 00:11:17,028
carrier frequency, which is red curve
modulated by the difference by cosine of

133
00:11:17,028 --> 00:11:21,773
delta of omega.
So we see this, the beeping in blue

134
00:11:21,773 --> 00:11:26,827
overlaid to the red curve which is
modulation.

135
00:11:26,827 --> 00:11:32,201
We can change the frequency omega to 0.21
times 2 pi.

136
00:11:32,201 --> 00:11:37,598
The difference now is 0.005, the beating
is slower.

137
00:11:37,598 --> 00:11:43,258
We pick omega is equal to 2 pi times
0.205, the beating is even slower.

138
00:11:43,258 --> 00:11:49,829
And here, we take an example where omega
is very close to omega 0 and the beating

139
00:11:49,829 --> 00:11:54,438
is extremely slow.
And we almost see only the modulating

140
00:11:54,438 --> 00:12:00,360
frequency omega 0 and the very slow
variation due to the beating by cosine of

141
00:12:00,360 --> 00:12:04,667
delta of omega.
It's time to see a video demonstration how

142
00:12:04,667 --> 00:12:08,182
to tune a guitar, using this very simple
principle.

143
00:12:08,182 --> 00:12:13,702
You've probably have seen musicians doing
it on stage, now you understand the math

144
00:12:13,702 --> 00:12:17,322
behind it.
Okay, after all these maths, let's try to

145
00:12:17,322 --> 00:12:20,719
do something useful like tuning an
electric bass.

146
00:12:20,719 --> 00:12:27,023
An electric bass has an E string, [music]
which is a frequency of 41.2 hertz and an

147
00:12:27,023 --> 00:12:31,016
A string, [music] which is a frequency of
55 hertz.

148
00:12:31,016 --> 00:12:36,027
To use the result we have just seen, we
want to find two frequencies that we want

149
00:12:36,027 --> 00:12:39,421
to make equal.
As long as they are not, there will be a

150
00:12:39,421 --> 00:12:44,002
beating that we can adjust, we are going
to hear this in just a moment.

151
00:12:44,002 --> 00:12:48,264
So the first harmonic of the E string here
is at [music] 83.4 hertz.

152
00:12:48,265 --> 00:12:56,023
The short harmonic is at 164.8.
For the A string, the first harmonic is at

153
00:12:56,023 --> 00:13:04,537
110 and the second harmonic is at 165.
And we're going to use these two harmonics

154
00:13:04,537 --> 00:13:10,406
to do the tuning and you can hear when
their out of tune.

155
00:13:10,406 --> 00:13:18,260
There is a beating and you should, as you
get them closer and closer, the beating

156
00:13:18,260 --> 00:13:27,093
slows until it's actually zero beating.
And then the two frequencies are similar

157
00:13:27,093 --> 00:13:35,523
and then we can start playing something
like or something else.
