Download presentation
Presentation is loading. Please wait.
Published byMargaret Riley Modified over 8 years ago
2
Lecture # 23 Sound Synthesis & Sound Arithmetic
3
A “ sound font ” dog Jane knows Fred Ralph the loves Jane lovesFred
4
MIDI - Musical Instrument Digital Interface Object representation of music Every sound has –Pitch (frequency of the sound) –Delay (how long after last sound start to start playing) –Duration (how long should it play) –Timbre (which instrument should it sound like?) Guitar Clarinet Violin
5
A MIDI file An array of notes 0 (262, 0,10,1) 1 (300, 10,10,1) 2 (262, 10, 10, 1) 3 (300, 0, 10, 1) Pitch (middle C) Delay Duration Instrument Number During performance numbers are assigned to different instruments
6
MIDI demo http://www.free-midi.org/midi1/v/vangelis-chariots_of_fire.mid
7
A MIDI file An array of notes 0 (262, 0,10,1) 1 (300, 10,10,1) 2 (262, 10, 10, 1) 3 (300, 0, 10, 1) How do we transpose to a higher key? Increase pitch of each note
8
A MIDI file An array of notes 0 (262, 0,10,1) 1 (300, 10,10,1) 2 (262, 10, 10, 1) 3 (300, 0, 10, 1) How do we make it play faster? Reduce delay and duration of each note
9
A MIDI file An array of notes 0 (262, 0,10,1) 1 (300, 10,10,1) 2 (262, 10, 10, 1) 3 (300, 0, 10, 1) How do we change from guitar to flute? Assign a different instrument to that number
10
Synthesizing an instrument Mix different harmonics Add noise Adjust Attack, Dwell, Sustain, Release
11
Synthesizing an Instrument Attack - when string is plucked or note is struck Dwell - energy left from attack Sustain - while the note is held Release - after player stops
12
Synthesizing an Instrument Attack - when string is plucked or note is struck Dwell - energy left from attack Sustain - while the note is held Release - after player stops
13
Synthesizing an Instrument Attack - when string is plucked or note is struck Dwell - energy left from attack Sustain - while the note is held Release - after player stops
14
Synthesizing an Instrument Attack - when string is plucked or note is struck Dwell - energy left from attack Sustain - while the note is held Release - after player stops
15
Synthesizing an Instrument Attack - when string is plucked or note is struck Dwell - energy left from attack Sustain - while the note is held Release - after player stops
16
Sampled / Object Sampled Jane loves Fred Object
17
Sound Editing and Processing with Audacity
18
Edit Sound Drag and Drop (universities-deep_thoughts.wav) File >> Import >> Audio –Notice new track (two if it is stereo) File >> Import >> Audio (theknack.wav) –Notice second track Select Track Select Time Shift action Move Track Mix and Render (“barnyard”: cow, horse, duck) Play/Mute/Align Undo (Cntrl-Z)
19
Edit Sound Split Align Select All Import Dance Music Trim Shape Record Sing a round/Play around Amplify/ Distort Blend Arithmetic with Sounds
20
Arithmetic on Sound Sound is an array of amplitudes (numbers) The higher the amplitude, the louder the sound –Adding two sounds together –Make a sound louder or softer –Blends of two sounds –Echos
21
Adding two sounds Laser Guns Distress + = New Sound
22
Adding two sounds Algorithm Laser = laser gun sound; Warn = warning message; NewSnd = new array(Laser.length); for (each index i in NewSnd) {NewSnd[i]=Laser[i]+Warn[i]; }
23
Adding Sounds Demo Drag or manufacture 2 or more track –Play –Shift –Mix and Render
24
Making a sound louder
25
Amplify Sound Demo –Effects -> Amplify
26
Making a sound louder for (each index i in oldSound) {newSound[i]=oldSound[i]* 3 ; }
27
General Amplify algorithm amp = 3.0; three times as loud for (each index i in oldSound) {newSound[i]=oldSound[i]* amp ; }
28
General Amplify algorithm amp = 0.5; half as loud for (each index i in oldSound) {newSound[i]=oldSound[i]* amp ; }
29
Blending two sounds Music Words 50% music, 50% words
30
Blending Sounds Demo 2+ Tracks -> Effects -> Amplify –Tracks -> Mix Render
31
Algorithm for Blending two sounds B = blend value between 0.0 and 1.0 for (each index i in Snd1) {newSnd[i]=(1.0-B)*Snd1[i]+ B*Snd2[i]; }
32
Singing a Round by yourself Row Row Row your boat Sing in a round
33
Singing a round by yourself Time delay + =
34
Singing a round by yourself Demo 2+ tracks -> align/shift/paste –Tracks -> Mix Render
35
Singing a round by yourself song = the original song; delay = how many samples to delay; newSng = new array(song.length+delay); for (each index i in song) {newSng[i] = song[i]; } for (each index i in song) {newSng[i+delay] = newSng[i+delay]+song[i]; }
36
Echoes An echo occurs because sound returns delayed and softer after bouncing off of something Original Canyon Echo (large delay) Room Reverb (small delay)
37
Echoes Demo Audacity –Effects -> Echo
38
Echoes Algorithm sound = the original sound; delay = how many samples to delay; softness = 0.1; newSound = new array(sound.length+delay); for (each index i in sound) {newSound[i] = sound[i]; } for (each index i in sound) {newSound[i+delay] = newSound[i+delay] + sound[i]*softness; }
39
Review Sound Synthesis (MIDI, timbre, pitch, etc) Change Pitch Change Tempo Change Speed
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.