INTRODUCTION TO COMPUTER MUSIC SAMPLING SYNTHESIS AND FILTERS. Professor of Computer Science, Art, and Music

Similar documents
INTRODUCTION TO COMPUTER MUSIC PHYSICAL MODELS. Professor of Computer Science, Art, and Music. Copyright by Roger B.

Sound Synthesis Methods

FIR/Convolution. Visulalizing the convolution sum. Convolution

Sampling and Reconstruction of Analog Signals

SAMPLING THEORY. Representing continuous signals with discrete numbers

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

Module 3 : Sampling and Reconstruction Problem Set 3

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

Final Exam Solutions June 7, 2004

CMPT 468: Delay Effects

Equalizers. Contents: IIR or FIR for audio filtering? Shelving equalizers Peak equalizers

A102 Signals and Systems for Hearing and Speech: Final exam answers

Final Exam Study Guide: Introduction to Computer Music Course Staff April 24, 2015

12HP. Frequency Modulation, signal input and depth control scaled in V/octave.

yodel Documentation Release Romain Clement

Interpolation Error in Waveform Table Lookup

Final Exam Practice Questions for Music 421, with Solutions

Flanger. Fractional Delay using Linear Interpolation. Flange Comb Filter Parameters. Music 206: Delay and Digital Filters II

Chapter 5 THE APPLICATION OF THE Z TRANSFORM. 5.6 Transfer Functions for Digital Filters 5.7 Amplitude and Delay Distortion

Chapter-2 SAMPLING PROCESS

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

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

Falcon Singles - Oud for Falcon

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

Final Exam Solutions June 14, 2006

Brief Introduction to Signals & Systems. Phani Chavali

Laboratory Assignment 5 Amplitude Modulation

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

CHAPTER 8 ANALOG FILTERS

ENSEMBLE String Synthesizer

FILTER 8 MULTIMODE FILTER/8-PHASE OSCILLATOR CONTENTS INTRODUCTION

Music 171: Amplitude Modulation

MULTIRATE DIGITAL SIGNAL PROCESSING

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

Music 270a: Modulation

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

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

Experiment 4- Finite Impulse Response Filters

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Signal processing preliminaries

WARPED FILTER DESIGN FOR THE BODY MODELING AND SOUND SYNTHESIS OF STRING INSTRUMENTS

the blooo VST Software Synthesizer Version by Björn Full Bucket Music

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

The ArtemiS multi-channel analysis software

ADDITIVE SYNTHESIS BASED ON THE CONTINUOUS WAVELET TRANSFORM: A SINUSOIDAL PLUS TRANSIENT MODEL

Signals, systems, acoustics and the ear. Week 3. Frequency characterisations of systems & signals

REPLIKA SOUND GUITAR LIBRARY : BASS GUITAR v7 FEATURE GUIDE

A Parametric Model for Spectral Sound Synthesis of Musical Sounds

Extreme Environments

Aalto Quickstart version 1.1

Acoustics, signals & systems for audiology. Week 3. Frequency characterisations of systems & signals

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

9.4 Temporal Channel Models

Synthesis Techniques. Juan P Bello

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

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

Copyright S. K. Mitra

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100

GRM TOOLS CLASSIC VST

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

INTRODUCTION TO COMPUTER MUSIC. Roger B. Dannenberg Professor of Computer Science, Art, and Music. Copyright by Roger B.

Advanced Audiovisual Processing Expected Background

Chapter 3. Meeting 3, Foundations: Envelopes, Filters, Modulation, and Mixing

Photone Sound Design Tutorial

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Digital Processing of Continuous-Time Signals

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

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

AUDL Final exam page 1/7 Please answer all of the following questions.

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

Digital Processing of

EE 311 February 13 and 15, 2019 Lecture 10

Getting Started. Also before you load, please use your Kronos to save a PCG file of all banks to avoid accidentally overwriting any of your sounds.

Analog/Digital Guitar Synthesizer. Erin Browning Matthew Mohn Michael Senejoa

1. Clearly circle one answer for each part.

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

Table of Contents: Limited Warranty:

F I R Filter (Finite Impulse Response)

UNIVERSITY OF MIAMI REDUCING ARTIFICIAL REVERBERATION ALGORITHM REQUIREMENTS USING TIME-VARIANT FEEDBACK DELAY NETWORKS.

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

ADVANCED WAVEFORM GENERATION TECHNIQUES FOR ATE

Plaits. Macro-oscillator

TIME DOMAIN ATTACK AND RELEASE MODELING Applied to Spectral Domain Sound Synthesis

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

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

Digitalising sound. Sound Design for Moving Images. Overview of the audio digital recording and playback chain

TURN2ON BLACKPOLE STATION POLYPHONIC SYNTHESIZER MANUAL. version device by Turn2on Software

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Improving Signal Quality 3 24 Filter Bank Design 4 24 Potpourri Total 100

UNIVERSITY OF TORONTO Faculty of Arts and Science MOCK EXAMINATION PHY207H1S. Duration 3 hours NO AIDS ALLOWED

MUS420 Lecture Time Varying Delay Effects

the blooo VST Software Synthesizer Version by Björn Full Bucket Music

4. Design of Discrete-Time Filters

CMPT 468: Frequency Modulation (FM) Synthesis

Continuous-Time Signal Analysis FOURIER Transform - Applications DR. SIGIT PW JAROT ECE 2221

University of Southern Queensland Faculty of Health, Engineering & Sciences. Investigation of Digital Audio Manipulation Methods

Lecture 17 z-transforms 2

Transcription:

INTRODUCTION TO COMPUTER MUSIC SAMPLING SYNTHESIS AND FILTERS Roger B. Dannenberg Professor of Computer Science, Art, and Music Copyright 2002-2013 by Roger B. Dannenberg 1 SAMPLING SYNTHESIS Synthesis from pre-recorded sounds Copyright 2002-2013 by Roger B. Dannenberg 2 1

Sampling Synthesis FM and other techniques were big when computation and memory were expensive. But FM never produced satisfactory simulations of acoustic instruments. Sampling is a simple concept: Record actual sounds and play them back! Advantages: Easily captured sounds Works with noise, tones, anything Copyright 2002-2013 by Roger B. Dannenberg 3 How it works Base case: store a sound and play it back Desired parameters: Duration Pitch Amplitude Vibrato Brightness Copyright 2002-2013 by Roger B. Dannenberg 4 2

Controlling Duration Repeat a portion of sound Could be a single period Could be much longer segment Finding good loop points is tricky Use an envelope and multiply to decay at end Attack Loop Loop again... Copyright 2002-2013 by Roger B. Dannenberg 5 Finding Loop Points Often done "by ear" interactively Tones are not often truly periodic changes in amplitude, frequency, noise, spectrum but you can pick where to start looping (a search problem) you can cross-fade to make a smoother transition Periods are not always integer number of samples At G 4 (391.995 Hz), 1 period = 44100/f 0 = 112.501 samples Upper harmonics are of course much shorter, so cutting out even half a sample is significant. You can loop over multiple periods. You can resample (interpolate) to get an integral length Copyright 2002-2013 by Roger B. Dannenberg 6 3

Controlling Pitch Resample to speed up and slow down Usually over limited range (2 to 12 semitones) Linear interpolation can cause aliasing Good samplers use multipoint interpolation using a weighted sum; number of points is considered trade secret Copyright 2002-2013 by Roger B. Dannenberg 7 Controlling Amplitude Simple multiply Or, cross-fade between loud/soft samples Cross-fades risk phase cancellation Can apply low-pass filter to make softer sounds less bright Copyright 2002-2013 by Roger B. Dannenberg 8 4

Other Parameters, Modifications Filters for various effects Frequency and Amplitude vibrato is easy to add Reverb, chorus, other effects Starting sample at offsets to emphasize/ deemphasize attack transients Notice that these are all synthesis techniques Copyright 2002-2013 by Roger B. Dannenberg 9 Problems with Sampling Synthesis Most of the interesting sound quality is frozen in the samples Strings and woodwinds are controlled by bowing and blowing, not so much by the passage of time bad model Samples can take lots of space: modern libraries take gigabytes Copyright 2002-2013 by Roger B. Dannenberg 10 5

Examples See sampling.sal Copyright 2002-2013 by Roger B. Dannenberg 11 FILTERS Boosting and attenuating certain frequencies Copyright 2002-2013 by Roger B. Dannenberg 12 6

Filters What is filtering? source ω filter 1 filtered source Copyright 2002-2013 by Roger B. Dannenberg 13 Some Intuition Suppose we know what a filter does to an impulse: t This is called the impulse response h(t) of the filter h(t) t Copyright 2002-2013 by Roger B. Dannenberg 14 7

Superposition Principle Most filters are linear time invariant which implies that the superposition principle holds: Response(A+B) = Response(A) + Response(B) Using superposition principle, we can sum up impulse responses to get response to signal See: http://www.jhu.edu/signals/convolve/ And http://lpsa.swarthmore.edu/convolution/convolution3.html + + Copyright 2002-2013 by Roger B. Dannenberg 15 Convolution This expresses the infinite superposition of h scaled by the input signal x. This is the convolution of x and h: y ( t) = x( τ ) h( t τ ) dτ Convolution in the time domain is multiplication in the frequency domain: y = x h Y = X H Copyright 2002-2013 by Roger B. Dannenberg 16 8

Back to where we started Multiplication is easier to think about, so that s why we like to describe filters as operating in the frequency domain X H 1 ω Y Copyright 2002-2013 by Roger B. Dannenberg 17 What about phase? Yes, filters can change phase In fact an all-pass filter has an amplitude response of 1 (unity gain at all frequencies) For the complete story, represent H as complex Copyright 2002-2013 by Roger B. Dannenberg 18 9

Complex Frequency Response H ( ω) = U ( ω) + iv ( ω) H ( w) = H ( ω) = U 2 ( ω) + V 2 ( ω) arctan( V ( ω) / U ( ω)) Copyright 2002-2013 by Roger B. Dannenberg 19 Filters in Nyquist LP low-pass HP high-pass RESON resonance ARESON complement Copyright 2002-2013 by Roger B. Dannenberg 20 10

More Filters LOWPASS2, HIGHPASS2, BANDPASS2, NOTCH2, ALLPASS2 biquad filter variants EQ-LOWSHELF EQ-HIGHSHELF EQ-BAND LOWPASS[4,6,8], HIGHPASS[4,6,8] Copyright 2002-2013 by Roger B. Dannenberg 21 Time-Varying Filters Time-varying filters are based on time invariant filters; simply change parameters Filter equation parameters are often expensive to compute, so change parameters at control rate Parameter changes can insert energy into filter system, and interpolated parameters can create instabilities numerically difficult Copyright 2002-2013 by Roger B. Dannenberg 22 11

Examples play reson(buzz(20, c3, const(0)),! pwlv(100, 0.5, 3000, 1, 100),!! 1000, 1) ~ 5! play reson(buzz(20, c3, const(0)),! pwlv(100, 0.5, 3000, 1, 100),! 200, 1) ~ 5!! play lp(buzz(20, c3, const(0)),!! pwev(20, 0.5, 3000, 1, 100)) ~ 5! Copyright 2002-2013 by Roger B. Dannenberg 23 12