GameBoy Rhythm Box GB

From GameBrew
GameBoy Rhythm Box
Gameboy.png
General
AuthorLeaf
TypeMusic Apps
Version16K
LicenseMixed
SystemCGB
Last Updated2009/12/18
Links
Download
Website

A sample drum kit for experimenting different sample rates.

Each sound is played with the D-Pad and the 4 buttons.

User guide

Format for the Rhythm Box:

  • 4096Hz
  • 2data/1byte
  • Align data to 16 bytes
  • If the end data of the 16-byte block is $00, it's considered the end of the rhythm sequence.
  • The end data is represented by $00. So, any data that is originally $00 will be replaced with $01.

The playback routine involves calling the playback process every 1/4096 second using a timer interrupt. Each playback process differs based on the channel, which determines how the sound is produced.

Unfortunately, sounds with high frequency components like cymbals are too challenging to reproduce at low sampling rates. Even on the actual Game Boy hardware, certain channels may sound quite different between the Game Boy Color (GBC) and the Game Boy Advance SP (GBASP), for example.

The only common element that consistently produces sound across both platforms is the waveform memory channel.

Additionally, the behavior of emulators varies significantly depending on the specific emulator you are using. Certain emulators may handle sounds better than others.

pcm_16K

This is an alternative version with the sampling rate increased to 16,384Hz, which has a higher rate than LSDj.

Despite the sound output from Ch.D still being poor, the square wave channel seems to be performing quite well, particularly for cymbals and similar sounds.

The issue with sounds ending abruptly is due to the original WAV file's content.

Running at 16384Hz can lead to significantly larger file sizes, making it difficult to use in projects that require efficient memory usage and speed. However, the results show promising possibilities.

For Ch.C, since it's limited to sample playback, handling interrupts at a rate of (playback rate) ÷ 32 seems quite manageable and convenient.

Controls

Up - Hi-Tom (Ch.B)

Left - Low-Tom (Ch.B)

Right - Hand Clap (Ch.C)

Down - Bass Drum (Ch.D)

A - Cymbal (Ch.A)

B 0 Snare Drum (Ch.C)

Start - Orchestra Hit (Ch.D)

Select - Cuica (Ch.C)

Compatibility

Recommended using KiGB emulator for the best experience.

TGB emulator does not handle it well.

External links

Advertising: