change file path (or retarget file)

222 views
Skip to first unread message

Andrew Keister

unread,
Oct 23, 2017, 11:27:55 AM10/23/17
to QLab
Hello All,

I'm looking for a script for V3 that will allow me to change the file path of an audio cue (retarget the cue to a different audio file). The links to a method in previous discussions of this topic appear broken though I found Rich Walsh's V2 script on the wiki, but can't make it work in V3. Anyone have a method to accomplish this?

Many thanks,

Andrew

Rich Walsh

unread,
Oct 23, 2017, 12:16:23 PM10/23/17
to ql...@googlegroups.com
To be honest, I don’t have time to update the wiki these days: I found it quite clunky to use last time I tried. More or less everything useful that I ever put up there is in my template – search the archive for it. The only thing that stops the version on the wiki from working is the loss of the two hooks "loop start time” & "loop end time”: take those lines out and it should still work.

This is the current version:

Change target

Change selected Audio Cue's target (keeping start/end times); it will also keep the cue's name, if it has been changed from the default:

(* ###FIXME### This script needs testing in the wild to see how it works with slices in practice: as of 4.1.3
QLab appears to retain slice points within the duration of a new File Target but resets the start & end times (this script maintains start & end times) *)

tell front workspace
try -- This protects against no selection (can't get last item of (selected as list))
set selectedCue to last item of (selected as list)
if q type of selectedCue is "Audio" then
set currentStart to start time of selectedCue
set currentEnd to end time of selectedCue
set currentFileTarget to file target of selectedCue
if currentFileTarget is not missing value then
tell application "System Events"
set whereToLook to (path of container of (currentFileTarget as alias)) as alias
end tell
set newFileTarget to choose file of type "public.audio" with prompt "Please select the new File Target:" default location whereToLook
else
set newFileTarget to choose file of type "public.audio" with prompt "Please select the new File Target:"
end if
set file target of selectedCue to newFileTarget
set start time of selectedCue to currentStart
set end time of selectedCue to currentEnd
end if
end try
end tell

Rich

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: https://twitter.com/Figure53
User Group Code of Conduct: https://figure53.com/help/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/26adf517-080e-4538-8ed3-40ad1d8b4801%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maik Waschfeld

unread,
Oct 23, 2017, 2:14:54 PM10/23/17
to ql...@googlegroups.com
I whish, someone could bring this to Ableton LIVE!
;-)


With kindest regards…
…Maik Waschfeld

(sent from my MBAir11)
also at <mailto:Maik.Wa...@Staatstheater-Stuttgart.de>


Rich Walsh

unread,
Oct 23, 2017, 3:20:57 PM10/23/17
to ql...@googlegroups.com
I’ve always found swapping files around in Live pretty straightforward. Have you read section 5.5.5 of the manual, eg:

Replace a file — Dragging a file from the browser and dropping it on an entry in the list makes the Live Set reference the new file instead of the old one. For samples used in audio clips, Live retains the clip properties; the Warp Markers are kept if the new sample has the same or a greater length as the old sample and discarded otherwise. Please note that re-placing a sample will change all clips in your set that reference this sample.

I think for an individual clip you drop it onto the waveform to keep the clip properties.

Rich

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: https://twitter.com/Figure53
User Group Code of Conduct: https://figure53.com/help/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.

Maik Waschfeld

unread,
Oct 23, 2017, 4:42:15 PM10/23/17
to ql...@googlegroups.com
Hi Rich,

I think for an individual clip you drop it onto the waveform to keep the clip properties.

Thanks so much for the hint!
I just dropped the new files to the clips in the list, not to the waveform within the clip’s properties.

Everyday brings new knowledge, even for LIVE from a QLab-list.

Andrew Keister

unread,
Oct 23, 2017, 6:42:31 PM10/23/17
to ql...@googlegroups.com, Andrew Keister
Thanks Rich, that’s very helpful!

Best,

Andrew

You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/s9W81s0GI_g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/AD6B4F00-9B04-4A9C-9F0F-98F7D056EB47%40mac.com.
Reply all
Reply to author
Forward
0 new messages