Parameter (p) Variables contain the score parameter values for each notecontain the score parameter values for each note allow score to control orchestraallow.

Slides:



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

INVERTERS (DC-AC Converters).
The Csound Score a group of function tables and list of note statementsa group of function tables and list of note statements combining score with orchestra.
HasSound: Generating Musical Instrument Sounds in Haskell Paul Hudak Yale University Department of Computer Science Joint work with: Matt Zamec (Yale ‘00)
Digital Sound Representation & Introduction to Software Synthesis Electronic Music Studio TU Berlin Institute of Communications Research
IntroductionIntroduction Most musical sounds are periodic, and are composed of a collection of harmonic sine waves.Most musical sounds are periodic, and.
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.
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.
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,
Comb Filters Good model for exponentially decaying echoesGood model for exponentially decaying echoes impulse input: output: (scaling factor =.9)
Physics 1251 The Science and Technology of Musical Sound Unit 1 Session 8 Harmonic Series Unit 1 Session 8 Harmonic Series.
SamplingSampling plays back samples of the original tone.plays back samples of the original tone. For simple decaying tones (e.g., piano, harp, marimba,
The Csound Orchestra semi-colon begins a commentsemi-colon begins a comment Csound ignoresCsound ignores everything on the line after the semi-coloneverything.
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.
Transverse waves on an elastic spring
What is Csound? a programming language for sound generationa programming language for sound generation uses software synthesis to compile user-defined.
Additive Synthesis Any periodic waveform can be expressed as the sum of one or more sine wavesAny periodic waveform can be expressed as the sum of one.
On Timbre Phy103 Physics of Music. Four complex tones in which all partials have been removed by filtering (Butler Example 2.5) One is a French horn,
PH 105 Dr. Cecilia Vogel Lecture 13. OUTLINE  Timbre and graphs:  Time graph  Spectrum graph  Spectrogram  Envelope  scales  units  interval factors.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Harmonics and Overtones Waveforms / Wave Interaction Phase Concepts / Comb Filtering Beat Frequencies / Noise AUD202 Audio and Acoustics Theory.
EE2F2 - Music Technology 8. Subtractive Synthesis.
Spectrum Analysis Sound AnalysisSound Analysis What are we going to do?What are we going to do? Record a soundRecord a sound recorded sound analog-to-digital.
Square wave Fourier Analysis + + = Adding sines with multiple frequencies we can reproduce ANY shape.
The Spectrum Jean Baptiste Fourier ( ) discovered a fundamental tenet of wave theory All periodic waves are composed of a series of sinusoidal.
The Spectrum n Jean Baptiste Fourier ( ) discovered a fundamental tenet of wave theory n All periodic waves are composed of a series of sinusoidal.
Harmonics, Timbre & The Frequency Domain
A Brief Exploration of Electronic Music and its Theory By: Zac Changnon.
Synthesis Basics (1) Analog Synthesis Intro to Digital Oscillators.
Chapter 21 Musical Sounds Noise Versus Music Pitch Pitch Loudness Loudness Quality Quality.
ACOUSTICS AND THE ELEMENTS OF MUSIC Is your name and today’s date at the top of the worksheet now?
Receivers.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Dual-Channel FFT Analysis: A Presentation Prepared for Syn-Aud-Con: Test and Measurement Seminars Louisville, KY Aug , 2002.
COSC 1P02 Introduction to Computer Science 4.1 Cosc 1P02 Week 4 Lecture slides “Programs are meant to be read by humans and only incidentally for computers.
Filtering. What Is Filtering? n Filtering is spectral shaping. n A filter changes the spectrum of a signal by emphasizing or de-emphasizing certain frequency.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
Csound. a language for describing sound. General History. Developed by Barry Vercoe at MIT. Extended by too many people to mention. Based initially on.
Subtractive Sound Synthesis. Subtractive Synthesis Involves subtracting frequency components from a complex tone to produce a desired sound Why is it.
Complex Auditory Stimuli
Chapter 12 The Principles of Computer Music Contents Digital Audio Processing Noise Reduction Audio Compression Digital Rights Management (DRM)
Acoustic Theory 3 Sound Creation and Manipulation.
Chapter 21 Musical Sounds.
EQUALIZATION E.Q.. What is equalization? The manipulation of tone by increasing or decreasing frequency ranges with tone controls, filters or equalizers.
Harmonic Series and Spectrograms BY JORDAN KEARNS (W&L ‘14) & JON ERICKSON (STILL HERE )
Chapter 2 Fundamentals of Data and Signals
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.
The Spectrum n Jean Baptiste Fourier ( ) discovered a fundamental tenet of wave theory.
Basic Acoustics. Sound – your ears’ response to vibrations in the air. Sound waves are three dimensional traveling in all directions. Think of dropping.
Measurement and Instrumentation
Harmonics Ben Kemink.
Aim: Standing Wave Lab Draw the 1st, 2nd, 3rd and 4th Harmonic for a Standing Wave! I will randomly call people up to the board to draw their waves!
Pitch.
Figure Hz sine wave to be sampled.
Net 222: Communications and networks fundamentals (Practical Part)
UNIT-8 INVERTERS 11/27/2018.
Mark Sayles, Ian M. Winter  Neuron 
Joe Blubaugh Diana Mui David Sutherland Matthew Swallow
Frequency Modulation 2.
Speech Pathologist #10.
Introduction to Csound 5.
Wavetable Synthesis.
All-Pass Filters.
Frequency Modulation.
Sampling.
Lecture 7: Spectral Representation
Introduction to Csound 2.
Introduction to Csound 4.
Presentation transcript:

Parameter (p) Variables contain the score parameter values for each notecontain the score parameter values for each note allow score to control orchestraallow score to control orchestra p1 — always the instrument numberp1 — always the instrument number p2 — always the start timep2 — always the start time p3 — always the durationp3 — always the duration in some effects, such as reverb, lengthening p3 allows the sound to die away before cutting it offin some effects, such as reverb, lengthening p3 allows the sound to die away before cutting it off p3= p3 + iring user defines the other parameter fieldsuser defines the other parameter fields

LabelsLabels signposts directing Csound to the right place in the orchestrasignposts directing Csound to the right place in the orchestra NOT variablesNOT variables can start with any character - BUTcan start with any character - BUT don't start labels with "p," "g," "i," "k" and "a" — these reserved letters begin variable namesdon't start labels with "p," "g," "i," "k" and "a" — these reserved letters begin variable names end with colonend with colon may have their own line or may precede an operation linemay have their own line or may precede an operation line label: result opcode argument1, argument2,...

goto Statements tell the program to go to one of the labelstell the program to go to one of the labels usually in if statements.usually in if statements. if ifreq > 300 goto label

The Function Statement f1 — wavetable number 1f1 — wavetable number 1 the "1" used by oscili in sinewave.orcthe "1" used by oscili in sinewave.orc 0 — load at time zero0 — load at time zero — load with points16385 — load with points number of points in wavetable must benumber of points in wavetable must be a power of 2a power of 2 512, 1024, 2048, 4096, 8192, , 1024, 2048, 4096, 8192, 16384OR (a power of 2) + 1(a power of 2) , 1025, 2049, 4097, 8193, , 1025, 2049, 4097, 8193, f

The Function Statement a lower number of points = faster wavetable loading (draft)a lower number of points = faster wavetable loading (draft) a higher number of points = better sound quality (finished)a higher number of points = better sound quality (finished) 10 — fill the table with a (group of) harmonic [ii:18] sine waves10 — fill the table with a (group of) harmonic [ii:18] sine waves f

The Function Statement After the "10," each number indicates the strength of that harmonic numberAfter the "10," each number indicates the strength of that harmonic number for example, the single number "1" indicates that this is a sine wave — only the first harmonic partial (fundamental)for example, the single number "1" indicates that this is a sine wave — only the first harmonic partial (fundamental) Spectral Snapshot of Wavetable No. 1 f

The Function Statement oscili statement takes values from this waveformoscili statement takes values from this waveform for each tone, oscili repeats this waveform at frequency of the tonefor each tone, oscili repeats this waveform at frequency of the tone example: 440 times per second for A4example: 440 times per second for A4

Amplitude Envelope fades in and out as shown in figurefades in and out as shown in figure note statement setsnote statement sets the attack time of each note to.1 secondsthe attack time of each note to.1 seconds the decay time to 1.4 secondsthe decay time to 1.4 seconds

Review Question The line of code in the box is:The line of code in the box is: A.a tempo statement B.a note statement C.the end of the score file D.a function statement E.none of the above f

A Global Frequency Factor ; freqfactor.orc ; name of orchestra sr=22050; sampling rate kr=2205; control rate ksmps=10; samples/control per. nchnls=1; 1 channel playback ; gifreq=2; make all notes octave higher ; instr 1; sine wave or whatever... ifreq=p5 * gifreq... outasig; output signal endin; end of instrument

[ii:80] A Global Frequency Factor ; freqfactor.sco - use with freqfactor.orc ; waveform for oscillator - 10 sine waves f ;p1p2p3p4p5p6p7 ;stdurampfreqattckdec i end

Function Statement defines the wavetabledefines the wavetable f f1 - wavetable number 1 (the "1" used by oscili in sinewave.orc)f1 - wavetable number 1 (the "1" used by oscili in sinewave.orc) 0 - load the wavetable at time 00 - load the wavetable at time load the wavetable with points load the wavetable with points

Function Statement gen 10 - each number indicates the strength of that harmonic numbergen 10 - each number indicates the strength of that harmonic number wavetable f1 uses the first 10 harmonicswavetable f1 uses the first 10 harmonics the harmonics are in consecutive orderthe harmonics are in consecutive order the first harmonic has a strength of 10the first harmonic has a strength of 10 the second harmonic has a strength of 9the second harmonic has a strength of 9 normalizationnormalization all the harmonics are normalized so that the peak amplitude of the waveform is 1all the harmonics are normalized so that the peak amplitude of the waveform is 1 Use -10 instead of 10 to skip normalizationUse -10 instead of 10 to skip normalization f

Amplitude (p4) relative amplitudes of 10 harmonics in function tablerelative amplitudes of 10 harmonics in function table f

Review Question Which function statement can represent the spectrum shown in the figure:Which function statement can represent the spectrum shown in the figure: A.f B.f C.f D.f E.none of the above