I recently upgraded to Max 6.1. Since I have done this I am having a problem with the abstraction spat.hrtf.selection.maxpat which is used in the help example for spat.virtualspeakers. When I select one of the coll files or hrtf files in the umenu I get a message that they cannot be found. I have placed the folder containing SPAT in my Max search path, but am still having this issue. Any help would be appreciated.
Thanks.
Hi Scott,
Could you please indicate what is the exact error message ?
Also what is your current sampling rate ? (most the hrtf files are only available for 44.1 kHz)
What happens if you send e.g. the following messages to spat.virtualspeakers~ :
[ load IRC_1004_itd_12order_biquads_44100.hrtf ]
[ load “/Applications/Max 6.1/packages/ircam-spat/media/hrtf/binaural/biquads/IRC_1004_itd_12order_biquads_44100.hrtf” ]
[ load “/Users/shrek/somewhere/IRC_1004_itd_12order_biquads_44100.hrtf” ]
(the first message searches for the file within your Max search path; with the other messages, you should specify the full path to the file somewhere on your disk).
Thank you for your reply. When using the abstraction spat.hrtf.selection.maxpat I get the following message:
Couldnt locate file ; 2-b1018-48000.coll
Using your first option-- giving the message load {name of coll file or hrtf file} I am successful in loading. It seems that the abstraction may be mis-configured in some way.
OK. I Think there is no problem with the abstraction.
However, your Max/MSP seems to be running at 48000 Hz sampling rate.
As previously mentioned, most of the HRTF files are only available at 44100 Hz.
For instance, the Spat packages contains a ‘2b-1018-44100.coll’ file but no ‘2b-1018-48000.coll’.
So it makes sense that the file cannot be found.
If you really need to run at 48 kHz, you can have a look at the folder ‘ircam-spat/media/hrtf/transpan/binaural’ which contains a few files for this sampling rate.
(The naming convention used for these files is however slightly different, so you cannot use the spat.hrtf.selection abstraction to load them. You would have to build your own abstraction for that. I can help if needed).
Thank you! You correctly identified my problem. I had checked that the audio files that I was opening were 44.1, but I had not checked to see if Max was running in 44.1. Max was set at sampling rate of 4800! When re-set to 44.1 the .coll files load seamlessly. Thanks for the help.
Scott
I’m working at 96KHz, what solution would the use of hrtfs abstraction?
If I load directly binaural files to spat.spat ~ (@panning binaural @decoding null) using the “load” message (eg.:”load filename.hrtf” ) that’s work, even if at 96KHz, but if I load directly transaural files to spat.spat ~(@panningbinaural @transauraldecoding) does not work.
Thanks
Best
Raúl
Doubt-hrtfs.maxpat (29.9 KB)
Hi Raul,
Several things:
-
at the moment, hrtf files are mostly provided for 44.1 or 48 kHz. Not for 96 kHz.
I recommend to use the proper filters corresponding to the used sampling rate,
although loading filters with a different sampling rate does not throw an error. -
we will soon work on 96 kHz filters and they will be provided in future releases.
-
spat supports different transaural algorithms. Each algorithm requires a specific set of filters.
The files currently shipped in /ircam-spat/media/hrtf/transaural/biquads correspond to the so-called “shuffler symmetric” implementation.
The files currently shipped in /ircam-spat/media/hrtf/transaural/fir correspond to the so-called “feedforward asymmetric” implementation.
I know, this is not really logical, but we’ll definitely clarify this in further releases. -
Attached is a patch that demonstrates how to load the different kind of filters.
Hope this helps,
T.
----------begin_max5_patcher----------
1539.3oc6asraiaCEcsyWgfQWzBj3HRpGVcUJ5pBzUcaSgAkEULmJS4gjJIS
GL8au7gThRhkMG+PVwM.AVQzxlWdN795DludwnwokORDi89Yu+zaznudwnQl
gzCLp99QiWhebdAVXdrwyKWtjvjiuz9dRxiRy3+dINyKmWtzixmiWdkXEVd8
RRFEe8BtL+ZIGyD3JNt35bJ+V1ONujyIhUkrLOYombAwSTd0bbQAIy61w4DR
VdI+ALOyCK9hZNkb57aG6QWtpfns.rjVx9oaY2xZrkBJiLurhYLnv5AyKYRF
dIwXj+BmhKZd7b9co5Q8m3WORZUZZg4IA0inVDyWPY2MiSlKsvzzfjIgW5AC
hUeNOXXj9RBZhu2eU+gnYlIqL8SWgfMyFqZIkUPjh1e81ITPyLSJrYRU3RyB
r0Dm3GnmpPHRewu9kmlU8BMGO+EludLA8eriAeZcprkxJYiw3qG7aWbg9kK6
ucAozOWgyDacmfXQUddAg6Mn1EDf7sze6KctK.b31ED.Bsa+RFt6BdlPEMLZ
JkYncubZgjvWKYAOVjE.BrzDzbAX8fBgqmsfeOrk+lYK.HvDe.BhN8z0RhPf
ui7F5529iecFv2GNiJylAfk7LBeVs64rf.0aMQ67Ndqzi09jeYE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hAaJvQ392J3fWlz1GYwMqRZxowi+
H1NaaYKFjM0VyNQtzSaXzPsoVi0Z.uW8e4hYEqG+kzukKqwrlCmn2yK5LhPp
HSc.31OTxKdnEzrLBqc0pYTg1Hy5NZky1yzgk8nOwFpcsNXOf9ydFR7UrK1y
z9ydBbvddEHdTsGnK3Cp+rGzvBe.INXOw8m43R3GP+4dABGVviKdWfdb2CZf
YOt3sC5Ou8XGRdA76sjWwCK1xExRW5Wes4wkLE8m0D4B5zalS3vhqRNllisn
d7pUpdlD0emFKQ081mJ45aitzbKkYu0zIxXUSVzlmOwLBlqZ6Qp5znhaah5w
nfwWnmmucw+wUc4xo
-----------end_max5_patcher-----------
Thank you so much for your answer T.
Everything is very clear.
We wait for future versions.
I know it’s not ideal to work with a different sampling frequency that the IR files (do not know how the system reacts, resampling…), but using that x2 sample rate of hrtf file, the artifacts are minimized (44.1 hrtf file— Sampling rate 88.2 kHz or 48.0 hrtf file— Sampling rate Khz 96). I have to test the possible occurrence of aliasing.
Thank you for your patch, and for your explanation about transaural setting filters.
Best
Raúl