For example, when adding harmonics to create a Square-like waveform
Code: Select all
Spectrum start=0 end=0 lowest=1 highest=1 "(1 / (index))"
Spectrum start=0 end=0 lowest=3 highest=3 "(1 / (index))" // phase shift: +pi
Spectrum start=0 end=0 lowest=5 highest=5 "(1 / (index))" // phase shift: -1/2 pi
Spectrum start=0 end=0 lowest=7 highest=7 "(1 / (index))" // phase shift: +3/4 pi
Spectrum start=0 end=0 lowest=9 highest=9 "(1 / (index))" // phase shift: -3/4 pi
Code: Select all
Phase "0"
Moreover, creating a waveform with just any one of the mentioned Spectrum calls, looks correct, with phase 0.
This was found on Hive2 VST3, Win x64, rev 12092.
Is there anything I am missing or misunderstanding?
Thank you very much
Enrico
p.s.
I am well aware that this is not the *best* way to create a Square waveform, and if one really wanted to use the Spectrum function, could do that just in a single call, like shown in the sample code:
Code: Select all
Spectrum start=0 end=0 lowest=1 highest=9 "(1 / (index)) * (index % 2)"
