AYSFX files needed

Page 2/2
1 |

By Maggoo

Paragon (1216)

Maggoo's picture

06-04-2014, 01:29

Does it still work with the PT3 player or is it AYFX only ?

By ARTRAG

Enlighted (6912)

ARTRAG's picture

06-04-2014, 01:37

it can be reverted to work with music but the result will depend case by case on volume of notes an on the number or sfx active at the same time

By ARTRAG

Enlighted (6912)

ARTRAG's picture

06-04-2014, 10:04

In order to make it work with a pt3 player you need to uncomment the sections where it compares the new volume from the sfx with the previous value, here

	; ld a, (AYREGS + AmplA)
	; ld c, a
	ld a, (afxChData +0 * 8 +4)
	; cp c
	; jr c, afxSkipCh0
[...]
	; ld a, (AYREGS + AmplB)
	; ld c, a
	ld a, (afxChData +1 * 8 +4)
	; cp c
	; jr c, afxSkipCh1
[...]
	; ld a, (AYREGS + AmplC)
	; ld c, a
	ld a, (afxChData +2 * 8 +4)
	; cp c
	; jr c, afxSkipCh2

in the ISR, naturally you have to call the pt3 player before you call the AFXFRAME in order that the sfx replayer finds the register altered by the music in the ram buffer at AYREGS
you need also to call PT3_ROUT after both music and sfx have altered AYREGS

By First Spear

Supporter (10)

First Spear's picture

11-03-2015, 03:00

Hello. One year has passed since you asked that question - did you ever get a response? I am looking for new sound effect files also.

Thanks.

By First Spear

Supporter (10)

First Spear's picture

11-03-2015, 16:53

Hi. The link is broken, World of Spectrum reports "database crash again, we are trying to find a permanent solution".

http://www.worldofspectrum.org/forums/showthread.php?t=47065

Might also help !

By jepmsx

Master (227)

jepmsx's picture

18-07-2022, 08:25

Hi!

I am using AY effects from https://zx.remysharp.com/audio/#src=OTYsMTUzLDUsNywyNDAsMCww... that is based in Shirus' tracker. I want to find the file format of the banks to easily create mine from other banks.

Looking for this information I've found this thread but I haven't been able to understand the file format of the banks. Maybe if my assembler knowledge was better I could deduce it from the replayer, but unfortunately it isn't the case.

Does anyone know this file format?

By aoineko

Paladin (787)

aoineko's picture

18-07-2022, 09:23

AFB format is a simple wrapper.
1st byte is SFX number (N).
Then come N x 16 bits (2 bytes) offset table to point to each SFX data.

https://github.com/Threetwosevensixseven/ayfxedit-improved#f...

By jepmsx

Master (227)

jepmsx's picture

18-07-2022, 11:20

Good explanation and good link.

Now I'll understand it well.

Thanks for the information aoineko!

Page 2/2
1 |