A hi-pass filter whose transfer functions are the complements of the tonek opcode.
Syntax
kres=atonek(ksig,khp[,iskip])
kresatonekksig,khp[,iskip]
Initialization
iskip (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0.
Performance
kres -- the output signal at control-rate.
ksig -- the input signal at control-rate.
khp -- the response curve's half-power point, in Hertz. Half power is defined as peak power / root 2.
atonek is a filter whose transfer functions is the complement of tonek. atonek is thus a form of high-pass filter whose transfer functions represent the “filtered out” aspects of their complements. However, power scaling is not normalized in atonek but remains the true complement of the corresponding unit.
Examples
Here is an example of the atonek opcode. It uses the file atonek-modern.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac -d ;;;RT audio out;-iadc ;;;uncomment -iadc if RT audio input is needed too; For Non-realtime ouput leave only the line below:; -o atonek.wav -W ;;; for file output any platform</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1sine@global:i=ftgen(0,0,2^10,10,1)instr1sig:k=randomh(400,1800,150)aout=poscil(0.2,1000+sig,sine)outs(aout,aout)endininstr2sig:k=randomh(400,1800,150)hp:k=line(1,p3,400);vary high-passsig=atonek(sig,hp)aout=poscil(0.2,1000+sig,sine)outs(aout,aout)endin</CsInstruments><CsScore>i105i25.55e</CsScore></CsoundSynthesizer>
Here is an example of the atonek opcode. It uses the file atonek.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac ;;;RT audio out;-iadc ;;;uncomment -iadc if RT audio input is needed too; For Non-realtime ouput leave only the line below:; -o atonek.wav -W ;;; for file output any platform</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1gisinftgen0,0,2^10,10,1instr1ksigrandomh400,1800,150aoutposcil.2,1000+ksig,gisinoutsaout,aoutendininstr2ksigrandomh400,1800,150khpline1,p3,400;vary high-passksigatonekksig,khpaoutposcil.2,1000+ksig,gisinoutsaout,aoutendin</CsInstruments><CsScore>i105i25.55e</CsScore></CsoundSynthesizer>