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: 2244
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: 11386
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: 2244
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: 229
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: 2980
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: 11386
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: 11386
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
LordNikon/Dekadence
Jammer
Nordischsound/Hokuto..
wil
Guests online: 126
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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