Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation.

Slides:



Advertisements
Similar presentations
| Page Angelo Farina UNIPR | All Rights Reserved | Confidential Digital sound processing Convolution Digital Filters FFT.
Advertisements

Learning Introductory Signal Processing Using Multimedia 1 Outline Overview of Information and Communications Some signal processing concepts Tools available.
Basic Tools for Understanding Synthesis. Synthesizer A musical instrument that produces waveforms, typically in the audio range of about 20 to 20,000.
Part I: Introduction & Fundamentals
Sound Synthesis Part III: Distortion-based synthesis (FM & Waveshaping)
Sound Synthesis Part IV: Subtractive & Granular synthesis, Physical modelling.
Sound Synthesis Part V: Effects. Plan Overview of effects Chorus effect Treble & bass amplification Saturation Pitch vocoder Summary.
S Transmission Methods in Telecommunication Systems (5 cr)
Chapter : Digital Modulation 4.2 : Digital Transmission
Frequency modulation and circuits
IntroductionIntroduction Most musical sounds are periodic, and are composed of a collection of harmonic sine waves.Most musical sounds are periodic, and.
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Unit Generators and V.I.s Patches are configurations of V.I.s Both Patches & Virtual Instruments can be broken down into separate components called Unit.
What makes a musical sound? Pitch n Hz * 2 = n + an octave n Hz * ( …) = n + a semitone The 12-note equal-tempered chromatic scale is customary,
Physics 1251 The Science and Technology of Musical Sound Unit 1 Session 8 Harmonic Series Unit 1 Session 8 Harmonic Series.
EE2F2 - Music Technology 9. Additive Synthesis & Digital Techniques.
Chapter 7 Principles of Analog Synthesis and Voltage Control Contents Understanding Musical Sound Electronic Sound Generation Voltage Control Fundamentals.
Sound waves and Perception of sound Lecture 8 Pre-reading : §16.3.
Sampling and quantization Seminary 2. Problem 2.1 Typical errors in reconstruction: Leaking and aliasing We have a transmission system with f s =8 kHz.
Ira Fulton School of Engineering Intro to Sinusoids What is a sinusoid? » Mathematical equation : Function of the time variable : Amplitude : Frequency.
Intro to Fourier Analysis Definition Analysis of periodic waves Analysis of aperiodic waves Digitization Time-frequency uncertainty.
Amplitude Modulation Wei Li CSULB May 22, 2006.
PH 105 Dr. Cecilia Vogel Lecture 13. OUTLINE  Timbre and graphs:  Time graph  Spectrum graph  Spectrogram  Envelope  scales  units  interval factors.
Methods for Tone and Signal Synthesis R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
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.
Square wave Fourier Analysis + + = Adding sines with multiple frequencies we can reproduce ANY shape.
AMPLITUDE MODULATION (AM)
The Spectrum Jean Baptiste Fourier ( ) discovered a fundamental tenet of wave theory All periodic waves are composed of a series of sinusoidal.
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?
Harmonics, Timbre & The Frequency Domain
A Brief Exploration of Electronic Music and its Theory By: Zac Changnon.
LE 460 L Acoustics and Experimental Phonetics L-13
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
Synthesis Basics (1) Analog Synthesis Intro to Digital Oscillators.
Lecture 1 Signals in the Time and Frequency Domains
Beats and Tuning Pitch recognition Physics of Music PHY103.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 11: Modulation Ken Greenebaum.
Filtering. What Is Filtering? n Filtering is spectral shaping. n A filter changes the spectrum of a signal by emphasizing or de-emphasizing certain frequency.
Reason Devices Subtractor. Oscillators Select Waveform The Subtractor has two oscillators that can be used as sound sources for your patches Tuning Mix:
Modulation. Definition One signal (carrier) varies according to the changes in another signal (modulator) Either amplitude modulation (AM) or frequency.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
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.
Subtractive Sound Synthesis. Subtractive Synthesis Involves subtracting frequency components from a complex tone to produce a desired sound Why is it.
ECE 4710: Lecture #7 1 Overview  Chapter 3: Baseband Pulse & Digital Signaling  Encode analog waveforms into baseband digital signals »Digital signaling.
Judith C. Brown Journal of the Acoustical Society of America,1991 Jain-De,Lee.
Sampling BTEC Level 3 Extended Diploma in Music Technology Year 1 Sound Creation & Manipulation Modulation – LFOs & Envelopes.
CHAPTER 4 COMPLEX STIMULI. Types of Sounds So far we’ve talked a lot about sine waves =periodic =energy at one frequency But, not all sounds are like.
Copyright © 2011 by Denny Lin1 Simple Synthesizer Part 3 Based on Floss Manuals (Pure Data) “Building a Simple Synthesizer” By Derek Holzer Slides by Denny.
Digital Oscillators. Everything is a Table A table is an indexed list of elements (or values) A digital oscillator or soundfile is no different.
Digital Oscillators. Everything is a Table A table is an indexed list of elements (or values) A digital oscillator or soundfile is no different.
Signal Analyzers. Introduction In the first 14 chapters we discussed measurement techniques in the time domain, that is, measurement of parameters that.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Types of Synthesizers and How They Work
Measurement and Instrumentation
Synthesizing a Clarinet Nicole Bennett. Overview  Frequency modulation  Using FM to model instrument signals  Generating envelopes  Producing a clarinet.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
FUNCTION GENERATOR.
Spectrum Analysis and Processing
MECH 373 Instrumentation and Measurements
CS 591 S1 – Computational Audio -- Spring, 2017
Chapter 5 AM, FM, and Digital Modulated Systems
Developing a Versatile Audio Synthesizer TJHSST Computer Systems Lab
Wavetable Synthesis.
Signal Processing First
AMPLITUDE MODULATION (AM)
Presentation transcript:

Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

Simple Oscillator Oscillator 3 strategies Oscillator 3 strategies Mathematical equation based oscillator Wavetable oscillator IIR-Based oscillator Solve math function for each sample Ex: y = sin(x) + Accurate -Inefficient  Non real-time applications Pre-computed and stored in memory + Fast (Look-up table) - Memory Unstable filter that generates waveform of desired amplitude and frequency. + Fast + Memory efficient  Sound synthesis

Wavetable Oscillator Example of a wavetable (N = 16) Store N values sampled over one cycle Phase increment: SI=N f0/fs

Wavetable Oscillator (example) Parameters –N = 16 –F0 = 220 –Fs = 1kHz –SI = 16 * 220/1000 SI = 3.52 Increase quality: –Increase sampling rate –interpolate

Wavetable Oscillator Distortions Quantization: Eg, pure tone F0=440Hz, Fs=8,192Hz –Truncate N=16 –Truncate N=32 –Truncate N=512 Interpolation: truncate, mean, linear Aliasing

Wavetable Oscillator Interpolation Truncation (0 th level interpolation)

Wavetable Oscillator Interpolation (2) Rounding (slightly better 0 th order)

Wavetable Oscillator Interpolation (3) Linear (First order interpolation)

Wavetable Oscillator – Interpolation (4) Quadratic (Second order interpolation)

Wavetable Oscillator Interpolation (5) Cubic (Third order interpolation)

Wavetable Oscillator Interpolation (6) Signal to (interpolation) Noise Ratio (SNR) (eg, pure tone F0=220Hz, Fs=8,192Hz) –Truncation: SNR = 6 k – 11 dB – Rounding: SNR = 6 k – 5 dB – Linear:SNR = 12 (k – 1) dB (Moore, 1977; Hartman, 1987) (k = log2(N) and N is the table length) Conclusion: For increasing quality, increase number of samples, and use interpolation.

Wavetable Oscillator Interpolation (7) Pure tone F0=440Hz, Fs=8,192Hz –Truncate N=16 –Truncate N=32 –Truncate N=512

Wavetable Oscillator – Aliasing Aliasing: One of the biggest problem for modern digital sound synthesisers (sampling freq fs=48kHz, Nyquist freq fn=fs/2=24kHz). How to avoid aliasing? –Storing a band-limited version of the waveform in the table (in memory) –Or, generate an aliasing-free signal from frequency-limited Fourier series representation.

Aliasing (2) Several sinusoids can fit a set of samples. Aliasing when sampling rate is low! Example: –Signal: f0 = 0.9Hz (red) –Sampling at: fs = 1Hz, Nyquist freq fn = 0.5Hz –  perceived fa=|n*fs-f0|=0.1Hz (blue) (n such that fa < fn)

Aliasing (3) Square wave, 563 Hz fundamental, 48kHz sampling rate. Generated using “perfect” square waveform Generated using a limited Fourier series.

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

Time Envelope (1) ADSR Envelope –Attack –Decay –Sustain –Release Important is: –Duration –Shape Linear Exponential Other (functional, table)

Linear vs. Exponential Envelope Recall: “amplitude perception is (nearly) logarithmic” –linear decay  logarithmic (perceived) fading –Exponential decay  linear (perceived) fading Note: Exponential decay never reaches zero  set min value A) LinearB) Exponential

Oscillator as an Envelope Generator Advantages: –wavetable interpolated shape. –Easy encoding of several repetitions. Drawback: –attack and decay times are affected by overall duration! Alternative: –interpolated function generator fc A fm

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

Simple Instrument Helmholtz model –Waveform –Constant frequency –Envelope Envelope feeds varying amplitude to the oscillator. ASD Envelope AMP FREQ PHASE AMP ATTACK DURATION DECAY

Simple Instrument (2) Envelope generator used as a signal processor. Oscillator feeds varying amplitude to the envelope generator. Allows to process the amplitude of a natural (recorded) sound through an envelope. AMPFREQ PHASE ASD Envelope AMP ATTACK DURATION DECAY

Limitations of the Simple Instrument Helmholtz model –Waveform –Constant frequency –Envelope Limitations: –Amplitudes of all spectral components vary simultaneously. –All spectral components are perfect (integer) harmonics.... unlike real sounds! ASD Envelope AMP FREQ PHASE AMP ATTACK DURATION DECAY

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

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

Additive Synthesis FREQ +

Additive Synthesis (2) Analysis: Frequency and amplitude envelopes can be obtained from analysis (spectrogram) Flexibility: Virtually any sound can be synthesised. Allows for the generation of new, natural sounding functions. Quality: Can realize sounds that are “indistinguishable from real tones by skilled musicians” (Risset, Computer Study of Trumpet Tones, 1966)

Additive Synthesis (3) But... –Require large amount of data to describe a sound Each oscillator requires two functions –Functions are only valid for limited range of pitch and loudness! Analysis for a given pitch and loudness will not give the same timbre when extrapolated for different pitch and loudness. Requires very large library of function sets! Just too much control?

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

Modulation Modulation: “Alteration of amplitude, phase or frequency of an oscillator, in accordance to another signal” (Dodge & Jerse, 1997) Vocabulary: –Carrier oscillator: modulated oscillator –Carrier wave: modulated signal (prior to modulation) Spectral components of modulated signal : –Carrier components: come only from carrier –Sidebands: come from both carrier & modularion

Amplitude Modulation Carrier: –Frequency: fc Modulating –Frequency: fm –Amplitude m*AMP Modulation index: m –m=0 no modulation –m>0 modulation –m=1 full modulation AMP fc m*AMP fm AMP +

Amplitude Modulation (2) Carrier frequency fc –Unaffected by modulation index Sidebands fc+/-fm –Amplitude m/2*AMP –Energy split equally between lower/higher –When m=1, sidebands 6dB below carrier Perception –If fm>10Hz -> two tones, additional loudness. –If fm tremolo m/2*AMP AMP fc-fmfc+fmfc Amplitude Frequency Pure tone fc=220Hz Tremolo fc=220Hz, fm=6Hz, m=1

Amplitude Modulation (3)

Ring Modulation Modulation is applied directly to carrier’s amplitude. –A=0  no signal! Alters frequency! If both sinusoidals: –Only sidebands: fc-fm and fc+fm! –Amplitude A/2 Eq. to signal multiplication fc A fm A/2 fc-fmfc+fmfc Amplitude Frequency fc A fm A *

Vibrato Modulation Modulating signal applied to the carrier’s frequency. “Slight wavering of pitch” Pitch varying between fc-v <= fv <= fc+v Average is = fc Eg, fc=220Hz –Pure tone –Vibrato fv=6Hz, v=0.05fc fc fm A + v fv

Vibrato Modulation (2)

Plan Simple Oscillator (wavetable) Envelope control Simple Instrument (Helmholtz) Additive Synthesis Modulation Summary WF AMPFREQ PHASE

Additional Reading C. Dodge, C., & Jerse, T. A. (1997). Computer Music: Synthesis, Composition, and Performance. Schrimer, UK. (see chapter 4)

fc fm + v fv ASD Envelope AMP ATTACK DURATION DECAY

AMP fc m*AMP fm + ASD Envelope AMP ATTACK DURATION