https://github.com/0xB0C5/d-bass
D-Bass is a work in progress library for using the DMC as a wave channel (similar to z-saw but with different timbre), while also using its IRQs to run code at specific times for raster effects.
The library is currently quite limited but I'm working on improving it.
The audio is entirely constructed out of $00 and $ff samples. This is similar to playing at 1/8 the original rate, which only works for lower notes, hence the name D-Bass.
The raster effects work by predicting the sync between IRQs and NMIs, and refining that prediction based on how many IRQs occur each frame. It takes a little bit of time to stabilize (up to 36 frames I think), but once it has an accurate prediction it doesn't lose it. I plan on implementing a way of measuring the sync to have it be correct immediately (while still using the current method to avoid needing to measure it every frame).
Here's a demo with 4 dynamically positioned raster effects and D-Bass audio.
D-Bass is a work in progress library for using the DMC as a wave channel (similar to z-saw but with different timbre), while also using its IRQs to run code at specific times for raster effects.
The library is currently quite limited but I'm working on improving it.
The audio is entirely constructed out of $00 and $ff samples. This is similar to playing at 1/8 the original rate, which only works for lower notes, hence the name D-Bass.
The raster effects work by predicting the sync between IRQs and NMIs, and refining that prediction based on how many IRQs occur each frame. It takes a little bit of time to stabilize (up to 36 frames I think), but once it has an accurate prediction it doesn't lose it. I plan on implementing a way of measuring the sync to have it be correct immediately (while still using the current method to avoid needing to measure it every frame).
Here's a demo with 4 dynamically positioned raster effects and D-Bass audio.
Statistics: Posted by a_cardboard_box — Sun Jul 14, 2024 6:42 am — Replies 0 — Views 13