A general algorithm to build real-radiation antenna functions for higher-order calculations | Synapse