saf.decoder~
The saf.decoder~ object in Pure Data implements a frequency-dependent Ambisonic decoder for loudspeakers and headphones. It supports up to 128 user-defined loudspeaker directions or presets for common 2D and 3D layouts. For headphones, it performs virtual loudspeaker decoding using interpolated HRTFs, with support for importing custom HRIRs via the SOFA standard. The decoder allows different settings for low and high frequencies with a user-defined crossover, offering integrated methods such as AllRAD, EPAD, and Mode-Matching, along with max-rE spatial weighting. It also provides options for adjusting decoding order and normalization (EP/AP) to maintain consistent loudness, which is useful for both practical and creative applications.