fMSX .psg logged sound format (Development MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 120 gasten en 2 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - fMSX .psg logged sound format

Schrijver

fMSX .psg logged sound format

stilton
msx friend
Berichten: 9
Geplaatst: 15 April 2004, 02:59   
Hi everyone,

Does anyone have the specifications on this file format? I know its a dump of PSG register writes, but I need to have a more specific idea of the file structure. Any thanks would be appreciated!

Thanks,
Mike
Vincent van Dam
msx addict
Berichten: 372
Geplaatst: 15 April 2004, 09:42   
Documentation about .psg and various other related formats can be found at:

bulba.at.kz/progr_e.htm

Sonic_aka_T

msx guru
Berichten: 2261
Geplaatst: 15 April 2004, 18:16   
I think it's just REG, DATA for all the data that's sent to the PSG. I used this once to create the Metal Gear sound (when the logo pops up) in an intro for the Future Disk. Then there's a code to mark each 'end of track' and an 'end of file' code. I don't remember the codes, but just by looking at the dump it should be obvious. I'm a bad coder, and I remember it took me about 20 minutes to rip the sound and make an MSX replayer.

Quote:

Any thanks would be appreciated!


Err... Okay... Thanks!

stilton
msx friend
Berichten: 9
Geplaatst: 15 April 2004, 20:07   
Thanks to both of you; I think I got it now. Here's the text of the documentation at http://bulba.at.kz/progr_e.htm (in case anyone's interested but too lazy to go there)

Cutted from RDOSPLAY documentation
http://sorry.vse.cz/dimension/rdos/rdosplay (Http site in Prague, CZE)

ú PSG

This is log file produced by X128 (ZX Spectrum emulator) and fMSX (MSX
emulator). Every access to the AY 3-891x (Yamaha's soundchip) is stored in this
file. It's much like RAW format for adlib.
format1: [0]=db 'PSG',1ah ... file identifier
[4]=db data ... AY data
data: command or parameter command==0-15,byte ... next byte is data for
this AY register
command==0fdh ... eom (end of music)
command==0feh,byte ... multiple eoi
command==0ffh ... eoi (end of interrupt,
current data will be
send to ay-emulator)

You can also use utility PSG2.EXE to convert PSG music to another format:
format2: [0]=db 'PSG2' ... file identifier
[4]=struct data ... AY data
data: change_map (word) ... bit-map specifying which regs will be
changed in this interrupt. Order: L->R
(when 0ffffh, end of music)
map_size (byte) ... specifies how many times currently
defined map will be used (ie. how many
times will be data send in this form)
data (bytes) ... data for registers, reg. 0 comes first
After receiving all changes for current
interrupt, data are sent to ay-emu.
Map_size is decremented and when not 0,
next interrupt use same change_map as
previous one.



And, uh, thanks for the thanks ^_^ I should get more sleep or something.
MC
Sonic_aka_T

msx guru
Berichten: 2261
Geplaatst: 16 April 2004, 02:56   
So, I assume you have everything you need then? Let us know if it all works out okay. I don't remeber any 'command==0feh,byte ... multiple eoi' though.
shaiwa
msx addict
Berichten: 287
Geplaatst: 16 April 2004, 11:25   
Some info about .psg format from fmsx-dos v1.6.
command 0ffh & 0fe,byte are used for interrupt.
for data :
0h to 0fh = psg registers
010h to 09fh = scc registers (only wave memory is dumped, anyone knows why ?)
0A0h to 0dfh = opll registers.

playing a lot with this format and implemented this dump format
in a experimental msx emulator. Also op opl1 audio can be dumped.
If there is any interest i would like to hear about it... thought i was the last one
that is using this format.

stilton
msx friend
Berichten: 9
Geplaatst: 19 April 2004, 20:12   
Excellent! Now I definitely have everything I need. Thanks a lot, everyone.
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.