Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user DSC ! (Registered 2024-10-23) You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > SDI fadeout
2024-07-04 18:01
Abynx

Registered: Jun 2024
Posts: 2
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: 2193
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: 11325
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: 2193
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: 226
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: 2952
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: 11325
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: 11325
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
kbs/Pht/Lxt
wil
Sentinel/Excess/TREX
Isildur/Samar
Tchad/Jam
E$G/HF ⭐ 7
Alakran_64
Brittle/Dentifrice^(?)
Slaygon/Censor Design
Guests online: 204
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 Wonderland XIV  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Peek a Boo  (9.8)
2 Layers  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Libertongo  (9.5)
7 Moving Balls  (9.5)
8 Rainbow Connection  (9.5)
9 It's More Fun to Com..  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Carrion  (9.6)
4 Sulevi  (9.6)
5 Pal  (9.6)

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