Jorhlok

Me, my opinion, and things I do.

Monthly Archives: January 2015

I made a file format! No app to make them, though.

I made a music file format! It’s to go with my new “virtual sound chip” I made for use in video games what I am/plan to program. The chip has 8 channels which output a 4-bit signal each. Each pulse type has a table of 4-bit samples for each of the 15 possible volume settings (zero is mute and doesn’t need a table). There’s also a table that maps these samples to a 31-bit counter (java doesn’t have unsigned variables) based on the sample length (2-30ish) and pulse width (1/32 to 1/2 or 16/32).

Read more of this post

Advertisements