151084
this is soooo amazing for 1k
Flying deep in dark space, you caught a distress signal and landed on an icy planet. In this frozen world, you have found an abandoned base of colonists. There is not a single survivor...
Links to play the song:
[Formatted version] 1012B size
https://dollchan.net/bytebeat/#v3b64lVTJbttADP0VVkCUGVeRNYsWB7YKGRZ879XywZPoYKRVjUY5Nf338o2W2IccCsMYksPlPZKjP8HTr+c2eAx6Wm7IWpUkUdM52pBQcZ7SgnpJd6S1ZfMOdp3nEe0grGxEdc2SMUlEe1yanKUKklUpSxAsm7YQVsjRdG8sOwpJZfSNND2SYvPp9wU1LxG1fHLECypoSZuSxNlHPFAbsQdDegMs/h+ajqhaasbjACCCzgdVsCz0rG9Zv1X30/V/hlegzDJVC910x4NhGIIBliUpNKqQ9JXOXS9e+OIMizmif5LWa7LSN+Byer7m6jnqBP4cF+fIOLEUPaeLTfuAOq/nTljrRyIn9ns34d95CreGChCF8L2THxgHRAMYp3xz15RhOk6PmsqwB7bg8ogvMa0wJPZ+fyfoReJ1JhaGACJUbUeMQulinNA971Oi+Hd/ADmY3QCBGSzQlpB0mkpakjLcuqYbqhl9Ww0Z53KUZmOzHFqkWS19yJicqflMzicxxegs5pUZu4NjuxzmOprqel6ET5zG/agcWou0c1mVHecWTxC+MAXGwBMXCpsBgcfj5RjAYDByYj7zXWVXdPltCO0jsBteiyi23pJ+WNRc0/NW1978oLw/VH61sYEugyh4Pf28/Gi/n3r+BvjX//cf
[Minified version] 652B size
https://dollchan.net/bytebeat/#v3b64fVJNb9swDP0tMxCDYthEpOSPFpEHBzF63zXNIVpzMLq2xuqelv33UXaSQw+DDfnRfnx8etaf7Of78yl7yMZ18J6tpRh4VRU4LkQ87WKQqqJdkHtPXRecs/QYg6sstTF4LqjVNkvb4JXwGWLO5Xd5YDr+HgIMdAqWXoKICQ30Id6daMBPHHHfrkXFVSvdLQnOxTahK0hf/kdLddfp0h720DcNm0WNbtm/jfCCvVm4w0I2G29oOD5fzKgPsQirCiEZgXHpujuPH/0beI+jMbh/jPPM3Tz1WqQZ6n+eosLmbA1FDqVvIkUJXFoFvl4CcLmJeR75fK7thMTkOXA3zwGWWhN4yjRsy3o9ZftkucaYlA2i0qUozJqdUTUnVzVtvMkVJUJEkKJsGiepVdSQ8qPkuasRQEOejOuyvW5C09JNfXk9JdvGw+RikuLyMO3zIvktcp5rhsBmmR5CClY1JuwSAZK7+/JmTn8+iFIqnBCtvBbFpeBZUm3yjWBJGQl6WjnFJqPs4/g6/Dr9OI56OqeT+fcf
Sample rate: 44100Hz
Algorithms: The song is written in javascript and is played in JS players. It uses a square-wave generator, which can be formed from the sawtooth t signal in several ways:
by using bit shift: 128*(((t/128)%2)<<0)
by rounding through int: 128*int((t/128)%2)
or like this 128*((t/128)%2|0)
Notes are fed into the generator as array of frequencies. Low notes will act as bass. By selecting notes in a specific order, we can make an arpeggiator. By adding a sine function, we can make the floating frequency effect. The kick in the rhythm section is implemented from square-wave decays. For example t/=16396,128*int(t*(256>>(32*t))). The hi-hats are implemented with a combination of sine and exponentiation, which produces a noise effect.
The song was inspired by the Alien 3 game title soundtrack for NES, this is one of my favorite games on this console! At first I wanted to do a bytebeat cover of this song, then I read the rules and it turned out to be something on my own. :)
Also let me introduce my bytebeat generator tool: https://dollchan.net/bytebeat/
You can find an extensive library of bytebeats here. It is a good alternative to the outdated Greggman player, in which was discovered a vulnerability and the launch of malicious code is possible (I can provide a link that breaks the player and makes changes on the page, if you require). The calculations in my player take place in the AudioWorklet, which does not have access to the page and window/document objects. The player is constantly being improved and the library is being replenished.