ABOUT THE SPEAKER
Ge Wang - Music technologist
Both a musician and a computer scientist, Ge Wang turns ordinary MacBooks and iPhones into complex instruments.

Why you should listen

Ge Wang explores the intersection of technology and music, researching how programming languages and interactive software systems can push computer music from coded beeps and tones to something that musicians can actively play in the moment. An Associate Professor at Stanford University, Wang is the founding director of both the Stanford Laptop Orchestra (SLOrk) and the Stanford Mobile Phone Orchestra (MoPho). He was named a Guggenheim Foundation Fellow in 2016 and is the author of Artful Design: Technology in Search of the Sublime -- a 488-page, full-color comic book about design as the art of humanizing technology (Stanford University Press, 2018).

Wang is also the man behind ChucK, a programming language built specifically for sound. He also co-founded Smule, a startup dedicated to musical apps that let people around the world make beautiful music … and connect with each other in the process. Wang is the designer of Ocarina, which turns your iPhone into an ancient flute.

More profile about the speaker
Ge Wang | Speaker | TED.com
TEDxStanford

Ge Wang: The DIY orchestra of the future

Filmed:
1,220,062 views

Ge Wang makes computer music, but it isn't all about coded bleeps and blips. With the Stanford Laptop Orchestra, he creates new instruments out of unexpected materials—like an Ikea bowl—that allow musicians to play music that's both beautiful and expressive.
- Music technologist
Both a musician and a computer scientist, Ge Wang turns ordinary MacBooks and iPhones into complex instruments. Full bio

Double-click the English transcript below to play the video.

00:12
I want to talk to you about one thing
0
927
2181
00:15
and just one thing only,
1
3108
1756
00:16
and this has to do with when people ask me,
2
4864
3756
00:20
what do you do?
3
8620
3247
00:23
To which I usually respond,
4
11867
1900
00:25
I do computer music.
5
13767
3140
00:28
Now, a number of people
6
16907
1945
00:30
just stop talking to me right then and there,
7
18852
2237
00:33
and the rest who are left usually have
8
21089
2413
00:35
this blank look in their eye,
9
23502
2248
00:37
as if to say, what does that mean?
10
25750
2169
00:39
And I feel like I'm actually depriving them
11
27919
2218
00:42
of information by telling them this,
12
30137
3205
00:45
at which point I usually panic
13
33342
1728
00:47
and spit out the first thing that comes to my mind,
14
35070
1590
00:48
which is, I have no idea what I'm doing.
15
36660
3782
00:52
Which is true.
16
40442
1612
00:54
That's usually followed by a second thought,
17
42054
2856
00:56
which is, whatever it is that I'm doing,
18
44910
3300
01:00
I love it.
19
48210
1692
01:01
And today, I want to, well,
20
49902
3797
01:05
share with you something I love,
21
53699
2171
01:07
and also why.
22
55870
1484
01:09
And I think we'll begin with just this question:
23
57354
3929
01:13
What is computer music?
24
61283
1337
01:14
And I'm going to try to do my
best to provide a definition,
25
62620
3780
01:18
maybe by telling you a story
26
66400
1731
01:20
that goes through some of the stuff
27
68131
1647
01:21
I've been working on.
28
69778
1926
01:23
And the first thing, I think, in our story
29
71704
1812
01:25
is going to be something called ChucK.
30
73516
2548
01:28
Now, ChucK is a programming language for music,
31
76064
5373
01:33
and it's open-source, it's freely available,
32
81437
2709
01:36
and I like to think that it crashes equally well
33
84146
1920
01:38
on all modern operating systems.
34
86066
2344
01:40
And instead of telling you more about it,
35
88410
2960
01:43
I'm just going to give you a demo.
36
91370
1826
01:45
By the way, I'm just going to nerd out
37
93196
1156
01:46
for just a few minutes here,
38
94352
1629
01:47
so I would say, don't freak out.
39
95981
2798
01:50
In fact, I would invite all of you to join me
40
98779
2071
01:52
in just geeking out.
41
100850
1184
01:54
If you've never written a line
of code before in your life,
42
102034
3062
01:57
do not worry.
43
105096
1186
01:58
I'll bet you'll be able to come along on this.
44
106282
3517
02:01
First thing I'm going to do is to make
45
109799
1419
02:03
a sine wave oscillator,
46
111218
1833
02:05
and we're going to called the sine wave generator
47
113051
3034
02:08
"Ge."
48
116085
2762
02:10
And then we're going to connect "Ge" to the DAC.
49
118847
2090
02:12
Now this is kind of the abstraction
50
120937
1154
02:14
for the sound output on my computer. Okay?
51
122091
2608
02:16
So I've connected myself into the speaker.
52
124699
3200
02:19
Next, I'm going to say my frequency
53
127899
1592
02:21
is 440 hertz,
54
129491
1968
02:23
and I'm going to let time advance
55
131459
3819
02:27
by two seconds through this operation.
56
135278
2722
02:30
All right, so if I were to play this --
57
138000
4068
02:34
(Tone) —
58
142068
2672
02:36
you would hear a sine wave
at 440 hertz for two seconds.
59
144740
2421
02:39
Okay, great. Now I'm going to copy and paste this,
60
147161
3026
02:42
and then just change some of these numbers,
61
150187
1744
02:43
220.5, 440 I shall leave it as that,
62
151931
3960
02:47
and .5 and 880.
63
155891
2440
02:50
By doubling the frequency,
64
158331
1362
02:51
we're actually going up in successive octaves,
65
159693
2517
02:54
and then we have this sequence --
66
162210
1337
02:55
(Tones) — of tones.
67
163547
2127
02:57
Okay, great, now I can imagine creating
68
165674
1906
02:59
all kinds of really horrible
69
167580
1442
03:01
single sine wave pieces of music with this,
70
169022
2398
03:03
but I'm going to do something
that computers are really good at,
71
171420
2912
03:06
which is repetition.
72
174332
1824
03:08
I'm going to put this all in a while loop,
73
176156
1704
03:09
and you actually don't need to indent,
74
177860
1296
03:11
but this is purely for aesthetic reasons.
75
179156
2124
03:13
It's good practice.
76
181280
1604
03:14
And when we do this —
77
182884
1580
03:16
(Tones) —
78
184464
4497
03:20
that's going to go on for a while.
79
188961
1173
03:22
In fact, it's probably not going to stop
80
190134
1494
03:23
until this computer disintegrates.
81
191628
1783
03:25
And I can't really empirically prove that to you,
82
193411
2699
03:28
but I hope you'll believe me when I say that.
83
196110
3669
03:31
Next, I'm going to replace this 220
84
199779
1876
03:33
by math.random2f.
85
201655
2806
03:36
I'm going to generate a random number
86
204461
1278
03:37
between 30 and 1,000 and send that
87
205739
3140
03:40
to the frequency of me.
88
208879
2086
03:42
And I'm going to do this every half a second.
89
210965
2100
03:45
(Tones)
90
213065
2942
03:48
Let's do this every 200 milliseconds.
91
216007
2661
03:50
(Tones)
92
218668
4622
03:55
One hundred.
93
223290
1455
03:56
(Tones)
94
224745
1612
03:58
All right.
95
226357
1234
03:59
At this point, we've reached something
96
227591
1944
04:01
that I would like to think of as
97
229535
1070
04:02
the canonical computer music.
98
230605
4021
04:06
This is, to me, the sound that mainframes
99
234626
3817
04:10
are supposed to be making
100
238443
1122
04:11
when they're thinking really hard.
101
239565
3242
04:14
It's this sound, it's like,
102
242807
2093
04:16
the square root of five million.
103
244900
3571
04:22
So is this computer music?
104
250427
3784
04:26
Yeah, I guess by definition,
105
254211
1979
04:28
it's kind of computer music.
106
256190
1205
04:29
It's probably not the kind of music you would listen to
107
257395
3008
04:32
cruising down the highway,
108
260403
1488
04:33
but it's a foundation of computer-generated music,
109
261891
5016
04:38
and using ChucK,
110
266907
2203
04:41
we've actually been building instruments
111
269110
1693
04:42
in the Stanford Laptop Orchestra,
112
270803
1896
04:44
based right here at Stanford Center for
Computer Research in Music and Acoustics.
113
272699
4201
04:48
Now the Laptop Orchestra is an ensemble of laptops,
114
276900
2783
04:51
humans and special hemispherical speaker arrays.
115
279683
2629
04:54
Now the reason we have these
116
282312
1597
04:55
is so that for the instruments that we create
117
283909
2470
04:58
out of the laptop, we want the sound to come
118
286379
2224
05:00
out of somewhere near the instrument
119
288603
2520
05:03
and the performer,
120
291123
1368
05:04
kind of much like a traditional, acoustic instrument.
121
292491
2702
05:07
Like, if I were to play a violin here,
122
295193
1886
05:09
the sound would naturally not come out of
123
297079
2111
05:11
the P.A. system, but from the artifact itself.
124
299190
2774
05:13
So these speakers are meant to emulate that.
125
301964
3207
05:17
In fact, I'm going to show you
126
305171
1329
05:18
how we actually built them.
127
306500
2743
05:21
The first step is to go to IKEA
128
309243
2064
05:23
and buy a salad bowl.
129
311307
1380
05:24
This is an 11-inch Blanda Matt.
130
312687
3230
05:27
That's the actual name,
131
315917
1498
05:29
and I actually use one of these
132
317415
1422
05:30
to make salad at home as well, I kid you not.
133
318837
2228
05:33
And the first step is you turn it upside down,
134
321065
3171
05:36
and then you drill holes in them,
135
324236
2475
05:38
six holes per hemi,
136
326711
2509
05:41
and then make a base plate,
137
329220
1714
05:42
put car speaker drivers in them
138
330934
2680
05:45
along with amplifiers in the enclosure,
139
333614
2591
05:48
and you put that all together and you have
140
336205
1354
05:49
these hemispherical speaker arrays.
141
337559
1774
05:51
Add people, add laptops,
142
339333
1563
05:52
you have a laptop orchestra.
143
340896
2688
05:55
And what might a laptop orchestra sound like?
144
343584
3530
05:59
Well, let me give you a demonstration
145
347114
1919
06:01
of about 200 instruments we've created so far
146
349033
3235
06:04
for the Laptop Orchestra.
147
352268
3243
06:07
And what I'm going to do is
actually come over to this thing.
148
355511
2427
06:09
This thing I have in front of me
149
357938
2205
06:12
actually used to be a commodity gaming controller
150
360143
3212
06:15
called a Gametrak.
151
363355
1790
06:17
This thing actually has a glove
you can put on your hands.
152
365145
1876
06:19
It's tethered to the base,
153
367021
1560
06:20
and this will track the position of your hands
154
368581
2529
06:23
in real time.
155
371110
1053
06:24
It was originally designed as a golfing controller
156
372163
3374
06:27
to detect the motion of your swing.
157
375537
1916
06:29
That turned out to be a rather large
158
377453
2531
06:31
commercial non-success,
159
379984
1704
06:33
at which point they slashed prices to 10 dollars,
160
381688
3754
06:37
at which point computer music researchers
161
385442
2008
06:39
said, "This is awesome!
162
387450
2058
06:41
We can prototype instruments out of this."
163
389508
2749
06:44
So let me show you one instrument we've created,
164
392257
2944
06:47
one of many, and this instrument
165
395201
1912
06:49
is called "Twilight,"
166
397113
1569
06:50
and it's meant to go with this metaphor
167
398682
2686
06:53
of pulling a sound out of the ground.
168
401368
3033
06:56
So let me see if this will work.
169
404401
3351
06:59
(Music)
170
407752
6436
07:08
And put it back.
171
416968
1823
07:10
And then if you go to the left,
172
418791
4095
07:14
right,
173
422886
2495
07:21
it sounds like an elephant in pain.
174
429427
3804
07:25
This is a slightly metallic sound.
175
433231
3028
07:28
Turn it just a bit.
176
436259
3354
07:31
(Music)
177
439613
2956
07:37
It's like a hovering car.
178
445211
3574
07:44
Okay.
179
452406
1393
07:45
This third one is a ratchet-like interaction, so
180
453799
4166
07:51
let me turn it up.
181
459360
2551
07:56
(Music)
182
464915
4795
08:02
So it's a slightly different interaction.
183
470068
1880
08:03
The fourth one is a drone.
184
471948
2954
08:07
(Music)
185
475583
5177
08:20
And finally, let's see,
186
488613
2706
08:23
this is a totally different interaction,
187
491319
1811
08:25
and I think you have to imagine that there's
188
493130
1810
08:26
this giant invisible drum sitting right here on stage,
189
494940
2932
08:29
and I'm going to bang it.
190
497872
2443
08:34
(Drum)
191
502255
2647
08:36
(Laughter)
192
504902
2787
08:40
So there we go, so that's one of many instruments
193
508241
2444
08:42
in the Laptop Orchestra.
194
510685
1770
08:44
(Applause)
195
512455
3554
08:48
Thank you.
196
516009
2281
08:50
And when you put that together,
197
518290
2106
08:52
you get something that sounds like this.
198
520396
4068
08:56
(Music)
199
524464
6659
09:45
Okay, and so, I think from the experience
200
573470
2350
09:47
of building a lot of instruments
for the Laptop Orchestra,
201
575820
2523
09:50
and I think from the curiosity of wondering,
202
578343
2504
09:52
what if we took these
203
580847
1503
09:54
hopefully expressive instruments
204
582350
1592
09:55
and we brought it to a lot of people,
205
583942
2633
09:58
plus then a healthy bout of insanity —
206
586575
2407
10:00
put those three things together —
207
588982
1489
10:02
led to me actually co-founding a startup company
208
590471
3516
10:05
in 2008 called Smule.
209
593987
2459
10:08
Now Smule's mission is to create
210
596446
1920
10:10
expressive, mobile music things,
211
598366
3857
10:14
and one of the first musical instruments
212
602223
4762
10:18
we created is called Ocarina.
213
606985
1860
10:20
And I'm going to just demo this for you real quick.
214
608845
2765
10:27
So Ocarina —
215
615234
2416
10:29
(Music) —
216
617650
3598
10:33
is based on this ancient flute-like instrument
217
621248
3123
10:36
called the ocarina,
218
624371
1409
10:37
and this one is the four-hole
English pendant configuration,
219
625780
3383
10:41
and you're literally blowing into the microphone
220
629163
3403
10:44
to make the sound.
221
632566
2926
10:47
And there's actually a little ChucK script
222
635492
1633
10:49
running in here that's detecting
223
637125
1168
10:50
the strength of your blowing
224
638293
1482
10:51
and also synthesizing the sound.
225
639775
2118
10:53
(Music)
226
641893
3585
10:57
And vibrato is mapped to the accelerometer,
227
645478
3330
11:00
so you can get —
228
648808
1653
11:02
(Music)
229
650461
3329
11:05
All right. So let me play a little ditty for you,
230
653790
3710
11:11
a little Bach.
231
659533
1816
11:13
And here, you'll hear a little
accompaniment with the melody.
232
661349
2592
11:15
The accompaniment actually follows the melody,
233
663941
2568
11:18
not the other way around.
234
666509
3781
11:22
(Music)
235
670290
5335
11:35
And this was designed
236
683132
1657
11:36
to let you take your time
237
684789
1276
11:38
and figure out where your expressive space is,
238
686065
3205
11:41
and you can just hang out here
239
689270
1807
11:43
for a while, for a really
dramatic effect, if you want,
240
691077
3062
11:46
and whenever you're ready —
241
694139
3066
11:49
(Music)
242
697205
4652
12:04
And on these longer notes,
243
712981
1108
12:06
I'm going to use more vibrato
244
714089
2101
12:08
towards the end of the notes
245
716190
892
12:09
to give it a little bit more of an expressive quality.
246
717082
3052
12:12
(Music)
247
720134
3616
12:19
Huh, that's a nice chord to end this excerpt on.
248
727473
3687
12:23
(Applause)
249
731160
3421
12:26
Thank you.
250
734581
3260
12:31
So I think a good question to ask about Ocarina is,
251
739750
3996
12:35
is this a toy or it an instrument? Maybe it's both,
252
743746
4747
12:40
but for me, I think the more important question is,
253
748493
2009
12:42
is it expressive?
254
750502
1541
12:44
And at the same time, I think
255
752043
2074
12:46
creating these types of instruments
256
754117
1304
12:47
asks a question about the role of technology,
257
755421
3362
12:50
and its place for how we make music.
258
758783
1694
12:52
Apparently, for example,
259
760477
1737
12:54
not that long ago, like only a hundred years ago —
260
762214
1906
12:56
that's not that long in the course of human history —
261
764120
1520
12:57
families back then
262
765640
1981
12:59
used to make music together
263
767621
1888
13:01
as a common form of entertainment.
264
769509
3048
13:04
I don't think that's really happening
265
772557
1245
13:05
that much anymore.
266
773802
1535
13:07
You know, this is before radio, before recording.
267
775337
1670
13:09
In the last hundred years, with all this technology,
268
777007
2207
13:11
we now have more access to music
269
779214
2174
13:13
as listeners and consumers,
270
781388
1633
13:15
but somehow, I think we're making less music
271
783021
3063
13:18
than ever before.
272
786084
1686
13:19
I'm not sure why that would be.
273
787770
1631
13:21
Maybe it's because it's too easy just to hit play.
274
789401
2649
13:24
And while listening to music is wonderful,
275
792050
2459
13:26
there's a special joy to making music
276
794509
3409
13:29
that's all its own.
277
797918
1655
13:31
And I think that's one part
278
799573
1263
13:32
of the goal of why I do what I do
279
800836
2090
13:34
is kind of to take us back to the past a little bit. Right?
280
802926
4756
13:39
Now, if that's one goal, the other goal
281
807682
1780
13:41
is to look to the future and think about
282
809462
1430
13:42
what kind of new musical things can we make
283
810892
2337
13:45
that we don't perhaps yet have names for
284
813229
2593
13:47
that's enabled by technology, but ultimately
285
815822
2863
13:50
might change the way that humans make music.
286
818685
2441
13:53
And I'll just give you one example here,
287
821126
2372
13:55
and this is Ocarina's other feature.
288
823498
6225
14:01
This is a globe,
289
829723
2187
14:03
and here you're actually listening
290
831910
2773
14:06
to other users of Ocarina
291
834683
2052
14:08
blow into their iPhones to play something.
292
836735
3980
14:12
This is "G.I.R." from Texas,
293
840715
4853
14:17
"R.I.K." I don't know why it's these
three-letter names today, Los Angeles.
294
845568
5933
14:23
They're all playing pretty,
295
851501
5018
14:28
somewhat minimal music here.
296
856519
3360
14:31
(Music)
297
859879
5448
14:37
And the idea with this is that, well,
298
865327
2606
14:39
technology should not be foregrounded here,
299
867933
3917
14:43
and — (Laughter) —
300
871850
2083
14:45
we've actually opened this up.
301
873933
2713
14:48
The first thought is that, hey, you know
302
876646
1507
14:50
there's somebody somewhere out there
303
878153
3190
14:53
playing some music,
304
881343
1270
14:54
and this is a small but I think important
305
882613
1780
14:56
human connection to make
306
884393
1220
14:57
that perhaps the technology affords.
307
885613
2998
15:00
As a final example,
308
888611
2824
15:03
and perhaps my favorite example,
309
891435
1355
15:04
is that in the wake of the 2011 earthquake
310
892790
3151
15:07
and tsunami disaster in Japan,
311
895941
2486
15:10
a woman reached out in one of our singing apps
312
898427
2843
15:13
to try to get people to join in to sing with her
313
901270
2887
15:16
on a version of "Lean on Me."
314
904157
1605
15:17
Now, in these apps, there's this thing that allows
315
905762
3048
15:20
any user to add their voice
316
908810
1701
15:22
to an existing performance by any other user
317
910511
2798
15:25
or group of users,
318
913309
1054
15:26
so in some sense, she's created this kind of
319
914363
2025
15:28
global ad hoc corral of strangers,
320
916388
3384
15:31
and within weeks, thousands of people
321
919772
2208
15:33
joined in on this,
322
921980
1632
15:35
and you can kind of see people
coming from all around the world
323
923612
2379
15:37
and all these lines converging on the origin
324
925991
2281
15:40
where the first rendition of the song was sung,
325
928272
2348
15:42
and that's in Tokyo.
326
930620
1634
15:44
And this is what it sounds like
when there's 1,000 people.
327
932254
3432
15:47
This is 1,000 voices.
328
935686
1977
15:49
(Recording) ♪ Sometimes in our lives ♪
329
937663
4277
15:53
♪ We all have pain, we all have sorrow ♪
330
941940
7320
16:01
♪ But if we are wise ♪
331
949260
3840
16:05
♪ We know that there's always tomorrow ♪
332
953100
5890
16:10
♪ Lean on me ♪
333
958990
2507
16:13
♪ When you're not strong ♪
334
961497
2813
16:16
♪ And I'll be your friend ♪
335
964310
2640
16:18
♪ I'll help you carry on ♪
336
966950
4285
16:23
♪ For it won't be long ♪
337
971235
4013
16:27
♪ Till I'm gonna need ♪
338
975248
2728
16:29
♪ Somebody to lean on ♪
339
977976
3396
16:33
♪ Just lean on — ♪
340
981372
2354
16:35
Is this computer music?
341
983726
1570
16:37
(Applause)
342
985296
3588
16:42
Was that computer music?
343
990728
1968
16:44
Yeah, I guess so; it's something that you really
344
992696
2047
16:46
couldn't have done without computers.
345
994743
2285
16:49
But at the same time, it's also just human,
346
997028
4236
16:53
and I think what I've essentially answered so far
347
1001264
3089
16:56
is maybe why I do the stuff that I do,
348
1004353
3391
16:59
and let's just finally return to the first question:
349
1007744
2392
17:02
What is computer music?
350
1010136
2112
17:04
And I think that the catch here is that,
351
1012248
2304
17:06
at least to me, computer music
352
1014552
1256
17:07
isn't really about computers.
353
1015808
1848
17:09
It is about people.
354
1017656
1526
17:11
It's about how we can use technology
355
1019182
1634
17:12
to change the way we think
356
1020816
2046
17:14
and do and make music,
357
1022862
1444
17:16
and maybe even add to how we can
358
1024306
3686
17:19
connect with each other through music.
359
1027992
2510
17:22
And with that, I want to say,
360
1030502
2153
17:24
this is computer music, and thank you for listening.
361
1032655
3097
17:27
(Applause)
362
1035752
4000

▲Back to top

ABOUT THE SPEAKER
Ge Wang - Music technologist
Both a musician and a computer scientist, Ge Wang turns ordinary MacBooks and iPhones into complex instruments.

Why you should listen

Ge Wang explores the intersection of technology and music, researching how programming languages and interactive software systems can push computer music from coded beeps and tones to something that musicians can actively play in the moment. An Associate Professor at Stanford University, Wang is the founding director of both the Stanford Laptop Orchestra (SLOrk) and the Stanford Mobile Phone Orchestra (MoPho). He was named a Guggenheim Foundation Fellow in 2016 and is the author of Artful Design: Technology in Search of the Sublime -- a 488-page, full-color comic book about design as the art of humanizing technology (Stanford University Press, 2018).

Wang is also the man behind ChucK, a programming language built specifically for sound. He also co-founded Smule, a startup dedicated to musical apps that let people around the world make beautiful music … and connect with each other in the process. Wang is the designer of Ocarina, which turns your iPhone into an ancient flute.

More profile about the speaker
Ge Wang | Speaker | TED.com