binaural panning with HRTFs

Lorenzo Dimitri's icon

Hello everybody,
I am trying to create a Max4Live plugin implementing binaural panning based on HRTFs. I found the binpan~ by Jakob Handersen that works very good in Max but it seems not to work anymore when imported into Ableton/Max4Live nor when connected to the plugin~ input object nor when connected to a sfplay~ object as in the example.
Sampling frequency is the same in Ableton and for the HRTFs. The folders containing CIPIC HRTF. subjects are the same in Max 8/ packages/
I do not get it.
Anybody tips?
Thanks a lot