Text this: Arbitrary linear transformations for photons in the frequency synthetic dimension