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/aud ... _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/spl ... racks.html)
The above steps need to be done manually, then we will use Nyquist to do the number crunching.
5. Apply this code to the track using the Nyquist Prompt (https://manual.audacityteam.org/man/nyquist_prompt.html)
Code: Select all
;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))