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.

Slides:



Advertisements
Similar presentations
Chp 13 Sound and Music.
Advertisements

Beat Frequency.
Basic Tools for Understanding Synthesis. Synthesizer A musical instrument that produces waveforms, typically in the audio range of about 20 to 20,000.
Sound Synthesis Part II: Oscillators, Additive Synthesis & Modulation.
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.
MUSIC NOTES Noise Versus Music  What is the difference between noise and music?  Answer: The appearance of the waveform.  What is the difference between.
Music and Mathematics are they related?. What is Sound? Sound consists of vibrations of the air. In the air there are a large number of molecules moving.
EE2F2 - Music Technology 9. Additive Synthesis & Digital Techniques.
The frequency spectrum
Resonance and Sound Decay: A Quantitative Study of Acoustic guitars Acoustical Society of America Meeting October 3, 2005 by Erika Galazen and Joni Nordberg.
Particle Synthesis A unified model for granular synthesis Øyvind Brandtsegg Sigurd Saue Thom Johansen.
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.
Ira Fulton School of Engineering Intro to Sinusoids What is a sinusoid? » Mathematical equation : Function of the time variable : Amplitude : Frequency.
SUBJECTIVE ATTRIBUTES OF SOUND Acoustics of Concert Halls and Rooms Science of Sound, Chapters 5,6,7 Loudness, Timbre.
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.
Parameter (p) Variables contain the score parameter values for each notecontain the score parameter values for each note allow score to control orchestraallow.
Effective Bits. An ideal model of a digital waveform recorder OffsetGain Sampling Timebase oscillator Fs ADC Waveform Memory Address counter Compute Engine.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
Harmonics and Overtones Waveforms / Wave Interaction Phase Concepts / Comb Filtering Beat Frequencies / Noise AUD202 Audio and Acoustics Theory.
EE2F2 - Music Technology 8. Subtractive Synthesis.
Square wave Fourier Analysis + + = Adding sines with multiple frequencies we can reproduce ANY shape.
1 Live Sound Reinforcement Audio measurements. 2 Live Sound Reinforcement One of the most common terms you will come across when handling any type of.
 Distortion – the alteration of the original shape of a waveform.  Function of distortion analyzer: measuring the extent of distortion (the o/p differs.
Joshua “Rock Star” Jenkins Jeff “Tremolo” Smith Jairo “the boss” Rojas
Harmonics, Timbre & The Frequency Domain
Chapter 25 Nonsinusoidal Waveforms. 2 Waveforms Used in electronics except for sinusoidal Any periodic waveform may be expressed as –Sum of a series of.
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
A Brief Exploration of Electronic Music and its Theory By: Zac Changnon.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
EE 319K Introduction to Microcontrollers
Chapter 12 Objectives Differentiate between the harmonic series of open and closed pipes. Calculate the harmonics of a vibrating string and of open and.
Superposition Year 11 Physics. Some useful links showing animations of wave superposition. Here is three links to websites which provide good animations.
resonance occurs when a medium vibrates at the same frequency as the external vibrating force causing the vibration. If the forcing frequency equals.
Csound. a language for describing sound. General History. Developed by Barry Vercoe at MIT. Extended by too many people to mention. Based initially on.
Day 6 Exam I is on Thursday. Be sure to attend lab this week.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
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.
Subtractive Sound Synthesis. Subtractive Synthesis Involves subtracting frequency components from a complex tone to produce a desired sound Why is it.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
Physics 1251 The Science and Technology of Musical Sound Unit 1 Session 7 Good Vibrations Unit 1 Session 7 Good Vibrations.
Loudness level (phon) An equal-loudness contour is a measure of sound pressure (dB SPL), over the frequency spectrum, for which a listener perceives a.
Digital Audio II. Volume Scaling The volume of a digitized audio source may be increased or decreased by multiplying each sample value by an appropriate.
Beats AP Physics 1.
Signal Analyzers. Introduction In the first 14 chapters we discussed measurement techniques in the time domain, that is, measurement of parameters that.
COSC 1P02 Introduction to Computer Science 5.1 Cosc 1P02 Week 5 Lecture slides Psychiatrist to patient "You have nothing to worry about - anyone who can.
Design of a Guitar Tab Player in MATLAB Background Lecture
The Physics of Music Why Music Sounds the Way it Does, and Other Important Bits of Information.
Design of a Guitar Tab Player in MATLAB Summary Lecture Module 1: Modeling a Guitar Signal.
Physics Mrs. Dimler SOUND.  Every sound wave begins with a vibrating object, such as the vibrating prong of a tuning fork. Tuning fork and air molecules.
Sound Part II  Music What is the study of sound called?  Acoustics.
Lecture # 23 Sound Synthesis & Sound Arithmetic A “ sound font ” dog Jane knows Fred Ralph the loves Jane lovesFred.
Measurement and Instrumentation
Loudness level (phon) An equal-loudness contour is a measure of sound pressure (dB SPL), over the frequency spectrum, for which a listener perceives a.
Loudness level (phon) An equal-loudness contour is a measure of sound pressure (dB SPL), over the frequency spectrum, for which a listener perceives a.
Loudness level (phon) An equal-loudness contour is a measure of sound pressure (dB SPL), over the frequency spectrum, for which a listener perceives a.
Harmonics Ben Kemink.
Harmonic Distortion Analyzer, Wave Analyzer and Function Generator
A unified model for granular synthesis
Rhythm.
Introduction to Csound 5.
Wavetable Synthesis.
Frequency Modulation.
Uses of filters To remove unwanted components in a signal
Introduction to Csound 2.
The frequency (Hertz) of a sound
Presentation transcript:

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 creates a soundfilecombining score with orchestra creates a soundfile Csound sorts notes by start time so they can appear in the list in any orderCsound sorts notes by start time so they can appear in the list in any order naming convention:.sco file contains Csound scorenaming convention:.sco file contains Csound score

A Simple Score ; sinewave.sco - use with sinewave.orc ; waveform for oscillator - a sine wave f ;p1p2p3p4p5p6p7 ;stdurampfreqattckdecay i end

The Note Statement scores specify parameter values for each note such asscores specify parameter values for each note such as amplitudesamplitudes frequenciesfrequencies attackattack decay timesdecay times ;p1p2p3p4p5p6p7 ;stdurampfreqattckdecay i end

The Note Statement “i” indicates note statement“i” indicates note statement p1 always contains the instrument numberp1 always contains the instrument number instrument number 1 should play the noteinstrument number 1 should play the note p2 always contains the note start timep2 always contains the note start time in beats per minutein beats per minute p3 always contains the note durationp3 always contains the note duration in beats per minutein beats per minute ;p1p2p3p4p5p6p7 ;stdurampfreqattckdecay i

The Note Statement in this examplein this example p4 contains the maximum amplitudep4 contains the maximum amplitude p5 contains the frequency of the note in Hertzp5 contains the frequency of the note in Hertz p6 contains the attack duration in secondsp6 contains the attack duration in seconds p7 contains the decay duration in secondsp7 contains the decay duration in seconds ;p1p2p3p4p5p6p7 ;stdurampfreqattckdecay i

The Note Statement end indicates the end of the note listend indicates the end of the note list Csound ignores any events following itCsound ignores any events following it “e” is shortcut for “end”“e” is shortcut for “end” ;p1p2p3p4p5p6p7 ;stdurampfreqattckdecay i end

Amplitude (p4) spectrum of additive synthesis group (10 harmonics)spectrum of additive synthesis group (10 harmonics)

[i:46] Additive Synthesis Score ;p2p3p4p5p6p7 ;stdurampharmattkdec i i i i i i i i i i

The Csound Score the dots in p2 are a shortcut that allows Csound to re-use the previous value in those p-fieldsthe dots in p2 are a shortcut that allows Csound to re-use the previous value in those p-fields in this score, all the notesin this score, all the notes begin at the same time (st=1)begin at the same time (st=1) blend together to create a single soundblend together to create a single sound have varying durations so the sound changeshave varying durations so the sound changes

Amplitude (p4) this score sets the amplitude of the first partial to 2400this score sets the amplitude of the first partial to 2400 total amplitude of all partials is 5965total amplitude of all partials is 5965

Amplitude (p4) Since Csound uses 16-bit integer samples, the largest amplitude possible without distortion is 32,767Since Csound uses 16-bit integer samples, the largest amplitude possible without distortion is 32,767 two simultaneous notes, each with an amplitude of 4,000 can produce a combined amplitude of 8,000 if their peak amplitudes are togethertwo simultaneous notes, each with an amplitude of 4,000 can produce a combined amplitude of 8,000 if their peak amplitudes are together scores — such as this one — with several simultaneous notes may require scaling down their amplitudesscores — such as this one — with several simultaneous notes may require scaling down their amplitudes

Amplitude (p4) A significant noticeable increase in loudness level (e.g., from mf to f ) roughly corresponds to increase by an amplitude factor of 1.5A significant noticeable increase in loudness level (e.g., from mf to f ) roughly corresponds to increase by an amplitude factor of 1.5 example, a note with amplitude of 6,000 will be about one dynamic level louder than a note with amplitude of 4,000example, a note with amplitude of 6,000 will be about one dynamic level louder than a note with amplitude of 4,000

Balancing inorm Set up the orchestra with the desired output amplitude:Set up the orchestra with the desired output amplitude: inorm = =... iamp/inorm Set up the score:Set up the score: p4 = end of score.overall amps: overall samples out of range:0 Run CsoundRun Csound note the maximum amplitude of the output:note the maximum amplitude of the output:

Balancing inorm end of score.overall amps: overall samples out of range:0 the maximum amplitude of the output is:the maximum amplitude of the output is: inorm = in the orchestra: set inorm to the maximum amplitudein the orchestra: set inorm to the maximum amplitude run Csound againrun Csound again check that the maximum amplitude is 30000:check that the maximum amplitude is 30000: end of score.overall amps: