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: 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: 2466
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: 246
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: 11510
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: 2466
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: 236
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: 3083
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: 11510
What Oxyron Demo was it at Mekka? :D
2024-07-09 15:50
Perplex

Registered: Feb 2009
Posts: 257
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: 11510
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
zzarko/Avatar
iAN CooG/HVSC
New Design/Excess
WVL/Xenon
Exile/Anubis
Icon/TRIAD
Guests online: 423
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Uncensored  (9.5)
9 Wonderland XIV  (9.5)
10 No Bounds  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.7)
4 LMan  (9.7)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.156 sec.