Transient behavior of a pure sine wave

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

camsr wrote:
mystran wrote:
camsr wrote: I suppose I am looking for the most "natural" way to develop a sine with the least sideband and fastest response.
You can't have it, because the sidebands and the fast response are the exact same thing just viewed in two different domains.
So a sine wave is only a resultant behavior of some other kind of energy input then.
A sine wave is an infinite [no starting point or ending point, just infinite steady-state both ways], like any finite-bandwidth signal. You can never have a signal that is finite in time and bandwidth at the same time. Any finite-length (time-limited) signal has theoretically unlimited bandwidth. What you can increase the spectral roll-off for the side-bands by smoothing the time-domain signal, but whatever "resolution" you gain in one domain, you lose in the other domain.

It sucks, but that's the way it works.

Post

The best solution is probably to apply a simple filter. For example a 2nd order lowpass on a rectangular gate works well. Adjust the frequency of the filter according to the frequency of the sine. Decide on a ratio you're comfortable with, for example the number of cycles required to reach a threshold.

That will provide uniform timbre, but obviously lower notes will be slower notes.
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post

They always are slower. Thanks guys :)

Post Reply

Return to “DSP and Plugin Development”