fMSX .psg logged sound format (Development Foros MSX)MSX Resource Center PassionMSX MSX2 contest           
                       
English Nederlands Español Português Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 114 invitados y 0 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - fMSX .psg logged sound format

Autor

fMSX .psg logged sound format

stilton
msx friend
Mensajes: 9
Publicado: Abril 15 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
Mensajes: 379
Publicado: Abril 15 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
Mensajes: 2268
Publicado: Abril 15 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
Mensajes: 9
Publicado: Abril 15 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
Mensajes: 2268
Publicado: Abril 16 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
Mensajes: 287
Publicado: Abril 16 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
Mensajes: 9
Publicado: Abril 19 2004, 20:12   
Excellent! Now I definitely have everything I need. Thanks a lot, everyone.
 
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation