ar fold asig, kincr
Adds artificial foldover to an audio signal.
asig – input signal
kincr – amount of foldover expressed in multiple of sampling rate. Must be >= 1
fold is an opcode which creates artificial foldover. For example, when kincr is equal to 1 with sr=44100, no foldover is added. When kincr is set to 2, the foldover is equivalent to a downsampling to 22050, when it is set to 4, to 11025 etc. Fractional values of kincr are possible, allowing a continuous variation of foldover amount. This can be used for a wide range of special effects.
instr 1 kfreq line 1,p3,200 a1 oscili 10000, 100, 1 k1 init 8.5 a1 fold a1, kfreq out a1 endin
New in Csound version 3.56