This disclosure is directed to techniques for decoding two or more signals that vary sinusoidally with respect to a parameter value to produce a decoded signal that varies linearly with respect to the parameter value. The techniques may include receiving a first signal and a second signal, the first signal varying with respect to a parameter value according to a first sinusoidal function having a period and a first phase, the second signal varying with respect to the parameter value according to a second sinusoidal function having the period and a second phase different from the first phase. The techniques may further include performing one or more arithmetic operations using the first signal, the second signal, and an offset value to generate a third signal that varies linearly with respect to the parameter value for at least one-half of the period of the first signal and the second signal.