"Just came to my mind" Single gpio pin

Hi friends. yesterday I made a few relay connections with RPI Gpio pins. at that time the following idea came to my mind. for radio control in auto music players (with cable connection) it fulfills a large number of commands with a single data cable. the working principle is to transmit the electrical signals coming from a single power line to the system with a single data line with the frequency created by resistors of different values connected to the buttons. In such a system, a large number of g-code macros can be run with a single gpio pin… but is such a control macro and system feasible. (while sharing this idea, I may have used incorrect or incomplete terms while explaining the event. excuse me for this…)