This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vividshaper_reference_manual [2024/03/28 08:55] – lars | vividshaper_reference_manual [2024/03/30 10:02] (current) – lars | ||
---|---|---|---|
Line 52: | Line 52: | ||
gatetimeon | gatetimeon | ||
gatetimeoff | gatetimeoff | ||
+ | timeon | ||
+ | gtimeon | ||
tick -- The number of times the Lua code has been called since initiation (when tick=0). | tick -- The number of times the Lua code has been called since initiation (when tick=0). | ||
cc[x] -- Value of CC message x (between 0 to 127). | cc[x] -- Value of CC message x (between 0 to 127). | ||
Line 61: | Line 63: | ||
-- Output information | -- Output information | ||
- | wave[x] | + | wave[x] |
panning[x] | panning[x] | ||
note[x] | note[x] | ||
vol[x] | vol[x] | ||
+ | ring[x]=y | ||
+ | sync[x]=y | ||
gvol -- Global volume, default = 1. Multiplied on the output to amplify or limit the audio. | gvol -- Global volume, default = 1. Multiplied on the output to amplify or limit the audio. | ||
updatefreq | updatefreq | ||
Line 95: | Line 99: | ||
wave[x] = VSWaveFold(wave[x], | wave[x] = VSWaveFold(wave[x], | ||
wave[x] = VSNorm(wave[x], | wave[x] = VSNorm(wave[x], | ||
+ | wave[x] = VSAbs(wave[x]) | ||
-- Wave math operators - arguments can be either arrays or scalar factors | -- Wave math operators - arguments can be either arrays or scalar factors | ||
Line 102: | Line 107: | ||
wave[x] = VSAdd(wave1, | wave[x] = VSAdd(wave1, | ||
wave[x] = VSSub(wave1, | wave[x] = VSSub(wave1, | ||
+ | |||
+ | -- LFOs (Low Frequency Operators): Coming in the next version (v1.2) | ||
+ | -- These LFO functions take time as input. They are similar to the wave generators in how they | ||
+ | -- operate, but they only return a scalar value. | ||
+ | lfo = VSLFOSin(frequency, | ||
+ | lfo = VSLFOTriangle(frequency, | ||
+ | lfo = VSLFOSaw(frequency, | ||
+ | lfo = VSLFOSquare(frequency, | ||
+ | |||
+ | -- Helper function to remove negative values | ||
+ | output = VSRect(input) | ||
+ | wave[x] = VSRect(wave[x]) -- Input is a wave array | ||
-- Envelopes | -- Envelopes | ||
Line 108: | Line 125: | ||
vol[x] = VSADSR(attack, | vol[x] = VSADSR(attack, | ||
vol[x] = VSADSRE(attack, | vol[x] = VSADSRE(attack, | ||
+ | |||
-- Filters (x = oscillator) | -- Filters (x = oscillator) | ||
Line 119: | Line 137: | ||
biquadcoeff = VSBandpass(cutoffFreq, | biquadcoeff = VSBandpass(cutoffFreq, | ||
biquadcoeff = VSHighpass(cutoffFreq, | biquadcoeff = VSHighpass(cutoffFreq, | ||
- | wave[x] = VSBiquad(wave[x], | + | wave[x] = VSBiquad(wave[x], |
-- MIDI output (coming soon - not available in this version!) | -- MIDI output (coming soon - not available in this version!) |