Banner
Views: 883,216,757
Time:
18 users online:  Anorakun, ggamer77, Golden Yoshi, h.carrell, Katrina, MaxwelHacks, MercuryPenny,  Nameless, Novarender, Prestinator13, Retr0_Dave, Retro Master HD, Shoujo, TCgamerboy2002,  Teows, The WHG Modz, TheMorganah, ZachJamesGames - Guests: 56 - Bots: 93 Users: 49,488 (2,420 active)
Latest: x--Skrapz
Tip: Make a backup of your hack before using any external tools on it.Not logged in.
How to use GAIN & GAIN diagram.
Forum Index - SMW Hacking - SMW Hacking Help - Tutorials - How to use GAIN & GAIN diagram.
Pages: « 1 » Link
Well since I've been seeing more people trying to use GAIN now, I thought I'd make a diagram/thread.






Gain commands in AMK:
$ED $80 $XX - set gain. (also turns off ADSR)
$FA $01 $XX - set gain. (also turns off ADSR)
$FA $05 $XX - gain to use for rests. (AMK 1 only)
$FC $XX $YY - set gain # of ticks before note ends. $XX = ticks, $YY = gain value. (AMK 1 only)

You can also use the DSP write command ($F6 $XX $YY) to set/turn on gain. $XX = DSP address, $YY = value to write.

Note: Exponential decrease gain is the same as release of ADSR.

As well as some values of increase gain are the same as attack in ADSR:

$C1 = $ED $70 $E0 (F0 E0)
$C3 = $ED $71 $E0 (F1 E0)
$C5 = $ED $72 $E0 (F2 E0)
$C7 = $ED $73 $E0 (F3 E0)
$C9 = $ED $74 $E0 (F4 E0)
$CB = $ED $75 $E0 (F5 E0)
$CD = $ED $76 $E0 (F6 E0)
$CF = $ED $77 $E0 (F7 E0)
$D1 = $ED $78 $E0 (F8 E0)
$D3 = $ED $79 $E0 (F9 E0)
$D5 = $ED $7A $E0 (FA E0)
$D7 = $ED $7B $E0 (FB E0)
$D9 = $ED $7C $E0 (FC E0)
$DB = $ED $7D $E0 (FD E0)
$DD = $ED $7E $E0 (FE E0)
$7F(Direct gain) = $ED $7F $E0 (FF E0)

-------------------------------------------------------------------
If you think there is anything I should add to this or if you see an error, please let me know.
-------------------------------------------------------------------

--------------------
________________________________________________________
Mario the Gaul
nice

also parameters is spelled wrong

--------------------
soundcloud / bandcamp / twitter / battle of the bits / buy our album
Fixed, thanks.

--------------------
________________________________________________________
Mario the Gaul
Yay, no more horror!

--------------------
I do art commissions cheap! PM here or DM via Discord for more details.

**Layout by Erik557


ofcourse you'd be the one to create this


Nice though, definitely useful for those that want to use GAIN.
also holy shit i never bothered to find out what the exact lengths were but hell this is useful
lol yeah, knowing the lengths of each can be useful.

--------------------
________________________________________________________
Mario the Gaul
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - Tutorials - How to use GAIN & GAIN diagram.

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks