Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Polynomial Functions.
Introduction to Alternating Current and Voltage
Modulation: CHORUS AND FLANGE  Just as a chorus is a group of singers, the chorus effect can make a single instrument sound like there are actually.
Nonrecursive Digital Filters
Sound test. Signals and waveforms What is a signal? Need not be electrical Morse Speech Video Contains information.
Chapter 11.
Techniques in Signal and Data Processing CSC 508 Frequency Domain Analysis.
Lesson 17 Intro to AC & Sinusoidal Waveforms
Lock-in amplifiers Signals and noise Frequency dependence of noise Low frequency ~ 1 / f –example: temperature (0.1 Hz), pressure.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
Copyright © 2011 by Denny Lin1 Simple Synthesizer Part 4 Based on Floss Manuals (Pure Data) “Building a Simple Synthesizer” By Derek Holzer Slides by Denny.
Copyright © 2011 by Denny Lin1 Simple Synthesizer Part 2 Based on Floss Manuals (Pure Data) “Building a Simple Synthesizer” By Derek Holzer Slides by Denny.
Fundamentals of Electric Circuits Chapter 14
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Chapter 13: Operational Amplifiers
Angle Modulation Objectives
VARIABLE-FREQUENCY NETWORK
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Network Analysis and Synthesis
Lock-in amplifiers
Introduction to Frequency Selective Circuits
Chapter 25 Nonsinusoidal Waveforms. 2 Waveforms Used in electronics except for sinusoidal Any periodic waveform may be expressed as –Sum of a series of.
Alternating-Current Circuits Chapter 22. Section 22.2 AC Circuit Notation.
Digital Signals and Systems
Filters and the Bode Plot
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 7 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
electronics fundamentals
ELECTRICAL CIRCUIT ET 201 Define and explain characteristics of sinusoidal wave, phase relationships and phase shifting.
electronics fundamentals
Chapter 19 Electronics Fundamentals Circuits, Devices and Applications - Floyd © Copyright 2007 Prentice-Hall Chapter 19.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Copyright ©2011 by Pearson Education, Inc. publishing as Pearson [imprint] Introductory Circuit Analysis, 12/e Boylestad Chapter 21 Decibels, Filters,
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Chapter 14: Operational Amplifiers. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Electronic Devices.
Digital Filters. What have we seen so far?  So far we have seen… Box filterBox filter  Moving average filter  Example of a lowpass passes low frequenciespasses.
Chapter 6 Digital Filter Structures
Digital Filters. Filters Filters shape the frequency spectrum of a sound signal. –Filters generally do not add frequency components to a signal that are.
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
Chapter 15 AC Fundamentals.
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.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
OPERATIONS USING FRACTIONS. 1. Add, subtract, multiply and divide fractions with and without a calculator. 2. Convert between equivalent forms of fractions.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 5 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
COVERAGE TOPICS 1. AC Fundamentals AC sinusoids AC response (reactance, impedance) Phasors and complex numbers 2. AC Analysis RL, RC, RLC circuit analysis.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
All materials are taken from “Fundamentals of electric circuits”
Lec 6. Second Order Systems
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.
Feedback Filters n A feedback filter processes past output samples, as well as current input samples: n Feedback filters create peaks (poles or resonances)
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Fourth Edition, by Allan R. Hambley, ©2008 Pearson Education, Inc. Lecture 17 Fourier Analysis, Low.
Amplitude Modulation Circuits
1 Fourier Representation of Signals and LTI Systems. CHAPTER 3 UniMAP.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Oh-Jin Kwon, EE dept., Sejong Univ., Seoul, Korea: 2.3 Fourier Transform: From Fourier Series to Fourier Transforms.
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Function Generators. FUNCTION GENERATORS Function generators, which are very important and versatile instruments. provide a variety of output waveforms.
Measurement and Instrumentation
Chapter 8 Introduction to Alternating Current and Voltage.
Trigonometric Identities
Introduction to Alternating Current and Voltage
ALTERNATING CURRENT AND VOLTAGE
TOPIC 3: FREQUENCY SELECTIVE CIRCUITS
Amplitude Modulation Circuits
Sinusoidal Waveform Phasor Method.
UNIT II Analysis of Continuous Time signal
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Presentation transcript:

Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin

Copyright © 2011 by Denny Lin2 Shaping sound 6.1 Amplitude dependent signal shaping 6.2 Periodic functions 6.3 Other functions 6.4 Time dependent signal shaping

Copyright © 2011 by Denny Lin3 6.1 Amplitude dependent signal shaping Arithmetic is used to scale, shift, and invert signals Addition and multiplication are commutative Subtraction and division are not commutative It is better to multiply by decimal fractions and reserve divide for processing variable signals

Copyright © 2011 by Denny Lin4 Scaling and Shifting a signal Scaling a signal: –Multiply a signal by a fixed amount –Typically used to control amplitude (volume) Shifting a signal: –Add to a signal by a fixed amount –Moves signal up or down to correct its swing

Copyright © 2011 by Denny Lin5 Inverting and Complementing a Signal Inverting a signal: –Multiply by -1 –Changes phase by 180 degrees (  ) Complementing a signal: –Given signal a, its complement is 1 – a –Has same direction as signal inverse, but its signal polarity is retained, and defined between 0.0 and 1.0

Copyright © 2011 by Denny Lin6 Signal reciprocal Given a signal a, its reciprocal is 1/a When signal a is very large, its complement 1/a is close to 0 When signal a is close to 0, its complement 1/a is very large

Copyright © 2011 by Denny Lin7 Limiting a signal Use the max~ object to specify a minimum possible value –max~ 0 specifies lower limit of 0 Use the min~ object to specify a maximum possible value –min~ 0 specifies upper limit of 0

Copyright © 2011 by Denny Lin8 Wave Shaping and Clipping A phasor can be shaped into any other waveform A cosine waveform can be easily shaped into a square wave Use the clip~ object to limit the output within a specified range

Copyright © 2011 by Denny Lin9 Generating triangle waves (I) Use phasor~ to generate signal Shift down by 0.5: [-~ 0.5] Keep only signal between -0.5 to 0: [clip~ ] Invert signal and double the amplitude: [*~ 2] Add left (graph B) and right (graph C) branches: [+~] Re-center: [-~ 0.25] and normalize: [*~ 4] triangle waves

Copyright © 2011 by Denny Lin10 Generating triangle waves (II) Use phasor~ to generate signal Get complement of signal by inverting: [*~ -1] and shifting up: [+~ 1] signal Take the minima of the two signals (graph A) and graph B): [min~] Re-center: [-~ 0.25] and normalize: [*~ 4] triangle waves

Copyright © 2011 by Denny Lin11 Squaring and roots Multiplying a signal by itself is equivalent to squaring a signal –Amplitude scaled according to its original size –Output is always positive Use the sqrt~ object to find the square root of a signal

Copyright © 2011 by Denny Lin12 Curved envelopes Rising or falling control signals can be used to produce curves: –Linear –Squared (2 nd power) –Quartic (4 th power) All curves take the same amount of time to reach 0 More squaring operations causes faster initial signal decay

Copyright © 2011 by Denny Lin Periodic functions Wrapping ranges –Doubling the amplitude of phasor and wrapping the signal, in turn doubles the frequency Can obtain an exact number of phasor cycles from a line (see fig. 6.13) –Specify a slope using the vline~ object –Output from vline~ is a 1/1ms = 1000Hz signal –Multiply by 2 and wrapping the signal produces a periodic 2000Hz signal

Copyright © 2011 by Denny Lin14 Cosine function A cosine oscillator can be derived from a phasor~ object The phasor~ object always produces a uni-polar signal in the range 0.0 to 1.0 The cos~ object produces a bipolar waveform in the range -1.0 to 1.0

Copyright © 2011 by Denny Lin15 Getting Cosine Wave from Phasor PhasorCosine 0.0 (x 360° = 0°) Top of cycle 0.25 (x 360° = 90°) Crosses zero going down 0.5 (x 360° = 180°) Bottom of cycle 0.75 (x 360° = 270°) Crosses zero going up 1.0 (x 360° = 360°) At original position

Copyright © 2011 by Denny Lin Other functions Polynomials are expressed as sums of different power terms Resulting slopes can be useful for creating envelopes Best to start with a polynomial that has a known shape; get new coefficients

Copyright © 2011 by Denny Lin17 Expressions Used to create objects that expresses how a signal is processed Signal inlets 1, 2, and 3, are sent to variables $V1, $V2, and $V3 Less efficient than built-in objects, and more difficult to read

Copyright © 2011 by Denny Lin Time dependent signal shaping Delay Phase cancellation Filters –User friendly filters –Integration –Differentiation

Copyright © 2011 by Denny Lin19 Delay Shifts a signal in time, used for effects such as reverb and chorus The delwrite~ and delread~ objects should be used as a pair

Copyright © 2011 by Denny Lin20 Phase cancellation Can use a delay to create a signal that is 180 degrees out of phase (anti-phase signal) with respect to the original signal Mixing the original with the anti- phase signals, causes phase cancellation, so output is 0 When the two signals are in phase, the output is 2 times the original signal Output amplitude may depend on the delay (given a fixed frequency), or the frequency (given a fixed delay) Controlling this effect is equivalent to filtering the signal

Copyright © 2011 by Denny Lin21 Filters When the amplitude is reinforced by the coincidence of signal delay and period, a pole is formed When the delay time is half the period causing phase cancellation, a zero is formed Filters can be created by controlling which frequencies are amplified and which are cancelled

Copyright © 2011 by Denny Lin22 The rpole~ object Low-pass filters an audio signal fed to its left inlet; can act as an integrator Recursive filter The first argument or audio signal fed to its right inlet, defines the real-valued filter co-efficient a[n] in: y[n] = y[n-1] + a[n] * x[n] –where y[n] is the output –x[n] is the input –Filter is not stable when |a[n]| > 1

Copyright © 2011 by Denny Lin23 The rzero~ object High-pass filters an audio signal fed to its left inlet; can act as a differentiator Non-recursive filter The first argument or audio signal fed to its right inlet, defines the real-valued filter co-efficient a[n] in: y[n] = x[n] - a[n] * x[n-1] –where y[n] is the output –x[n] is the input –Filter is always stable

Copyright © 2011 by Denny Lin24 User-Friendly Filters Common filters are the low-pass, high-pass, band-pass, and band- reject filters: –Low-pass: allows low frequencies to pass –High-pass: allows high frequencies to pass –Band-pass: allows frequencies within a range to pass –Band-reject: reject frequencies within a range

Copyright © 2011 by Denny Lin25 Integration Integration computes the area under a curve, and can be used to shape a waveform Use the rpole~ filter to perform signal integration Integrating a square wave produces a triangle wave A filter can be seen as the most fundamental signal generator

Copyright © 2011 by Denny Lin26 Differentiation Differentiation is the inverse of integration Calculates the instantaneous slope of a signal Use the rzero~ filter to perform signal differentiation Differentiating a phasor produces an impulse spike