Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Pro Tools Software > Tips & Tricks
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 02-22-2017, 08:00 AM
joachim's Avatar
joachim joachim is offline
Member
 
Join Date: Dec 2010
Location: Germany, München
Posts: 1,687
Default Re: Shortcut for spacing audio clips equally

Quantizing to grid will make them all start at a certain grid, but not necessarily end on one.
If the clips are not of equal length, then there will always be a different amount of time between the end of a clip and the start of the next clip. And due to this difference,a tempo operation will not create an equal amount of spacing. It will enlarge the difference.
Clips with equal lengths is a "special case" , I was thinking of a "general" solution.

The bottom track is the original, the clips were pasted to the track above, and then a tempo operation from 120bpm to 60 bpm.

__________________
PT 11.3.2 HD , RME Fireface 800 , Genelec 5.1 ,
Win7 64bit Professional , i7 3930 Hexcore , 48GB Ram , SSD System + SSD PT Session/Audio + SSD Video (all Samsung 840 Evo) + Spinner 1TB Data , 2x Radeon HD 5450 \\ SD 633 Femto MKH8060 MKH8070 MKH30/MKH40 DPA4060

Last edited by joachim; 02-22-2017 at 08:09 AM. Reason: grammar
Reply With Quote
  #12  
Old 02-22-2017, 10:28 AM
Carl Kolchak Carl Kolchak is offline
Member
 
Join Date: Dec 2004
Location: U.K.
Posts: 2,201
Default Re: Shortcut for spacing audio clips equally

Quote:
Originally Posted by joachim View Post

Quantizing to grid will make them all start at a certain grid, but not necessarily end on one.


Of course !

Sorry, major brain fart there.

The thing is, I'm certain I solved this problem years ago, and that this was at least part of the procedure - I'm sure it will show up in an old post of mine, just wracking my brain to try and remember (a big problem I've noticed since posting from a phone, rather than whilst in front of the DAW - too much background noise to focus my mind ).



Sent from my iPhone using Tapatalk
Reply With Quote
  #13  
Old 02-22-2017, 11:23 AM
joachim's Avatar
joachim joachim is offline
Member
 
Join Date: Dec 2010
Location: Germany, München
Posts: 1,687
Default Re: Shortcut for spacing audio clips equally

Your idea with the tempo operation is totally valid and smart, when dealing with clips of equal length.
__________________
PT 11.3.2 HD , RME Fireface 800 , Genelec 5.1 ,
Win7 64bit Professional , i7 3930 Hexcore , 48GB Ram , SSD System + SSD PT Session/Audio + SSD Video (all Samsung 840 Evo) + Spinner 1TB Data , 2x Radeon HD 5450 \\ SD 633 Femto MKH8060 MKH8070 MKH30/MKH40 DPA4060
Reply With Quote
  #14  
Old 03-04-2017, 05:26 AM
Unskirmisher Unskirmisher is offline
Member
 
Join Date: Aug 2016
Location: Stockholm
Posts: 5
Default Re: Shortcut for spacing audio clips equally

Thanks for this, Joachim. Unfortuantely, I'm running PT on mac.
Reply With Quote
  #15  
Old 03-04-2017, 05:31 AM
Unskirmisher Unskirmisher is offline
Member
 
Join Date: Aug 2016
Location: Stockholm
Posts: 5
Default Re: Shortcut for spacing audio clips equally

Sorry for being late here. To clarify I want the same amount of space (time) in between clips (of different lengths, by the way) - from the end of clip A to beginning of clip B, and so on.
Reply With Quote
  #16  
Old 03-04-2017, 05:59 AM
joachim's Avatar
joachim joachim is offline
Member
 
Join Date: Dec 2010
Location: Germany, München
Posts: 1,687
Default Re: Shortcut for spacing audio clips equally

https://www.keyboardmaestro.com/main/

For Mac. Highly recommended by Mac users.
Scripting opens unbelievable possibilities.
And the code for this spacing action is simple.
__________________
PT 11.3.2 HD , RME Fireface 800 , Genelec 5.1 ,
Win7 64bit Professional , i7 3930 Hexcore , 48GB Ram , SSD System + SSD PT Session/Audio + SSD Video (all Samsung 840 Evo) + Spinner 1TB Data , 2x Radeon HD 5450 \\ SD 633 Femto MKH8060 MKH8070 MKH30/MKH40 DPA4060
Reply With Quote
  #17  
Old 03-04-2017, 09:04 AM
zoff zoff is offline
Member
 
Join Date: Feb 2004
Posts: 222
Default Re: Shortcut for spacing audio clips equally

Quote:
Originally Posted by joachim View Post
https://www.keyboardmaestro.com/main/

For Mac. Highly recommended by Mac users.
Scripting opens unbelievable possibilities.
And the code for this spacing action is simple.
Copy and paste the following into Script Editor, save it as an application:

activate application "Pro Tools"
tell application "System Events"
tell process "Pro Tools"
key code 48 using {shift down} -- forward tab Key
delay 0.5
key code 9 using {command down} -- v key
delay 0.5
key code 48
delay 0.5
key code 48
end tell
end tell

Select the the amount of space you want in an empty section of a track, Copy, Select Shuffle mode, go to the end of the first clip and run the application.
__________________
macOS Sonoma 14.2 Intel Core i9 MacBook Pro(16,1) 2019, 32 GB RAM Pro Tools Studio 2023.12, RME Babyface Pro
Reply With Quote
  #18  
Old 03-04-2017, 10:11 AM
joachim's Avatar
joachim joachim is offline
Member
 
Join Date: Dec 2010
Location: Germany, München
Posts: 1,687
Default Re: Shortcut for spacing audio clips equally

That looks like Stig's idea in post #2, but in code. Thanks for sharing.
How is your script triggered again for subsequent clips ? I am not familiar with Apple Script.
__________________
PT 11.3.2 HD , RME Fireface 800 , Genelec 5.1 ,
Win7 64bit Professional , i7 3930 Hexcore , 48GB Ram , SSD System + SSD PT Session/Audio + SSD Video (all Samsung 840 Evo) + Spinner 1TB Data , 2x Radeon HD 5450 \\ SD 633 Femto MKH8060 MKH8070 MKH30/MKH40 DPA4060
Reply With Quote
  #19  
Old 03-04-2017, 10:33 AM
zoff zoff is offline
Member
 
Join Date: Feb 2004
Posts: 222
Default Re: Shortcut for spacing audio clips equally

Quote:
Originally Posted by joachim View Post
That looks like Stig's idea in post #2, but in code. Thanks for sharing.
How is your script triggered again for subsequent clips ? I am not familiar with Apple Script.
There are several application launchers available, but you can just keep double clicking the app in the Finder until your done.

This was just meant to be a simple example of what can be done with just macOS built in apps.
__________________
macOS Sonoma 14.2 Intel Core i9 MacBook Pro(16,1) 2019, 32 GB RAM Pro Tools Studio 2023.12, RME Babyface Pro

Last edited by zoff; 03-04-2017 at 10:56 AM.
Reply With Quote
  #20  
Old 03-04-2017, 10:54 AM
joachim's Avatar
joachim joachim is offline
Member
 
Join Date: Dec 2010
Location: Germany, München
Posts: 1,687
Default Re: Shortcut for spacing audio clips equally

Another example, again with Autohotkey for Win, with a GUI, Video : https://www.dropbox.com/s/yl8m0xsosd...Start.mp4?dl=0

Code :
Gui, New,,Spacing Clip End to Clip Start
Gui,+AlwaysOnTop
Gui, Add, Text,, First Clip must be selected and placed manually before this action.
Gui, Add, Text,, Minutes ?
Gui, Add, Edit, Number vMinutes gLimit
Gui, Add, Text,, Seconds ?
Gui, Add, Edit, Number vSeconds gLimit
Gui, Add, Text,, Milliseconds ?
Gui, Add, Edit, Number vMilliseconds gLimit
Gui, Add, Text,, How many Clips after the already placed one to be placed ?
Gui, Add, Edit, Number vConsecutive gLimit
Gui, Add, Button, Default gSpaceNextClipNow, Space next single Clip now
Gui, Add, Button, Default gSpaceDefinedNumberOfClipsNow, Space defined Number of Clips now
Gui, show
WinMenuSelectItem, Pro Tools, , View, Main Counter, Minutes:Se&conds
return

SpaceNextClipNow:
{
Gui, Submit, NoHide
WinActivate, ahk_class DigiAppWndClass
send {Up}
send {NumpadDiv}
send {NumpadDiv}
send {NumpadDiv}
sleep 10
send %Minutes%
sleep 10
send {Right}
send %Seconds%
sleep 10
send {Right}
send %Milliseconds%
sleep 10
send {Enter}
send {Up}
send {Shift}+{NumpadDiv}
send {Tab}
send {Shift}+{Tab}
send h
send {Shift}+{NumpadDiv}
Gui, show
return
}

SpaceDefinedNumberOfClipsNow:
Loop, %Consecutive%
gosub , SpaceNextClipNow
return

Limit:
Gui, Submit, NoHide
if Minutes > 9
ControlSend, Edit1, {Ctrl Down}a{Ctrl Up}{Del}
if Seconds > 59
ControlSend, Edit2, {Ctrl Down}a{Ctrl Up}{Del}
if Milliseconds > 999
ControlSend, Edit3, {Ctrl Down}a{Ctrl Up}{Del}
if Consecutive < 1 then Consecutive = 1
return




And actually, I hope that some scripting gurus might chime in to correct/optimize/give hints/ ... , because I am a scripting dummb nut.
(Shan, I would appreciate your opinion ... )
__________________
PT 11.3.2 HD , RME Fireface 800 , Genelec 5.1 ,
Win7 64bit Professional , i7 3930 Hexcore , 48GB Ram , SSD System + SSD PT Session/Audio + SSD Video (all Samsung 840 Evo) + Spinner 1TB Data , 2x Radeon HD 5450 \\ SD 633 Femto MKH8060 MKH8070 MKH30/MKH40 DPA4060

Last edited by joachim; 03-16-2017 at 05:32 AM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Click & drag shortcut for swapping clips? take77 Pro Tools 12 5 02-14-2016 07:28 AM
is there a shortcut for seperate and mute clips at the same time evilstudios Pro Tools 10 0 11-24-2013 06:22 PM
Clear selected clips shortcut not working hd 10.3.2 dgoodi22 macOS 7 02-08-2013 04:49 PM
Ungroup Clips Shortcut Not Working? ChazC Windows 6 01-29-2012 03:32 PM
Spacing between regions - Shortcut?? Rhythmproject 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 3 12-02-2010 03:57 PM


All times are GMT -7. The time now is 10:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com