Sound Synthesis Part III: Distortion-based synthesis (FM & Waveshaping)

Slides:



Advertisements
Similar presentations
Part I: Introduction & Fundamentals
Advertisements

Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation.
Sound Synthesis Part IV: Subtractive & Granular synthesis, Physical modelling.
Analysis of plucked sound signals using the Prony method Ye Lu
Sound Synthesis Part V: Effects. Plan Overview of effects Chorus effect Treble & bass amplification Saturation Pitch vocoder Summary.
Tamara Berg Advanced Multimedia
Simple FM Instruments John Chowning's FM Designs as shown in Dodge, Computer MusicJohn Chowning's FM Designs as shown in Dodge, Computer Music brass-like.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
Easily extensible unix software for spectral analysis, display modification, and synthesis of musical sounds James W. Beauchamp School of Music Dept.
EE2F2 - Music Technology 9. Additive Synthesis & Digital Techniques.
Han Q Le© ECE 3336 Introduction to Circuits & Electronics Lecture Set #10 Signal Analysis & Processing – Frequency Response & Filters Dr. Han Le ECE Dept.
EE2F2: Music Technology - Revision Two exam questions Music Recording Technology Mixing & multi-track recording Effects MIDI & Sequencers Virtual Studio.
Chapter 7 Principles of Analog Synthesis and Voltage Control Contents Understanding Musical Sound Electronic Sound Generation Voltage Control Fundamentals.
Classical Analog Synthesis. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic.
A.Diederich– International University Bremen – USC – MMM Spring Sound waves cont'd –Goldstein, pp. 331 – 339 –Cook, Chapter 7.
Additional Notes on Wavetable Synthesis R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
EE2F2 - Music Technology 8. Subtractive Synthesis.
PH 105 Dr. Cecilia Vogel Lecture 12. OUTLINE  Timbre review  Spectrum  Fourier Synthesis  harmonics and periodicity  Fourier Analysis  Timbre and.
Nonlinear and Time Variant Signal Processing R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Modulation of Waves (FM Radio, AM Radio and Television)
Human Psychoacoustics shows ‘tuning’ for frequencies of speech If a tree falls in the forest and no one is there to hear it, will it make a sound?
Joshua “Rock Star” Jenkins Jeff “Tremolo” Smith Jairo “the boss” Rojas
A Brief Exploration of Electronic Music and its Theory By: Zac Changnon.
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
MIDI. A protocol that enables computers, synthesizers, keyboards, and other musical devices to communicate with each other. Instead of storing actual.
Chapter-4 Synthesis and Analysis of Complex Waves Fourier Synthesis: The process of combining harmonics to form a complex wave. Fourier Analysis: Determining.
Beyond the Beep Sequencer-Controlled Music Synthesis for 8-bit Apple II’s Michael Mahon
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Harmonic Series and Spectrograms
Physics 1251 The Science and Technology of Musical Sound Unit 4 Session 37 MWF Synthesizers Unit 4 Session 37 MWF Synthesizers.
Lecture 3 MATLAB LABORATORY 3. Spectrum Representation Definition: A spectrum is a graphical representation of the frequency content of a signal. Formulae:
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 11: Modulation Ken Greenebaum.
6.9 How radio works 22 October 2015 What is this image? What other information can you get from it?
Copyright © 2011 by Denny Lin1 Simple Synthesizer Part 1 Based on Floss Manuals (Pure Data) “Building a Simple Synthesizer” By Derek Holzer Slides by Denny.
Frequency Modulation. Listening Example Keith Kothman In Time (1986) for clarinet and tape.
Chapter 5: Electronic Music and Synthesizers Who uses electronic musical synthesizers? Each advance in electronic technology is followed by a concomitant.
Non-linear Synthesis: Beyond Modulation. Feedback FM Invented and implemented by Yamaha Solves the problem of the rough changes in the harmonic amplitudes.
Contents Introduction ( P1-P4). Frequency modulation.(P5-P7) Frequency demodulation (P8-P14) FM using simulink implementation (P15 – P 17)
Subtractive Sound Synthesis. Subtractive Synthesis Involves subtracting frequency components from a complex tone to produce a desired sound Why is it.
Chapter 10 Early Computer Music ( ) Contents Foundations of Computer Music The Role of Computers in Music Computer Composition and Scoring Computer.
Pre-Class Music Keith Kothman, Interludes video by John Fillwalk.
Eeng Chapter 5 AM, FM, and Digital Modulated Systems  Phase Modulation (PM)  Frequency Modulation (FM)  Generation of PM and FM  Spectrum of.
Signals & Systems Lecture 13: Chapter 3 Spectrum Representation.
Chapter 12 The Principles of Computer Music Contents Digital Audio Processing Noise Reduction Audio Compression Digital Rights Management (DRM)
Technician License Course Chapter 2 Lesson Plan Module 3 – Modulation and Bandwidth.
Sound Quality.
Design of a Guitar Tab Player in MATLAB Summary Lecture Module 1: Modeling a Guitar Signal.
Types of Synthesizers and How They Work
Spectrum Analyzer. SPECTRUM ANALYZERS The problems associated with non-real-time analysis in the frequency domain can be eliminated by using a spectrum.
Intro to Fourier Series BY JORDAN KEARNS (W&L ‘14) & JON ERICKSON (STILL HERE )
Measurement and Instrumentation
Synthesizing a Clarinet Nicole Bennett. Overview  Frequency modulation  Using FM to model instrument signals  Generating envelopes  Producing a clarinet.
XP Practical PC, 3e Chapter 14 1 Recording and Editing Sound.
Eeng Chapter 5 AM, FM, and Digital Modulated Systems  Phase Modulation (PM)  Frequency Modulation (FM)  Generation of PM and FM  Spectrum of.
Fourier Series Prof. Brian L. Evans
EE2F2: Music Technology - Revision
CS 591 S1 – Computational Audio -- Spring, 2017
Amplitude Modulation.
Presented by: Chen Shi 02/22/2018
Chapter 4 Bandpass Circuits Limiters
Intro to Fourier Series
Developing a Versatile Audio Synthesizer TJHSST Computer Systems Lab
Wavetable Synthesis.
Sound Periodic Functions. Developing a Music Sequencer/Synthesizer Victor Shepardson Computer Systems Lab
Sound shadow effect Depends on the size of the obstructing object and the wavelength of the sound. If comparable: Then sound shadow occurs. I:\users\mnshriv\3032.
Uses of filters To remove unwanted components in a signal
Lecture 5: Phasor Addition & Spectral Representation
Lecture 7: Spectral Representation
Electrical Communications Systems ECE
Presentation transcript:

Sound Synthesis Part III: Distortion-based synthesis (FM & Waveshaping)

Plan Distortion-based synthesis –FM synthesis –Waveshaping Matlab code for synthesis Example of synthesized composition (Risset) Summary

Types of synthesis Sound Synthesis Additive synthesis Distortion techniques Subtractive synthesis Granular synthesis Analysis based Physical modelling

Distortion (aka nonlinear) Synthesis Additive synthesis is powerful & flexible BUT requires many simple oscillators. Plethoric and non-intuitive controls on the sound spectrum.  Using fewer oscillators, with more components.  Complex spectra can be obtained by distorting simple oscillators.

Plan Distortion-based synthesis –FM synthesis –Waveshaping Substractive synthesis Summary

FM Synthesis Pioneered by John Chowning (1973) “Alteration of distortion of the frequency of an oscillator in accordance with the amplitude of a modulating signal.” Similar to Vibrato modulation, but using audible modulating frequency and larger width.  Generate a large number of timbres easily controlled.

FM Synthesis (2) Modulated frequency in fc-d <= fv <= fc+d Peak frequency deviation d (in Hz) Vibrato: small d & fm FM Synth: larger d & fm Note: if d>fc, then fv can be < 0 (negative phase applied!)  Rich spectrum from sine waves only! fc fm A + d fv Modulating oscillator Carrier oscillator

FM Synthesis (3) Spectrum: fc + k.fm, for k an integer. Sidebands increase with d Modulation index I=d/fm Spectrum amplitude: –Fc+k.fm  Jk(I) –where Jk is the kth Bessel function –Sidebands significant ~ for |k|<I+1 (rule of thumb) Bessel Functions J1(X), J2(X) and J3(X) fc-fm fc+fm fc Magnitude Frequency fc+2.fm fc-2.fmfc-3.fm fc+3.fm

FM Synthesis (4) Bessel functions can be negative! Odd number, low- frequency components have opposite sign J -1 (I) = -J 1 (I) Negative spectrum represents out-of-phase components. Combination of in- phase and out-of-phase components of same amplitude cancels out. fc-fm fc+fm fc magnitude fc+2.fm fc-2.fmfc-3.fm fc+3.fm Bessel Functions J1(X), J2(X) and J3(X)

FM Synthesis: Dynamic Spectrum Dynamic spectrum can be obtained by applying envelopes to both carrier and modulating signals. I is the max value of the modulation index More limited than additive synthesis, but requires less components. I*fm fm + ASD Envelope fc A fo

FM Synthesis: Dynamic Spectrum TIME FREQUENCY

FM Synthesis: Instrument Design Envelopes functions F1 & F2 change the timbre of the sound (John Chowning, 1973) A) Bell-like timbre B) Wood drum sound C) Brass-like timbre fm + fc A fo F1 F2 1/d fm*I 1/d (John Chowning, 1973)

FM Synthesis: Instrument Design (2) A) Bell-like timbre –D = 15s –Fc = 200Hz –Fm = 280Hz –I = 10 fm + fc A fo F1 F2 1/d fm*I 1/d (John Chowning, 1973) 1 d F1 = F2

FM Synthesis: Instrument A’s Spectrogram (bell)

FM Synthesis: Instrument Design (3) B) Wood drum sound –D=0.2 s –Fc=80Hz –Fm=55Hz –I=25 fm + fc A fo F1 F2 1/d fm*I 1/d (John Chowning, 1973) 1 d F1 1 d F2

FM Synthesis: Instrument B’s Spectrogram (drum)

FM Synthesis: Instrument Design (4) C) Brass-like timbre –D=0.6 –fc=440Hz –Fm=440Hz –I=5 (or 3) fm + fc A fo F1 F2 1/d fm*I 1/d (John Chowning, 1973) 1 d F1 = F2

FM Synthesis: Instrument C’s Spectrogram (brass)

FM Synthesis Instrument Design (5) D) Clarinet-like timbre –d = 0.5 s. –Fc = 900 Hz –Fm = 600 Hz –I = 2 –J = 4 fm + fc A fo F1F2 1/d fm*(I-J) 1/d (John Chowning, 1973) + J*fm 1 d F1 1 d F2

FM Synthesis: Instrument D’s Spectrogram (clarinet)

FM Synthesis: Instruments Summary A) BELL-LIKEB) WOODEN DRUM C) BRASS-LIKED) CLARINET

Plan Distortion-based synthesis –FM synthesis –Waveshaping Matlab code for synthesis Example of synthesized composition (Risset) Summary

Waveshaping (1): Definition Idea: “realizes spectra that have dynamic evolution of their components.” More computationally efficient than additive (like FM) Allows generation of band-limited spectrum with a set max harmonic number (unlike FM) f0 A WS waveshaper

Waveshaping (2): Transfer Function Waveshaper: nonlinear processor that alters the shape of the waveform passing through. Defined by a transfer function: ys=f(y0) The shape of the output waveform (and spectrum) changes with amplitude of the input signal! INPUT OUTPUT TRANSFER FUNCTION RESULT CARRIER

Transfer function Low amplitude ~ linear response High amplitude Nonlinear response

Waveshaping (3): Transfer Function INPUT OUTPUT TRANSFER FUNCTION RESULT CARRIER

Waveshaping (4): Some Transfer Functions in out in out in out A) LinearB) Odd C) Even in out D) Discontinuous in out E) Sharp points in out F) Ripple

Waveshaping: Linear Transfer Functions Eg, f(x) = 0.5x Reduces amplitude by half. No distortion, no harmonic added. in out f(x) = 0.5*x

Waveshaping: Odd Transfer Functions Definition: f(-x) = -f(x) Eg, f(x) = x^3 Nearly linear for low amplitude (  low distortion) Highly non-linear for high amplitude (  high distortion) Generates only odd- numbered harmonics! in out f(x) = x^3

Waveshaping: Even Transfer Functions Definition: f(-x) = f(x) Eg. f(x) = 2*x^2-3*x^4 Creates only even harmonics Even transfer function doubles the fundamental frequency  raises the pitch by one octave! in out f(x) = 2*x^2-3*x^4

Waveshaping: Other Transfer Functions Discontinuities and sharp points will create more harmonics than a smooth function Generally causes aliasing! For this reason, it is common to use polynomial transfer functions f(x) = d0+d1*x+d2*x^ dn*x^n in out D) Discontinuous in out E) Sharp points

Waveshaping: Polynomial Transfer Functions Divh0h1h2h3h4h5h6h7h8h9 x^00.51 x^111 x^2221 x^3431 x^48641 x^ x^ x^ x^ See Dodge & Jerse Eg, for a pure tone of amplitude 1, f(x)=x^5 will generate? What about f(x) = 2*x^2 – 3*x^4 ?

Waveshaping: Polynomial Transfer Functions The transfer function: f(x) = 2*x^2 – 3*x^4 applied to a pure tone (sinusoidal) carrier of amplitude 1, will generate the following harmonics: –H0 = 2*2/2 - 3*6/8 –H2 = 2*1/2 – 3*4/8 –H4 = -3*1/8

Waveshaping: Spectral matching For a pure tone cosine carrier of unit amplitude (A=1) – also called distortion index, Applying a transfer function based on a Chebyshev polynomial T k (x) will generate only the kth harmonic General form for Chebyshev polynomials: T k+1 (x) = 2xT k (x)-T k-1 (x)

Waveshaping: Chebyshev Polynomials T 0 (x) = 1 T 1 (x) = x T 2 (x) = 2x^2-1 T 3 (x) = 4x^3-3x T 4 (x) = 8x^4-8x^2+1 T 5 (x) = 16x^5-20x^3+5x T 6 (x) = 32x^6-48x^4+18x^2-1 Etc.

Waveshaping: Using Chebyshev Polynomials For example, to generate only 1 st, 2 nd, 4 th & 5 th harmonics with amplitudes 5, 1, 4, and 3, respectively. We can design the transfer function: F(x) = 5*T 1 (x)+1*T 2 (x)+4*T 4 (x)+3*T 5 (x)

Waveshaping: Instrument Design Instrument for clarinet-like timbre From Jean-Claude Risset’s Introductory Catalogue of Computer Synthesized Sounds. fm + ASD Envelope 256 F(x) * A

Waveshaping: Instrument Transfer Function

Waveshaping: Instrument Spectrogram

Waveshaping: Amplitude Scaling Distortion index A affects sound’s amplitude, and there by loudness. Similar to acoustic instruments: louder play usually generates more overtones. Excessive loudness variation  excessive bright tones. Solution: apply a scaling function to the amplitude R(A,x) = F(Ax)S(A) f0 A F(x)S(A) *

Plan Distortion-based synthesis –FM synthesis –Waveshaping Matlab code for synthesis Example of synthesized composition (Risset) Summary

Matlab Code Examples for all sounds are available here: lt/MediacastingL3_2012/ lt/MediacastingL3_2012/ Parameters can be tweaked to evaluate their influence. Matlab is convenient for plotting results > spectrogram( y, ntime, noverlap, nfft, fs ) > spectrogram( y, 256, 250, 250, fs ) Can play sounds using the command: > sound( y, fs )

Plan Distortion-based synthesis –FM synthesis –Waveshaping Matlab code for synthesis Example of synthesized composition (Risset) Summary

Plan Distortion-based synthesis –FM synthesis –Waveshaping Matlab code for synthesis Example of synthesized composition (Risset) Summary

Additional Reading C. Dodge, C., & Jerse, T. A. (1997). Computer Music: Synthesis, Composition, and Performance. Schrimer, UK. (see chapters 5 and 6) Matlab examples for all sounds & instruments are available here: eault/MediacastingL3_2012/ eault/MediacastingL3_2012/