Duffing’s Equation as an Excitation Mechanism for Plucked String Instrument Models by Justo A. Gutierrez Master’s Research Project Music Engineering Technology.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation.
Guitar Effects Processor Using DSP
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.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Synthesis. What is synthesis? Broad definition: the combining of separate elements or substances to form a coherent whole. (
ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
Reflections Diffraction Diffusion Sound Observations Report AUD202 Audio and Acoustics Theory.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Chapter 7 Principles of Analog Synthesis and Voltage Control Contents Understanding Musical Sound Electronic Sound Generation Voltage Control Fundamentals.
CHE 185 – PROCESS CONTROL AND DYNAMICS
SYED SYAHRIL TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR1.
Sound Synthesis CE 476 Music & Computers. Additive Synthesis We add together different soundwaves sample-by-sample to create a new sound, see Applet 4.3.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Sound Synthesis With Digital Waveguides Jeff Feasel Comp 259 March
Harmonics and Overtones Waveforms / Wave Interaction Phase Concepts / Comb Filtering Beat Frequencies / Noise AUD202 Audio and Acoustics Theory.
Joshua “Rock Star” Jenkins Jeff “Tremolo” Smith Jairo “the boss” Rojas
OSCILLATORS.
Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Digital Signals and Systems
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
DSP. What is DSP? DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation.
Synthesis Basics (1) Analog Synthesis Intro to Digital Oscillators.
Vibrationdata 1 Unit 19 Digital Filtering (plus some seismology)
The tendency to reduce the cost of CVGs results in metallic resonator. In comparison to quartz resonator CVG, it has much lower Q-factor and, as a result,
ACOUSTICS AND THE ELEMENTS OF MUSIC Is your name and today’s date at the top of the worksheet now?
Waves & Wave Properties Determining the Speed of Sound Lab
Sound and Music A Deliciously Delightful Discussion of Resonance, Harmonics, Beats, and Periods and Frequencies Presented by Giuliano Godorecci, Lisa Schalk,
Automatic Control Theory-
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 23:Physical Modeling III/ambience Ken Greenebaum.
Standing waves on a string (review) n=1,2,3... Different boundary conditions: Both ends fixed (see above) Both ends free (similar to both ends fixed )
15.1 Properties of Sound  If you could see atoms, the difference between high and low pressure is not as great.  The image below is exaggerated to show.
Harmonics. Introduction Harmonic is obtained by a method of playing stringed instruments - playing the instrument while holding a finger against the string,
A taut wire or string that vibrates as a single unit produces its lowest frequency, called its fundamental.
Chapter 13 - Sound 13.1 Sound Waves.
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.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
RF Cavity Simulation for SPL Simulink Model for HP-SPL Extension to LINAC4 at CERN from RF Point of View Acknowledgement: CEA team, in particular O. Piquet.
What about the rubber bands determines pitch? Musical Instruments - Strings  The pitch or frequency of a string is determined by the string’s velocity.
Computer Sound Synthesis 2
Lecture Outline Chapter 13 College Physics, 7 th Edition Wilson / Buffa / Lou © 2010 Pearson Education, Inc.
Lecture Outline Chapter 13 College Physics, 7 th Edition Wilson / Buffa / Lou © 2010 Pearson Education, Inc.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
ECE 5525 Osama Saraireh Fall 2005 Dr. Veton Kepuska
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Chapter 8 Real Hammers and Plectra Simulating Broad Plectra.
Effects. Effects in Music n All music that is recorded or amplified relies on effects to enhance certain characteristics of the sound. n Guitarists typically.
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.
Z Transform The z-transform of a digital signal x[n] is defined as:
If two sounds are only slightly off in terms of frequency The ‘Beats’  Produce a periodic rise and fall of amplitude (volume)  Throbbing Sound = Beats.
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.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Signal Analyzers. Introduction In the first 14 chapters we discussed measurement techniques in the time domain, that is, measurement of parameters that.
Circular Buffer Audio Generation Using the Karplus-Strong String Synthesis Algorithm.
15.1 Properties and Detection of Sound Interference of sound waves.
Digital Signal Processing Lecture 6 Frequency Selective Filters
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Measurement and Instrumentation
College Physics, 7th Edition
CS 591 S1 – Computational Audio -- Spring, 2017
A taut wire or string that vibrates as a single unit produces its lowest frequency, called its fundamental.
Spectrum Analysis and Processing
CS 591 S1 – Computational Audio -- Spring, 2017
by Justo A. Gutierrez Master’s Research Project
LOCATION AND IDENTIFICATION OF DAMPING PARAMETERS
Presentation transcript:

Duffing’s Equation as an Excitation Mechanism for Plucked String Instrument Models by Justo A. Gutierrez Master’s Research Project Music Engineering Technology University of Miami School of Music December 1, 1999

Purpose The objective of this study is to provide the basis for a new excitation mechanism for plucked string instrument models which utilizes the classical nonlinear system described in Duffing’s Equation.

Advantages Using Duffing’s Equation provides a means to use a nonlinear oscillator as an excitation A mathematical model lends itself to user control Removes the need for saving samples in a wavetable

Overview Plucked String Instrument Modeling Excitation Modeling with Duffing’s Equation Model Performance and Analysis

Wavetable Synthesis Method of synthesis that uses tables of waveforms that are finely sampled Desired waveform is chosen and repeated over and over producing a purely periodic signal Algorithm written as: Y t = Y t-p p is periodicity parameter frequency of the tone is f s /p

The String Model z -L is delay line of length L H(z) is the loop filter F(z) is the allpass filter x(n) and y(n) are the excitation and output signals respectively

Length of String Effective delay length determines fundamental frequency of output signal Delay line length (in samples) is L = f s /f 0

The Comb Filter Works by adding, at each sample time, a delayed and attenuated version of the past output

Standing Wave Analogy Poles of the comb filter occur in the z-plane at 2n  /L This is the same as the natural resonant frequencies for a string tied at both ends Does not sound like a vibrating string because it is a perfectly periodic waveform Does not take into account that high frequencies decay much faster than slow ones for vibrating strings

The Loop Filter Idea is to insert a lowpass filter into the feedback loop of the comb filter so that high-frequency components are diminished relative to low-frequency components every time the past output signal returns Original Karplus-Strong algorithm used a two-tap averager that was simple and effective

Loop Filter (continued) Valimaki et al proposed using an IIR lowpass filter to simulate the damping characteristics of a physical string Loop filter coefficients can be changed as a function of string length and other parameters H 1 (z) = g(1+a 1 )/(1+a 1 z -1 )

Loop Filter Signal Flowchart

Loop Filter Magnitude Response and Group Delay

Loop Filter Impulse Responses

The Allpass Filter Used to fine-tune the pitch of the string model If feedback loop were only to contain a delay line and lowpass filter, total delay would be the sum of integer delay line plus the delay of the lowpass filter Fundamental frequency of f s /D is usually not an integer number of samples

Allpass Filter (continued) Fundamental frequency is then given by f 1 = f s /(D+  ) where  is fractional delay Allpass filters introduce delay but pass frequencies with equal weight Transfer function is H(z) = (z -1 +a)/(1+az -1 ) a = (1-  /(1+ 

Allpass Phase Response

Allpass Delay Response

Inverse Filtering KS algorithm used a white noise burst as excitation for plucked string because it provided high-frequency content as a real pluck would provide Valimaki et al found a pluck signal by filtering the output through the inverted transfer function of the string system

Inverse Filtering (continued) The transfer function for the general string model can be given as S(z) = 1/[1-z -L F(z)H(z)] The inverse filter is simply S -1 (z) = 1/S(z)

Inverse Filtering Procedure Obtain residual by inverse filtering Truncate the first ms of the residual Use the truncated signal as the excitation to the string model Run the string model

Steel-string Guitar Sample

Residual After Inverse Filtering

Truncated Residual Signal

Resynthesized Guitar

Duffing’s Equation In 1918, Duffing introduced a nonlinear oscillator with a cubic stiffness term to describe the hardening spring effect in many mechanical problems It is one of the most common examples in the study of nonlinear oscillations

Duffing’s Equation (continued) The form used for this study is from Moon and Holmes, which is one in which the linear stiffness term is negative so that x” +  x - x + x3 =  cos  t. This model was used to describe the forced oscillations of a ferromagnetic beam buckled between the nonuniform field of two permanent magnets

Experimental Apparatus (Moon and Holmes)

Modeling the Excitation For this experiment, the coefficients in Moon and Holmes’ modification of Duffing’s Equation were adjusted to produce the desired residuals The Runge-Kutta method was the numerical method used to calculate Duffing’s Equation

Procedure for manipulating Duffing’s Equation Generate a waveform of desired frequency with (x, y). f  10y is a good rule of thumb for starters. Adjust the damping coefficient so that its envelope resembles the desired waveform’s Adjust , , and  to shape the waveform, holding one constant to change the other Normalize the waveform to digital maximum

Guitar Residual Synthesized by Duffing’s Equation

Synthesizing the Plucked String

Synthesized Guitar Using Duffing’s Equation as the Excitation

Timbral Characteristics Synthesized guitar from Duffing’s Equation very similar to that from inverse filtering Frequency of both residuals different from pitch of synthesized strings  inharmonicity Sonograms of both residuals also very similar

Sonogram for Guitar (Inverse Filtering)

Sonogram for Guitar (Duffing’s Equation)

Tuning Performance (Harmony) For individual pitches, the algorithm played fairly close to being in tune (perhaps slightly sharp). The allpass filter parameters can be adjusted to remedy this. The C major chord played very well in tune, sounding very consonant with no apparent beats.

Tuning Performance (Range) To test effective range of the algorithm, the lowest and highest pitches in a guitar’s range were synthesized. Low E played in tune by itself. High E was flat. This was more readily apparent when sounded together.

Summary of Tuning Performance Algorithm performed as expected; it performed like Karplus-Strong; high frequencies tend to go flat, and this would have to be accounted for in the overall system.

Changing Damping Coefficient Changing the damping coefficient can have pronounced effect on timbre of sound, specifically difference between type of pick used and type of string The damping coefficient was adjusted to attempt to produce different sounds

Synthesized Residual (  = 0.2)

Synthesized Guitar (  = 0.2)

Synthesized Residual (  = 0.5)

Summary of Damping Coefficient Adjustments For  = 0.2, contribution of residual made for a very hard attack, as if picked For  = 0.5, guitar tone had much softer attack, as if finger-picked Sonograms confirm that the latter had more high-frequency content

Sonogram for  = 0.2

Sonogram for  = 0.5

Production of Other Waveforms Duffing’s Equation can be used to form a variety of waveforms User has some control over its behavior if properties of the oscillator can be controlled to obtain the desired waveform

Residual with Damping Only

Residual with Beta Only

Residual with Forcing Function Only

Residual with Strong High- Frequency Forcing Function

Algorithm Speed For 200 MHz Pentium Pro, Karplus-Strong with an inverse filtered residual took s. with approximately 2500 samples saved on a wavetable With synthesized residual, Duffing’s Equation added only s; total computation time increased by only about 5% with no saved samples

Conclusion Plucked string sounds were successfully produced Model plays in tune Different plucked string sounds can be produced by changing the damping coefficient Algorithm is fast