Skip to content

Modulator Class

spessasus edited this page Oct 9, 2024 · 7 revisions

Modulator Class

Represents a single Modulator.

Properties

All numbers

sourcePolarity

The primary source's polarity.

sourceDirection

The primary source's direction.

sourceUsesCC

If the primary source uses a MIDI controller.

sourceIndex

The index of the primary source.

sourceCurveType

The primary source's curve types.

secSrcPolarity

The secondary source's polarity.

secSrcDirection

The secondary source's direction.

secSrcUsesCC

If the secondary source uses a MIDI controller.

secSrcIndex

The index of the secondary source.

secSrcCurveType

The secondary source's curve types.

modulatorDestination

The destination of the modulator. -1 if linked as it's not supported.

transformType

The transform type to apply.

transformAmount

The amount of transform to apply.

Modulator sources

Below is the table of modulator sources if the usesCC flag is set to 0.

Index Name
0 No controller = 1
2 Note on velocity
3 Note on key number
10 Poly pressure
13 Channel pressure
14 Pitch Wheel
16 Pitch Wheel range
127 Link (UNSUPPORTED)

Modulator curve types

Below are the defined curve types of modulators:

  • 0 Linear - normal linear scale
  • 1 Concave - exponential ramp
  • 2 Convex - logarhitmic ramp
  • 3 Switch - 0.5 and below is 0 (or -1 for bipolar), above is 1

Default Modulators

Below is the default modulator list for SpessaSynth.

Note: cB - centibels, 1/10 of a decibel

Source Secondary source Destination Transform amount Notes
Note On velocity Negative Unipolar Concave No controller Initial attenuation 960 cB SF2 Default
Modulation Wheel Positive Unipolar Linear No controller Vibrato LFO to pitch 50 cents SF2 Default
Volume Negative Unipolar Concave No controller Initial attenuation 960 cB SF2 Default
Channel Pressure Positive Unipolar Linear No controller Vibrato LFO to pitch 50 cents SF2 Default
Pitch Wheel Positive Bipolar Linear Pitch wheel range Positive Unipolar Linear Fine tune 12700 cents SF2 Default
Pan Positive Bipolar Linear No controller Pan 1000 percent SF2 Default
Expression Negative Unipolar Concave No controller Initial attenuation 960 cB SF2 Default
Reverb depth Negative Unipolar Linear No controller Reverb effects send 750 percent SF2 Default, amount increased
Chorus depth Negative Unipolar Linear No controller Chorus effects send 750 percent SF2 Default, amount increased
Poly Pressure Positive Unipolar Linear No controller Vibrato LFO to pitch 50 cents ⚠️ NOT STANDARD ⚠️
CC 92 depth Positive Unipolar Linear No controller Mod LFO to volume 24 cB ⚠️ NOT STANDARD ⚠️
CC 72 Positive Bipolar Linear No controller Volume envelope release 1200 timecents ⚠️ NOT STANDARD ⚠️
CC 74 Positive Bipolar Linear No controller Initial filter Cutoff 6000 abs cents ⚠️ NOT STANDARD ⚠️
CC 71 Positive Bipolar Linear No controller Initial filter Reasonance 250 cB ⚠️ NOT STANDARD ⚠️