Hello makecoders
Again I have put off making a good drumkit and adding key signatures, but with a good reason…
The composer is now able to play samples (sounds) as instruments. I’ve been able to take soundfonts, convert them to harmonics, and play them inside makecode
Demo song:
if the rendering makes the song too slow, try this one. there are sometimes still audio cuts but theyre just temporary
(using the Electric Piano/Fretless Bass, and Violin 1/French Horn samples from the Mario 64 Soundfont. the violin didn’t come out as well, but the volume envelope works well)
If you can i’d love it if you could listen to the full thing, just around 2 or 3 minutes. If you can’t, press space during the song. I’ll skip to the last section. It does require some processing to play, though, so i’d recommend avoiding interacting with the page when it plays
Each instrument has two parts to it, an attack and a loop. The attack is like a pluck, and is played just once at the beginning of a sample. The loop is a part that repeats, so that the sound can match whatever duration it needs. As the pitch gets higher, the loop gets shorter, so if the sound wavers (like a violin), it’ll be a faster effect.
(using the Dog sample from Mario Paint)
These two songs are also powered by a new MIDI to Fruit converter script. Once I’m able to, Ill explain how both of these are done
I’m seriously going to do the drum kit next, but it will take a bit of work, since the current harmonic system will make the sound have too much of a tone, while drums are noisier. I have some ideas though and will be trying them out
thanks all