funute
Level 26 Chipist
 
bytez 
2nd Σ5.531

 
beatz 
4th Σ5.590

 
codingz 
1st Σ6.177

 
crunchez 
5th Σ5.151

 
t in pantz 
4th Σ5.045

 
vgm engine
 
  2nd/14   Σ27.494   Nov 1st 2020 12:00am
 
/player/EntryPlay/39556/
39556
 
will explain later
Creative Commons License
77
9
22
11
14
 


previous entry
argarak - pcm.modshape.wv
view all 14 entries

 
129714
Level 26 Chipist
funute
 
 
 
post #129714 :: 2020.11.01 12:29am :: edit 2020.11.01 1:26am
  
  AArt1256 liēkd this
Just wanted to squeeze my entry within submission period, so here's the real description:

Literally no one:
Me: wouldn't it be funny if I made a bytebeat engine that played VGM files

So yeah, this is basically a crude SN76489 emulator (-ish?) on top of a converted VGM dump. In true bytebeat fashion, it *is* still purely a function of t if you look at the code, just...with a lot of data behind it. And it's still a bit rough around the edges for reasons I didn't have time to look into. I took a bunch of dumb shortcuts to save time at the expensive of using more space and didn't even come close to the 10mb limit. But don't worry I'll probably have something for bytebeat1k whenever that comes around :)

Also I rushed out the actual track in like 30 min so it's sloppy, whatever :D

If you wanna play around with this here's the magic behind it: https://pastebin.com/sXJewAya (Old version had a bug that was missing the loop on line 99, oops. That's why the timing's off on my entry. Oh well.)
And the .snm from which the .vgm came from: https://drive.google.com/file/d/1n0n1cO0gBp0uJil6xO7YoNS7CpI4fRtW/view?usp=sharing

Also s/o to SMS Power, referenced https://www.smspower.org/Development/SN76489 heavily during development.
 
 
129717
Level 21 Mixist
Minerscale
 
 
 
post #129717 :: 2020.11.01 1:39am
Haha, nice, that's pretty sick, and the JS code is so simple too! I envy the simplicity :{
 
 
129719
Level 10 Mixist
AArt1256
 
 
post #129719 :: 2020.11.01 1:47am :: edit 2020.11.01 1:07am
WOW HOW DID YOU DO THIS WOW IM AMAZED


also I get this error when I run my own vgm:
Syntax Error: "" literal is not terminated before end of script
 
 
129782
Level 26 Chipist
funute
 
 
 
post #129782 :: 2020.11.01 1:04pm
Fixed it up to work with greggman's html5bytebeat: https://tinyurl.com/y3aya2sz

Something about slashes tripped up the parser on greggman's tool so I changed the encoding to a different range that avoids slashes. Also it seemed to run slow with the VGM data in a super long string literal so it's an array of strings now. Seems to run slightly better at the expense of using slightly more space.

New version of the converter script: https://pastebin.com/PzNDCeHH

Instructions: Grab the new engine from the greggman link above, take the Python script above (uses Python 3), run the converter on your .vgm to generate the VGM data, replace the data in VGM=[] with the generated VGM data, then play with whatever tool. Should work with any 60Hz/NTSC track, it will warn you if your VGM uses PAL rate or some other custom rate.
 
 
129788
Level 31 Chipist
kleeder
 
 
 
post #129788 :: 2020.11.01 1:51pm
  
  mirageofher liēkd this
IT EVEN PLAYS PERFECTLY FINE IN GREGGMANS TOOL AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 
 
129793
Level 26 Mixist
argarak
 
 
 
post #129793 :: 2020.11.01 2:51pm :: edit 2020.11.02 11:13am
pretty cool, the sn7 doesn't seem too hard to emulate but the converter is pretty solid and I had fun converting some of my vgms to work with it. nice work!
 
 
129874
Level 10 Mixist
AArt1256
 
 
post #129874 :: 2020.11.03 12:45am
While converting Zophar's vgms i got this error

Traceback (most recent call last):
File "D:\bytebeat-vgm.py", line 25, in <module>
raise Exception('Not VGM file?')
Exception: Not VGM file?
 
 
129918
Level 26 Chipist
funute
 
 
 
post #129918 :: 2020.11.03 5:44pm
It's what it says, whatever you gave it doesn't look like a VGM file (missing magic number). I'm guessing you might have given it a .vgz file which you'll want to convert back into .vgm.
 
 
129929
Level 10 Mixist
AArt1256
 
 
post #129929 :: 2020.11.04 9:38am
yea
 
 
129961
Level 11 Chipist
birdrun
 
 
post #129961 :: 2020.11.05 5:23am
  
  mirageofher and AArt1256 liēkd this
Points for sheer audacity and demoscene style hackery, I'm impressed!
 
 
130186
Level 10 Mixist
AArt1256
 
 
post #130186 :: 2020.11.08 9:21am :: edit 2020.11.08 9:42am
also to make the lfsr more compact use this instead of the old text

1111111111111110000000011111111 but it only really works well on stuff that doesnt use white noise

or for practical use use this

00000000000001100001010110001000010100011110010110101101110000101110101110001010100010111110000011001011000111111000100001000011111111100011000010000110011111010100110110111010001100111110111010010100101001000100010011101110001101011111101001100100010011011100000000010110001001100010100101000001100011001111111011001011101111110011110000101010101010100000011100010100000110011010111100101101011111010100000000110011110000100011011000010001010011101110111100010000111010001101001101011001011110110011000011101001101001010110110100110001101011010101010100100010101110101101011000000110100001101100010101001011110000100011101100111101111001100110110000010101010110101010100101100010101111101111011111110100110000010110011011110101100101101001100001110101010111011110101000100100011111000011110111001101111111010100000000010100010100000010100011110000101011111000000001001011111001111101010011010011101110000011011010001110000011011001100001011101011111000000010111001110111011011110111001110011100011011100001000111111111101101100010010010101000110011000001001101000101110000100011100000100011000100100001001000001111100011100100110100100010010100000110100000000001101011111011111011010100110011101101100000000110111011001000101000010111010000111001100111101100011010101111101101001010100101000000111101011110011001100110010011100011011011010101001111010010000111011001000111100100000101101110010011111110000010100101101110101010100000001111011100000001001100110000111101011010000010010010000010100101110000010001011100101000100111000110110001010110011101100011010010110100111110001110011110100110100100100111001110100111000100111100101001011100101101111011010110110111000010110111011100101011001001111101001111100001000100011110001011000110000101010111001110101101011100000101100111110110100110110110100
 
 

LOGIN or REGISTER to add your own comments!