 Have you seen those banana pianos around and are wondering how to make a makey makey piano? Well, suit up and stick around because in this makey makey basics tutorial, I'll show you how to set up a makey makey piano and hang around until the end to learn how to play a classic from Beethoven, hint. It's not the one you're hearing now. All this coming your way. Hello world, Serving Scratcher here, a teacher-server programmer bringing you the goodness of learning to code through video tutorials. If you're around these parts, then consider hitting that subscribe button to stay in the loop. I've also got a link to the Serving Scratcher mailing list that you can find in the description below. Here's what you're going to need for this tutorial. You're going to need a makey makey, some alligator clips from your pack. Also, we're going to use the jumpers. You're going to need some bananas, a Sharpie, some tinfoil, some adhesive copper tape, and lastly, some paper clips. I've got all these materials set up in a kit on kit.com. Hit the description for a link. Banana is not included. But hey, let's compose this masterpiece. First thing we need to do is create our keyboard. Let's grab a piece of paper, and the way I did it is I just folded my piece of paper in half, like this, and then I folded those halves into quarters. You should end up with a piece of paper that split into quarters. You can go ahead and split these quarters into eighths, but I just went ahead and eyeballed it with the marker. Next up, grab your marker, then go over the fold with your marker. Just like that. You can do the same thing, but halfway in each quarter this time. So you'll end up with eight keys. At this point, you can label them if you want, and then you can go ahead and put in the sharps and flat keys. And you'll end up with something like this. Remember that our flat keys go between the C and the D key, the D and the E key, the F and the G key, the G and the A key, and the A and the B key. Now that we have our physical keyboard, let's jump over to Scratch. Here in Scratch, I've just replicated our physical keyboard with a digital keyboard here on the stage. And I've got in all the keys and their labels and also put in some bananas because that's where we're going to insert the bananas on the actual keyboard. Down here in the sprite pane, I've just got some overlays that we're going to highlight when we press a key. And I've also got the same thing for the bananas here. And just on all these overlays, when we click the green flag, let's just set the ghosting effect to 100, which means they're transparent. What I'm going to do now is demonstrate a variety of conductive materials that will allow us to sync up our physical keys with these keys in Scratch. Let's jump over to the physical keyboard. I'd like you to get two alligator cables. We're going to connect the first one to the left arrow. And the second one will connect to the ground. So I've got my yellow alligator clip connected to the left arrow key and the right alligator clip connected to the ground. Now make sure that your makey makey is plugged into the laptop. Okay, now we're going to use a paper clip and fasten that to the C key and we will attach it to the yellow alligator clip. So our yellow alligator clip is now connected to the paper clip, which is connected to the left arrow key of the makey makey. To complete our circuit for all of our keys, we're going to attach ourselves to this ground red cable. Now suggest that you get this and you connect it to a watch, or you can create a foil wristband, which will help as well. So now that I'm all connected up, let's go ahead over to Scratch and hook this up. I'm here in the C sprite, but if you don't have all these, you could just as easily just work on the backdrop if you've got no sprites here to work with. Head on over to the events category and drag out a half block when a key is pressed and the key that we're interested in is the left arrow key. Now we have to head over to the extensions and you want to find the music extension and then we want to go down and grab the play note stack block. We're going to be playing the middle C, so it's already selected for us. Just bear in mind that we want the piano selected. If you see another instrument, make sure you click piano and click that stack block. Okay, so now I've got myself connected. Let's go ahead and test this out. Make sure that you are connected to the makey makey and go ahead and touch the paper clip. We also want to show our highlight when a key is pressed. In order to do that, let's duplicate this ghosting effect block and what we want to do is set that to 20 now. We'll grab a control block, a weight block here and let's wait two seconds. And then after that, we want to grab that ghosting block and set it back to 100. So you'll see here that if I press this, we should get a highlight showing for two seconds. Boom. So two seconds might be a little bit too long, so you might want to go one second. Have a play around with that. Now that we have this code block, we're essentially going to be duplicating this for all the other keys. But before we do that, we need to demonstrate some other conductive materials and get all of our keys set up. Let's jump back over to the paper keyboard. Okay, so you see that I've just affixed a bit of copper tape. Here's some copper tape here. I've just stuck that to the end of the D key. Now I'm going to get some alligator clips, probably sync it up to the up key and we'll hook up the D key. Now that we have the copper tape on our D key connected to the up arrow of the makey makey, let's synchronize the code blocks. We're going to click and drag this whole code block in the direction of our sprite pane here. And then I'm going to put it over the D one. And you can see when I put it over, it wriggles a little bit. I'm going to drop it directly on top of it. If I go into the D sprite now, you'll see that code block has just nicely placed itself in there. But of course we want our D key to be associated with the up arrow. So now you need to change the hat block to when the up arrow is pressed. And we no longer want to play that middle C. We want to play the note D. You can tell it's D because we've got the D here in the indicator. Now let's jump back over to the paper keyboard. As you can see here, I've got everything synced up. I'm reconnected. I'm going to go ahead and press the D key now. There we go. Right, for our E key, you'll see here, I've just got a piece of tin foil and I've lined that all the way from the top. You might be getting a bit sick of having your alligator clips down here by the bottom. So you can also just relay that from the top. I've connected this alligator clip to the right arrow key. Let's go hook this up and scratch. The same deal. Let's grab that whole co-block there and drag it over the E sprite until it gives a little wriggle. Jump inside the E sprite. You'll see here, we want to grab that co-block and it's already in there. Click the drop down menu and associate it with the right arrow. We need to change the note to the E key. We're done. But what about the bananas I hear you say? Well, here are our bananas. Let's hook up our bananas and we'll use them as the sharps key. And I want to demonstrate using the jumpers behind the Makey Makey for this one. I've just zoomed in here on the Makey Makey and I've flipped it over and we're interested now in these keys here in the back. So we've still got some keyboard keys. We're at WASDFG. We're going to need these to play the sharps of our keyboard. And what I've got here is I've got some jumper cables that we're going to be using to plug into them. My jumper cables might be looking a little bit different to yours, but that's okay. They'll still work. So what you're going to do is insert these cables into these slots just here. So you see here that I connected all those jumpers to those slots WASDF and now we can take the other ends and connect these to our bananas. Okay, so you see here that I've got the banana placed on the B-flat key, which is just our sharp key here, the note between A and B. And we're going to get our jumper cable and stick that inside the banana or just attach it to the banana. Okay, so I'm just holding the alligator clip this time and you'll hear as soon as I touch the banana we should get our B-flat note playing. There we go. Okay, so we've got four keys hooked up. I'm going to go ahead and attach all the other keys now and I'll associate all those keys with notes in scratch. All right, here's our keyboard all hooked up with all the alligator clips and the paper clips. It's looking pretty funky. So what I'd like to do for you now is play a very famous song. All right, now the big moment. This is the concert. Let's demo some Beethoven. Voila. All right, I've shown you the basics of a piano. You can see here this is not so usable. So I'd like you to think about how could we make this cleaner without all these cables everywhere? Maybe you just use foil. Maybe you just use copper tape. That's up for you to consider. This is the building blocks. I hope you enjoyed it. So I've just scratched your question and I want to know how did you go about creating your piano? You may have used some different materials. You may have constructed it differently. Let me know in the comments section down below. Thanks for checking out this making-making tutorial. Be sure to smash that like button if you enjoyed it and check out some of my other content on your screen right now. If you want to support this channel and you're an educator, you can check out some resources that I've got in the description down below. Or head over to my Patreon page and join a membership tier. But until then, I'm off to go find a wave. I'll catch you in the next one.