Splitting parts of mono track into stereo

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Kris0x00
Posts: 2
Joined: Thu May 13, 2021 9:29 am
Operating System: Windows 10

Splitting parts of mono track into stereo

Post by Kris0x00 » Thu May 13, 2021 9:42 am

Hi,

I'm searching the way to split a mono track into stereo but in the specific way that is: first 100ms of the input track is moved into right channel, next 100ms is moved into left channel, next 100ms into right and so on... Is it possible to do this using Nyquist. Any help will be appreciated.

steve
Site Admin
Posts: 81306
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Splitting parts of mono track into stereo

Post by steve » Thu May 13, 2021 10:55 am

Kris0x00 wrote:
Thu May 13, 2021 9:42 am
Is it possible to do this using Nyquist.
Most of the task can be done in Nyquist, but you will need to make your initial mono track into a 2 channel track first.
To do that:
1. Select the track
2. "Edit menu > Duplicate (Ctrl + D)"
3. From the context menu of the upper track, join the two tracks to create a 2 channel stereo track (see: https://manual.audacityteam.org/man/spl ... racks.html)

I'll write back soon with some tips re. the necessary Nyquist code.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Trebor
Posts: 9890
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Splitting parts of mono track into stereo

Post by Trebor » Thu May 13, 2021 12:11 pm

Kris0x00 wrote:
Thu May 13, 2021 9:42 am
I'm searching the way to split a mono track into stereo but in the specific way that is: first 100ms of the input track is moved into right channel, next 100ms is moved into left channel, next 100ms into right and so on...
Does that mean the sound is only ever playing in one ear ? ...
before-after alternating every 100ms.flac
(112.66 KiB) Downloaded 5 times
Then Robert J.H's chopper code will do, (it has a cross-fade option too).

steve
Site Admin
Posts: 81306
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Splitting parts of mono track into stereo

Post by steve » Thu May 13, 2021 12:45 pm

steve wrote:
Thu May 13, 2021 10:55 am
I'll write back soon with some tips re. the necessary Nyquist code.
Try this in the Nyquist Prompt effect:

Code: Select all

(setf pulse 100) ;pulse length in ms

(setf pulse (/ 500.0 pulse))
(if (arrayp *track*)
    (let ((env (osc-pulse pulse 0))
          mod
          inv-mod)
      (setf mod (mult 0.5 (sum 1 env)))
      (setf inv-mod (mult -0.5 (sum -1 env)))
      (vector
        (mult mod (aref *track* 0))
        (mult inv-mod (aref *track* 1))))
    "Error\nStereo track required.")

9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Kris0x00
Posts: 2
Joined: Thu May 13, 2021 9:29 am
Operating System: Windows 10

Re: Splitting parts of mono track into stereo

Post by Kris0x00 » Fri May 14, 2021 8:43 am

Thank you steve and Trebor. Finally I decided to use the Stereo Butterfly (LFO) plug-in becouse I was able to soften channel changes.

Post Reply