uncopenweb / 3DSound

Create spatialized sounds for playback from javascript using jsonic
13 stars 7 forks source link

Can you give an example of different azimuth? #1

Open nicola opened 10 years ago

nicola commented 10 years ago

I can't understand how you would position the sound up or done. Can you give a very simple example.

For what I understood, the issue is in here:

left = lfilter(hrtf[:,0], 1.0, mono_sound)
right = lfilter(hrtf[:,1], 1.0, mono_sound)

Thanks

Harvie commented 7 years ago

if you want positioning up and down, you probably mean "elevation" not "azimuth". azimuth is left/right.

you see this line?

hrtf = readHRTF(os.path.join('compact', 'elev0', 'H0e%03da.dat' % az))

you can try to change elev0 to something else. like elev10 or elev-10. see compact directory for list of available elevations.