furnace/doc/4-instrument/snes.md

2.1 KiB

SNES instrument editor

these tabs are unique to the editor for SNES instruments.

SNES

Use envelope enables the ADSR volume envelope. if it's on:

  • A: attack rate.
  • D: decay rate.
  • S: sustain level.
  • D2: decay rate during sustain.
  • R: release rate.
  • Sustain/release mode:
    • Direct: note release acts as note cut.
    • Effective (linear decrease): after release, volume lowers by subtractions of 1/64 steps.
    • Effective (exponential decrease): after release, volume decays exponentially. see gain chart.
    • Delayed (write R on release): after release, waits until A and D have completed before starting exponential decrease.

if envelope is off:

  • Gain Mode: selects gain mode.
    • Direct: direct gain from 0 to 127
    • Decrease (linear): linear gain from -0 to -31
    • Decrease (logarithmic): exponential gain from -0 to -31
    • Increase (linear): linear gain from +0 to +31
    • Increase (bent line): exponential gain from +0 to +31
    • note: using decrease modes will not produce any sound unless a Gain macro is set. The first tick must be the initial gain, and the second tick must be the decrease gain value. gain values are as described in the Macros section below.
  • Gain: value of gain.

Macros

  • Volume: volume.
  • Arpeggio: pitch in half-steps.
  • Noise Freq: preset frequency of noise generator.
  • Waveform: waveform.
  • Panning (left): output level of left channel.
  • Panning (right): output level of right channel.
  • Pitch: fine pitch.
  • Special: bitmap of flags.
    • invert left: inverts output of left channel.
    • invert right: inverts output of right channel.
    • pitch mod: modulates pitch using previous channel's output.
    • echo: enables echo.
    • noise: enables noise generator.
  • Gain: sets mode and value of gain.
    • 0 - 127: direct gain from 0 to 127
    • 128 - 159: linear gain from -0 to -31
    • 160 - 191: exponential gain from -0 to -31
    • 192 - 223: linear gain from +0 to +31
    • 224 - 255: exponential gain from +0 to +31