Sinusoidal reference tracking is required in important practical applications. Resonant controllers are suitable for that task. However, stable implementation of these controllers in a digital processor is difficult to achieve. On the other hand, quasi-resonant controllers are easier to implement, but they do not guarantee asymptotic reference tracking. This brief proposes a new resonant controller based on Generalized Predictive Control (GPC) and Internal Model Principle (IMP). The first-order and second-order difference operators are applied to create a GPC system whose structure embeds the <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">${Z}$ </tex-math></inline-formula> -transform of the sinusoidal reference. Thus, according to IMP, the proposed controller, named Resonant Generalized Predictive Control (RGPC), asymptotically tracks sinusoidal references. Besides, the proposed RGPC has the advantages of GPC, such as fast response and easy implementation in digital processors. Experimental tests prove that the proposed RGPC has better performance than other controllers for sinusoidal reference tracking.