René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -

reson (Csound opcode)

Reson is a second-order filter in which kcf controls the center frequency, or frequency position of the peak response, and kbw controls its bandwidth (the frequency difference between the upper and lower half-power points).
ar      reson      asig, kcf, kbw[, iscl, iskip]
kcf: center frequency
kbw: bandwith (frequency difference between the upper and the lower half points)


This demonstration is similar to the one of the butterbp filter which produces almost the same output.
The following score on orchestra file can be used to show how reson filters frequncies. a440 is a signal that oscilates with 440 Hz. kfrq220_660 is the center frequency for reson and moves from 220 Hz up to 660 Hz. The filtered signal (afiltered) is sent to one channel while a440 is sent to the other channel. The filtered signal reaches the same amplitude as a440 after a second and is otherwise attenuated.
f1 0 2048 10 1

i1 0 2 
sr     = 44100
kr     = 4410
nchnls = 2

instr 1

  ilen = p3

  a440          oscili   10000, 440, 1
  kfrq220_660   line     220, ilen, 660
  afiltered     reson    a440, kfrq220_660, 110, 1

  outs          a440, afiltered


This opcode is used for the following instruments: