SamplingSampling plays back samples of the original tone.plays back samples of the original tone. For simple decaying tones (e.g., piano, harp, marimba,

Slides:



Advertisements
Similar presentations
Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation.
Advertisements

Easily extensible unix software for spectral analysis, display modification, and synthesis of musical sounds James W. Beauchamp School of Music Dept.
Timbre perception. Objective Timbre perception and the physical properties of the sound on which it depends Formal definition: ‘that attribute of auditory.
Music Appreciation Musical Instruments.
Higher Music Technology Effects and Processes Effects Chorus - A chorus (or ensemble) is a modulation effect used to create a richer, thicker sound and.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
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,
The frequency spectrum
Oscillator Algorithm. L-1 SI PHS Sampling Increment (determines frequency) Phase Count (0 ≤ PHS < L) Waveform Table 0 Output.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (1)
Chapter 6 (Sections ) Sound. The speed of sound in a substance depends on: the mass of its constituent atoms, and the strength of the forces between.
By Prof. Lydia Ayers. Objectives Practice meters using your drums and shakers from last week Record samples on the computer Make a sequence from your.
By Prof. Lydia Ayers. Objectives Learn About Pitch Comments on the Final Project Comments about recording sounds Add pitch to your composition.
By Prof. Lydia Ayers. Objectives Finish any work not completed in the previous lab Demonstrate composition to TA Record “Cat” Samples Practice Scales.
Audio Audio is a wave resulting from air pressure disturbance that reaches our eardrum generating the sound we hear. –Humans can hear frequencies in the.
Parameter (p) Variables contain the score parameter values for each notecontain the score parameter values for each note allow score to control orchestraallow.
EE2F2 - Music Technology 11. Physical Modelling Introduction Some ‘expressive instruments don’t sound very convincing when sampled Examples: wind or.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
EffectsEffects Effects change the character of a soundEffects change the character of a sound.
Additional Notes on Wavetable Synthesis R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
EE2F2 - Music Technology 10. Sampling Early Sampling It’s not a real orchestra, it’s a Mellotron It works by playing tape recordings of a real orchestra.
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
EE2F2 - Music Technology 8. Subtractive Synthesis.
Using Sound in Games Alex Baumann Outline 3D Spatialization Getting and Editing Sounds Using Sounds in Games Music in Games Example Videos.
Square wave Fourier Analysis + + = Adding sines with multiple frequencies we can reproduce ANY shape.
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?
Musical instruments and present simple
A Full Frequency Masking Vocoder for Legal Eavesdropping Conversation Recording R. F. B. Sotero Filho, H. M. de Oliveira (qPGOM), R. Campello de Souza.
Harmonics, Timbre & The Frequency Domain
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
MIDI. A protocol that enables computers, synthesizers, keyboards, and other musical devices to communicate with each other. Instead of storing actual.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 17:Wavetable Synthesis Ken Greenebaum.
A Breath in an Electronic World: Experiments in Musical Expression using a Midi Wind Controller Matthew Ahrens Mentor: Dr. James Bohn Bridgewater State.
Harmonic Series and Spectrograms
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Sound and audio. Table of Content 1.Introduction 2.Properties of sound 3.Characteristics of digital sound 4.Calculate audio data size 5.Benefits of using.
A “physical phenomenon that stimulates the sense of hearing.”
The Orchestra.
Reason Devices Subtractor. Oscillators Select Waveform The Subtractor has two oscillators that can be used as sound sources for your patches Tuning Mix:
The Instruments of the Orchestra 4 Families of Instruments Strings Winds Brass Percussion.
Musical Instrument Families. Why are there different families Each instrument family has their own unique TIMBRE or sound How is sound produced –By vibrations!
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.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
Sound Notes 3 Frequency, Pitch and Music. Frequency Frequency – the number of complete waves ______ _____________. Different sounds have ____________.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
SoundSection 3 What do you think? A violin, a trumpet, and a clarinet all play the same note, a concert A. However, they all sound different. What is the.
Chapter 7 Western Musical Instruments. Strings They are bowed and plucked – Violin – Viola – Cello (also Violoncello) – Double Bass.
Digital Oscillators. Everything is a Table A table is an indexed list of elements (or values) A digital oscillator or soundfile is no different.
Instruments.  Which categories would you consider instruments to fall under?  Melody  Harmony  Rhythm/Beat  Dynamics So where would instruments fall…
Digital Oscillators. Everything is a Table A table is an indexed list of elements (or values) A digital oscillator or soundfile is no different.
1. What is Sound? Sound is a wave phenomenon like light, but is macroscopic and involves molecules of air being compressed and expanded under the action.
Instruments. So where would instruments fall… O Which categories would you consider instruments to fall under? O Melody O Harmony O Rhythm/Beat O Dynamics?
CSI-447: Multimedia Systems Chapter 4: Reading Assignment.
Traveling Waves Standing Waves Musical Instruments Musical Instruments all work by producing standing waves. There are three types of instrument.
And application to estimating the left-hand fingering (automatic tabulature generation) Caroline Traube Center for Computer Research in Music and Acoustics.
Lecture # 23 Sound Synthesis & Sound Arithmetic A “ sound font ” dog Jane knows Fred Ralph the loves Jane lovesFred.
Intro to Fourier Series BY JORDAN KEARNS (W&L ‘14) & JON ERICKSON (STILL HERE )
Sound J.Sample Sound Sound is a form of energy produced and transmitted by vibrating matter. Sound must have a medium, (matter), to travel through.
AUDIO Audio means "of sound" or "of the reproduction of sound". Specifically, it refers to the range of frequencies detectable by the human ear ム approximately.
Sound. Vocabulary Sound Wave Frequency Pitch Wavelength – The distance between two compressions or two rarefactions.
Musical Instruments. Notes  Different musical notes correspond to different frequencies  The equally tempered scaled is set up off of 440 A  meaning.
Musical Instruments. Instrument Families There are four instrument families –Brass Instruments –Woodwind Instruments –Percussion Instruments –String Instruments.
Unit 4 Waves Ch. 21 Sec. 3 & 4 Music. music - a group of sounds w/ a regular pattern noise - a group of sounds w/ no pattern sound quality - result of.
Music Appreciation Musical Instruments.
CS 591 S1 – Computational Audio -- Spring, 2017
Introduction to Csound 5.
All-Pass Filters.
Sampling.
Introduction to Csound 2.
Musical Instruments.
Presentation transcript:

SamplingSampling plays back samples of the original tone.plays back samples of the original tone. For simple decaying tones (e.g., piano, harp, marimba, guitar, plucked strings), playing back the samples from start to finish works well:For simple decaying tones (e.g., piano, harp, marimba, guitar, plucked strings), playing back the samples from start to finish works well: [iv:73] sample of piano Bb3 tone, 9.33 seconds

Sampling (Soundin) soundin:soundin: Easiest for sounds which don't need to change pitchEasiest for sounds which don't need to change pitch percussion (such as drums)percussion (such as drums) [iv:74] speech and sound effects[iv:74] speech and sound effects

Sampling (Soundin) Find a sample or record a sound.Find a sample or record a sound. To save disk space, change the sampling rate to (using a sound editor such as CoolEdit) and change the signal to monoTo save disk space, change the sampling rate to (using a sound editor such as CoolEdit) and change the signal to mono Save the soundfile in Mac aiff formatSave the soundfile in Mac aiff format use the name soundin.# (where the # is some number you give the soundfile)use the name soundin.# (where the # is some number you give the soundfile)

Sampling (Soundin) Find a sample or record a sound.Find a sample or record a sound. Using the sound editor, delete any long silences in the sound and find the beginning and ending times for the sound.Using the sound editor, delete any long silences in the sound and find the beginning and ending times for the sound. [iv:75] 2.43-second trumpet tone (ctpt03)

Sampling (Soundin) In the Csound score file, the "skip" time is the beginning time for the sound, and the duration of the sound is the ending time minus the skip time.In the Csound score file, the "skip" time is the beginning time for the sound, and the duration of the sound is the ending time minus the skip time. The following code reads a mono soundfile:The following code reads a mono soundfile: asig soundinisoundfile, iskip, iformat 0 is default format, 3 is mulaw0 is default format, 3 is mulaw soundfile should be in Mac aiff formatsoundfile should be in Mac aiff format

Sampling (Soundin) Most of the signal-modifying effects can modify the sampled signal. These include spatialization (stereo, echo, reverb and amplitude control), ring modulation, flanging and chorus.Most of the signal-modifying effects can modify the sampled signal. These include spatialization (stereo, echo, reverb and amplitude control), ring modulation, flanging and chorus. Example: [iv:76] Ayers, Long Time No SeeExample: [iv:76] Ayers, Long Time No See But we cannot loop soundin, and we cannot use it with effects involving frequency changes, such as vibrato, glissando and pitch transposition.But we cannot loop soundin, and we cannot use it with effects involving frequency changes, such as vibrato, glissando and pitch transposition.

LoopingLooping For sustaining instruments such as the winds and bowed strings (e.g., trumpet, flute, violin and organ), the samples must be looped to allow the tone to keep sustaining:For sustaining instruments such as the winds and bowed strings (e.g., trumpet, flute, violin and organ), the samples must be looped to allow the tone to keep sustaining: [iv:77] 2.43-second trumpet tone (ctpt03)

LoopingLooping For a small loop of exactly one period of a waveform, sampling is equivalent to wavetable synthesis.For a small loop of exactly one period of a waveform, sampling is equivalent to wavetable synthesis.

LoopingLooping Making a good loop is not easy.Making a good loop is not easy. Criteria for good loop points:Criteria for good loop points: Loop points should be at zero-crossings to avoid discontinuities.Loop points should be at zero-crossings to avoid discontinuities. Waveform at loop points should have similar peak amplitudes.Waveform at loop points should have similar peak amplitudes. Waveform at loop points should have similar shapes (and phases).Waveform at loop points should have similar shapes (and phases). Pick loop points as far apart as possible where these criteria are still satisfied.Pick loop points as far apart as possible where these criteria are still satisfied.

Picking Loop Points Loop points should be at zero crossings to avoid discontinuities.Loop points should be at zero crossings to avoid discontinuities.

Picking Loop Points Zero-crossings are easy to find, and the low amplitude makes it less likely there will be a "click" due to a discontinuity.Zero-crossings are easy to find, and the low amplitude makes it less likely there will be a "click" due to a discontinuity. Even a small discontinuity can cause a "click" if the amplitude is large.Even a small discontinuity can cause a "click" if the amplitude is large.

Picking Loop Points Waveform at loop points should have similar peak amplitudes:Waveform at loop points should have similar peak amplitudes: [iv:77] 2.43-second trumpet tone (ctpt03)

Picking Loop Points Very different peak amplitudes indicate differences in the amplitudes of some of the harmonics, which result in an audible change in the spectrum if looped.Very different peak amplitudes indicate differences in the amplitudes of some of the harmonics, which result in an audible change in the spectrum if looped.

Picking Loop Points Waveform at loop points should have similar shapes (and phases):Waveform at loop points should have similar shapes (and phases): [iv:77] 2.43-second trumpet tone (ctpt03)

Picking Loop Points A very different waveform shape indicates spectral differences, which result in an audible change in the spectrum if looped.A very different waveform shape indicates spectral differences, which result in an audible change in the spectrum if looped. Pick loop points as far apart as possible where these criteria are still satisfied.Pick loop points as far apart as possible where these criteria are still satisfied. If the loop points are too close, there will not be enough change to make it sound like a real tone, and it may sound artificial.If the loop points are too close, there will not be enough change to make it sound like a real tone, and it may sound artificial.

Looping in Csound The loscil unit generator reads a mono [or stereo] sound from a table (a soundfile), with optional sustain and release looping:The loscil unit generator reads a mono [or stereo] sound from a table (a soundfile), with optional sustain and release looping: asig[,asig2] loscil iamp,ifreq,iwt,ibasef,0,0,1 loscil arguments:loscil arguments: xamp — amplitude at i, k or a ratexamp — amplitude at i, k or a rate kcps — frequency at i or k ratekcps — frequency at i or k rate iwt — the function number for an.aiff sampled sound segmentiwt — the function number for an.aiff sampled sound segment

Looping in Csound asig[,asig2] loscil iamp,ifreq,iwt,ibasef,0,0,1 optional loscil arguments:optional loscil arguments: [, ibasef] — base frequency of recorded sound (in cycles per second)[, ibasef] — base frequency of recorded sound (in cycles per second) [, imode1,ibeg1,iend1][imode2,ibeg2,iend2][, imode1,ibeg1,iend1][imode2,ibeg2,iend2] imode1, imode2 — play modes for the sustain and release loops — 0 denotes no loopingimode1, imode2 — play modes for the sustain and release loops — 0 denotes no looping ibeg1, iend1, ibeg2, iend2 — begin and end points for the sustain and release loops, measured in sample frames from the beginning of the fileibeg1, iend1, ibeg2, iend2 — begin and end points for the sustain and release loops, measured in sample frames from the beginning of the file more details in Csound manualmore details in Csound manual

Looping in Csound Csound example of the [iv:78] muyu:

Looping in Csound Csound [iv:79] sampled bawu: (compare with [iv:80] wavetable bawu) [iv:81] sampled voice with looping [iv:82] same as previous example, with ring modulation effect

Example 1: Sampling the Guitar Sound Example: the Eagles, Hotel California [iv:83] original performance and [iv:84] using samplingSound Example: the Eagles, Hotel California [iv:83] original performance and [iv:84] using sampling

Example 2: Sampling Vina [iv:85] original pitch[iv:85] original pitch [iv:86] looping Vina sounded bad[iv:86] looping Vina sounded bad when Vina sings [iv:87] catty-ok....when Vina sings [iv:87] catty-ok.... the cat as a percussion instrument, with pitch bend to straighten out the pitchthe cat as a percussion instrument, with pitch bend to straighten out the pitch