Skip to content

Struct SignalModulation

A wobble on a cue’s level over time: a slow oscillator with harmonics above it, each a little off its rate, and a slower one bending its phase, so the wobble never quite repeats. At a rate of zero there is none.

Declaration
[Serializable]
public struct SignalModulation

No wobble.

Declaration
public static SignalModulation None { get; }
Declaration
[Tooltip("Cycles a second of the wobble. Zero for none.")]
[Min(0)]
public float rate
Declaration
[Tooltip("How far the level dips at the bottom of the wobble, from 0 to 1.")]
[Range(0, 1)]
public float depth
Declaration
[Tooltip("Partials above the fundamental, each quieter and a little off its rate.")]
[Range(0, 6)]
public int harmonics
Declaration
[Tooltip("Cycles a second of a slower wave bending the phase.")]
[Min(0)]
public float fmRate
Declaration
[Tooltip("How far that wave bends the phase, in turns.")]
[Min(0)]
public float fmDepth

The level’s share at a time, from 1 minus the depth up to 1.

Declaration
public float Value(double seconds, int seed)

System.Single

Type Name
System.Double seconds
System.Int32 seed