Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Carnegie Mellon
1
A Framework for Coordina0on and Synchroniza0on of Media
Dawen Liang Guangyu (Gus) Xia Roger B. Dannenberg Schools of Computer Science and Music Carnegie Mellon University
1 1
Carnegie Mellon
2 © 2011, Liang, Xia, & Dannenberg
bass!
?
Introduc0on
¢ Suppose you want to get together and play music ... BUT, you're missing a _______ player.
credit: Green Day
Carnegie Mellon
3 © 2011, Liang, Xia, & Dannenberg
Human Computer Music Performance
deterministic open-ended
Free Improvisation
Interactive Computer Music (Rowe, Winkler, Machover, Geo. Lewis, ...)
Classical
Score Following, Computer Accompaniment
Music Minus One, Karaoke
Fixed Media
Popular Music (Rock, Jazz, Folk, etc.)
HCMP
Our contribution today: (1) Coordination of sensors, players, and displays. (2) Using music notation as interactive medium.
Carnegie Mellon
4 © 2011, Liang, Xia, & Dannenberg
Overview
¢ Introduc0on ¢ (1) Coordina0on based on beats and measures ¢ (2) Music nota0on as an interac0ve medium ¢ Short Demo ¢ Conclusions
Carnegie Mellon
5 © 2011, Liang, Xia, & Dannenberg
Part 1: Coordina0on of Beats and Measures
¢ HCMP Systems will have: § Sensors (Keyboads, pedals, touchscreens, accelerometers, machine listening, computer vision, ...)
§ Media (MIDI, Audio, Robots, NotaAon, LighAng control, Sequencers, Effects processors, Mixer automaAon, AnimaAon, Video, Lasers, ...)
¢ How do we coordinate and integrate systems? ¢ Our solu0on:
§ All systems agree on real Ame § Music posiAon is given in beats and measures -‐ always § Use mapping from real-‐Ame to beats
Carnegie Mellon
6 © 2011, Liang, Xia, & Dannenberg
Mapping from Real Time to Beats
time
beat
b0
t0
s
Mapping from real time to beats expressed as: (t0, b0, s)
Carnegie Mellon
7 © 2011, Liang, Xia, & Dannenberg
Changing the Mapping
s0
l
b0
t0 te t1 tn
b
be
se
new map
t
b+d
bn = b sn
tn = t1+l old map
estimated map based on sensors
Carnegie Mellon
8 © 2011, Liang, Xia, & Dannenberg
SoUware: Classes and Objects
Conductor Sched
Player
Sched
Player Player Player
Process 2 Process 1 start stop
set_position
set_timemap
Carnegie Mellon
9 © 2011, Liang, Xia, & Dannenberg
Part 2: Music Nota0on as an Interac0ve Medium
Abstract_player
Score_player
Page turning, Cursor update
Start here, Go here, Give Cues
Other input devices
Other display & music output
Carnegie Mellon
10 © 2011, Liang, Xia, & Dannenberg
Carnegie Mellon
11 © 2011, Liang, Xia, & Dannenberg
Summary
¢ Human Computer Music Performance: IntegraAng § interfaces, § automaAc music listening, and § live performance.
¢ CoordinaAon of music § PosiAon measured in beats and measures § Many player objects are coordinated through mapping from Ame to beats
§ Common algorithm to smoothly update mapping ¢ Music notaAon as a user interface
§ Provides intuiAve support for musical interacAon
Carnegie Mellon
12 © 2011, Liang, Xia, & Dannenberg
Conclusions
¢ A flexible framework for HCMP ¢ Open to HCI exploraAon, using
§ Touch screen § Gestures § Video sensing § Speech § AutomaAc music listening
... to assist in live music performance.
Carnegie Mellon
13 © 2011, Liang, Xia, & Dannenberg
Carnegie Mellon
14 © 2011, Liang, Xia, & Dannenberg
Agreement on Real Time
¢ -‐> Clock SynchronizaAon ¢ Easily done:
§ Send request to server at local Ame L § AXer delay d, receive "Ame is G" § EsAmate server Ame = local Ame + (G -‐ (L + d/2))
¢ More sophisAcated protocols can reduce error from ~1ms to <10µs (if needed).
¢ Now we can assume all systems agree on Ame.
Carnegie Mellon
15 © 2011, Liang, Xia, & Dannenberg
Music Posi0on in Beats and Measures
¢ Seems obvious, but ... ¢ StaAc scores with repeats, D.S., etc. vs ¢ "Dynamic" scores such as MIDI files are "unfolded" ¢ See poster with Nicolas Gold in proceedings for more.
¢ We will (mostly) ignore these problems for now.