Csound Csound-dev Csound-tekno Search About

[Cs-dev] Fwd. from cSounds.com: hrtfer working?

Date2008-02-15 04:02
From"Anthony Kozar"
Subject[Cs-dev] Fwd. from cSounds.com: hrtfer working?
Here is a question from the Forums on cSounds.com.  I originally thought
the 32767 amplitude was the problem, but after trying it (on MacOS 9), I
got a very low amplitude on the output with very short periodic regions of
"jaggedness" in the signal.  Otherwise, a pure sine wave ...

Anyone know if this is working properly?

-----------------------------

Submitted by ncg on Wed, 02/13/2008 - 13:10.   Csound5 

Is it just me or hrtfer with HRTFCompact doesn't work properly?

This code (attached) produces ugly clicking and discontinuities in the sound.





  sr     = 44100
  kr     = 44100
  ksmps  = 1
  nchnls = 2
  instr 1
    kenv linseg 0, 5, 360

    a1 oscil 32767, 500, 1
    al, ar hrtfer a1,kenv, kenv, "HRTFcompact"

    outs al, ar
  endin



  f 1 0 16384 10 1
  i 1 0 5




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-15 09:42
Frombriancarty
SubjectRe: [Cs-dev] Fwd. from cSounds.com: hrtfer working?
Anthony,

This is expected behaviour from hrtfer.
Re. low amplitude: a large scaling factor is needed (see manual page).
Re. discontinuities/clicks: this is intrinsic to hrtfer. There is
essentially no included algorithm for hrtf interpolation. When the source
moves to a nearer measured hrtf, the filter just jumps, hence the clicks.
The example csd also appears to request an elvation of 0-360 degrees. 90
degress is the max elevation.

I have written some opcodes to address these issues for 5.08:
hrtfmove,hrtfstat and hrtfmove2. I will be discussing these opcodes at lac
for anyone coming along!

Brian Carty
NUI Maynooth
-- 
View this message in context: http://www.nabble.com/Fwd.-from-cSounds.com%3A--hrtfer-working--tp15494563p15496306.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-18 22:20
FromAnthony Kozar
SubjectRe: [Cs-dev] Fwd. from cSounds.com: hrtfer working?
Thanks very much, Brian.  I posted this reply to the forum.  (And looking
forward to trying out the new opcodes).

Anthony

briancarty wrote on 2/15/08 4:42 AM:

> This is expected behaviour from hrtfer.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net