Linear Frequency Modulation (FM) Chirp Signal. Chirp Signal cont. CMPT 468: Lecture 7 Frequency Modulation (FM) Synthesis

Similar documents
CMPT 468: Frequency Modulation (FM) Synthesis

Music 270a: Modulation

Spectrum. Additive Synthesis. Additive Synthesis Caveat. Music 270a: Modulation

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

Music 171: Amplitude Modulation

Digital Signal Processing Lecture 1 - Introduction

Complex Sounds. Reading: Yost Ch. 4

Combining granular synthesis with frequency modulation.

ECE 201: Introduction to Signal Analysis

DSP First. Laboratory Exercise #4. AM and FM Sinusoidal Signals

Angle Modulation, II. Lecture topics. FM bandwidth and Carson s rule. Spectral analysis of FM. Narrowband FM Modulation. Wideband FM Modulation

Lecture 7 Frequency Modulation

1B Paper 6: Communications Handout 2: Analogue Modulation

Waveshaping Synthesis. Indexing. Waveshaper. CMPT 468: Waveshaping Synthesis

Digital Signalbehandling i Audio/Video

FIR/Convolution. Visulalizing the convolution sum. Convolution

INTRODUCTION TO COMPUTER MUSIC. Roger B. Dannenberg Professor of Computer Science, Art, and Music. Copyright by Roger B.

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis

Synthesis Techniques. Juan P Bello

ELE636 Communication Systems

Lab 9 Fourier Synthesis and Analysis

Sound Synthesis Methods

DSP First Lab 03: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: k=1

Laboratory Assignment 4. Fourier Sound Synthesis

Angle Modulated Systems

Developing a Versatile Audio Synthesizer TJHSST Senior Research Project Computer Systems Lab

Professorial Inaugural Lecture, 26 April 2001 DIGITAL SYNTHESIS OF MUSICAL SOUNDS. B.T.G. Tan Department of Physics National University of Singapore

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

4.1 REPRESENTATION OF FM AND PM SIGNALS An angle-modulated signal generally can be written as

Problem Set 8 #4 Solution

Musical Acoustics, C. Bertulani. Musical Acoustics. Lecture 13 Timbre / Tone quality I

Chapter 5: Music Synthesis Technologies

Laboratory Assignment 5 Amplitude Modulation

Solution to Chapter 4 Problems

Lab10: FM Spectra and VCO

Sound synthesis with Pure Data

Music 171: Sinusoids. Tamara Smyth, Department of Music, University of California, San Diego (UCSD) January 10, 2019

Musical Acoustics, C. Bertulani. Musical Acoustics. Lecture 14 Timbre / Tone quality II

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Direct Digital Synthesis Primer

FIR/Convolution. Visulalizing the convolution sum. Frequency-Domain (Fast) Convolution

THE STATE UNIVERSITY OF NEW JERSEY RUTGERS. College of Engineering Department of Electrical and Computer Engineering

CMPT 468: Delay Effects

YAMAHA. Modifying Preset Voices. IlU FD/D SUPPLEMENTAL BOOKLET DIGITAL PROGRAMMABLE ALGORITHM SYNTHESIZER

Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing

Wireless Communication Fading Modulation

Audio Engineering Society Convention Paper Presented at the 110th Convention 2001 May Amsterdam, The Netherlands

Circuit Analysis-II. Circuit Analysis-II Lecture # 2 Wednesday 28 th Mar, 18

Amplitude Modulation, II

Lecture 2. FOURIER TRANSFORMS AM and FM

VIBRATO DETECTING ALGORITHM IN REAL TIME. Minhao Zhang, Xinzhao Liu. University of Rochester Department of Electrical and Computer Engineering

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser

Experiment 7: Frequency Modulation and Phase Locked Loops

Computer Audio. An Overview. (Material freely adapted from sources far too numerous to mention )

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM)

EE-4022 Experiment 3 Frequency Modulation (FM)

CS 591 S1 Midterm Exam

Math and Music: Understanding Pitch

Communication Channels

Part-I. Experiment 6:-Angle Modulation

Communications IB Paper 6 Handout 2: Analogue Modulation

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Fourier Transform Analysis of Signals and Systems

So you say Bring on the SPAM?

UNIT-2 Angle Modulation System

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

Lab 3 SPECTRUM ANALYSIS OF THE PERIODIC RECTANGULAR AND TRIANGULAR SIGNALS 3.A. OBJECTIVES 3.B. THEORY

Local Oscillator Phase Noise and its effect on Receiver Performance C. John Grebenkemper

ANALOGUE TRANSMISSION OVER FADING CHANNELS

Outline. EECS 3213 Fall Sebastian Magierowski York University. Review Passband Modulation. Constellations ASK, FSK, PSK.

Outline. Communications Engineering 1

A-110 VCO. 1. Introduction. doepfer System A VCO A-110. Module A-110 (VCO) is a voltage-controlled oscillator.

Chapter 18. Superposition and Standing Waves

Frequency Modulation KEEE343 Communication Theory Lecture #15, April 28, Prof. Young-Chai Ko

The Multiplier-Type Ring Modulator

Signals and Systems EE235. Leo Lam

Angle Modulation. Frequency Modulation

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Fall Semester, Introduction to EECS 2

Computer Music in Undergraduate Digital Signal Processing

EE4512 Analog and Digital Communications Chapter 6. Chapter 6 Analog Modulation and Demodulation

Project 2 - Speech Detection with FIR Filters

MUS420 Lecture Time Varying Delay Effects

ECE5713 : Advanced Digital Communications

SuperCollider Tutorial

Lab P-4: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: ) X

Band-Limited Simulation of Analog Synthesizer Modules by Additive Synthesis

ME scope Application Note 01 The FFT, Leakage, and Windowing

Structure of Speech. Physical acoustics Time-domain representation Frequency domain representation Sound shaping

Amplitude Modulation II

3.1 Introduction to Modulation

SAMPLING THEORY. Representing continuous signals with discrete numbers

Automatic Calibration of Modified FM Synthesis to Harmonic Sounds using Genetic Algorithms

Modulation is the process of impressing a low-frequency information signal (baseband signal) onto a higher frequency carrier signal

Speech, music, images, and video are examples of analog signals. Each of these signals is characterized by its bandwidth, dynamic range, and the

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

Spring 2018 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #1 Sinusoids, Transforms and Transfer Functions

IMPULSE RESPONSE MEASUREMENT WITH SINE SWEEPS AND AMPLITUDE MODULATION SCHEMES. Q. Meng, D. Sen, S. Wang and L. Hayes

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

(b) What are the differences between FM and PM? (c) What are the differences between NBFM and WBFM? [9+4+3]

Lecture 6. Angle Modulation and Demodulation

Transcription:

Linear Frequency Modulation (FM) CMPT 468: Lecture 7 Frequency Modulation (FM) Synthesis Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 26, 29 Till now we ve seen signals that do not change in frequency over time. How do we modify the signal to obtain a time-varying frequency? A chirp signal is one that sweeps linearly from a low to a high frequency. Can we create such a signal by concatenating small sequences, each with a frequency that is higher than the last? This approach will likely lead to problems lining up the phase of each segment so that discontinuities aren t introduced in the resulting waveform (as seen below). Concatenating Sinusoids of Different Frequency Amplitude.5.5.5.5 2 2.5 3 3.5 4 4.5 Time (s) Figure : A signal made by concatenating sinusoids of different frequencies will result in discontinuities if care is not taken to match the initial phase. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 2 Chirp Signal Chirp Signal cont. A better approach is to modify the equation for the sinusoid so that the frequency is time-varying. Recall that the original equation for a sinusoid is given by x(t) = A cos(ω t + φ) where the instantaneous phase, given by (ω t + φ), changes linearly with time. Notice that the time derivative of the phase is the radian frequency of the sinusoid ω, which in this case is a constant. More generally, if x(t) = A cos(θ(t)), the instantaneous frequency is given by ω(t) = d dt θ(t). Now, let s make the phase quadratic, and thus non-linear, rather than linear with respect to time. θ(t) = 2πµt 2 + 2πf t + φ. The instantaneous radian frequency, which is the derivative of the phase θ, now becomes which in Hz becomes ω i (t) = d dt θ(t) = 4πµt + 2πf f i (t) = 2µt + f. Notice the frequency is no longer a constant but is changing linearly in time. To create a sweeping frequency from f to f 2 therefore, we need only look at the equation for a line y = mx + b to obtain a formula for the instantaneous frequency: f(t) = f 2 f t + f, T where T is the duration of the sweeping signal. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 3 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 4

Sweeping Frequency Vibrato simulation We can then use this time varying value for the instantaneous frequency in our original equation for a sinusoid, Amplitude.5.5 x(t) = A cos(2πf(t)t + φ). Chirp signal swept from to 3 Hz.5.5 2 2.5 3 Time(s) Figure 2: A chirp signal from to 3 Hz. If the instantaneous phase θ(t) is constant, the frequency is zero. If θ(t) is linear, the frequency is fixed (constant). if θ(t) is quadratic, the frequency changes linearly with time. Vibrato is a term used to describe a wavering of pitch. Vibrato occurs very naturally in the singing voice (though some may say a little exaggerated in some operatic performances), and in instruments where the musician has control after the note has been played (such as the violin, wind instruments, the theremin, etc.). In Vibrato, the frequency does not change linearly (as our last chirp signal example) but rather sinusoidally, creating a sense of a wavering pitch. Since the instantaneous frequency of the sinusoid is the derivative of the instantaneous phase, and the derivative of a sinusoid is a sinusoid, we merely apply a sinusoidal signal to the instantaneous phase of a carrier signal to create vibrato. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 5 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 6 Vibrato cont. Figure 3: A simple FM vibrato instrument in Pd. We can therefore use FM synthesis to create a vibrato effect, where the instantaneous frequency of the carrier oscillator varies over time according to the parameters controlling the width of the vibrato (the deviation from the carrier frequency) the rate of the vibrato. The width of the vibrato is determined by the amplitude of the modulating signal. The rate of vibrato is determined by the frequency of the modulating signal. In order for the effect to be perceived as vibrato, the vibrato rate must be below the audible frequency range and the width made quite small. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 7 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 8

FM Synthesis of Musical Instruments Frequency Modulation When the vibrato rate is in the audio frequency range, and when the width is made larger, the technique can be used to create a broad range of distinctive timbres. Frequency modulation (FM) synthesis was invented by John Chowning at Stanford University s Center for Computer Research in Music and Acoustics (CCRMA). FM synthesis uses fewer oscillators than either additive or AM synthesis to introduce more frequency components in the spectrum. Where AM synthesis uses a signal to modulate the amplitude of a carrier oscillator, FM synthesis uses a signal to modulate the frequency of a carrier oscillator. The general equation for an FM sound synthesizer is given by x(t) = A(t) [cos(2πf c t + I(t) cos(2πf m t + φ m ) + φ c ], where A(t) the time varying amplitude f c the carrier frequency I(t) the modulation index f m the modulating frequency φ m,φ c arbitrary phase constants. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 9 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 Modulation Index Modulation Index cont. The function I(t), called the modulation index envelope, determines significantly the harmonic content of the sound. Given the general FM equation x(t) = A(t) [cos(2πf c t + I(t) cos(2πf m t + φ m ) + φ c ], the instantaneous frequency f i (t) (in Hz) is given by f i (t) = d 2πdt θ(t) = d 2πdt [2πf ct + I(t) cos(2πf m t + φ m ) + φ c ] = 2π [2πf c I(t) sin(2πf m t + φ m )2πf m + d dt I(t) cos(2πf mt + φ m )] = f c I(t)f m sin(2πf m t + φ m ) + d 2πdt I(t) cos(2πf mt + φ m ). Without delving into rigorous mathematics, it is possible to determine the relationship of the modulation index I(t) to the harmonic content. Given the result for instantaneous frequency f i (t) = f c I(t)f m sin(2πf m t + φ m ) + di(t) cos(2πf m t + φ m )/2π, dt we may see that if I(t) is a constant (and it s derivative is zero), the third term goes away and the instantaneous frequency becomes f i (t) = f c I(t)f m sin(2πf m t + φ m ). Notice now that in the second term, the quantity I(t)f m multiplies a sinusoidal variation of frequency f m, indicating that I(t) determines the maximum amount by which the instantaneous frequency deviates from the carrier frequency f c. Since I(t) is a function of time, the harmonic content, and thus the timbre, of the synthesized sound may vary with time. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 2

FM Sidebands Determining the Modulation index The upper and lower sidebands produced by FM are grouped in pairs according to the harmonic number of f m, that is, frequencies present are given by f c ± kf m. magnitude In Computer Music, the modulation index I is given by I = d f m where d is the amount of frequency deviation produced by the modulating oscillator. When d =, the index I is also zero, and no modulation occurs. Increasing d causes the sidebands to acquire more power at the expense of the power in the carrier frequency. The deviation d can therefore act as a control on FM bandwidth. frequency fc 4fm fc 3fm fc 2fm fc fm fc fc + fm fc + 2fm fc + 3fm fc + 4fm Figure 4: Sidebands produced by FM synthesis. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 3 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 4 Bessel Functions of the First Kind The amplitude of the k th sideband is given by J k, where J k is a Bessel function of the first kind, of order k. Higher values of I therefore produce higher order sidebands. In general, the highest-ordered sideband that has significant amplitude is given by the approximate expression k = I +..5.5 J J.5.5 5 5 2 25.5 5 5 2 25.5 J 2 J 3.5.5 5 5 2 25.5 5 5 2 25.5 J 4 J 5.5.5 5 5 2 25 5 5 2 25 Figure 5: Bessel functions of the first kind, plotted for orders through 5. From this plot we see that higher order Bessel functions, and thus higher order sidebands, do not have significant amplitude when I is small. Bessel functions are solutions to Bessel s differential equation. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 5 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 6

Odd-Numbered Lower Sidebands Effect of Phase in FM The amplitude of the odd-numbered lower sidebands is the appropriate Bessel function multipled by -, since odd-ordered Bessel functions are odd functions. That is J J 3.5.5 5 5 2 25.5.5 J k = J k. J J 3.5.5 5 5 2 25.5.5 The phase of a spectral component does not have an audible effect unless other spectral components of the same frequency are present. In the case of frequency overlap, the amplitudes will either add or subtract and the tone of the sound will change as a result. If the FM spectrum contains frequency components below Hz, they are folded over the Hz axis to their corresponding positive frequencies. The act of folding reverses the phase. A sideband with a negative frequency is equivalent to a component with the corresponding positive frequency but with the opposite phase. 5 5 2 25 5 5 2 25 J 5.5.5 J 5.5.5 5 5 2 25 5 5 2 25 Figure 6: Bessel functions of the first kind, plotted for odd orders. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 7 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 8 FM Spectrum Fundamental Frequency in FM The frequencies present in a simple FM spectrum are f c ± kf m, where k is an integer greater than zero. The carrier frequency component is at k =. 25 2 5 5 Spectrum of a simple FM instrument: fc = 22, fm =, I = 2 5 2 25 3 35 4 45 5 55 6 Frequency (Hz) Figure 7: Spectrum of a simple FM instrument, where fc = 22, fm =, and I = 2. 25 2 5 5 Spectrum of a simple FM instrument: fc = 9, fm = 6, I = 2 5 5 2 25 3 35 Frequency (Hz) Figure 8: Spectrum of a simple FM instrument, where fc = 9, fm = 6, and I = 2. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 9 In determining the fundamental frequency of your FM sound, it is useful to define the following ratio: f c = N f m N 2 where N and N 2 are integers with no common factors. The fundamental frequency is then given by f = f c = f m. N N 2 As in the previous plot for example, a carrier frequency f c = 22 and modulator frequency f m = yields the ratio of f c = 22 f m = 2 = N. N 2 and a fundamental frequency of f = 22 2 = =. Likewise the ratio of f c = 9 to f m = 6 is 3:2 and the fundamental frequency is given by f = 9 3 = 6 2 = 3. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 2

If N 2 = M where M is an integer greater than, then every M th harmonic of f is missing in the spectrum. This can be seen in the plot below where the ratio of the carrier to the modulator is 4:3 and N 2 = 3. Notice the fundamental frequency f is, but every third multiple of f is missing from the spectrum. 25 2 5 5 Spectrum of a simple FM instrument: fc = 4, fm = 3, I = 2 2 4 6 8 2 4 6 Frequency (Hz) Figure 9: Spectrum of a simple FM instrument, where fc = 4, fm = 3, and I = 2. Some FM instrument examples When implementing simple FM instruments, we have several basic parameters that will effect the overall sound:. The duration, 2. The carrier and modulating frequencies 3. The maximum (and in some cases minimum) modulating index scalar 4. The envelopes that define how the amplitude and modulating index evolve over time. Using the information taken from John Chowning s article on FM (details of which appear in the text Computer Music (pp. 25-27)), we may develope envelopes for the following simple FM instruments: bell-like tones, wood-drum brass-like tones clarinet-like tones CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 2 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 22 Formants Bell Woodwind Brass Wood drum.5.5.5.5 Amplitude Env 5 5..2.3.4.5.2.4.6.5..5.2 Time (s) 5 Mod. Index 5 5 4 2..2.3.4.5 4 2.2.4.6 2.5..5.2 Time (s) Figure : Envelopes for FM bell-like tones, wood-drum tones, brass-like tones and clarinet tones. Another characteristic of sound, in addition to its spectrum, is the presence of formants. The formants describe certain regions in the spectrum where there are strong resonances (where the amplitude of the spectral components is considerably higher). We may view formants as the peaks in the spectral envelope. As an example, pronounce aloud the vowels a, e, i, o, u while keeping the same pitch for each. Since the pitch is the same, we know the integer relationship of the spectral components is the same. The formants are what allows us to hear a difference between the vowel sounds. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 23 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 24

Two Carrier Oscillators In FM synthesis, the peaks in the spectral envelop can be controlled using an additional carrier oscillator. In the case of a single oscillator, the spectrum is centered around a carrier frequency. With an additional oscillator, an additional spectrum may be generated that is centered around a formant frequency. When the two signals are added, their spectra are combined. If the same oscillator is used to modulate both carriers (though likely using seperate modulation indeces), and the formant frequency is an integer multiple of the fundamental, the spectra of both carriers will combine in such a way the the components will overlap, and a peak will be created at the formant frequency. 6 4 2 6 4 2 6 4 2 FM spectrum with first carrier: fc=4, fm=4, and f=4 5 5 2 25 3 35 4 45 5 FM spectrum with second carrier: fc2=2, fm=4, and f=4 5 5 2 25 3 35 4 45 5 FM spectrum using first and second carriers 5 5 2 25 3 35 4 45 5 Frequency (Hz) Figure : The spectrum of individiual and combined FM signals. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 25 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 26 Two Carriers cont. Two Modulating Oscillators In Figure, both carriers are modulated by the same oscillator with a frequency f m. The index of modulation for the first and second carrier is given by I and I 2 /I respectively. The value I 2 is usually less than I, so that the ratio I 2 /I is small and the spectrum does not spread too far beyond the region of the formant. The frequency of the second carrier f c2 is chosen to be a harmonic of the fundamental frequency f that is close to the desired formant frequency f f (from Computer Music). That is f c2 = nf = int(f f /f +.5)f. This ensures that the second carrier frequency remains harmonically related to f. If f changes, the scond carrier frequency will remain as close as possible to the desired formant frequency f f while remaining an integer multiple of the fundamental frequency f. Just as the number of carriers can be increased, so can the number of modulating oscillators. To create even more spectral variety, the modulating waveform may consist of the sum of several sinusoids. If the carrier frequency is f c and the modulating frequencies are f m and f m2, then the resulting spectrum will contain components at the frequency given by f c ± if m ± kf m2, where i and k are integers greater than or equal to. For example, when f c = Hz, f m = Hz, and f m2 = 3 Hz, the spectral component present in the sound at 4 Hz is the combination of sidebands given by the pairs: i = 3,k = ; i =,k = ;i = 3, k = 2; and so on (see Figure 2). In fact, there are an infinite number of i,k dyads that produce a sideband at ±4 Hz. The actual number that contribute to the overall amplitude is determined by the modulation indeces. CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 27 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 28

Two Modulators cont. 6 4 2 8 6 4 2 4 2 FM spectrum with first modulator: fc= and fm= 2 4 6 8 2 4 FM spectrum with second modulator: fc= and fm2=3 2 4 6 8 2 4 FM spectrum with two modulators: fc=, fm=, and fm2=3 2 4 6 8 2 4 Figure 2: The FM spectrum produced by a modultor with two frequency components. Modulation indeces are defined for each component: I is the index that charaterizes the spectrum produced by the first modulating oscillator, and I 2 is that of the second. The amplitude of the i th, k th sideband (A i,k ) is given by the product of the Bessel functions A i,k = J i (I )J k (I 2 ). Like in the previous case of a single modulator, when i, k is odd, the Bessel functions assume the opposite sign. For example, if i = 2 and k = 3 (where the negative subscript means that k is subtracted), the amplitude is A 2,3 = J 2 (I )J 3 (I 2 ). In a harmonic spectrum, the net amplitude of a component at any frequency is the combination of many sidebands, where negative frequencies foldover the Hz bin (Computer Music). CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 29 CMPT 468: Computer Music Theory and Sound Synthesis: Lecture 7 3