This version (16 Jul 2022 04:48) was approved by John Joseph.

Click here to return to the Sources page

Chime FreqGain


The chime algorithm has fully programmable frequency and gain envelopes. The envelopes are accessible by clicking the cell’s icon The length of the chime is controlled by the Maximum Time control, which is set in milliseconds.

The envelope control window has two tabs: Frequency and Gain. Points on the curve can be moved by click-dragging. New points can be added by double-clicking. Points can be removed by right-clicking and selecting “remove point.” In this case, the point closest to the mouse cursor will be removed. Each envelope must have at least 3 points. Point values can be fine-tuned using the text input boxes on the right side of the envelope control window. When the control input goes to 1, the chime begins. When the control input goes to 0, the chime output stops, regardless of whether the envelope has completed or not.

In the case of the Chime Freq – Gain Continuous Play algorithm, the envelope will loop continuously until the control input goes to 0

Targets Supported

Chime FreqGain Sample Sample Sample



——————————— ———————————- ————————————--
Enable/Disable chimeControlControl Input


——————————— ———————————- ————————————--
Output0Audiochime output
Output1Controlchime end flag

Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
—————————————- ———————- —————————— ———————————————————-
Maximum Time1104 ms10 to 4400 msTime interval in ms
FrequencyValue_Point<n>80 20 to 20000 HzFine tuning of frequency values of points in frequency graph(<n> point count)
FreqTime(ms)_Point<n>00 to Maximum TimeFine tuning of time in ms of points in frequency graph(<n> point count)
GainValue_Point<n>-100 dB-120 to 24 dBFine tuning of gain values of points in gain graph(<n> point count)
GainTime(ms)_Point<n>00 to Maximum TimeFine tuning of time in ms of points in gain graph(<n> point count)

DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xxADAU145x/146x
——————————— ———————————————————————————- —————————————————————————
Sin_csine coefficientInteger32Integer32
Cos_c cos coefficient Integer32Integer32
FrequencyPointsTime intervals of frequency points Integer32Integer32
FrequencySlopescales the slope of frequency points FixPoint2d62FixPoint2d62
StartGainInitial gain valueFloatFixPoint8d24
GainPoints Time intervals of gain points Integer32Integer32
GainSlopescales the slope of gain points FloatFixPoint8d24

DSP Parameter Computation

sin_c=sin(initialFrequency[0] * pi))
cos_c=cos(initialFrequency[0] * pi))
StartGain= 10^(GainValue_Point[0] / 20)

resources/tools-software/sigmastudiov2/modules/sources/chime_freqgain.txt · Last modified: 16 Jul 2022 04:48 by John Joseph