Login
Presets
Login

Classes and Structures

Structure: PRESET

Represents a preset for an instrument within a SoundFont.

The available accessors are:

  • PRESET-NAME preset -> string
  • PRESET-PATCH-NUMBER preset -> fixnum
  • PRESET-BANK-NUMBER preset -> fixnum
  • PRESET-REGIONS preset -> (simple-array preset-region)

Structure: PRESET-REGION

Represents a SoundFont preset region. These contain parameters that indicate how an instrument should be modified for a given preset.

The available accessors are:

  • PRESET-REGION-INSTRUMENT preset-region -> (or null instrument)

Additional functions for retrieving various information about the region:

  • PRESET-REGION-MODULATION-LFO-TO-PITCH preset-region -> fixnum
  • PRESET-REGION-VIBRATO-LFO-TO-PITCH preset-region -> fixnum
  • PRESET-REGION-MODULATION-ENVELOPE-TO-PITCH preset-region -> fixnum
  • PRESET-REGION-INITIAL-FILTER-CUTOFF-FREQUENCY preset-region -> double-float
  • PRESET-REGION-INITIAL-FILTER-Q preset-region -> double-float
  • PRESET-REGION-MODULATION-LFO-TO-FILTER-CUTOFF-FREQUENCY preset-region -> fixnum
  • PRESET-REGION-MODULATION-ENVELOPE-TO-FILTER-CUTOFF-FREQUENCY preset-region -> fixnum
  • PRESET-REGION-MODULATION-LFO-TO-VOLUME preset-region -> fixnum
  • PRESET-REGION-CHORUS-EFFECTS-SEND preset-region -> double-float
  • PRESET-REGION-REVERB-EFFECTS-SEND preset-region -> double-float
  • PRESET-REGION-PAN preset-region -> double-float
  • PRESET-REGION-DELAY-MODULATION-LFO preset-region -> double-float
  • PRESET-REGION-FREQUENCY-MODULATION-LFO preset-region -> double-float
  • PRESET-REGION-DELAY-VIBRATO-LFO preset-region -> double-float
  • PRESET-REGION-FREQUENCY-VIBRATO-LFO preset-region -> double-float
  • PRESET-REGION-DELAY-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-ATTACK-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-HOLD-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-DECAY-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-SUSTAIN-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-RELEASE-MODULATION-ENVELOPE preset-region -> double-float
  • PRESET-REGION-KEY-NUMBER-TO-MODULATION-ENVELOPE-HOLD preset-region -> fixnum
  • PRESET-REGION-KEY-NUMBER-TO-MODULATION-ENVELOPE-DECAY preset-region -> fixnum
  • PRESET-REGION-DELAY-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-ATTACK-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-HOLD-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-DECAY-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-SUSTAIN-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-RELEASE-VOLUME-ENVELOPE preset-region -> double-float
  • PRESET-REGION-KEY-NUMBER-TO-VOLUME-ENVELOPE-HOLD preset-region -> fixnum
  • PRESET-REGION-KEY-NUMBER-TO-VOLUME-ENVELOPE-DECAY preset-region -> fixnum
  • PRESET-REGION-KEY-RANGE-START preset-region -> fixnum
  • PRESET-REGION-KEY-RANGE-END preset-region -> fixnum
  • PRESET-REGION-VELOCITY-RANGE-START preset-region -> fixnum
  • PRESET-REGION-VELOCITY-RANGE-END preset-region -> fixnum
  • PRESET-REGION-INITIAL-ATTENUATION preset-region -> double-float
  • PRESET-REGION-COARSE-TUNE preset-region -> fixnum
  • PRESET-REGION-FINE-TUNE preset-region -> fixnum
  • PRESET-REGION-SCALE-TUNING preset-region -> fixnum

Function: PRESET-REGION-CONTAINS-P preset-region fixnum fixnum -> boolean

Checks to see if the preset region covers the given key and velocity. Returns T of it does, or NIL otherwise.