Banner
Views: 686,150,416
Time:
11 users online: chickaDEE Magazine, CosmicTiff, FailSandwich, Fullcannon, Green Jerry, hash, o Lazy, Nikushimi, RanAS, Thomas, Tobio - Guests: 74 - Bots: 478Users: 36,029 (1,423 active)
Latest: Nikushimi
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 - Custom Music - How to use GAIN & GAIN diagram.
Pages: « 1 »
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!

--------------------
What-A-Blast! - My WIP Super Mario World hack
**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
Praise be to gay orana
lol yeah, knowing the lengths of each can be useful.

--------------------
________________________________________________________
Mario the Gaul
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - 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 - 2018 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 21

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented