Replace the current song? You have unsaved changes.
VB NOISE
USE IN A GAME
ONE SONG
Write the tune in VB Noise. Play it here first.
FILE → Export SONG.H (same bytes as .VBM). Optional: also Export .VBM to keep a copy.
Copy into your VBDE / gccVB project (once):
vbde/vbt_hw.h, vbt_tables.h, vbt_player.h, vbt_player.c
(+ vbt_vbeat_data.h if drums need it — include whatever the example already includes).
Drop in your song.h (or replace vbde/example/song.h).
After VIP/WRAM init, while every VSU channel is off:
#include "vbt_player.h"
#include "song.h"
vbt_init(vbt_song); /* loads 5 waves — hardware ignores wave writes if a ch is on */
vbt_play();
/* 50 Hz: timer IRQ preferred (reload 199, T-Clk-Sel=0 → 20 ms), or once per VIP frame */
vbt_update();
Add vbt_player.c to the makefile / build.bat compile list. Run build.bat → a .vb ROM.