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 09:04] – 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 111: | Line 116: | ||
lfo = VSLFOSquare(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 |