If I were to make something like this I would probably encode the track as a palindromic number and the position as a volume level.
if the volume increases, then the disc is playing forwards, if the volume decreases, then the disc is playing backwards.
if there is no sound input then the needle is lifted, if there is sound input then play back whatever is associated with the specific track number
track one prepared for recording at 78 rpm should look something like this
00 00 00 00 01 00 00 00 00 00 01 00 00 00 00
00 00 00 00 02 00 00 00 00 00 02 00 00 00 00
00 00 00 00 03 00 00 00 00 00 03 00 00 00 00
..
00 00 00 00 FF 00 00 00 00 00 FF 00 00 00 00
record to disc at 78 rpm
played back at the 45 rpm it will give you
00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 00 01 01 00 00 00 00 00
..
00 00 00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 FF FF 00 00 00 00 00
played back at a slower speed 33 rpm will give you
00 00 00 00 00 00 00 00 00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 01 01 01 00 00 00 00 00 00 00
..
00 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00
and track two prepared for recording at 78 rpm should look something like this
00 00 00 01 00 00 00 00 00 00 00 01 00 00 00
00 00 00 02 00 00 00 00 00 00 00 02 00 00 00
00 00 00 03 00 00 00 00 00 00 00 03 00 00 00
..
00 00 00 FF 00 00 00 00 00 00 00 FF 00 00 00
record to disc at 78 rpm
played back at the 45 rpm it will give you
00 00 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 00 00 01 01 00 00 00
..
00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 FF FF 00 00 00
played back at a slower speed 33 rpm will give you
00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 01 00 00 00 00 00
..
00 00 00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF 00 00 00 00 00