Time Shift macro?

Questions, discussion and recipes for scripting and batch processing in Audacity.
See also the "Scripting" section of the Audacity manual.
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
luke086
Posts: 4
Joined: Tue Jul 07, 2020 8:45 am
Operating System: Windows 10

Time Shift macro?

Post by luke086 » Tue Jul 07, 2020 8:54 am

Is it possible to time shift a certain track a very specific amount using macros?
I need to perfectly line up audio tracks so I can invert them and cancel out specific audio in my recording. This is the only way I could record audio from certain applications separately with very low latency.

I have been able to do everything besides the time shift. The only way I could see to do it was with a drag macro, which I have no idea how to use.

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Time Shift macro?

Post by kozikowski » Tue Jul 07, 2020 9:37 am

invert them and cancel out specific audio
Can you do it manually? "I need to cancel out two tracks" is usually a Phrase of Doom. You need to make changes down at bit level and have two nearly identical, not just close, performances. That's not easy, and you have to do it intentionally, not accidentally.

For example, you can't use the word "MP3" anywhere in your description.

We should wait for someone who's a better editor than I am.

Koz

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

Re: Time Shift macro?

Post by steve » Tue Jul 07, 2020 10:08 am

luke086 wrote:
Tue Jul 07, 2020 8:54 am
Is it possible to time shift a certain track a very specific amount using macros?
Yes it is, but you have to program the exact amount that you want to move it, so it's probably easier to just shift it manually.

The easiest way to move a track to the right is to insert silence at the start, which will push the rest of the track to the right (see: viewtopic.php?p=399588#p399588)

The easiest way to move a track to the left is to delete the required amount from the left end of the track.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Time Shift macro?

Post by kozikowski » Tue Jul 07, 2020 10:31 am

I need to perfectly line up audio tracks
Post back how it goes.

Koz

luke086
Posts: 4
Joined: Tue Jul 07, 2020 8:45 am
Operating System: Windows 10

Re: Time Shift macro?

Post by luke086 » Tue Jul 07, 2020 10:32 pm

kozikowski wrote:
Tue Jul 07, 2020 9:37 am
Can you do it manually?
I can do it manually. The audio is exactly the same.
I am recording my gameplay with OBS, but that requires me to record all audio on one track because of latency. I record separate audio from certain apps with about 100ms of added latency.
Basically, track 1 has all the sources and the rest of the tracks have audio from my music player and discord. I want the gameplay audio to be clean, so I want to remove discord and music in post.

luke086
Posts: 4
Joined: Tue Jul 07, 2020 8:45 am
Operating System: Windows 10

Re: Time Shift macro?

Post by luke086 » Tue Jul 07, 2020 11:28 pm

steve wrote:
Tue Jul 07, 2020 10:08 am
The easiest way to move a track to the right is to insert silence at the start, which will push the rest of the track to the right
Thanks! That works wen I do it manually, but the macro doesn't allow me to set a preset. Every time I use the macro command it just silences all tracks completely.

I have it at the point where the macro does all the setup and I just need to click the menus and manually set the silence time

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Time Shift macro?

Post by kozikowski » Wed Jul 08, 2020 2:34 am

I can do it manually. The audio is exactly the same.
Thanks. Yes. This question is normally posted by someone who has two downloaded MP3s and wants to split instruments or vocals through cancellation.

Short answer: No.

Koz

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

Re: Time Shift macro?

Post by steve » Wed Jul 08, 2020 8:52 am

luke086 wrote:
Tue Jul 07, 2020 11:28 pm
Every time I use the macro command it just silences all tracks completely.
Sounds like there's something wrong with your Macro.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

luke086
Posts: 4
Joined: Tue Jul 07, 2020 8:45 am
Operating System: Windows 10

Re: Time Shift macro?

Post by luke086 » Thu Jul 09, 2020 7:51 pm

steve wrote:
Wed Jul 08, 2020 8:52 am
Sounds like there's something wrong with your Macro.
When I automate everything up to the silence and insert it manually it works perfectly. The problem is that the macro doesn't allow me to change the preset, so it always uses default values.

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

Re: Time Shift macro?

Post by steve » Thu Jul 09, 2020 8:09 pm

If you want a helpful reply, you will need to be a lot more detailed in your descriptions. We can't see your computer, or what you are doing, so we only have a vague idea of what you are doing.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply