Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Make it Melodic with a Chord

Transcript

(piano playing)

Real music is played using chords, not just single notes.

A chord is a harmonized series of notes, played at the same time.

Next, you get to add a chord to your project to make it sound more melodic.

(piano playing)

select the LOH Sprite and look at the code that plays the musical notes.

Right now the Sprite plays a single note, when it touches a particular color.

To play a chord, the sprite would need to play at least two notes simultaneously, when it touches a color.

To do this, you would need another set of blocks like this one that starts with the same event, or in this case, the one flag clicked block.

You can save a lot of time by duplicating your block stack and changing the values of the notes that are played, rather than recreating the entire block stack again.

Right click on the top of your block stack and select duplicate.

Place the copy of your blocks next to the original stack.

Now, all you have to do is change the notes played to make a chord.

You would choose two different notes to play for each color in your project.

Tinker with the values of the notes played in your block stacks, to find sounds you actually like.

Test your code to hear how your chords change.

(piano chords playing)

Cool.

Now it's your turn.

Duplicate your block stack for the yellow x sprite.

Change the values of the notes in the new block stack to make a chord.

Choose an Add-On
Change Instrument and Tempo
Change instruments and tempo in your musical art piece when the yellow X sprite touches different colors.
Make it Melodic with a Chord
Make your project play chords, not just individual notes.
Easter Egg Surprise
Add a surprise color to your art piece that plays an unexpected sound when touched.
Sprite Trail
Add a graphic effect that makes the yellow X sprite leave a color-changing trail across the screen.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!