sound synthesis methods - tut · titled also as subtractive synthesis: input signal with harmonic...

8
Sound Synthesis Methods Matti Vihola, [email protected] 23rd August 2001 1 Objectives The objective of sound synthesis is to create sounds that are Musically interesting Preferably realistic (sounds like some instrument) Produced in real time A taxonomy of digital sound synthesis 1. Abstract algorithms 2. Processed recordings (sampling) 3. Spectral models 4. Physical models 2 Abstract algorithms Typical features of abstract algorithms are the simplicity and ease of implementation. The sound is more or less artificial compared to more sophisticated methods 1 . 2.1 Frequency Modulation (FM) (‘70s) Early digital synthesizers and sound card synthesizer chips are based on FM. 2 Very simple, easy to implement, only couple of voltage controlled oscillators (VCOs) Time-variant structure like in natural sounds, fast vibrato Bell-like and metallic timbres Harmonic sound when integer ratio between carrier and modulator Feedback systems add stability to frequency behaviour 1 Which may not be always a drawback. . . 2 Take a look at http://www.obsolete.com/120_years/ 1

Upload: vukhuong

Post on 12-Jun-2018

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

SoundSynthesisMethods

Matti Vihola,[email protected]

23rdAugust2001

1 Objectives

Theobjectiveof soundsynthesisis to createsoundsthatare� Musically interesting� Preferablyrealistic(soundslikesomeinstrument)� Producedin realtime

A taxonomyof digital soundsynthesis

1. Abstractalgorithms

2. Processedrecordings(sampling)

3. Spectralmodels

4. Physicalmodels

2 Abstract algorithms

Typical featuresof abstractalgorithmsarethesimplicity andeaseof implementation.Thesoundis moreor lessartificial comparedto moresophisticatedmethods1.

2.1 FrequencyModulation (FM) (‘70s)

Early digital synthesizersandsoundcardsynthesizerchipsarebasedonFM.2� Very simple, easyto implement,only coupleof voltagecontrolledoscillators(VCOs)� Time-variantstructurelike in naturalsounds,fastvibrato� Bell-likeandmetallictimbres� Harmonicsoundwhenintegerratiobetweencarrierandmodulator� Feedbacksystemsaddstability to frequency behaviour

1Whichmaynot bealwaysadrawback.. .2Takea look at http://www.obsolete.com/120_years/

1

Page 2: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

Figure1: Left: simpleFM synthesis,right: one-oscillatorfeedbacksystem(yFD1) andtwo-oscillatorfeedbacksystem(yFD1)

Figure2: Frequency-domainpresentationof FM synthesis.

2

Page 3: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

Figure3: Spectraof (topto down) one-oscillatorfeedback,two-oscillatorfeedbackandsimpleFM with differentmodulationindicesandfeedbackgains.

2.2 WaveshapingSynthesis(Nonlinear Distortion) (late ‘60s)� Nonlinearshapingfunctionappliedto theinput (excitation)signal� Most fundamentalcase:excitationsignalsinusoidal� By usingalinearcombinationof Chebyshev polynomialstheratiosof harmonicscanbecontrolled � � canbemadeto correspondharmonicstructureof a realinstrument� Post-processingcanbeapplied,e.g.amplitudemodulation(AM)� Exitationsignalcanbesomethingelsethansinusoid

2.3 Kar plus-Strong algorithm (‘83)� Verysimpleandcomputationallyeffectivealgorithm� A shortsoundbuffer, initializedwith a randomdata� Loopingof thebuffer, which is filteredwith a simplelow-passfilter3 aftereveryread� Pluckedstringtonesor percussiontones� Canbeimplementedusingonly shift andaddoperations

3 Processedrecordings(sampling)

Manipulationof recordedsoundsdatesbackto 1920s.Thememoryrequirementshasbeena problemwith digital samplingsynthesis.The idea is in recordingrelativelyshortsamplesof sounds,which arethenplayedback.

3H � z��� 12 � 1 � z� 1 �

3

Page 4: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

Figure4: Karplus-Strongalgorithm.(c) Simplefiltering operation,resultsin apluckedstring tone. (d) Flip signof every filteredbit with certainprobability, producessoundresemblingpercussiontone.

3.1 Digital WavetableSynthesis

Looping Typical partsof instrumentsound:attack,steadystate,release� Waveform of steady-statesoundof mostof the instrumentsapprox. peri-odical � � shortsampleof thesteadystatelooped� Looppointsdetermined:lengthof theloopedsampleshouldcorrespondtofundamentalfrequency

Pitch shifting every 3th or 4th semitonestored,pitch shifting appliedto nearesttoobtaintherest

Data reduction Losslessor lossy compression. Alteration of samplingfrequency,quantizationstepor moresophisticatedmethod.

3.2 Multiple WavetableSynthesis

More thanonewavetable,or sampleplayedat once.

WavetableCross-Fading Several sectionsof tone stored,samplesare cross-fadedfrom oneto anothermultiplying with amplitudeenvelope.

WavetableStacking Several (arbitrary)soundsignalsmultiplied with amplitudeen-velopeandsummedtogether � � syntheticsoundsignal.Problem:Findsinglewavetables(spectra)andamplitudeenvelopesto producenaturalsound.

3.3 Granular Synthesis(‘40s)

Ideais representingsoundsignalswith ‘soundatoms’or ‘grains’. Waveformshapeofgrainsandtheir temporaldistributiondeterminethetypeof sound.

4

Page 5: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

3.3.1 Asynchronous(AGS) (‘90s)� Scattersoundgrainsin astatisticalmanneroveraregionin time-frequency plane� Regioncalleda ‘soundcloud’� Severalparameters:Starttime,duration,bandwidthof clouds;duration,density,amplitudeenvelope,waveformsandspatialdistributionof grains� Effective in generatingnew soundevents,simulationsof existing instrumentshard

3.3.2 Pitch Synchronous(PSGS)(‘90s)� Betterperformancein simulationof realisticsounds� Periodicitycorrespondingto fundamentalfrequency� AnalysisgrainsusingSTFTor LPCanalysis � � impulseresponseestimation� ResynthesisusingparallelFIRsdrivenwith trainof impulses� Transformationsthataddvariationto theproducedsignal

All methodsthatuseoverlap-addtechniquecanbeviewedasgranularsynthesis.

4 SpectralModels

The idea is that the propertiesof soundthat are perceived are stored(time-varyingspectra).

4.1 Additi veSynthesis� Summingsinusoidalcomponentsof different(phase,)amplitudeandfrequency

y n�� ∑k

Ak n sin

�2πnFs

Fk n� � Thecontrolfunctionsof singlesinusoids(Ak n , Fk n ) areslowly-varying� Drawback:Largeamountof data(controlfunctionparameters)andlargenumber

of oscillators� Datareductionthatpreservesintuitivelyappealingdataandoriginalsound(e.g.linesegmentapproximationof controlparameters)

5

Page 6: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

4.2 PhaseVocoder� Canbeviewedasbankof filtersor STFTanalyzer� Resynthesis:FT� 1 andoverlap-add� Time-scalingandpitch transpositioneasily:

– Time-scalingaccomplishedby modifying thehopsize(thetime differenceof consecutivesynthesizedframes)

– Pitch modificationby modifying time scale,and thenchangingthe sam-pling rateof thesignal� Works well for harmonic,slowly varying tones,blurs transienttype of sounds

(thetime resolutionof theSTFT-analysis)

4.3 Source-Filter Synthesis� Exitationsignalfilteredwith time-varyingfilter� Titled alsoassubtractive synthesis:input signalwith harmonicrich spectrumfiltered� Not very robustrepresentationof realisticsounds� Usedin analogsynthesizers:someexitationwaveformgeneratorsandfilters

4.4 McAulay-Quatieri (MQ) (‘86)� Original signaldecomposedto a setof sinusoids� Alk � ωl

k � ψlk �� Trajectoriesfor all components� Analysis:STFT, peakdetection,sinusoidaltrajectorydetectionandnoisethresh-

olding� Synthesis:Trajectoryinterpolation,additivesynthesis

4.5 SpectralModeling Synthesis(SMS) (late ‘80s)� Sinusoidalanalysiswith MQ � � deterministicpartof thesignal� Residualxres n�� x n�� xsin n modeledasnoise(stochasticcomponent)� Duration(tempo)andfrequency (key) modificationeasily� Transientsoundsa problem

6

Page 7: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

4.6 Transient Modeling Synthesis(TMS) (‘97)� Extensionof SMS� Theresidualpartof SMSpresentedastransientsandnoise,xres n�� xtra n��xnoi n� The‘noise’ partis thenonly thesteadynoisycomponents� Time � frequency domainduality: impulsive signalsin time domain � sinu-soidalin frequency domain� DCT producesreal-valuedsinusoidwhenthetime domainsignalis animpulse� Transientsdetectedandparametrized,resynthesized� � steadynoisycompo-nentsleft

4.7 FFT � 1 Synthesis(‘92)� Canbeviewedasadditivesynthesisin frequency domain� All thesignalcomponentsaddedtogetherasspectralenvelopes� Synthesizedusingoverlap-addof consecutiveframes� Complex soundspossible

4.8 Formant Synthesis� Formantis aconcentrationof energy in energy/powerspectrumenvelope� Originally in speechprocessing� Usedin speechsynthesis(andsinging)

5 ExerciseWork

1. Implementthe simple FM synthesis. Searchsuitablevaluesfor fc and fm inorderto make thesignalsoundfunny. Testwith differentvaluesof modulationindex I .

2. Implementthe Karplus-Strongalgorithm. Find suitablebuffer size,andtry tocreatebothpluckedstringandpercussiontypeof sounds

You canfind themoredetaileddescriptionof themethodse.g.in pages4–10of [1].

References

[1] Tolonen T., Välimäki V. and KarjalainenM., “Evaluation of Modern SoundSynthesisMethods”, Report48,HUT, Departmentof ElectricalandCommunica-tionsEngineering,Laboratoryof AcousticsandAudio SignalProcessing,Espoo,Mar 1998.Availableathttp://www.acoustics .hu t.f i:7 077 /˜t tol onen/ sou nd_syn th_ rep ort .ht ml

7

Page 8: Sound Synthesis Methods - TUT · Titled also as subtractive synthesis: input signal with harmonic rich spectrum filtered ... STFT, peak detection, sinusoidal trajectory detection

[2] Välimäki V. “Lecture notes on Digital Sound Synthesis”, HUT, Lab-oratory of Acoustics and Audio Signal Processing. Available at/share/argh/klap/HUT _ASP/a sp- 8-s ynt hes is. pdf

8