Join Us for a Bite by JT Machinima

No picture, but you get a self-playing piano instead! Use the left/right keys to see the whole piano.

6 Likes

How do you get more than the usual three octaves?

Ah, my script automatically converts the note names like A4 to 440 and so on, the first parameter to music.playTone is the frequency - in blocks, they have a note chooser which automatically picks the frequency for you.

Wow, this is terrific! Did you create a parser to turn a MIDI file into the js score? Some other witchcraft??

2 Likes

Yes, I’ve wrote about what I did here, but the scripts are outdated. The code to convert .midi to .js is still the same, just I added more features like the piano keyboard:

2 Likes

If you did use a parser or something similar, can you please make it an extention or a web based thing, like @kristianpedersen 's image convertor.

1 Like

Hmmmm…that’s a good idea, I’ll try on a spare weekend if I don’t have 500 projects to finish! :sweat_smile:

Time to learn some web dev!

2 Likes

Thank you!

Oh and also, the reason the song feels slightly rushed is that it doesn’t know what a rest looks like! I really need to fix that but my smol brain can’t understand the code I wrote 6 months ago.

1 Like

Or if you want those synthesia things:

1 Like