Good job. It IS grossly inaccurate, but it's about as good as is possible to do with computer programming. It's not natural to play an instrument with a mouse, but you brought it close, so congratulations!
Do you think you could try to make a recording piano using lists? One that keeps track of how long a note is held and not held (rest). It would be like playing a piano that is recording without you having to set how long the rest or note is. Do you think you could do that?
that was really rude of him i saw that comment the second i went on this project and i told him he shouldnt say stuff like that unless he can do something better
That was a rude comment, None of your projects are horrible in my opinion. It really get me a bit mad when people go out of there way to just say a rude comment. Well i dont know how i missed this one its Great, maybe i should make a gallery for Virtual Instruments or something
Thanks, for the support, Lanie. I figure it's just a new user unfamiliar with the Scratch culture. I don't take it personally. I will give them the benefit of the doubt this time and flag them if it happens again.
Your comment, in addition to being very negative, really gives me no idea what you found objectionable. Please be more specific with your critisism. Thank you.
Nice! And here I thought all it played was music, not video games from the dawn of creation! Just joking...I don't play piano very well but I can pick stuff out, if I get enough tries.
Oldschooler2 - There are no arrays in Scratch the way there are in most other languages. So in this project I'm storing the data on the screen, you can see it as a bunch of little black dots in the lower left corner, after you play some notes. Then, when you ask it to play back the notes, I read the dots and convert them back into numbers and use those to play the note. You work with what you have...
I simply love the idea of broadcasting certain patterns to "store data". Perhaps you could create invisible "patterns" to store data. Would you like to join my "sensing and broadcasting" club?
I agree. Storing arrayed data on screen is almost like handling the mouse pointer as a "sprite" in the graphics memory in the olden days..., It was cool back then, and still is!
Thanks, Jens. Screen array, huh? That's a pretty good term, I like it. It's pretty much the only way to store array data that I've been able to come up with. Maybe someday they will implement variable arrays. I'm kind of torn on that...it's good to keep the language simple for the beginners. But it's also nice to be able to do more complicated things. The best of both worlds would be to have the more complicated features hidden, maybe accessed by a "turn on advanced features" option in the extras menu.
This is a rewrite of my Recording Piano project with more structured code and new features including the ability to manually tweak note duration.
A piano that can play back what you just played (up to about 480 notes!). When you press a key, the note duration and pitch are coded in binary and written to the bottom of the screen. When you play it back, that information is read by a sprite and converted back to the original numbers.
Thanks to Kevin_Karplus for the keyboard sprite and key reading logic.
Comments
You need to be logged in to post comments
Add a Comment
It works less than yours (yet) ... but maybe I will get some lovely words for the hard work. Thanks. (link to project)
I'm not much for pianos,but this is cool!!!
this is sweet
Thanks!
(view all replies)Good job. It IS grossly inaccurate, but it's about as good as is possible to do with computer programming. It's not natural to play an instrument with a mouse, but you brought it close, so congratulations!
THIS IS SO COOL!!!!!!! i played the entertainer and Clocks(by Coldplay) on it!!!
I'm glad you're enjoying it! There are lots easier ways to make a recording piano now that we have lists...but this one still works :)
omg! I can play Bella's Lullaby on it!! GREAT JOB! I have been looking for a piano like this for a LOOONNGGG time!!
Thanks! I made a better version using lists on this account... (link to project)
(view all replies)lol I made a very eerie tune.
this'll be in the gallery
im makeing a gallery with cool projects in
and this piano is cool
scaratch is good for makeing pianos record
Do you think you could try to make a recording piano using lists? One that keeps track of how long a note is held and not held (rest). It would be like playing a piano that is recording without you having to set how long the rest or note is. Do you think you could do that?
...Or is it something that you would like to do?
(view all replies)Sure...I would think so. Would you like me to give it a try?
which he can't...
that was really rude of him i saw that comment the second i went on this project and i told him he shouldnt say stuff like that unless he can do something better
That was a rude comment, None of your projects are horrible in my opinion. It really get me a bit mad when people go out of there way to just say a rude comment. Well i dont know how i missed this one its Great, maybe i should make a gallery for Virtual Instruments or something
Thanks, for the support, Lanie. I figure it's just a new user unfamiliar with the Scratch culture. I don't take it personally. I will give them the benefit of the doubt this time and flag them if it happens again.
(view all replies)HORRIBOL
Your comment, in addition to being very negative, really gives me no idea what you found objectionable. Please be more specific with your critisism. Thank you.
(view all replies)no not funny
Never thought I could play Mortal Kombat on an online piano
Nice! And here I thought all it played was music, not video games from the dawn of creation! Just joking...I don't play piano very well but I can pick stuff out, if I get enough tries.
THERE ARE 26 VARIABLES!!!
I play piano, so I played the Entertainer and the Can-Can
That was pretty good i dont think that i could ever make something like that!
thats great! i love it!
Oops, I meant to say a similar way of storing and retrieving data.
I used a similar format in the make-a-maze application at: (link to project) to draw out the maze based off of what was drawn on the grid.
can u make me a game please please please please. i gotta make a game n i dnt knw how to do it please
Sick nasty!
:) this program really likes me :) congratulations, very sharp, and easy to play
Oldschooler2 - There are no arrays in Scratch the way there are in most other languages. So in this project I'm storing the data on the screen, you can see it as a bunch of little black dots in the lower left corner, after you play some notes. Then, when you ask it to play back the notes, I read the dots and convert them back into numbers and use those to play the note. You work with what you have...
this must use arrays to store data, right?
I simply love the idea of broadcasting certain patterns to "store data". Perhaps you could create invisible "patterns" to store data. Would you like to join my "sensing and broadcasting" club?
Gr8 idea! So cool!
Cool Paddle2See! I agree with Jens comment.
I agree. Storing arrayed data on screen is almost like handling the mouse pointer as a "sprite" in the graphics memory in the olden days..., It was cool back then, and still is!
Thanks, Jens. Screen array, huh? That's a pretty good term, I like it. It's pretty much the only way to store array data that I've been able to come up with. Maybe someday they will implement variable arrays. I'm kind of torn on that...it's good to keep the language simple for the beginners. But it's also nice to be able to do more complicated things. The best of both worlds would be to have the more complicated features hidden, maybe accessed by a "turn on advanced features" option in the extras menu.
Excellent and very useful implementation of a screen-array in Scratch!