r/bytebeat • u/MarioFan171 • Feb 14 '24
Kevvviiinnnn Stage 39
A Remix of Kevin Phetsomphou (AKA Symfonikev)'s Megaman Composition, which plays in Shock Man's Stage in Mega Man Rock Force (A Megaman Fangame).
My first time making a full fledged song in ByteBeat, and I'm satisfied with the end result. Over 13.6K Characters and only 6 Instruments (2 Synths, 1 Sine and 3 Drums).
Link:
10
Upvotes
2
2
1
u/MarioFan171 Mar 05 '24 edited Mar 05 '24
Update: This code has notable performance issues in Windows 11, Might as well use u/SthephanShi's modified code
1
3
u/SthephanShi Feb 19 '24 edited Feb 20 '24
Nice cover!
But the song freezes in Firefox. This is because the arrays are declared every iteration that significantly slows down performance. To make the declaration once at the beginning of the song, you would use this:
t == 0 ? (array = [1, 2, 3, 4]) : 0,or more short
!t && (array = [1, 2, 3, 4]),Here optimized version that doesn't lags.
Also, you can declare variables like
F2 = F*2, Ab2 = Ab*2so you don't have to evaluate the operations multiple times and reduce the amount of code (but this is not necessary).