Maybe you could substitute a gear for the sprocket and turn it by a second gear on the cranks? It would still be pretty close in proximity though not direct. And you could even tailor the bike's gearing by changing the tooth count of the gears. Without an idler gear you'd have to pedal backward, though...