Professional Documents
Culture Documents
Amplitude
0
−1
−2
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (s)
• The term peak amplitude, often shortened to • The initial phase φ, given in radians, tells us the
amplitude, is the nonnegative value of the position of the waveform cycle at t = 0. Also
waveform’s peak (either positive or negative). sometimes called:
• The instantaneous amplitude of x is the value of – phase offset
x(t) (either positive or negative) at time t. – phase shift
• The instantaneous magnitude, or simply – phase factor
magnitude, of x is nonnegative and is given by • One cycle of a sinusoid is 2π radians.
|x(t)|.
• The period T of a sinusoid is the time (in seconds) it
takes to complete one cycle.
• Since sinusoids are periodic with period 2π, an initial
phase of φ is indistinguishable from an initial phase of
φ ± 2π.
– We may therefore restrict the range of φ so that it
does not exceed 2π.
– Typically we choose the range
−π < φ < π,
but we many also encouter
0 < φ < 2π.
CMPT 318: Fundamentals of Computerized Sound: Lecture 3 3 CMPT 318: Fundamentals of Computerized Sound: Lecture 3 4
Frequency Sine and cosine functions.
Amplitude
0
• The radian frequency ω, given in radians per second,
−0.5
is equivalent to the frequency in Hertz scaled by 2π, −1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s)
ω = 2πf (rad/sec).
Figure 2: Phase relationship between cosine and sine functions.
CMPT 318: Fundamentals of Computerized Sound: Lecture 3 5 CMPT 318: Fundamentals of Computerized Sound: Lecture 3 6
x(t) = s(t − t1), which is simply s(t) with its origin shifted to the left,
or advanced in time, by 1 seconds.
we say x(t) is a time-shifted version of s(t).
• Consider a vector of length one (1), rotating at a • The x- and y-axis are the horizontal and vertical lines
steady speed in a plane, the vector tracing a circle intersecting at the circle’s centre.
with a radius equal to its length. y-axis
(0, 1)
π/2
( √12 , √12 )
π/4
(-1, 0)
θ
(1, 0)
1
x-axis
π 2π
(0, -1)
3π/2 Figure 5: The vector coordinates are determined by projecting onto the x and y-axis.
• The length of the vector is given by its amplitude • Trigonometric identities, with knowledge of θ and the
(which for simplicity, in this case, is one (1)). vector length, will help us determine the coordinates.
CMPT 318: Fundamentals of Computerized Sound: Lecture 3 9 CMPT 318: Fundamentals of Computerized Sound: Lecture 3 10
Sinusoids and Circular Motion cont. Adding two sinusoids of the same
frequency
• Projecting onto the x- and y-axis gives a sequence of
points that resemble a cosine and sine function • Adding two sinusoids of the same frequency but with
respectively. possibly different amplitudes and phases,
produces another sinusoid at that frequency.
amplitude −−−>
3
sin(4πt)
2 2sin(4πt + π/4)
Amplitude
sum
1
0
time −−−>
−1
−2
−3
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (s)
Figure 7: Adding two sinusoids of the same frequency.
amplitude −−−>
time −−−>
CMPT 318: Fundamentals of Computerized Sound: Lecture 3 11 CMPT 318: Fundamentals of Computerized Sound: Lecture 3 12
where the amplitude A is given by Vector Addition
√
A = B 2 + C 2,
and the phase φ is given by • Since one vector represents one sinusoid, to add two
sinusoids of the same frequency, we need only perform
−1 C
φ = tan . vector addition.
B
y−axis
V
Every sinusoid can be expressed as the sum U