furnace/doc/4-instrument/README.md
tildearrow 219665ed60 dev182 - add a different macro release strat
active release makes the macro jump to release pos instead of waiting
2023-10-11 03:36:21 -05:00

8.9 KiB

instrument editor

the instrument editor always starts with this section:

top of instrument editor

  • top-left numeric dropdown: instrument selector.
  • folder icon: open an instrument file.
  • save icon: save current instrument as a file.
    • right-clicking gives the option to save a .dmp format DefleMask preset.
  • Name: instrument name.
  • Type: the system for which the instrument is intended.
    • if changed, all applicable settings and macros will remain as they are. numbers will not be adjusted.

instrument types

the following instrument types are available:

  • SN76489/Sega PSG - for use with TI SN76489 and derivatives like Sega Master System's PSG.
  • FM (OPN) - for use with YM2612, YM2203, YM2608, YM2610 and YM2610B.
  • Game Boy - for use with Game Boy APU.
  • C64 - for use with Commodore 64 SID.
  • Generic Sample for controlling Amiga and other sample channels/chips like YM2612's Channel 6 PCM mode, NES channel 5, Sega PCM, X1-010 and PC Engine's sample playback mode.
  • PC Engine - for use with PC Engine's wavetable synthesizer.
  • AY-3-8910/SSG - for use with AY-3-8910 PSG sound source and SSG portion in YM2610.
  • AY8930 - for use with Microchip AY8930 E-PSG sound source.
  • TIA - for use with Atari 2600 chip.
  • SAA1099 - for use with Philips SAA1099 PSG sound source.
  • VIC - for use with VIC-20 sound chip.
  • PET - for use with Commodore PET.
  • VRC6 - for use with VRC6's PSG sound source.
  • FM (OPLL) - for use with YM2413.
  • FM (OPL) - for use with YM3526 (OPL), YM3812 (OPL2) and YMF262 (OPL3).
  • FDS - for use with Famicom Disk System sound source.
  • Virtual Boy - for use with Virtual Boy.
  • Namco 163 - for use with Namco 163.
  • Konami SCC/Bubble System WSG - for use with Konami SCC and Wavetable portion in Bubble System's sound hardware.
  • FM (OPZ) - for use with YM2414.
  • POKEY - for use with Atari 8-bit computers and their POKEY sound source.
  • Beeper - for use with PC Speaker and ZX Spectrum Beeper (SFX-like engine).
  • WonderSwan - for use with WonderSwan's wavetable synthesizer.
  • Atari Lynx - for use with Atari Lynx handheld console.
  • VERA - for use with Commander X16 VERA.
  • Seta/Allumer X1-010 - for use with Wavetable portion in Seta/Allumer X1-010.
  • ES5506 - for use with Ensoniq ES5506 sound chip.
  • SNES - for use with SNES.
  • Sound Unit - for use with Sound Unit chip.
  • Namco WSG - for use with Namco WSG wavetable chips, including C15 and C30.
  • FM (OPM) - for use with YM2151.
  • NES - for use with NES.
  • MSM6258 - for use with MSM6258 sample chip.
  • MSM6295 - for use with MSM6295 sample chip.
  • ADPCM-A - for use with ADPCM-A sample chip.
  • ADPCM-B - for use with ADPCM-B sample chip.
  • SegaPCM - for use with SegaPCM sample chip.
  • QSound - for use with QSound sample chip.
  • YMZ280B - for use with YMZ280B sample chip.
  • RF5C68 - for use with RF5C68 sample chip.
  • MSM5232 - for use with MSM5232 PSG sound source.
  • T6W28 - for use with Toshiba T6W28 PSG sound source.
  • K007232 - for use with K007232 sample chip.
  • GA20 - for use with GA20 sample chip.
  • Pokémon Mini/QuadTone - for use with these systems.
  • SM8521 - for use with SM8521 chip, used in Tiger Game.com.
  • PV-1000 - for use with Casio PV-1000.
  • K053260 - for use with K053260 sample chip.
  • TED - for use with Commodore Plus/4 and Commodore 16's TED chip.
  • C140 - for use with C140 sample chip.
  • C219 - for use with C219 sample chip.

macros

macros are incredibly versatile tools for automating instrument parameters.

after creating an instrument, open the Instrument Editor and select the "Macros" tab. there may be multiple macro tabs to control individual FM operators and such.

macro view

the very first numeric entry sets the visible width of the bars in sequence-type macros. the scrollbar affects the view of all macros at once. there's a matching scrollbar at the bottom underneath all the macros.

each macro has two buttons on the left.

  • macro type (explained below).
  • timing editor, which pops up a small dialog:
    • Step Length (ticks): determines how many ticks pass before each change of value. default is 1.
    • Delay: delays the start of the macro until this many ticks have passed. default is 0.
    • the button is highlighted if either of these is set differently from default.
  • release mode. this determines how macro release is handled:
    • Active: jumps to release position.
    • Passive: does not jump to release position. if release position hasn't been reached yet, there will be a delay.

macro types

every macro can be defined though one of three methods, selectable with the leftmost button under the macro type label:

  • sequence Sequence: displayed as a bar graph, this is a sequence of numeric values.
  • ADSR ADSR: this is a traditional ADSR envelope, defined by the rate of increase and decrease of value over time.
  • LFO LFO: the Low Frequency Oscillator generates a repeating wave of values.

some macros are "bitmap" style. they represent a number of "bits" that can be toggled individually, and the values listed represent the sum of which bits are turned on.

sequence

sequence macro editor

the number between the macro type label and the macro type button is the macro length in steps. the - and + buttons change the length of the macro. start out by adding at least a few steps.

the values of the macro can be drawn in the "bar graph" box.

just beneath the box is a shorter bar that controls looping.

  • click to set the start point of a loop; the end point is the last value or release point. it appears as half-height bars. right-click to remove the loop.
  • shift-click to set the release point. when played, the macro will hold here until the note is released. it appears as a full-height bar. right-click to remove the release point.

finally, the sequence of values can be directly edited in the text box at the bottom.

  • the loop start is entered as a |.
  • the release point is entered as a /.
  • in arpeggio macros, a value starting with a @ is an absolute note (instead of a relative shift). no matter the note entered in the pattern, @ values will be played at that exact note. this is especially useful for noise instruments with preset periods.

ADSR

ADSR macro editor

  • Bottom and Top determine the range of outputs generated by the macro. (Bottom can be larger than Top to invert the envelope!) All outputs will be between these two values.
  • attack, Decay, Sustain, SusDecay, and Release accept inputs between 0 to 255. these are scaled to the distance between Bottom and Top.
  • Attack is how much the value moves toward Top with each tick.
  • Hold sets how many ticks to stay at Top before Decay.
  • Decay is how much the value moves to the Sustain level.
  • Sustain is how far from Bottom the value stays while the note is held.
  • SusTime is how many ticks to stay at Sustain until SusDecay.
  • SusDecay is how much the value moves toward Bottom with each tick while the note is held.
  • Release is how much the value moves toward Bottom with each tick after the note is released.

macro ADSR chart

LFO

LFO macro editor

  • Bottom and Top determine the range of values generated by the macro. (Bottom can be larger than Top to invert the waveform!)
  • Speed is how quickly the values change - the frequency of the oscillator.
  • Phase is which part of the waveform the macro will start at, measured in 1/1024 increments.
  • Shape is the waveform used. triangle is the default, and Saw and Square are exactly as they say.

wavetable

this tab appears for PC Engine, FDS, Namco WSG, and other wavetable-based instruments.

wavetable tab

when Enable synthesizer is off, the wavetable used for the instrument may be selected by creating a Waveform macro with a single value.

to use the wavetable synthesizer, refer to the wavetable synthesizer section.

sample

this tab appears for Generic PCM DAC, Amiga and SNES.

sample tab

see the Generic Sample section for more information.