Sound effects and chiptunes

GFA, ASM, STOS, ...

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
Iceman1975
Atarian
Atarian
Posts: 2
Joined: Mon Apr 25, 2022 8:14 pm

Sound effects and chiptunes

Post by Iceman1975 »

Hi all,
I am currently working on a game engine for Amiga and Atari ST. Since I'm actually an Amiga developer, the ST is still pretty new territory for me. Concerning graphics programming I have a good overview in the meantime. Sound programming on the other hand is a bit strange. I found out how to play YM and SNDH files (in assembler). Strangely I only found music files so far. Are there no SNDH files that only contain sound effects (explosions, gunshots, etc.)? Or how are these sounds created?
simonsunnyboy
Moderator
Moderator
Posts: 5520
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Sound effects and chiptunes

Post by simonsunnyboy »

There are actually no file formats I am aware of.

Technically SNDH contains interrupt driven playback routines that continuously change the soundchip registers.
For sound effects the user programs a single register setting and does not change it.

A starting point would be a datasheet for the YM2149 soundchip and its registers and a description for the XBIOS 32 routine which provides a simple interrupt driver without fancy effects to program the soundchip registers.

See https://freemint.github.io/tos.hyp/en/x ... ml#Dosound

I remember seeing small XBIOS 32 compatible files that only contained simple sound effects. But I don't remember which PD game or disk that was on :(
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee
User avatar
Grazey / PHF
Atari Super Hero
Atari Super Hero
Posts: 552
Joined: Fri Jun 21, 2002 12:50 pm
Location: Montreal, Quebec
Contact:

Re: Sound effects and chiptunes

Post by Grazey / PHF »

Normally I disabled sfx from the sndh files. Otherwise some files would have 30+ sub”tunes”. Most people just want to hear the tunes.

However I did leave FX in some sndh’s notably killing game show by Count Zero and Masterblazer by Mad Max. You’ll also find lotsa fx in some Sierra games like Manhunter.

Grazey
http://phf.atari.org - demo coders since 1983
http://sndh.atari.org - Maintainer of the Atari ST chip music archive
http://www.scenestream.net - Nectarine Administrator
Iceman1975
Atarian
Atarian
Posts: 2
Joined: Mon Apr 25, 2022 8:14 pm

Re: Sound effects and chiptunes

Post by Iceman1975 »

Ok, then the assumption that all sounds are usually available as SNDH is probably correct. I had already looked at that SNDH archives, but so far only found music. But if you say that you removed sound effects extra, then it fits yes.

I will then implement it so that you upload 1..n SNDH files and then can select from the existing tunes.

Thank you very much.
User avatar
Grazey / PHF
Atari Super Hero
Atari Super Hero
Posts: 552
Joined: Fri Jun 21, 2002 12:50 pm
Location: Montreal, Quebec
Contact:

Re: Sound effects and chiptunes

Post by Grazey / PHF »

I don’t actually remove the sfx. Just remove the ability to select them from the SNDH.

To be honest most games used a different driver call for the sfx like Ben Daglish and David Whittaker.

Grazey
http://phf.atari.org - demo coders since 1983
http://sndh.atari.org - Maintainer of the Atari ST chip music archive
http://www.scenestream.net - Nectarine Administrator
Post Reply

Return to “Coding”