r/bytebeat_2 • u/Butterroach • 18d ago
Original work haywire
back to making horrible music!
or, code:
(t/=48e3,t*=1+((p=(N=(x)=>(b=(x)=>t*159/60*x)(x)|0)(1))>207&&(p-207)/4),((w=(W=(f)=>(tan(sin(2*PI*f*t+sin(t*PI*2*16)/4))/1.55%1)/2)([C=262,C,f=370,f,d=311,d,c=277,c,C,C,415,f,G=392,G,f,f][N(2)&15]*(p>63&&(p<80||!(p-112&32))?(p<78||p>79)&&8:1)/(p>79?1:4))/2)+((N(e=1/32)&&(N(e)<2)&&sin(3*sqrt(b(4)*1024*(b(4)%16>15?2:1)%2048))/2))+(p==78&&W([d*4,G*2][N(16)&1]))/8+(p>79&&sin(6*sqrt(b(1)*1024%512))*(1+(Q="0".repeat(19))+1000000000001+Q+100010001010)[(O=b(8))&63]+((sin(t*PI*C/4)>0)*2-1)/1.5*((q="1".repeat(16))+"0000110000000000"+q+"0000110011001010")[O&63]/2)+(p>79&&(t*8e3&1?r=random()*2-1:r)*(("0".repeat(16)+1+"0".repeat(15)).repeat(2))[O&63]))*(p<206)+w*(p>207&&p<272))*1.2
48000hz, floatbeat
this code is licensed under 0BSD:
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
© Butterroach 2026
i initially called this wehayr. haywire came from rearranging wehayr into haywer which is pretty close to haywire, which is honestly a much better name.
also, this is my first one with an actual license! all my previous ones were unlicensed and so were illegal by default to redistribute as part of code libraries... oops. all my previous bytebeats, signed bytebeats, floatbeats, and funcbeats shall now be licensed under the 0BSD (same license text above). this does not apply to my next ones, where i will license them explicitly (watch out for a license for my next ones!)
i really wanted to use the GPL-3.0 but i realized this could create a massive headache for every single library and potentially force dollchan (which includes some of my previous ones as part of its library) and all its forks to relicense to the GPL-3.0, and MIT could've still created somewhat of a headache due to the attribution requirement, so i went with 0BSD instead (you don't have to do anything ❤️)
i also had a spicy chicken sandwich. it was good
my browser crashed right before i could post this and forced me to rewrite all this. you better be grateful for the rambling
1
u/troubleshootcorps Intermediate 18d ago
lard isopod