state of the art atari SNDH music?

All about ST/STE demos

Moderators: Mug UK, lotek_style, Moderator Team

User avatar
lotek_style
Mod(ul)erator
Mod(ul)erator
Posts: 2498
Joined: Sat May 11, 2002 2:39 pm
Location: germany
Contact:

Re: state of the art atari SNDH music?

Post by lotek_style »

He's doing live gigs and selling his stuff on platforms like bandcamp:

http://ultrasyd.free.fr/
lotek style / the sirius cybernetics corporation
- musician - ascii-artist - swapper - archivist -

.tSCc. - low-tech atari cyberpunks since 1990
http://www.tscc.de/ | http://demozoo.org/ | http://www.lotekstyle.de/ | http://ymrockerz.atari.org/
leonard
Moderator
Moderator
Posts: 665
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: state of the art atari SNDH music?

Post by leonard »

I looked a bit at the 0913 music disk protection. That's quite funny actually. The protection is quite smart because it makes ripping hard even using emulator. However it "may" affect sound quality. Some part of the music driver are decoded/encoded real time using trace mode. During these parts, interrupt are disabled ( sr=$a700 ). It means that some SID voice timer could be slighty delayed. I don't think it could be noticed, but anyway it should be mentionned :)

Worst is the music driver tick system. Some musics are not exact 50Hz music. For instance some music are 52Hz. Instead of using a 52Hz timer, a fixed 200Hz timer is used, and time to time music driver is called or skipped. So the music tick is not called at 52hz exactly. But maybe original Maxymizer music driver is using the same behavior.
Leonard/OXYGENE.
evil
Captain Atari
Captain Atari
Posts: 192
Joined: Sun Nov 12, 2006 8:03 pm
Location: Devpac

Re: state of the art atari SNDH music?

Post by evil »

leonard wrote:Worst is the music driver tick system. Some musics are not exact 50Hz music. For instance some music are 52Hz. Instead of using a 52Hz timer, a fixed 200Hz timer is used, and time to time music driver is called or skipped. So the music tick is not called at 52hz exactly. But maybe original Maxymizer music driver is using the same behavior.
This is normal as many trackers use three timers for effects (A/B/D) and the remaining timer is C. Timer C is also used by the OS (plus harddisk driver) for it's 200 Hz clock. If you want to play the songs without killing the OS the normal thing is to hook on to the OS 200Hz Timer-C and call the music there.
leonard
Moderator
Moderator
Posts: 665
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: state of the art atari SNDH music?

Post by leonard »

evil wrote:This is normal as many trackers use three timers for effects (A/B/D) and the remaining timer is C. Timer C is also used by the OS (plus harddisk driver) for it's 200 Hz clock. If you want to play the songs without killing the OS the normal thing is to hook on to the OS 200Hz Timer-C and call the music there.
Yeah I get that. But still the music driver is not called at 52hz then. it's 52hz'ish with at 200hz granularity. 52 is quite ok because it's very close to a 200 multiple. But if you use same technic for say a 73hz music, I'm sure you will "hear" the difference with a real 73hz timer
Leonard/OXYGENE.
User avatar
dma
Atari God
Atari God
Posts: 1116
Joined: Wed Nov 20, 2002 11:22 pm
Location: France
Contact:

Re: state of the art atari SNDH music?

Post by dma »

maxYmiser can adjust the replay "frequency" by a single digit, so you can have 50/51/52/53/54/.......
evil
Captain Atari
Captain Atari
Posts: 192
Joined: Sun Nov 12, 2006 8:03 pm
Location: Devpac

Re: state of the art atari SNDH music?

Post by evil »

leonard wrote:
evil wrote:This is normal as many trackers use three timers for effects (A/B/D) and the remaining timer is C. Timer C is also used by the OS (plus harddisk driver) for it's 200 Hz clock. If you want to play the songs without killing the OS the normal thing is to hook on to the OS 200Hz Timer-C and call the music there.
Yeah I get that. But still the music driver is not called at 52hz then. it's 52hz'ish with at 200hz granularity. 52 is quite ok because it's very close to a 200 multiple. But if you use same technic for say a 73hz music, I'm sure you will "hear" the difference with a real 73hz timer
Well if you want to do a SNDH player that plays tripple timer music and keep the OS alive (for example SND Player) there isn't much choice other than try to play it on the OS 200 Hz interrupt. If you reprogram Timer C there's a risk of harddrive corruption.

I don't know how this particular demo does it, but SND Player is something in the line of;

Code: Select all

play:
	sub.w #replay_freq,counter
	bpl.s	.noplay
	
	add.w #200,counter
	bsr sndhfile+8

.noplay:
	rts

counter: dc.w 200

My ears (or rather timing) is perhaps too inaccurate, but it has seemed fine with the tracks I've tested, and there are quite many 60 Hz files in the archive.

Perhaps if I got time tonight I'll try find some 60+ Hz file that doesn't use all timers and setup a true interrupt and an approximated 200 Hz. It will be interesting to see if I can notice a difference :-)
evil
Captain Atari
Captain Atari
Posts: 192
Joined: Sun Nov 12, 2006 8:03 pm
Location: Devpac

Re: state of the art atari SNDH music?

Post by evil »

evil wrote:Perhaps if I got time tonight I'll try find some 60+ Hz file that doesn't use all timers and setup a true interrupt and an approximated 200 Hz. It will be interesting to see if I can notice a difference :-)
Ok, so I did a test between a true 70 Hz Timer A (ok, 69.8181 Hz) and a simulated 70 Hz from the OS 200 Hz Timer C.

Here are two recordings, please listen to them first before downloading the source with the spoiler :-)

Method 1: http://ae.dhs.nu/tmp/replay_1.mp3
Method 2: http://ae.dhs.nu/tmp/replay_2.mp3

Here are the test sources, hopefully I didn't make too many errors.
http://ae.dhs.nu/tmp/leosndh.zip


I can't tell which is which.
leonard
Moderator
Moderator
Posts: 665
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: state of the art atari SNDH music?

Post by leonard »

evil wrote:I can't tell which is which.
nice test! I have to admit it's same for me, I can't tell which is which. I'm surprised. I thought it will be more noticeable ( esp about some nasty jittering in the music tempo )
Leonard/OXYGENE.
User avatar
npomarede
Atari God
Atari God
Posts: 1344
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: state of the art atari SNDH music?

Post by npomarede »

Hi
a long time ago, when writing the YM2149 emulator for Amiga I was faced with the same issue : how to play 60 Hz musics when the Amiga was running at 50 Hz VBL.
I used a similar method (ie add 50 / sub 60) to simulate 60 Hz replay when VBL was 50 Hz and as with Evil's test it was also mostly not possible to tell the difference between the replay running at true 60 Hz on ST or the 50 Hz equivalent on Amiga.

Nicolas
User avatar
Grazey / PHF
Atari Super Hero
Atari Super Hero
Posts: 516
Joined: Fri Jun 21, 2002 12:50 pm
Location: Montreal, Quebec
Contact:

Re: state of the art atari SNDH music?

Post by Grazey / PHF »

evil wrote:
evil wrote:Perhaps if I got time tonight I'll try find some 60+ Hz file that doesn't use all timers and setup a true interrupt and an approximated 200 Hz. It will be interesting to see if I can notice a difference :-)
Ok, so I did a test between a true 70 Hz Timer A (ok, 69.8181 Hz) and a simulated 70 Hz from the OS 200 Hz Timer C.

Here are two recordings, please listen to them first before downloading the source with the spoiler :-)

Method 1: http://ae.dhs.nu/tmp/replay_1.mp3
Method 2: http://ae.dhs.nu/tmp/replay_2.mp3

Here are the test sources, hopefully I didn't make too many errors.
http://ae.dhs.nu/tmp/leosndh.zip


I can't tell which is which.
Nice one Anders. You beat me to it!

To be honest I’ve never noticed a difference either. Even with 75hz + tunes like some of those by Chris Denman.

I always use the timer c method when converting tunes even for those which don’t use timers a/b/d for fx. There are even some SNDH’s which have different hz for different sub tunes! If you can find them :)

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
Gunstick
Captain Atari
Captain Atari
Posts: 294
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Re: state of the art atari SNDH music?

Post by Gunstick »

So I have been heavily analyzing chiptunes, up to the point to write a sc68 ascii-dump replayer for the ST together with Ben/OVR. Well some tunes have so many updates to the YM that 8Mhz are not enough, notably Flash of the Rom by gwem. So if you look for a chiptune using everything Maxymiser can throw at the YM, that's your candidate.
User avatar
Zorro 2
Administrator
Administrator
Posts: 2222
Joined: Tue May 21, 2002 12:44 pm
Location: Saint Cloud (France)
Contact:

Re: state of the art atari SNDH music?

Post by Zorro 2 »

leonard wrote:I looked a bit at the 0913 music disk protection. That's quite funny actually. The protection is quite smart because it makes ripping hard even using emulator. However it "may" affect sound quality. Some part of the music driver are decoded/encoded real time using trace mode. During these parts, interrupt are disabled ( sr=$a700 ). It means that some SID voice timer could be slighty delayed. I don't think it could be noticed, but anyway it should be mentionned :)
It remembers to me a long discussion with Ukko, the protection used is Rob Northen because Grazey is a very good music ripper :)
Member of NoExtra Team
User avatar
YQN
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 125
Joined: Sat Jul 22, 2017 6:01 pm
Location: Meaux
Contact:

Re: state of the art atari SNDH music?

Post by YQN »

Eh a few links by chiptune musicians that don't necessarily specialize on the YM but made fantastic tunes for it nonetheless (or maybe because of that):

http://battleofthebits.org/arena/Entry/ ... hts/30115/
http://battleofthebits.org/arena/Entry/ ... lol/30129/
http://battleofthebits.org/arena/Entry/ ... olt/10595/
http://battleofthebits.org/arena/Entry/ ... III/33528/
http://battleofthebits.org/arena/Entry/ ... +You/6961/

Edit: not stricly sndh format though, but legit ay/ym music
Post Reply

Return to “Demos - General”