[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:09.36,0:00:10.72,Default,,0000,0000,0000,,I'm Aloe Blacc. Dialogue: 0,0:00:10.72,0:00:14.08,Default,,0000,0000,0000,,I'm a singer/songwriter and entertainer. Dialogue: 0,0:00:14.08,0:00:16.84,Default,,0000,0000,0000,,I think computer science is really important to learn Dialogue: 0,0:00:16.84,0:00:19.24,Default,,0000,0000,0000,,because computer science is the future. Dialogue: 0,0:00:19.24,0:00:25.68,Default,,0000,0000,0000,,And I think it's important for people to be in control of the technology Dialogue: 0,0:00:25.68,0:00:29.04,Default,,0000,0000,0000,,that is literally controlling their lives. Dialogue: 0,0:00:29.52,0:00:34.56,Default,,0000,0000,0000,,To make different dance moves happen at just the right time with the music, Dialogue: 0,0:00:34.56,0:00:38.08,Default,,0000,0000,0000,,you can use something called events. Dialogue: 0,0:00:38.08,0:00:42.16,Default,,0000,0000,0000,,An event tells your program to listen for something to happen, Dialogue: 0,0:00:42.16,0:00:44.32,Default,,0000,0000,0000,,and then react right away. Dialogue: 0,0:00:44.32,0:00:48.80,Default,,0000,0000,0000,,Some examples of events are listening for a mouse click, Dialogue: 0,0:00:48.80,0:00:54.36,Default,,0000,0000,0000,,an arrow button, or a tap on the screen. Dialogue: 0,0:00:54.36,0:00:58.88,Default,,0000,0000,0000,,The event we're going to use now will listen for a change in the song. Dialogue: 0,0:00:58.88,0:01:03.64,Default,,0000,0000,0000,,The change will trigger your dancer to do a new dance. Dialogue: 0,0:01:03.68,0:01:10.36,Default,,0000,0000,0000,,Professional dancers practice their choreography by counting the beats of the song. Dialogue: 0,0:01:10.36,0:01:14.96,Default,,0000,0000,0000,,In music, a measure refers to a certain number of beats. Dialogue: 0,0:01:14.96,0:01:20.44,Default,,0000,0000,0000,,In most popular songs a measure is 4 beats long. Dialogue: 0,0:01:20.44,0:01:24.87,Default,,0000,0000,0000,,To get your dancers to let loose, you'll need a green event block. Dialogue: 0,0:01:24.88,0:01:30.20,Default,,0000,0000,0000,,This event block says after four measures. Dialogue: 0,0:01:30.20,0:01:37.24,Default,,0000,0000,0000,,If you drag out a purple 'do forever' block, you can pick a dance for your dancer to do. Dialogue: 0,0:01:37.24,0:01:40.84,Default,,0000,0000,0000,,Because it's under the after four measures event block, Dialogue: 0,0:01:40.84,0:01:46.72,Default,,0000,0000,0000,,your dancer will wait for four measures of the song before starting their dance. Dialogue: 0,0:01:46.72,0:01:51.10,Default,,0000,0000,0000,,Keep an eye on the measure counter at the top of the display area. Dialogue: 0,0:01:51.10,0:01:55.52,Default,,0000,0000,0000,,Look and listen for the event that will\Ntrigger the dance code. Dialogue: 0,0:01:56.94,0:02:00.32,Default,,0000,0000,0000,,And right on cue our dancer starts going!