WEBVTT

00:00:00.000 --> 00:00:02.410 align:middle line:90%
[SQUEAKING]

00:00:02.410 --> 00:00:03.856 align:middle line:90%
[RUSTLING]

00:00:03.856 --> 00:00:05.784 align:middle line:90%
[CLICKING]

00:00:05.784 --> 00:00:09.927 align:middle line:90%


00:00:09.927 --> 00:00:12.260 align:middle line:84%
MICHAEL SCOTT ASATO CUTHBERT:
Welcome to the first video

00:00:12.260 --> 00:00:16.440 align:middle line:90%
of the third topic for 21M.383.

00:00:16.440 --> 00:00:23.090 align:middle line:84%
And this is on streams
as containers in music21.

00:00:23.090 --> 00:00:27.480 align:middle line:84%
Nearly all computational
music processing systems,

00:00:27.480 --> 00:00:29.190 align:middle line:84%
especially those that
work with scores,

00:00:29.190 --> 00:00:34.082 align:middle line:84%
have a concept of a
container and something

00:00:34.082 --> 00:00:35.040 align:middle line:90%
that's contained in it.

00:00:35.040 --> 00:00:37.040 align:middle line:90%
Sometimes they're called leaves.

00:00:37.040 --> 00:00:41.460 align:middle line:84%
Sometimes, in music21, they're
called elements or, boringly,

00:00:41.460 --> 00:00:43.200 align:middle line:90%
music21 objects.

00:00:43.200 --> 00:00:45.510 align:middle line:84%
And there's usually the
concept of a container,

00:00:45.510 --> 00:00:47.180 align:middle line:84%
whether called it
or not, the concept

00:00:47.180 --> 00:00:48.900 align:middle line:84%
of a leaf, whether
called it or not,

00:00:48.900 --> 00:00:52.220 align:middle line:84%
and a third thing we'll talk
about later called spanners.

00:00:52.220 --> 00:00:56.450 align:middle line:84%
This is the representation
from a python music composition

00:00:56.450 --> 00:00:59.970 align:middle line:84%
toolkit that works with
musical scores called abjad,

00:00:59.970 --> 00:01:03.230 align:middle line:84%
which uses leaves, containers,
spanners, and something

00:01:03.230 --> 00:01:06.320 align:middle line:84%
they call indicators, which
are attributes-- in music21

00:01:06.320 --> 00:01:09.830 align:middle line:90%
would be attributes on elements.

00:01:09.830 --> 00:01:14.270 align:middle line:84%
So now that we've seen how
containers and elements,

00:01:14.270 --> 00:01:16.790 align:middle line:84%
or leaves, work in
general, let's look

00:01:16.790 --> 00:01:20.420 align:middle line:84%
at how containers work in
music21, where they're called

00:01:20.420 --> 00:01:21.970 align:middle line:90%
streams.

00:01:21.970 --> 00:01:25.000 align:middle line:90%