Skip to content

Level Normalize.applescript

antoniondc edited this page Oct 29, 2025 · 1 revision

description: Loudness normalization author: Micpool version: "2024.3" source: https://qlab.app/cookbook/level-playing-field/ testedqlab: "4.7" testedmacos: 10.15.7 separateprocess: "true" aliases:

  • Loudness

Overview

Calcula e normaliza audios a partir de um loudness configurado, por padrão está -24 LUFS

[!HELP] Atenção Para esse script funcionar é preciso da instalação da biblioteca r128x-cli no caminho: /Usr/local/bin Alem disso é preciso entrar em system preference -> Segurança e Privacidade para autorizar o r128x-cli funcionar. É um projeto parado, sem desenvolvimento ativo. a versão que utilizada na repo é: v 0.3


Usage

How to Run

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

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

set LEVEL_MATRIX_LIST to {{1, 0}, {2, 0}}
--set REFERENCE_LEVEL to -24 -- Default LUFS reference

set utils to getScriptFromLibrary("Applescript Utilities.scpt")
utils's initGlobals()
run getScriptFromLibrary("Cue:Inspector:Audio Level:Level Normalize:Level Normalize.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
theReferenceLevel number -24 Level to set in dB
LEVEL_MATRIX_LIST array {{1, 0}, {2, 0}} where to set level
AUTO_CONVERT_AUDIO bolean false convert audio to valid format

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

Original script criado por @micpool source:: https://qlab.app/cookbook/level-playing-field/

#todo

  • utilizar o loader corretamente chamando set levelUtil to getScriptFromLibrary("Cue:Inspector:Audio Level:Set Level.scpt")
  • criar um pequeno script para instalar a biblioteca r128x-cli automaticamente? Download and compile script.applescript
  • error number -10004 no momento de analizar o arquivo pela lib r128x-cli

Menu

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

Clone this wiki locally