Skip to content

Audio Convert.applescript

antoniondc edited this page Oct 29, 2025 · 1 revision

description: "For each selected Audio cue: retarget to existing converted file in [workspace]/../audio or convert if missing. Preserves cue times." author: Antonio Nunes version: "2.4" source: testedqlab: "4.7" testedmacos: 10.15.7 separateprocess: "true" aliases:

  • wav
  • flac
  • mp3

Overview

Converte audio cue para outros formatos. wav, mp3, flac, aif entre outros, Utilizando a engine "afconvert" or "ffmpeg" O "afconvert" já vem pré instalado em todos os mac, o "ffmpeg" abre suporte para outros formatos (mp3 e flac)


Usage

How to Run

  1. Script Library:
    Add this script to `~/Library/Script Libraries/QLab/Cue/Inspector/Audio Level

  2. Script Cue:
    Paste the script contents into a Script Cue in your QLab project.

--set TARGET_FORMAT to wav
--set BIT_DEPTH to 24
--set SAMPLE_RATE to 48000
--set PREFERRED_TOOL to "afconvert"

set utils to getScriptFromLibrary("Applescript Utilities.scpt")
utils's initGlobals()
run getScriptFromLibrary("Cue:Inspector:Audio Level:Audio Convert.scpt")

on getScriptFromLibrary(relativeSubPath)
	return load script file ((path to library folder from user domain as text) & "Script Libraries:Qlab:" & relativeSubPath)
end getScriptFromLibrary

Parameters / User Variables

Variable Type Default Description
TARGET_FORMAT string wav set audio format
BIT_DEPTH number 24 set bit depth
SAMPLE_RATE number 48000 set sample rate
PREFERRED_TOOL string "afconvert" escolhe a engine de conversão, "afconvert" or "ffmpeg"

What It Does

  • List out the steps the script takes or the operations performed.

  • Point out any QLab features used (e.g., "Modifies all selected cues", "Creates a fade cue with specified parameters", etc).

  • Mention any limitations or known issues.


Related Scripts


Credits

#todo

  • creditar o autor original do script
  • add suporte de como instalar o ffmpeg no mac e o afconvert
  • addcionar formato como flac, mp3 ou equvalente.
  • add esse script para funcionar idependente ou depois da execuçao do Level Normalize.applescript com os arquivos que não sao compatíveis.
  • Passar metadados, capa, artista...
  • usar o samplerate da track + bit

Menu

=================== < Back To Repo > ===================

Clone this wiki locally