CMPT 468: Frequency Modulation (FM) Synthesis

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

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

Music 270a: Modulation

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

Digital Signal Processing Lecture 1 - Introduction

Music 171: Amplitude Modulation

Combining granular synthesis with frequency modulation.

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

Complex Sounds. Reading: Yost Ch. 4

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

Digital Signalbehandling i Audio/Video

Lecture 7 Frequency Modulation

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.

ECE 201: Introduction to Signal Analysis

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

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

Lab 9 Fourier Synthesis and Analysis

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

Chapter 5: Music Synthesis Technologies

Laboratory Assignment 5 Amplitude Modulation

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

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

Synthesis Techniques. Juan P Bello

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

CMPT 468: Delay Effects

Laboratory Assignment 4. Fourier Sound Synthesis

Sound Synthesis Methods

Part-I. Experiment 6:-Angle Modulation

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

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

Math and Music: Understanding Pitch

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

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

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

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

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

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

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

Solution to Chapter 4 Problems

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

Angle Modulated Systems

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

1B Paper 6: Communications Handout 2: Analogue Modulation

Problem Set 8 #4 Solution

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

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

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

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

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

CS 591 S1 Midterm Exam

ELE636 Communication Systems

Chapter 18. Superposition and Standing Waves

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

Wireless Communication Fading Modulation

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

Music and Engineering: Musical Instrument Synthesis

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

Sound synthesis with Pure Data

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

SuperCollider Tutorial

Communications IB Paper 6 Handout 2: Analogue Modulation

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

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

DR BRIAN BRIDGES SOUND SYNTHESIS IN LOGIC II

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

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

Lab10: FM Spectra and VCO

8A. ANALYSIS OF COMPLEX SOUNDS. Amplitude, loudness, and decibels

Amplitude Modulation, II

Computer Music in Undergraduate Digital Signal Processing

DSP First. Laboratory Exercise #2. Introduction to Complex Exponentials

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class

PHY-2464 Physical Basis of Music

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

ECE5713 : Advanced Digital Communications

Outline. Communications Engineering 1

SAMPLING THEORY. Representing continuous signals with discrete numbers

Experiment 7: Frequency Modulation and Phase Locked Loops

Lecture 2. FOURIER TRANSFORMS AM and FM

Direct Digital Synthesis Primer

DT Filters 2/19. Atousa Hajshirmohammadi, SFU

Principles of Communications ECS 332

METHODS FOR SEPARATION OF AMPLITUDE AND FREQUENCY MODULATION IN FOURIER TRANSFORMED SIGNALS

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

Communication Channels

MUS421/EE367B Applications Lecture 9C: Time Scale Modification (TSM) and Frequency Scaling/Shifting

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

NEGATIVE FREQUENCIES AND THROUGH-ZERO FREQUENCY MODULATION

Alternative View of Frequency Modulation

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

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

EE3723 : Digital Communications

So you say Bring on the SPAM?

UNIT-2 Angle Modulation System

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing

Fourier Transform Analysis of Signals and Systems

BASIC SYNTHESIS/AUDIO TERMS

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

Transcription:

CMPT 468: Frequency Modulation (FM) Synthesis Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 6, 23

Linear Frequency Modulation (FM) 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: Frequency Modulation (FM) Synthesis 2

Chirp Signal 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) = Acos(ω 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) = Acos(θ(t)), the instantaneous frequency is given by ω(t) = d dt θ(t). CMPT 468: Frequency Modulation (FM) Synthesis 3

Linear Chirp Signal 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 ω i (t) = d dt θ(t) = 4πµt+2πf which in Hz is f i (t) = 2µt+f. Notice the frequency is no longer a constant but is changing linearly in time, where f is the starting frequency and k = 2µ = f f T is the rate of frequency increase over duration T. The sinusoid with frequency sweeping from f to f (i.e. with instantaneous phase having a time derivative equal to 2π(kt+f )) is given by: cos(2π k 2 t2 +2πf t) CMPT 468: Frequency Modulation (FM) Synthesis 4

Sweeping Frequency We can use this time-varying value for the instantaneous frequency in our original equation for a sinusoid, x(t) = Acos(2πf(t)t+φ), where f(t) = k 2 t+f. Chirp signal swept from to 3 Hz.5 Amplitude.5.5.5 2 2.5 3 Time(s) Figure 2: A chirp signal from to 3 Hz. CMPT 468: Frequency Modulation (FM) Synthesis 5

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. CMPT 468: Frequency Modulation (FM) Synthesis 6

Vibrato simulation 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: x(t) = A c cos(2πf c t+a m cos(2πf m t+φ m )+φ c ) CMPT 468: Frequency Modulation (FM) Synthesis 7

Vibrato cont. 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, A m. The rate of vibrato is determined by the frequency of the modulating signal, f m. 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: Frequency Modulation (FM) Synthesis 8

FM Synthesis of Musical Instruments 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. CMPT 468: Frequency Modulation (FM) Synthesis 9

Frequency Modulation 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: Frequency Modulation (FM) Synthesis

Modulation Index The function I(t), called the modulation index envelope, determines significantly the harmonic content of the sound. To see this, let s first look at how it affects the instantaneous frequency f i (t). Given the general FM equation (with unit amplitude and phases set to zero for simplicity) x(t) = cos(2πf c t+i(t)cos(2πf m t)), the instantaneous frequency f i (t) (in Hz) is given by f i (t) = 2π = 2π d dt θ(t) d dt [2πf ct+i(t)cos(2πf m t)]. CMPT 468: Frequency Modulation (FM) Synthesis

Modulation Index and Instantaneous Frequency It is not necessary to completely solve for f i (t) to get a sense for how it,, and the harmonic content, is affected by the modulation index. The result on the previous slide can be further simplified by assuming I(t) does not change over time: f i (t) = 2π d dt [2πf ct+icos(2πf m t)]. Applying the product and chain rules yield f i (t) = 2π [2πf c Isin(2πf m t)2πf m ] = f c Isin(2πf m t)f m. The second term consists of a sinusoidal variation of frequency f m, with amplitude I(t)f m. This indicates that the value of I determines the maximum amount by which the instantaneous frequency deviates from the carrier frequency f c. CMPT 468: Frequency Modulation (FM) Synthesis 2

Changing harmonic content over time Since I(t) is actually function of time, this deviation, seen as sidebands at multiples of f m in the synthesized sound, may vary with time. The fact that I(t) is time varying, allows us to change the timbre of a sound over time, a known characteristic of musical sounds. CMPT 468: Frequency Modulation (FM) Synthesis 3

FM Sidebands 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. frequency fc 4fm fc 3fm fc 2fm fc fm fc fc +fm fc +2fm fc +3fm fc +4fm magnitude Figure 3: Sidebands produced by FM synthesis. CMPT 468: Frequency Modulation (FM) Synthesis 4

Determining the Modulation index Though it is possible to determine the exact amplitude of the sidebands (see next slide), we can also make use of a rule of thumb. 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. CMPT 468: Frequency Modulation (FM) Synthesis 5

Bessel Functions of the First Kind The amplitude of the k th sideband is given by J k (I), where J k is a Bessel function of the first kind, of order k..5.5 J (I) J (I).5.5 5 5 2 25 5 5 2 25.5.5 J 2 (I) J 3 (I).5.5 5 5 2 25 5 5 2 25.5.5 J 4 (I) J 5 (I).5.5 5 5 2 25 5 5 2 25 Figure 4: 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: Frequency Modulation (FM) Synthesis 6

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 +. To produce a Bessel function J k (I) in Matlab: besselj(k, I); Notice for there to be significant energy in the 5th sideband, I must be at least 4: >>besselj(5, 2) ans =.7 >> besselj(5, 3) ans =.43 >> besselj(5, 4) ans =.32 CMPT 468: Frequency Modulation (FM) Synthesis 7

Odd-Numbered Lower Sidebands 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 k (I) = J k (I). J (I).5.5 J (I).5.5 5 5 2 25 5 5 2 25 J 3 (I).5.5 J 3 (I).5.5 5 5 2 25 5 5 2 25 J 5 (I).5.5 J 5 (I).5.5 5 5 2 25 5 5 2 25 Figure 5: Bessel functions of the first kind, plotted for odd orders. CMPT 468: Frequency Modulation (FM) Synthesis 8

Effect of Phase in FM 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. In the case that the carrier is an odd function (such as a sine instead of a cosine), 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. CMPT 468: Frequency Modulation (FM) Synthesis 9

FM Spectrum 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 =. Spectrum of a simple FM instrument: fc = 22, fm =, I = 2 Magnitude (linear) 25 2 5 5 5 2 25 3 35 4 45 5 55 6 Frequency (Hz) Figure 6: Spectrum of a simple FM instrument, where f c = 22, f m =, and I = 2. Spectrum of a simple FM instrument: fc = 9, fm = 6, I = 2 Magnitude (linear) 25 2 5 5 5 5 2 25 3 35 Frequency (Hz) Figure 7: Spectrum of a simple FM instrument, where f c = 9, f m = 6, and I = 2. CMPT 468: Frequency Modulation (FM) Synthesis 2

Fundamental Frequency in FM In determining the fundamental frequency of your FM sound, it is useful represent the ratio of the carrier and modulator frequencies as a reduced fraction, that is: f c f m = N N 2 where N and N 2 are integers with no common factors. The fundamental frequency is then given by f = f c N = f m 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 f m = 22 = 2 = N N 2. and a fundamental frequency of f = 22 2 = =. CMPT 468: Frequency Modulation (FM) Synthesis 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: Frequency Modulation (FM) Synthesis 22

Missing Harmonics in FM 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. Magnitude (linear) 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 8: Spectrum of a simple FM instrument, where f c = 4, f m = 3, and I = 2. CMPT 468: Frequency Modulation (FM) Synthesis 23

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: Frequency Modulation (FM) Synthesis 24

Amplitude Env Mod. Index Bell.5 5 Brass Woodwind 5 5.5..2.3.4.5.5.2.4.6 5 5 4 2..2.3.4.5 4 2.2.4.6 Wood drum.5.5..5.2 Time (s) 2.5..5.2 Time (s) Figure 9: Envelopes for FM bell-like tones, wood-drum tones, brass-like tones and clarinet tones. CMPT 468: Frequency Modulation (FM) Synthesis 25

Formants 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: Frequency Modulation (FM) Synthesis 26

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. CMPT 468: Frequency Modulation (FM) Synthesis 27

Magnitude (linear) Magnitude (linear) Magnitude (linear) 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: Frequency Modulation (FM) Synthesis 28

Two Carriers cont. 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 it 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. CMPT 468: Frequency Modulation (FM) Synthesis 29