AGSC (File Format): Difference between revisions

Jump to navigation Jump to search
>Aruki
imported>Jackoalan
Line 794: Line 794:


When the size of the table data is exactly 8, it may represent ADSR envelopes with this structure:
When the size of the table data is exactly 8, it may represent ADSR envelopes with this structure:
'''Note:''' All fields of the envelope are ''little endian''.


{| class="wikitable"
{| class="wikitable"
Line 801: Line 803:
|-
|-
| 0x0
| 0x0
| 1
| 2
| '''Attack time (0-255 milliseconds)'''; no multiplication is done to the value
| '''Attack time'''; in milliseconds
|-
| 0x1
| 1
| '''Attack time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0x2
| 0x2
| 1
| 2
| '''Decay time (0-255 milliseconds)'''; no multiplication is done to the value
| '''Decay time'''; in milliseconds
|-
| 0x3
| 1
| '''Decay time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0x4
| 0x4
| 1
| 2
| '''Sustain (percentage)'''; multiply value by 0.0244
| '''Sustain'''; percentage mapped between [0x0,0x1000]
|-
| 0x5
| 1
| '''Sustain (percentage)'''; multiply value by 6.25
|-
|-
| 0x6
| 0x6
| 1
| 2
| '''Release time (0-255 milliseconds)'''; no multiplication is done to the value
| '''Release time'''; in milliseconds
|-
| 0x7
| 1
| '''Release time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0x8
| 0x8
Anonymous user

Navigation menu