Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > Testbit hardrestart - when first?
2005-05-11 23:52
cadaver

Registered: Feb 2002
Posts: 1153
Testbit hardrestart - when first?

Anyone have opinion on this, when did it become popular to stuff $09 to the waveform register on the first frame of a note to stabilize the attack, in addition to pure ADSR hardrestart? And who perhaps invented it first?

At least in 1988/1989 many tunes were still content with using no hardrestart whatsoever.
2005-05-14 10:14
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
I think it was JCH
2005-05-14 17:23
TDJ

Registered: Dec 2001
Posts: 1879
Nice variation on the wellknown "the butler did it" line: the mailman did it ;)
2005-05-16 10:53
Soren

Registered: Dec 2001
Posts: 547
It's not the test-bit that stabilizes the sound. It only resets the oscillator. A hardrestart needs some gate- and ADSR-manipulation. It's hard to say who did it first, however I know that Laxity did it before JCH. I just can't remember who he got the idea from.
These days I find it a bit more interesting how people that didn't use hardrestart were able to do music with no bugging sounds. The only reasons I can think of are:
1)Being carefull with what ADSR settings you use in your music.
2)The order that values are stored in to the sid-registers.

But there could be more to it... Just haven't realized what it could be.
:-)
2005-05-16 11:46
Frantic

Registered: Mar 2003
Posts: 1627
I would say that both 1) and 2) comes down to timing of the internal envelope counters in the sidchip, as the way those counters work are the reason for the ADSR bug. I can't see any other way to avoid buggy ADSR (if not using hardrestart) than:

1) Make the calls to the player stable, in the sense of stable rasters. (Precise timing.)

2) Store values to SID first of all in the player so they will be set exactly the same time each time.

3) Fiddle with ADSR-settings in each and every case to make it sound the way you want (calculating "good" ADSR-settings somehow won't really be an option since you want the sounds to sound in a specific way that no algorithm can be aware of). ...and this depends on the relation to the sound played before the current sound as this will affect the state of the envelope counters.

Also, since only gate on/off and the ADSR settings affect the envelope, I would say that this is pretty much it. This statement is more of an opinion than a "fact" since I don't remember the details of the counters related to the ADSR bug right now.

Of course there is always the option of just changing frequency of a sound in some cases, without retriggering the ADSR at all, but that doesn't count I guess...
2005-08-15 10:12
Laxity

Registered: Aug 2005
Posts: 459
Well, yeah Jeff!.. I think it's correct that I did it before JCH back then, but I nicked it from somebody - that's for sure.. Don't remember who though!.. Might have been Tim Follin or Bjerregaard..
2005-08-16 07:11
Inge

Registered: Nov 2003
Posts: 144
Martin Galway uses hardrestart in a player from 1985 ("Ocean Loader 1"), but without using the testbit. In "Ocean Loader 2", also from 1985, he has obviously rewritten the player and now utilizes the testbit.

Inge
2005-08-16 14:28
cadaver

Registered: Feb 2002
Posts: 1153
Sure? Siddump shows nothing of that kind :)
2005-08-16 15:09
Soren

Registered: Dec 2001
Posts: 547
Laxity:
Well, as far as I know Tim Follin didn't even use any hardrestart and not even oscillator reset.. somehow he just managed to do music with no adsr bugs.. Atleast when I've checked the output of several of his tunes, it was simply: gate off for 2 frames and set instrument adsr on the frame after it. No testbit stuff to reset oscillator. (I added the possibility to do stuff like that in my newest player btw) ;-) (ViruzTracker in progress btw, won't be long before I can start doing music in it ;-)

Hygge
2005-08-16 15:13
Soren

Registered: Dec 2001
Posts: 547
btw, this is how I understand it:

Hard restart : a manipulation of ADSR+gate to achieve a more stable ADSR.
Testbit : The bit that is used for resetting oscillator.
2005-08-16 16:58
cadaver

Registered: Feb 2002
Posts: 1153
Yeah, it's the "gatebit on" in $09 that makes the difference. Of course it's only a kind of preference, to shorten the attack, oldschool sounds become impossible :(
 
... 9 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Krill/Plush
Airwolf/F4CG
Alakran_64
mutetus/Ald ^ Ons
Apollyon/ALD
LightSide
Guests online: 99
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.043 sec.