Bytebeat

Return To bottom
Changelog / Common thread / SthephanShi / kOLbOSa_exe / lhphr / PortablePorcelain / HypernovaHeathen / BaenHoHoHo / hcdphobe / OnixIsThePewterGod / Zackx / GetDolphinedLol / psubscirbe / Kouzerumatsu / MT2023 / Decent-Manager-6169 / Chasyxx / Glebguything / absolute197 / WilliamP692 / MarioFan171

CAPTCHA
 Deletion password
  • Supported file types are JPG, PNG, GIF, WEBP, WEBM, MP4 and MOV.
  • Limit: 4 files, 30 MB per file (60 MB for Passcode users).
  • Images greater than 250x250 will be thumbnailed.
  • 644 unique users on the board.

3121
GLITCH-267.png
(29.43KB, 768x768)
converted floatbeat to bytebeat in the shortest way possible
(floatbeat here) * 128 + 128
time = t/44100,
PI = 3.14159265358979323,
fract=function(x) {
    return x%1
},
mix=function(a,b,c) {
    return (a*(1-c))+(b*c)
},
tri=function(x) {
    return asin(sin(x))/(PI/2.)
},
puls=function(x) {
    return (floor(sin(x))+0.5)*2.;
},
saw=function(x) {
    return (fract((x/2.)/PI)-0.5)*2.;
},
noise=function(x) {
    return sin((x+10)*sin(pow((x+10),fract(x)+10)));
},
main=function(time) {
	speed = 2.01852;
	pitch = 0;
	melody_notes = [
[2,4,5,9,2,4,5,9,-2,4,5,9,-2,4,5,9],
[-10,-10,-10,-10,-10,-10,-10,-10,-14,-14,-14,-14,-14,-14,-12,-12],
[-22,-19,-22,-19,-22,-19,-22,-19,-26,-22,-26,-22,-26,-22,-24,-20]
];
	melody = 0;
	for (i = 0; i < melody_notes.length; i++) {
		melody_tune = pow(pow(2,1/12),(melody_notes[i][floor(time*speed)%melody_notes[i].length]+pitch)-49)*44000;
		melody += puls(time*melody_tune)*(1-fract(time*speed));
	}
	return (melody/melody_notes.length);
},
floattobyte = function(obj) {
 obj *= 128
 return obj + 128
},
floattobyte(main(time));


https://dollchan.net/bytebeat/#v3b64fVRhb5swEP0rFlIlGwzYDnRhWX5AvkX7ClFFiLN6AhuBo1JV+e+zMUlZtoJ0+O7we+c7P/HhVerEve+eFg0HW6DjJKGE4ELudyZcRTShacae01W6zr5lK7Yyn85dWent+SIrLZSEAwIfhQTm6bi+dBIMT7SQV7OxEcPnthIfcfW4FZY+pGGFUACPfoUcTHdigb3shYTWBoRiuN/FLJpw7aXuF4DwXCvV3aABiVLks2jjsH35tgi1LUM42GLxfofCv9FSiZ4v4G1NOASUIN+6rXqbQuyIB2QDhCa6phTyk81ezUhY6L7l/GTuhUWErlO2sblW6OrV5MgYNbxWp/cXqTTvTTIvZM5wglOc4dsaPjoHUzIPKcHLlnxhzJrjYNa3xF+tz87/ZzU8jBwKeZg1ce/prDoAxRgCAX6AeY9RzeUv/Wo+BME0pPsQ9EVaTdtpW2OYxpQhDOf4XBxypws7Zn8cMHp62DEVOQTjrFGYZMhPEkLc8e7nDUwtI0HHNDsDshp3Fz0rgkbw1b5uKnOY+D/93ZRhjlpqrY7v2nZ2l4g6/naSMw7wt4CytQkmWpsLXOqBAlqhOX2hjYe9vmzamv8stfkjjP+B6x8

Delete Post  

Changelog / Common thread / SthephanShi / kOLbOSa_exe / lhphr / PortablePorcelain / HypernovaHeathen / BaenHoHoHo / hcdphobe / OnixIsThePewterGod / Zackx / GetDolphinedLol / psubscirbe / Kouzerumatsu / MT2023 / Decent-Manager-6169 / Chasyxx / Glebguything / absolute197 / WilliamP692 / MarioFan171
Return To top