It sure is smart but can it swing? (Digital audio and computer music)

Slides:



Advertisements
Similar presentations
CS335 Principles of Multimedia Systems Audio Hao Jiang Computer Science Department Boston College Oct. 11, 2007.
Advertisements

Time-Frequency Analysis Analyzing sounds as a sequence of frames
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Auditory scene analysis 2
Geber Ramalho Computação Musical: taxonomia Proposta por Stephen Pope.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
Basic Computer 101 and Basic Digital Audio basic is a relative term.
Improvement of Audio Capture in Handheld Devices through Digital Filtering Problem Microphones in handheld devices are of low quality to reduce cost. This.
SUBJECTIVE ATTRIBUTES OF SOUND Acoustics of Concert Halls and Rooms Science of Sound, Chapters 5,6,7 Loudness, Timbre.
Digital audio and computer music COS 116: 2/26/2008.
Howell Istance School of Computing De Montfort University
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
BPC: Art and Computation – Summer 2007 Digital Media – Audio, part 2 Robert Putnam
Digital Signal Processing A Merger of Mathematics and Machines 2002 Summer Youth Program Electrical and Computer Engineering Michigan Technological University.
PH 105 Dr. Cecilia Vogel Lecture 24. OUTLINE  Electronic music  Theramin  Analog vs digital  components in electronic music.
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
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?
5. Multimedia Data. 2 Multimedia Data Representation  Digital Audio  Sampling/Digitisation  Compression (Details of Compression algorithms – following.
Chapter 14 Recording and Editing Sound. Getting Started FAQs: − How does audio capability enhance my PC? − How does your PC record, store, and play digital.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Digital audio and computer music COS 116, Spring 2012 Guest lecture: Rebecca Fiebrink.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Introduction to MIR Course Overview 1.
Perception-Based Engineering: Integrating Human Response Into Product Design A collaboration between psychologists and engineers. Mission: To integrate.
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
Computer Science 121 Scientific Computing Winter 2014 Chapter 13 Sounds and Signals.
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Radio production worktext.  Analog to Digital  Analog signal – continuously variable electrical signal whose shape is determined by the shape of the.
MIDI. A protocol that enables computers, synthesizers, keyboards, and other musical devices to communicate with each other. Instead of storing actual.
COMP Representing Sound in a ComputerSound Course book - pages
CSCI-235 Micro-Computers in Science Hardware Part II.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Media Representations - Audio
CLASS PROJECT. Build something Install on your machine Build Desktop app Web app (consider XAMPP or MAMP/WAMP) Backend User interface Must involve information.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
Sound on the Web. Using Sound on a Web Site Conveying information  pronounce a word or describe a product Set a mood  music to match the web page scene.
Chapter 15 Recording and Editing Sound. 2Practical PC 5 th Edition Chapter 15 Getting Started In this Chapter, you will learn: − How sound capability.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 9 This presentation © 2004, MacAvon Media Productions Sound.
Multimedia and Artificial Intelligence Chapter 12 – Computers: Understanding Technology (Second edition)
Specialized Input and Output. Inputting Sound ● The microphone is the most basic device for inputting sounds into a computer ● Microphones capture sounds.
MULTIMEDIA INPUT / OUTPUT TECHNOLOGIES INTRODUCTION 6/1/ A.Aruna, Assistant Professor, Faculty of Information Technology.
Physics 1251 The Science and Technology of Musical Sound Unit 4 Session 42 MWF Computer Music Unit 4 Session 42 MWF Computer Music.
Digital audio and computer music COS 116, Spring 2010 Adam Finkelstein Slides and demo thanks to Rebecca Fiebrink.
Pre-Class Music Paul Lansky Six Fantasies on a Poem by Thomas Campion.
Chapter 12 The Principles of Computer Music Contents Digital Audio Processing Noise Reduction Audio Compression Digital Rights Management (DRM)
Encoding and Simple Manipulation
Chapter 21 Musical Sounds.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
CSCI-100 Introduction to Computing Hardware Part II.
MMDB-9 J. Teuhola Standardization: MPEG-7 “Multimedia Content Description Interface” Standard for describing multimedia content (metadata).
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Introduction to psycho-acoustics: Some basic auditory attributes For audio demonstrations, click on any loudspeaker icons you see....
Introduction to HCI Lecture #1.
Closed Pipe Pipe closed at ONE end: closed end pressure antinode air press. L = /4 L.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
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.
Time Compression/Expansion Independent of Pitch. Listening Dies Irae from Requiem, by Michel Chion (1973)
Harvestworks Part 1: ChucK basics Rebecca Fiebrink Princeton University 1.
Spectral subtraction algorithm and optimize Wanfeng Zou 7/3/2014.
Physical characteristics of sound Amplitude – The measure of displacement of the air pressure wave Frequency – Represents the number of periods.
XP Practical PC, 3e Chapter 14 1 Recording and Editing Sound.
CS 591 S1 – Computational Audio -- Spring, 2017
CSC 320 – Music Instrument Digital Interface (MIDI) and Digital Audio, Spring 2017 April 2017 Dr. Dale Parson.
Department of Computer Science and Engineering
Developing a Versatile Audio Synthesizer TJHSST Computer Systems Lab
Sound, language, thought and sense integration
Digital Audio Application of Digital Audio - Selected Examples
Presentation transcript:

It sure is smart but can it swing? (Digital audio and computer music) COS 116: 2/22/2011 Sanjeev Arora (slides from Prof. Rebecca Fiebrink) 

Concrete example of how different concepts Today: Concrete example of how different concepts studied so far apply in one domain: Music. Opening video: http://www.music.princeton.edu/~nbritt/PLOrk-spring2010/video/G.mov What are the performers doing? How are they controlling the music?

Overview Sound and music in the physical world and in human experience Representations of music Analyzing music with computers Creating music with computers

1. Sound and music

What is sound? Discussion Time “Pressure wave” Vibrating objects -> sound pressure waves -> eardrum/inner ear -> brain Demo sndpeek: Show waveform of tuning fork, speech “Pressure wave”

What is music? Discussion Time “Organized sound” Organized sound: Composers and performers manipulate pitch, rhythm, timbre, dynamics, structure in meaningful ways Psychoacoustics: note, octave Culture: banned tritone http://www.lightbridgemusic.com/supp.htm People of a given culture and time period learn a lot about this organization just by exposure e.g., even if you aren’t a musician, you expect V7-I (example) At a very low level, when you expect that this pattern will occur, and your expectation is correct, your brain rewards you; this is one of the very low-level reasons for why we like music. In fact, our brain responds to music a lot like it does to narcotics. Naloxone -- blocks opiate receptors for heroin Psychoacoustics play an important role Also dependence upon history, culture, experience Engages listeners’ psychological mechanisms for expectation/reward

What do we hear? Frequency Pitch Loudness Timbre … (start with chipmunk clip; pause it, and then let words about frequency/pitch/loudness appear).

Psychoacoustics Relationships between physical phenomenon of sound and our perception Frequency <-> pitch 20-20,000Hz Amplitude <-> loudness Identities and strengths of frequencies present : timbre Show sndpeek again with sounds Mention that they will explore these issues in the lab. + =

Spectral representation Every wave (sounds included) can be decomposed into “pure sine waves”, each of a single frequency.

2. Representations of sound and music

Discussion Time How do you represent music? Score: Audio samples Spectrum Q: How do we represent music? Show: score vs. audio file Ask aloud “is score a faithful representation?” Q: What is the relationship between the score representation and what you hear? Explain spectrum - Show adding waves in time Adding waves in frequency Show spectogram - 440, 880, both. (with sound)

Digital representation of music Qs: How can computer halve the frequency of this signal? Describe sampling, quantization Mention that this is a “lossless” format, used for WAV, AIFF, CD, etc. Just like we saw on the last slide, we can use less information to represent a sound and have a representation that is less faithful/complete: **downsampling** (play example of downsampled audio): Q: What’s a benefit of using a lower sampling rate?

Compression Why? Saves bandwidth, memory etc. How? Trivial but very lossy: sample less often Cleverer: use psychoacoustic principles MP3: Masking Even cleverer: use physical principles of sound production (via models) of sound source) By being smart about what information we leave out, we can get a better representation with fewer bits Show sndpeek- just my voice: how spectrum changes w/ vowel Sound example: phasor source, formant filter, source-filter

Choosing a representation Representations are compromises Standard representations are somewhat arbitrary (e.g. MIDI) Best representation is task-dependent Compromised: Frequency and dynamic range Composer’s intention (what is notated) Performance gestures Aribtrariness: CD length, MP3 parameters (for popular music)

3. Using technology to analyze sound and music

Analyzing speech Real-life apps: Customer service phone routing Voice recognition software Hard questions (for a computer): Identity, language, content

Computational Auditory Scene Analysis Applications: Archival and retrieval, forensics, AI e.g., forensic examination of tapes from RFK assasination reveal a second gunman.

Music information retrieval Analyzing musical data Query, recommend, visualize, transcribe, detect plagiarism, follow along with a score Sites you can try midomi.com Themefinder.com Pandora.com (human-driven), last.fm Sound example: Hum melody (just me) can a computer transcribe this? Figure out my tempo? Find a file on your hard drive that has this melody? Find melodies that are similar? Written by the same composer? Give me feedback on how well I sang it?

Machine learning for analysis Given the types of music that the listerner likes; recommend new music that he or she might like.

(1) What does this pseudocode do? Variable i; for i=1 to 4 do { if (i < 3) then print( i*i) else print (i);} (2) Write 33 in binary.

4. Using technology to create music and sound A whirlwind tour of the 20th century, with a focus on computer technology

Creating music: Synthesis Examples: Stevie Wonder Tina Turner (FM) Kanye West/ Daft Punk (vocoder) http://www.youtube.com/watch?v=b2xBVbzPftA&feature=related

Three approaches to synthesis Additive synthesis Figure out which frequencies are present, and in what proportions Synthesize a sine wave at each frequency, and superpose them. Physical modeling Start with knowledge about how physical systems oscillate Simulate oscillation of an arbitrary system. (Recall Lecture 4) + + …=

Three approaches to synthesis Cross-synthesis (eg vocoder) Choose filter for speech (vowel) Choose source to be another sound Mention that this was generated with code written at Princeton

Some continua of computer music creation low Synthesis Running a program Computer follows performer Live coding, special controllers Interactivity Controlling synthesis Oboe demo! Composition high Level of control

Performer-Computer Interaction Augmented instruments Software and hardware interfaces Demo: PLOrk video, PBS Demo: using a Wii-mote to control sound New instruments Perry’s Mug. Live coding Demo: Max’s drum machine Chuck/miniaudicle http://sciencestage.com/v/29622/princeton-laptop-orchestra-princeton-university.html http://www.youtube.com/watch?v=B_waqIozoVw Download chuck and miniaudicle from http://soundlab.cs.princeton.edu/software/

Questions: How can we…. develop new ways to synthesize sound? give user control over synthesis parameters? make machines interactive in a musical way? augment human capabilities? design new instruments that are easy to play? allow expert musicality? create music that is emotionally and aesthetically compelling?

Final remarks Distinctions in this presentation are superficial Analysis, representation, and creation interact Technology draws on and contributes to our understanding of the physics and psychophysics of sound Computer music is interdisciplinary HCI, AI, programming languages, algorithms, systems building Also psychology, music theory, acoustics, signal processing, engineering, physics, performance practice, library science, applied math & statistics, … Technology is constantly complicating and changing the landscape of our musical experiences as creators, participants, listeners, and consumers. Open questions span many of these fields

http://soundlab.cs.princeton.edu/ Software to try: Chuck, Miniaudicle,