Convert 96khz interleaved mono audio to 48khz stereo with nyquist

As a proof of concept (this won’t work with long tracks, but it works with the sample that you posted)

  1. Import the track normally (it imports as mono, 96000 Hz)
  2. Change the track sample rate to 48000 (from the track’s drop-down menu https://manual.audacityteam.org/man/audio_track_dropdown_menu.html)
  3. Duplicate the track (Select the track, then “Ctrl + D”)
  4. Join the two tracks to create a stereo track (https://manual.audacityteam.org/man/splitting_and_joining_stereo_tracks.html)

The above steps need to be done manually, then we will use Nyquist to do the number crunching.

  1. Apply this code to the track using the Nyquist Prompt (https://manual.audacityteam.org/man/nyquist_prompt.html)
;version 4
(setf ln (truncate len))
(setf input (snd-fetch-array  (aref *track* 0) ln ln))
(setf ln  (/ ln 2))
(setf left (make-array ln))
(setf right (make-array ln))
(dotimes (i ln)
  (setf (aref left i) (aref input (* 2 i)))
  (setf (aref right i) (aref input (1+ (* 2 i)))))

(vector
  (snd-from-array 0 48000 left)
  (snd-from-array 0 48000 right))

Notice that the result is identical to Import RAW with a 44 sample offset.