Time-frequency encoded single-photon generation and broadband single-photon storage with a tunable subradiant state