CS101 Lecture 16: Computer Generated Music Aaron Stevens - - PDF document

cs101 lecture 16 computer generated music
SMART_READER_LITE
LIVE PREVIEW

CS101 Lecture 16: Computer Generated Music Aaron Stevens - - PDF document

3/1/13 CS101 Lecture 16: Computer Generated Music Aaron Stevens (azs@bu.edu) 1 March 2013 Computer Science What Youll Learn Today Computer Science Music encoding schemes Programmable music playback machines Computer generated


slide-1
SLIDE 1

3/1/13 1

Computer Science

CS101 Lecture 16: Computer Generated Music

Aaron Stevens (azs@bu.edu)

1 March 2013

Computer Science 2

What You’ll Learn Today

  • Music encoding schemes
  • Programmable music playback

machines

  • Computer generated music
slide-2
SLIDE 2

3/1/13 2

Computer Science

Other Ways to Represent Music:

Computer Science

How does a music box work?

slide-3
SLIDE 3

3/1/13 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

slide-4
SLIDE 4

3/1/13 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

slide-5
SLIDE 5

3/1/13 5

Computer Science

MIDI Note Numbers

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

Computer Science

Anvil Studio (free software)

slide-6
SLIDE 6

3/1/13 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.

slide-7
SLIDE 7

3/1/13 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)
  • Reed ch 3, pp44-50 (for Monday)

HW 7 due Wednesday 3/6 QUIZ 3 will be on Friday 3/8

  • HTML forms, CSS, frames, images, audio