cs101 lecture 15: computer generated music · cs101 lecture 15: computer generated music aaron...

7
10/18/12 1 Computer Science CS101 Lecture 15: Computer Generated Music Aaron Stevens ([email protected]) 18 October 2012 Computer Science 2 What You’ll Learn Today Music encoding schemes Programmable music playback machines Computer generated music

Upload: others

Post on 23-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

1

Computer Science

CS101 Lecture 15: Computer Generated Music

Aaron Stevens ([email protected]) 18 October 2012

Computer Science

2

What You’ll Learn Today

 Music encoding schemes  Programmable music playback

machines  Computer generated music

Page 2: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

2

Computer Science

Other Ways to Represent Music:

Computer Science

How does a music box work?

Page 3: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

3

Computer Science What about a player piano?

Computer Science BU’s John R. Silber Organ

http://www.bu.edu/today/2011/icons-among-us-the-john-r-silber-symphonic-organ/ http://www.bu.edu/buniverse/view/?v=1FTkaLbT

Page 4: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

4

Computer Science

Musical Instrument Digital Interface

The MIDI protocol provides a way to specify music as instructions.

What kind of computer instructions do we need to explain this sound?

(play a few seconds of the song “Thunderstruck”)

Computer Science

Each MIDI instruction (“event”) specifies: –  timestamp –  action, for example:

NoteOn, NoteOff –  note, for example:

59 is B, 63 is D#. –  velocity (volume)

Musical Instrument Digital Interface

Page 5: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

5

Computer Science

MIDI Note Numbers

SOURCE: http://www.harmony-central.com/MIDI/Doc/table2.html

Computer Science

Anvil Studio (free software)

Page 6: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

6

Computer Science Why use MIDI?

Writing instructions takes a lot less space than sampling the waveforms:

53,000 / 7,000,000 = 0.007 data ratio, better than 99% savings.

When should we use MIDI?

Computer Science

Compare sampled vs. MIDI to raster vs. vector graphics

The same is true for sampled music vs. MIDI.

Page 7: CS101 Lecture 15: Computer Generated Music · CS101 Lecture 15: Computer Generated Music Aaron Stevens (azs@bu.edu) 18 October 2012 Computer Science 2 What You’ll Learn Today Music

10/18/12

7

Computer Science

13

What You Learned Today

 Music notation  Music playback machines  MIDI - encoding

Computer Science

14

Announcements and To Do

Readings:  Wong ch 4, pp 102-117 (today)  YouTube: History of Sony music technology

  http://www.youtube.com/watch?v=V5I41PdAK0Y (6 minutes)

HW 7 due Tuesday 10/23 For next week:

 Read Alice chapter 1   install Alice on your laptop (www.alice.org)