Fwd: [Csnd] hrtfmove2 questions
Date | 2013-10-15 23:17 |
From | Victor Lazzarini |
Subject | Fwd: [Csnd] hrtfmove2 questions |
Here are some answers Begin forwarded message:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-10-15 23:48 |
From | Dave Seidel |
Subject | Re: [Csnd] hrtfmove2 questions |
Thanks Victor (and Brian!), very helpful. On Tue, Oct 15, 2013 at 6:17 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-10-16 04:12 |
From | Dave Seidel |
Subject | Re: [Csnd] hrtfmove2 questions |
Here's the UDO I've been working on that uses hrtfmove2 to make an audio signal sound as if it's rotating around the listener's head (requires headphones). Comments and suggestions welcome. It takes four arguments: audio signal, speed, direction (default: 0), phase (default: 0). The "speed" arg is cycles per second. The "drection" arg should be 0 for clockwise, anything else for counter-clockwise. The "phase" arg is the starting phase of the triangle wave that modulates the azimuth, so a float between 9 and 1 (inclusive). This is set up for a 96 kHz sample rate; for 44.1 or 48, you need to changes the names of the data files (which must be located in SADIR or the current directory). opcode bi_spinner, aa, aioo asig, ipfrq, idir, iphs xin ; direction (positive == clockwise, negative == counter-clockwise) iamp = (idir == 0 ? 360 : -360)
; triangle table (0-1) itri ftgenonce 0, 0, 16384, 7, 0, 8192, 1, 8192, 0 ; modulating triangle wave kAz poscil3 iamp, ipfrq, itri, iphs
aLeft, aRight hrtfmove2 asig, kAz, 0, \ "hrtf-96000-left.dat", "hrtf-96000-right.dat", \ 4, 9.0, sr
xout aLeft, aRight endop On Tue, Oct 15, 2013 at 6:48 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
|