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 > SDI fadeout
2024-07-04 18:01
Abynx

Registered: Jun 2024
Posts: 1
SDI fadeout

How on earth would one fade out a tune in SDI? I've tried making multiple patterns with a volume decrease but the drums don't like it. Is there code I should be adding in the finalizing stage in turbo assembler ? Thanks for any help. I'm super new to this and pretty much still getting familiar with my breadbin.
2024-07-05 10:20
TheRyk

Registered: Mar 2009
Posts: 2118
Not an SDI expert (not even a real musician) but a Sledgehammer solution/easiest way of fading any instrument might be doing it not in a tracker but in the code playing your .SID file by reducing $D418 gradually
2024-07-06 19:05
6R6

Registered: Feb 2002
Posts: 245
Use the built in fadeout routine. Call it with a value in the a register. Note that you can both fadein and fadeout.
2024-07-06 19:20
chatGPZ

Registered: Dec 2001
Posts: 11194
Quote:
but a Sledgehammer solution/easiest way of fading any instrument might be doing it not in a tracker but in the code playing your .SID file by reducing $D418 gradually

Most players will write to $d418 every frame though, so doing what you say outside of the player will just result in farting noise :)

You'll have to disassemble the player, and look for a sequence like
lda #$0f
ora #$10
sta $d418

and modify the lda value to change the volume
2024-07-06 19:55
TheRyk

Registered: Mar 2009
Posts: 2118
OFFTOPIC
Quoting chatGPZ
...
Most players will write to $d418 every frame though, so doing what you say outside of the player will just result in farting noise :)
...

Didn't we agree on every fart is worth a release some years ago?

Just kidding, yeah, hacking what is already built in players would of course make even more sense than poking $D418 twice per frame (once inside and once outside player routine)...

BTT 6RG's advice seems more what the TS is asking for
2024-07-09 01:02
Joe

Registered: Apr 2002
Posts: 225
I think there was a musical release a few years ago, which got the notion of "pressing that fart", about it. ;D
2024-07-09 01:11
Krill

Registered: Apr 2002
Posts: 2875
Writing to $D418 each frame additionally to the player was a very common mistake throughout the... early 90s, at the least. =)

So yes, hack the player, or use a readymade fadeout routine if it has one.
2024-07-09 01:53
chatGPZ

Registered: Dec 2001
Posts: 11194
What Oxyron Demo was it at Mekka? :D
2024-07-09 15:50
Perplex

Registered: Feb 2009
Posts: 255
Some players make it quite non-obvious where and how the volume register is written, so instead of disassembling the player or hunting through memory, use the monitor and create a watch point to find it: "watch store d418".

Coder challenge: create a command line tool that takes a sid file as input, and outputs the address you need to poke to externally fade in/out the tune while it is playing.
2024-07-09 17:26
chatGPZ

Registered: Dec 2001
Posts: 11194
Quote: What Oxyron Demo was it at Mekka? :D

4 Years

brrrrrrzzzzzzzt :D (use 6581)
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
csabanw
Chrx/Design/Chaos
sebalozlepsi
Guests online: 54
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Coders
1 Axis  (9.9)
2 Graham  (9.8)
3 Crossbow  (9.8)
4 HCL  (9.8)
5 Lft  (9.8)

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