Skip to content

Instantly share code, notes, and snippets.

@BeFiveINFO
Created December 12, 2016 20:07
Show Gist options
  • Save BeFiveINFO/a7d7da6deecd1ecc5b4935505fcb9ebd to your computer and use it in GitHub Desktop.
Save BeFiveINFO/a7d7da6deecd1ecc5b4935505fcb9ebd to your computer and use it in GitHub Desktop.
源平討魔伝 GENPEITD PSG(WSG) waveform data
0123456789ABCDEF0123456789ABCDEF
N0 9ABCDDEEEDDCBA975432110001123457
N1 00FFFFFFFFF000000FF00FF00FF00770
N2 789876579BDA74058BFC963579BA9878
N3 878768A748C728E707E827C847A86787
N4 1356BDFDCEDB76554442567874534210
N5 0234578ABCE689A746789B3578AACDFC
N6 03478B368ACE78B85892468AD579BCFC
N7 7ACCEEBEC97755799797752002200223
N8 02468ACEEDCBA9877654321002468ACE
N9 EEE770777077EEE700077E777E770007
NA FEEDDCCBBAA998877665544332211007
NB 00FFFFFFFFF000000FF00FF00FF00770
NC EEE770777077EEE700077E777E770007
ND EEEDDCDDDCDDEEED0001121112110001
NE 78594C0F0E10496778594C0F0E104967
NF FFFFFFFFFFFFFFFF0000000000000000
@BeFiveINFO
Copy link
Author

BeFiveINFO commented Dec 12, 2016

Reference: https://github.com/mamedev/mame/blob/master/src/devices/sound/namco.cpp

genpeitd (Namco C30) has RAM waveform held @ 0x400 (':cpu1'). It looks different from previous namco game boards. (formerly wavedata was expressed as a chunk of /0[0-9A-F]{32}/ or "use full byte, first 4 high bits, then low 4 bits")

genpeitd(源平) Namco CUS30/:namco/0/m_wavdata
0x100 ~ 0x13C, Changes as sound is played
0x2X9 ~ 0x307, Changes as sound is played
address: 0x308~ -> Speed of PSG playback of a certain sound code(Starting from PSG #01. for example, #05 is at 0x30D). -> Normal speed. Increase the value to slow the playback speed.

genpeitd has RAM waveform held @ 0x4000 (':cpu1'). but it looks different from previous namco game boards. Probably waveform #0 is:
0123456789ABCDEF0123456789ABCDEF
9ABCDDEEEDDCBA975432110001123457

You can see values below the waveform constantly changing as sound is being played.

:namco/0/m_voices
The number of voices to be used (default : 8). Set 1 to play just one voice, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment