# Can I Create Guitar Hero With Just My Guitar

## Метаданные

- **Канал:** Code Bullet
- **YouTube:** https://www.youtube.com/watch?v=wesICmc48UE

## Содержание

### [0:00](https://www.youtube.com/watch?v=wesICmc48UE) Segment 1 (00:00 - 05:00)

I really want to make Guitar Hero, but I don't want to make it with a keyboard and mouse. That's boring. That's been done. At least I assume that's how they did it. Using any other input method would be insane. Okay, so here's the plan. First, make a Python program that uses the microphone to tell what note you're playing. Then, we need to map each note to a different keyboard button press or like mouse movement or like clicking or whatever. If you want to know what all the instructions are, ready? Don't blink. Boom. There you go. Guess what? Go. That's actually too many instructions to fit on the guitar. It looks like there's tons of room on this bad boy, but we actually can't use any of these because guitars are stupid and my note detection program is also stupid. Want to know in detail why we can't use those. Ready? Don't blink. Boom. There you go. All right. So, the workound is we have four modes the guitar can be in. We've got letters, numbers, random [ __ ] that's not letters or numbers, and mouse stuff. And we just need to dedicate four notes to changing the modes. And whammy, that's all we need, baby. Is this the best way of setting it up? It's highly unlikely. In hindsight, I should have put control and Z close to each other, but it technically works. So, let's get into it. Also, my face is in this one. Sorry. Okay, I have my guitar here. I bought it for $50. One of the chords is the same frequency as the guitar, so it rattles the little plastic bits. That's how you know it's quality, baby. All right, I see new project. Let's hit it. He's crazy. Medium, right? All right. Small down. Okay. and click. Yes. Oh, my fingers are already hurting. Is that going to be a problem? Ow. Guitar hurts. Okay, we're in. This is my hell for the next week or so, or however long it's going to be. That console window is in a really annoying spot. I think moving it is going to be a pain. So, I think that's going to live there. What are we doing? We need a plane that's going like off into the distance. I can do this. Come on. Come on, you [ __ ] Click. Oh, okay. Yes. No. No. Yes. Woo. Oh, I was way too excited about that. That's embarrassing. We have a plate on the screen. Ow. Ow. Why does the guitar hurt? All right, let's make this boy long. Okay, we're in. Yes. Good to numbers. We have made a long plane. Excellent. Morale is at an all-time low already. I love long plane and he's pretty in his own way, but it's time to make it actually look like Guitar Hero. So, we're going to need a texture for that [ __ ] Is that or not? Click. These are all useless. These are all really bad. This is not what I wanted at all. So, yeah, searching for a texture really didn't go to plan. I wanted just a simple texture that I could apply to the long plane and call it a day, but nope. That would be too easy, I guess. I seriously thought about drawing a texture myself in like paint or something. And while admittedly that would be pretty funny, I want this game to actually look good, not like something Poly Mars would make. I'm joking. I'm joking. But then I came across this. Now, that image is pretty good. Let me grab that. H. And if you are thinking to yourself, that one looks perfect. Just use that one. Let's play that out. We got a plane here. And let's just drag it on. Ah, would you look at that? You're stupid. So, if we want to use this image, we're going to need to be doing some image editing. That's right. It's Photoshop time, baby. Down. Left. No, that'd be too easy. Down a little bit. Now, click up. Down. Yes. [ __ ] Yes. How do I do this? I need to warp it. So, it's like uh Okay. [ __ ] That was intense. How do I scroll down? Wait, I have a scroll down. I'm Did that work? No. I know what to do. I know what

### [5:00](https://www.youtube.com/watch?v=wesICmc48UE&t=300s) Segment 2 (05:00 - 10:00)

What happened? What? No, I hit backspace instead of T. I think we got to control Z. Yes, we're back. Okay. Yes, it's beautiful. Oh, what happened? Tab. Okay. [ __ ] Wait. I'm [ __ ] it. Okay. Let's export it quickly. What was that? V. What does V do? Oh, now I'm scared. Okay. I did it. Yeah. Okay. That's progress. Okay. Let's get scripting. The rules for writing scripts are simple. Well, it's kind of just one rule. I have to write all the script myself. That means no chat GPT, no copy and pasting [ __ ] I find online, and no autocomplete. Every single character has to be written by myself and with a guitar. With that said, let's get coding. Yes. Okay, we're in. Okay, the first script. How exciting. Ow, my fingers hurt so much. Gamer subs break. Nice. What we're going to need from this script is we want it to move the plane towards the camera, which is along the Z axis, I think. Uh, that's why I called it move zed. See, I'm way ahead of you. Nope. [ __ ] Okay, I think it's done. Oh, [ __ ] All right, stop typing stuff. Stop. Stop. Stop. What the [ __ ] is that? I'm so mad. What happened? That's so many letters. We got mouse for this. Good riddens, [ __ ] You don't [ __ ] with me. The name transform does not exist in current context. What? T. It's TR. Oh, I typed transform. [ __ ] And then we just go. Yes. No errors. It was two lines of code. Let's go. Yes. Oh, it's going the wrong way. I do want to change the position of the camera. So, I think we want to lift it up and pitch it down. Oh my god. Yes. It might need to move quicker, but that looks so good. Look at that. That's Guitar Hero. Honestly, I'm making better progress than I thought I would. Okay, I'm so happy. I'm weirdly happy. Gave us some break. Okay, we need to make a puck. Okay, so that's what a puck looks like. So, we just need to make some of those. Yeah, I can make that. I can make something like that. Okay, we made a puck thing. And now I can just add the same movement script I wrote earlier to the pucks. And come on, come on. Yes. We're making such good progress. Yes. Oh, it's beautiful play. Oh, beautiful.

### [10:00](https://www.youtube.com/watch?v=wesICmc48UE&t=600s) Segment 3 (10:00 - 15:00)

Beautiful. Can't really see, but they hurt. All right. Okay, unfortunately day two was not the most productive. My hands hurt. All right, shut up. You try doing this. So, first up, I just wanted to make the frets a little less shiny, like a nice matte finish. I don't know if you can even tell the difference, but it was bugging me. And to me, it looks a lot better. That's already so much better. All right, next up, I wanted to do a pretty big job. At the moment, we have these five parks, but after that, it's well, not the most engaging gameplay. So, we're going to need a way to spawn the parks, which means writing our biggest script yet. Okay, so this should create a puck every two seconds. Oh, yes. I'm thinking if I should move the spawners back, but I can do that later. Spoiler, he does not do Damn. What a game. What a salt. Is this Imagine Dragons? All right. What a grind. Oh, feeling it in the fingers again. Ew. My hands are like shaking. All right. Come on. Yes. Bam. Yes. How come [ __ ] works better when I'm coding with the guitar than normally? Okay, so we got the frets, we got the nubbins, we got the nubbins spawning. Now the final piece of the puzzle. We need these things, the little numb cuts. Yeah, I mean that kind of looks like [ __ ] That kind of doesn't look good at all. Um, I tried a bunch of [ __ ] to try to make it look better, but nothing really worked. Um, so I gave up. Do I like it? I don't know. That does look stupid. All right, day three, baby. We have the numb, but he's just chilling. He doesn't do [ __ ] So, today's mission is to get him to numb when we press a key and destroy the little numbing thing when it hits it. In the game, when the number numbs, it goes like up and like ah. So, we're going to have to model that. Okay, we're ready. Let's get back into it. So, that's it. When it's up and then down, then up. Okay, we now have to get it to jump up and down with key presses, which means it's new script time. Oh, what happened? What? What happened? I'm dying. We're almost done. Boom. Okay. Yes. Okay. You beauty. Hold on. Don't look at that. All right. Now, all we have to do is have the Nmers destroy the nubbins when they're up. And we're cooking, baby. We got it. Okay, I think this should work. Yes, that's Guitar Hero. Oh, that's so good. I didn't I honestly didn't expect that to work. I'm going to save and then I'm going to leave. Hello, we're back. It's a new day. I got new fingers. Let's [ __ ] do this. One thing I did grab, I grabbed my guitar here. Actual guitar because this is what we're gonna actually use to play the game. Oh jeez. Okay, this does sometimes happen with this thing. It does hold down space continuously sometimes. Oh, it's got like a Oh my god. Stop. Okay, we're okay.

### [15:00](https://www.youtube.com/watch?v=wesICmc48UE&t=900s) Segment 4 (15:00 - 20:00)

So, what I was Hello. Now my mouse isn't working. Ah. Oh, there's the off. Okay, now can I'm now I have my mouse back. It's never easy. I just wanted I'm not even doing anything weird at the moment. I'm just using the guitar like it's meant to be used. Oh, all the batteries fell out. [ __ ] me. Stop. Why? What is space in this [ __ ] thing? Oh, the batteries fell out again. So, this one What is I didn't touch anything. This should be V. Okay. This should be C. This should be X Z. And then this one's fun. What's after zed? It's [ __ ] shift. So this is shift, which means if you press this five times in a row, sticky keys joins the fun. That'll make for good musical content. I'm turning this [ __ ] off. When I need to use this, I'll deal with this. But this is off most of the time. Anyway, with that so succinctly explained, uh, today's mission at the moment, when we hit a key, it just disappears. And that's just like a bit boring, I suppose. Uh, so let's make it fun. I'm talking camera shake. I'm talking explosions. I'm talking uh Well, it I mean, it's just those two things, but I mean, give me a break. I'm doing this with a guitar. Okay, first up we're adding the camera shake, which to do that we are unfortunately going to need to do some more coding. Go down. Okay, victory. Was it worth it? We will see. Almost definitely not, but anything's possible. So, maybe get out the [ __ ] Guitar Hero guitar. Just Oh my god. Earlier. Whoa. It is a lot of feedback. Um, I think it's probably like way too much. It is. It is a night. I'm happy with that. I don't think it was worth it. That took me over an hour, but we got there. Let's add an explosion, then I'll be happy. My fingers are so sore. Why do people play this [ __ ] instrument? No. Missed it. You [ __ ] Let me I'm just trying to test it. It's quicker. No, that time it was slower. You're joking. Whenever I do it far away. Oh my god. All right, this should work now. All I need to do is just press play. That's it. all I'm asking. Go up. I'm losing my mind. Thank you. Oh my god, I almost destroyed this guitar. Oh, okay. Okay, we're okay. Deep breaths. We're okay. Just going up. That's all I ask. I didn't think it was too much of an ask. Just move my mouse up, please. Thank you. No, it went down. going to have to restruct where Oh, that's a pro. Okay, that is um everything's

### [20:00](https://www.youtube.com/watch?v=wesICmc48UE&t=1200s) Segment 5 (20:00 - 25:00)

okay. This needs to be an A, apparently. What are we at? We're at E. I don't know how well you can see this, but when I pull it down, it pulls it further away. So, I can Hold on. Let me uh I have an idea. Then we just tighten her up. Okay. Oh, that one's in tune already. Beautiful. Maybe better than ever. Where were we? I think I was about here. I was just trying to run the [ __ ] program. Now move up, please. I hear that core. It's working. It's learned its lesson. Play. There we go. Whoa. Yeah. Okay. Well, um, a bit of an interesting session. You know, it's like nothing ever happened. Let me tell you, he is lucky I still need him. Otherwise, let's say you're going to need some more clamps. Good as new, baby. Okay, so we have the frets, check. We have the nubbins, nombs, check. We have sexy special effects, also check. Now, we just need a song, baby. So, I found a song. At the moment, my code just spits out the nubbins every two seconds. So, we're going to have to modify that [ __ ] to spawn them in like time intervals that I can define. So, it's coding time. I tested it. It works. It's not the most exciting thing ever, but basically I can give the program a list of notes and when to spawn them, and it will do that. Very nice. All right, that'll do. I'm done for the day. [ __ ] I'm so tired. This shit's so draining. I don't know why. I love this song. What is this? Imagine dragon. Yes. Get out. Oh. Oh no. Ah, forgot the red bit in the middle. Oh, does that look okay enough? No. It looks like [ __ ] It looks like you forgot to change the color of the red bit. Bam. They're all beautiful. They're all There's no uh little puck things to hit, but that's okay. Yes. Okay. Song is in. And now all that's left to do is add the timings of the notes, which is going to be [ __ ] I'm so not looking forward to this. This is going to be the rest of my day, I think, just entering numbers. Heat. I don't want to.

### [25:00](https://www.youtube.com/watch?v=wesICmc48UE&t=1500s) Segment 6 (25:00 - 30:00)

My brain hurts. Why does my brain hurt? Last one, baby. Six. Point. Five. Two. Yes. I forgot how fast. Okay, so that was what we in the industry call all [ __ ] wacky. Basically, there's a wicked delay between when the note is supposed to hit and when it does. Not good. Not great. But luckily, I don't have to re-enter all the notes because if that was the case, then my heartbeat would have gone all [ __ ] wucky because I would have killed That's not That's a bad joke. All right, cut that. We can just add a delay to all the notes through the magic of coding. But fine-tuning the exact amount we need it to be delayed is going to be a [ __ ] Did I add way too much to that? Wait, am I dumb? Now this is a bunch of dragons. Now it is a bit early. What does early mean? Oh, it means we need to plus again. But I had it at plus. Okay, it's definitely doing something, which is good. That's good news. I think it should be like minus 0. 5. Oh, I'm so dumb. Early means they waited too long. So, it's subtract. Or is it add? It's only add. My brain doesn't work. 1. 9. You need to add. God, I'm [ __ ] stupid. Physically and spiritually in pain. I'm waking up. Wait. No. Now they're late. Hold on. Now they're late. So, it was 75. They're a tiny bit early still. Oh, I know we just worked this out, but what does tiny bit early mean? I'm losing it. Can I tell you something? A secret? I don't even like Guitar Hero video that you can do it. Why are you doing this? I'm in the thick of it. Everybody knows. Please, Jack Black, the god of rock and roll. Please, I need this. Oh. Holy [ __ ] Ow. Oh, that hurt. That hurt a lot. I don't know if you can see. I lost a string. Oh, man. This guitar is in the thick of it. Siri, enhance. Look that. That's one hell of a boo boo. God damn it. I have to rewrite my What was on the bottom string? Oh, backspaces on the bottom string. That feels important. I'm okay. You can't stop me that easy. The god of rock and roll struck me down. I can't change. Oh, this is actually a problem. The bottom string was very useful to me. That is like the best. That's what I used to like change into different modes. There's a couple more things I want to do. I can only use the mouse now. I can no longer type anything, which the plan was to go find a video to put in the background, but I think I'm just going to uh go crazy with fog. I think that's my plan. Oh no. [ __ ] Hold on. Can I go? I can't click on the main camera. The bottom string was like my fine tuning movement. If I move down, it's not direction light. I just want to click my camera. Why did you do this to me? I could click the directional light and drag it above the main camera, but I can't cuz click and hold was on the bottom string. Hold on. I got this. Yes. What a musical talent I am. Oh my god. I can't believe that worked. Yeah

### [30:00](https://www.youtube.com/watch?v=wesICmc48UE&t=1800s) Segment 7 (30:00 - 35:00)

that's so [ __ ] dumb. I'm close. Hold on. Okay. Okay, that's looking good. No, not again. We need rendering. That's got to be like one pixel off. What? What button am I pressing? Very nice. Go go go go go go. No. Are you not on? No. It's just not on. Oh, wait. Hello. Stop. Just wondering. is anything. There we have it, ladies and gentlemen. That's Guitar Hero. It's pretty much identical to the original. Absolutely perfect. Couldn't have done it better with a keyboard and mouse. We did it. We made it. They said we could never do it. There's the string. What a hero. What a really held in there towards the end. What a terrible idea for a video. Honestly, such a waste of my life. What's not a waste of your life? Today's sponsor, brewing. org. Brilliant is the best way to train your brain on all things math, science, and computer science. It's not like learning by just reading out of a textbook. They actually know how people learn. All of Brilliant's courses are filled with hands-on problem solving that lets you interact and just play around with the concepts you are learning. A method that's proven to be six times more effective than watching lecture videos. Wow, that's a lot. It's a perfect mix of engaging problems, competitive features, and daily encouragement that keeps you motivated and on track. There's even a brilliant app which means whenever you're bored, instead of doom scrolling or letting your existential thoughts run wild as you think about how meaningless everything is, you can instead use that moment to learn something. Whether you are diving into a new topic or doing a quick practice session, you can smash out some knowledge in just minutes. They have great courses on computer science and programming, whether it's just the basics like programming with Python or if it's more advanced stuff like how large language models like chatbt work, all of their courses are certified bangers. So, if you want to support this channel and try everything Brilliant has to offer for free for a full 30 days, visit brilliant. org/ /codebullet or scan the QR code on screen or you can click the link in the description. Choice is yours. Doing that will also get you 20% off an annual premium subscription. It would mean a lot if you guys went and checked them out. It allows me to do crazy stuff like this. All right. Thank you. Brilliant. Hello. Uh it's based on Battle Time, which basically gives me an opportunity to just yap for a couple of minutes or whatever. Uh yeah, that was a doozy, huh? Oh, [ __ ] that. Holy [ __ ] man. Like the actually doing the guitar thing, that was [ __ ] But editing it was equally as [ __ ] I think. Which is why it took so long for this video to come out. Uh, I started this at Christmas. Trying to make like over 10 hours of me just plucking on a guitar, trying to turn that into a video was it was challenging, not going to lie. It was not easy, but um, I think we went all right. But yeah, let me know what you thought of this sort of video concept. I've got other ones in this vein that are even more ridiculous, if that's possible. But yeah, let me know if you liked it. I mean, I don't think I'm going to do anything like this for a while. I need to like see my family. Anyway, congratulations to Luke Mumy. You did it. And to finish on, here's me crushing the final game. Heat.

### [35:00](https://www.youtube.com/watch?v=wesICmc48UE&t=2100s) Segment 8 (35:00 - 35:00)

There we have it. That'll do. That'll [ __ ] do. What a game.

---
*Источник: https://ekstraktznaniy.ru/video/37405*