Making this to work on learning Scratch & hopefully add this as a part of future projects. Black and white keys/notes are clickable or can be played on your computer keyboard! INSTRUCTIONS white keys: qwer tyu 8iop black keys: 234 67 90L (Bb is L because I ran out of numbers XP) note: project can lag, idk why atm, but if it does, close & reopen the tab *** space bar for sustain arrow keys to go up or down 1 octave
(EXTREMELY HELPFUL LOL) this forum post for how to make a script execute only once when you press a key: https://scratch.mit.edu/discuss/topic/563148/ ~~~ stuff I didn't end up using but was cool to look at *NVM I REMOVED THE POINTER* this forum post for how to make the pointer (which I needed for technical reasons, as you will see if you see inside): https://scratch.mit.edu/discuss/topic/218132/ *I DIDN'T END UP USING THIS CODE...* this piano simulator by @Rosyda ~ https://scratch.mit.edu/projects/106850343/ for help figuring out how to make the sounds repeat, altho I made my own code ~~~ some ideas: - add modes (display note names, display notes on staff, etc) ~~~ created: idk because I forgot. Sometime around 11.26.2025 - 11.28.2025 MIDDLE C & SUSTAIN FINALLY WORKS!!! Now to wait for tomorrow to see if I will find more bugs XP - 11.29.2025 C#/Db & octave buttons working. Also needed to rework the keyboard input system becuz I didn't know which keys Scratch could detect XD - 12.1.2025 got 4 white keys and 2 black keys working. Played 'Mary Had A Little Lamb' - 12.3.2025 got more keys working & added position code to the keys on suggestion from @hamiltonvonbob so they wouldn't accidentally go to random places. - 12.29.2025 all keys working for the most part. played the first verse of 'be Thou my vision'