Synthwave G minor Bach

Full credit to Synthwave G minor Bach by Zackx (2022-02-22) 26900Hz

dollchan.net/bytebea…3h/ll/7qf+owr9vx3/ag

Log in to post a comment.

// Synthwave G minor Bach by Zackx (2022-02-22) 26900Hz
// Dollchan: https://dollchan.net/bytebeat/#v3b64dZJbbsIwEEX3EolgDwnOjB3XTohVKGygO0gBqZXKQ5C/ql17R5h+4KhfZ440c60r+Svbnnb7rMnO3QAEIKYr8OiUR1tGph6gpQZbsioy9SW7ZzoVmfoKurItOk6LTH0DwXYmWE+Rqa9hoRtcaFdFjlx0ZqE74zAy9ZVouEeDdh458vyxT+rPeVt4aAvuc+PIJ499Ug9/fekf5yRbOmUoMvWuNEjKoCcmGky9La02aFGrG/XI73n1Pe/Bp/Pte3954S+xHMQQApJUSKWRhRA4Nw7OE6rtjMenOEpFIEreNDnVtQzBy5kmuH4cBVawfbtwzIRfdUbKmUCCS3/cnQ5CgvjhK3u/suxDHvcU2o3mkKzIrv3h/Ll/7Qf+oWR9VX3/Ag

const sampleRate = 26900;
const { cbrt, random, sin } = Math;

function beatbyte(t) {
return (
  (p =
    t *
    2 **
      ("B*918/916-918/91B*918/916-918/91>*;2:1;26/;2:1;2>*;2:1;26/;2:1;2A*;291;28/;291;2A*;291;28/;291;2B*=-;,=-91=-;,=-B*=-;,=-91=-;,=-E*>6=4>692>6=4>6E*>6=4>692>6=4>6D*<3:1<380<3:1<3D*<3:1<380<3:1<3D(=4<3=481=4<3=4D(=4<3=481=4<3=4B(:18/:16.:18/:1B(:18/:16.:18/:1B&;2:1;26/;2:1;2B&;2:1;26/;2:1;2@&;,9*;,8/;,9*;,@&;,9*;,8/;,9*;,@%=-;,=-91=-;,=-@%=-;,=-91=-;,=->*=-;,=-92=-;,=->*=-;,=-92=-;,=->,8/6-8/428/6-8/>,8/6-8/428/6-8/=-412/4192412141=-412/4192412141;-6341613/634163;-6341613/634163;,8/6-8/528/6-8/;,8/6-8/528/6".charCodeAt(
        t >> 12
      ) /
        12 -
        4)),
  ((((((1.48 * p) % 256) + ((1.47 * p) % 256)) / 2) * ((-t >> 4) & 255)) >> 9) +
    32 * sin(10 * cbrt(t % 16384)) +
    (((12 * random() * ((~t >> 6) & 255)) >> 6) * (t & 16384)) / 16e3 +
    32
);
}
  
const osc = synth.def(() => beatbyte(ditty.time * sampleRate) / 128);
osc.play(c4, { duration: 1000.0 });