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

hrtfer (Csound opcode)

.. to be finished ...
hrtfer promises to binaurally output a mono signal. However, I found the resulting signal doesn't sound good enough.
Anyway, here's a sco and orc file that I have tested it with. They are more or less the same as the ones in the manual, altough I don't use the file beats.wav.
Note II: The file HRTFcompact must be downloaded from kevindumpscore.com.
aLeft, aRight   hrtfer  asig, kAz, kElev, "HRTFcompact"
sr = 44100
kr = 44100
ksmps = 1
nchnls = 2

instr 1
  kaz          linseg 0, p3, -360  ; move the sound in circle
  kel          linseg -40, p3, 45  ; around the listener, changing elevation as its turning

  asrc         oscili 10000, 440, 1
  aleft,aright hrtfer asrc, kaz, kel, "HRTFcompact"

  outs         aleft*100, aright*100
endin        
f1 0 2048 10 1

i 1 0 2
e