l1vmet3s.av

setupCTRL

Els ajustos d'entrada del projecte en un node: resolució, FPS i l'única entrada d'àudio, amb medidor.Los ajustes de entrada del proyecto en un nodo: resolución, FPS y la única entrada de audio, con medidor.The project's starting settings in one node: resolution, FPS and the single audio input, with a meter.

v1.0.020 controlscontrolescontrols36 operadorsoperadoresoperators370 línies de codilíneas de códigolines of code13 KB
setupCTRL
  • sense entradessin entradasno inputs
setupCTRL
  • out1CHOPaudio
  • out2CHOPlevel
  • out3CHOPproject

UsarUsarUse

Prova aixòPrueba estoTry this

Canvia Ratio a 9:16 amb diversos generadors al projecte: tots s'adapten alhora.Cambia Ratio a 9:16 con varios generadores en el proyecto: todos se adaptan a la vez.Change Ratio to 9:16 with several generators in the project: they all adapt at once.

Aquesta part és en castellà.This part is in Spanish.

  1. Arrastrar tox/CTRL/setupCTRL.tox al proyecto.
  2. Resolution: elegir Ratio y Size (o Free con Width / Height). Swap W/H para girar. Con licencia no comercial se recorta a 1280 px; Status lo avisa.
  3. Project: FPS.
  4. Audio: Audio On, elegir Device por su nombre, Gain / Mute / Channels. Cablear out1 a la in1 de audioCTRL, scopeGEN, mediaGEN…; out2 (rms, peak, clip) para LEDs o medidores; out3 para datos del proyecto.
  5. Si un dispositivo recién conectado no aparece, abrir el desplegable de Device (TD actualiza su lista por su cuenta); Reopen Device reabre el dispositivo elegido.

Va bé ambVa bien conGoes well with

ParàmetresParámetrosParameters

El panell real del mòdul amb els seus valors per defecte. Prem una fila per saber què fa; les notes són en castellà.El panel real del módulo con sus valores por defecto. Pulsa una fila para saber qué hace.The module's real panel with its default values. Press a row to see what it does; notes are in Spanish.

EntendreEntenderUnderstand

Escriu la resolució al lloc d'on la llegeixen tots els altres mòduls, i només quan toques un paràmetre: carregar-lo no canvia res.Escribe la resolución en el sitio de donde la leen todos los demás módulos, y solo cuando tocas un parámetro: cargarlo no cambia nada.It writes the resolution where every other module reads it, and only when you touch a parameter: loading it changes nothing.

Aquesta part és en castellà.This part is in Spanish.

Con más detalle

La resolución se escribe donde ya la leen los demás módulos, solo al tocar un parámetro: cargarlo no cambia el proyecto, solo ajusta sus menús a él. Con licencia no comercial recorta a 1280 px sin deformar la imagen. El audio solo abre el dispositivo con Audio On, y la ganancia se interpola muestra a muestra, así que Gain y Mute no hacen clic. Tres salidas: audio, nivel (rms, pico, clip) y datos del proyecto. ~0,3 ms de CPU con el audio encendido.

La idea

Empezar un proyecto en un minuto: elegir formato y dispositivo y cablear el audio a audioCTRL, scopeGEN o mediaGEN. La ventana de salida (pantalla externa, Spout, NDI) será otro módulo.

Per dinsPor dentroInside

Aquesta part és en castellà.This part is in Spanish.

El recorrido de la señal esquema en texto
Resolución y FPS
  parexec (Parameter Execute: Ratio Size Width Height Swap Fps …) → util.apply / util.swap
  exec (Execute: onStart / onCreate → util.refresh; onFrameStart → util.watch)
  util.apply: calcula (ancho, alto) de los pars → recorta al límite de la licencia → escribe w / h en el Container al
              que apunta /perform (winop) y project.cookRate → sync
  const_project → null_project → out3 (project: width, height, aspect, fps; valores REALES del proyecto)

Audio
  devices (Table: nombre interno de TD, etiqueta) ← util.sync_devices (lista de audioIn.device)
  audioIn (Audio Device In; device = util.dev_name; active = Audio) ─┬→ chsw (Switch: Channels) 0 stereo
                                                                      ├→ ch_mono (Math avg) ──────────────→ 1 mono
                                                                      ├→ ch_left (Select chan1) ──────────→ 2 left
                                                                      └→ ch_right (Select chan2) ─────────→ 3 right
  chsw → audio_gain (Math, interppars: Gain dB / Mute sin clics) → null_audio → out1 (audio)
  Nivel (sobre null_audio):
    lv_rms (Analyze rmspower) → lv_rms_m (avg canales) → lv_rms_lag → lv_rms_n ─────────────┐
    lv_sq (cuadrado) → lv_max (Analyze max) → lv_peak (max canales, raíz) → lv_peak_lag → lv_peak_n ─┼→ lv_all
    lv_peak → lv_clip_m (0,99–1 → 0–1) → lv_clip_lim → lv_clip_lag → lv_clip_n ──────────────┘   → null_level → out2

Tile
  tile_dat (texto) → tile_text (izquierda) → tile_meter (GLSL: barra −60…0 dB, RMS, pico, LED de clip) → null_tile
Operador a operador configuración clave
OperadorConfiguración clave
utilTexto Python (build1 + fase 2 de build2): resolución, límite de licencia, detección de menús, audio_line, dispositivos
parexecParameter Execute sobre .. con Ratio Size Width Height Swap Fps Audio Refresh Gain Mute Channels (valueChange y onPulse); callbacks → util.on_par
execExecute DAT: onStart / onCreate → util.refresh (lee el proyecto, no lo toca); onFrameStart → util.watch (~17 µs)
const_projectConstant CHOP width height aspect fps; los escribe util.sync solo si cambian
devicesTable DAT (nombre interno de TD, etiqueta); la rellena util.sync_devices cuando cambia la lista de audioIn.par.device
audioInAudio Device In: device = mod('util').dev_name(parent(), op('devices').text), active = parent().par.Audio.eval(), format = stereo, errormissing = Off
ch_mono / ch_left / ch_rightMath chanop = avg · Select chan1 · Select chan2
chswSwitch CHOP, index = ['stereo', 'mono', 'left', 'right'].index(parent().par.Channels.eval())
audio_gainMath, interppars On, gain = 0 si Mute, si no 10 ** (Gain / 20): el par se interpola por muestra dentro del bloque
lv_rms … lv_rms_nAnalyze rmspower → Math chanop = avg → Lag (0,02 / 0,2 s) → Rename rms
lv_sq … lv_peak_nMath preop = square → Analyze maximum → Math chanop = max, postop = root → Lag (0 / 0,3 s) → Rename peak
lv_clip_m … lv_clip_nMath rango 0,99–1 → 0–1 → Limit clamp 0–1 → Lag (0 / 1 s) → Rename clip (1 = ha llegado a 0 dBFS, decae ~1 s)
out1 / out2 / out3Out CHOP con label audio / level / project
tile_datText DAT de 4 líneas (resolución, ratio · FPS, estado, audio), reescrito solo si cambia
tile_textText TOP 400 × 200, fuente 30 px, alineado a la izquierda, flúor sobre negro, dat = tile_dat
tile_meterGLSL TOP: uLevel = (rms, peak, clip, audio On) por expresión (util.lv, 0 si el CHOP no tiene canales); solo cocina con el tile visible
COMPopviewer = ./null_tile, showCustomOnly = True

TallerTallerWorkshop

El codiEl códigoThe code

exec python · 18 línieslíneaslines
def onStart():
	op('util').module.refresh(parent())
	return

def onCreate():
	op('util').module.refresh(parent())
	return

def onExit():
	return

def onFrameStart(frame):
	op('util').module.watch(parent())
	return

def onFrameEnd(frame):
	return
util python · 294 línieslíneaslines
# setupCTRL util — fase 1: resolución + FPS
from math import gcd

RATIOS = (('16_9', 16, 9), ('9_16', 9, 16), ('1_1', 1, 1), ('4_5', 4, 5), ('4_3', 4, 3), ('21_9', 21, 9))
SIZES = (480, 720, 1080, 1440, 2160)
FPS_MENU = (24, 25, 30, 50, 60)
LIMIT = {}      # límite de la licencia (px por el lado largo), medido una vez
STATE = {}      # comp.path -> (resolución, fps) vista por última vez
TILE_LINES = [] # enganche: funciones f(comp) -> línea de texto extra del tile (las añade la fase 2)

def even(x):
	return max(2, int(round(x / 2.0)) * 2)

def target_op():
	win = op('/perform')
	c = win.par.winop.eval() if win is not None else None
	if c is not None and hasattr(c.par, 'w') and hasattr(c.par, 'h'):
		return c
	return None

def project_size():
	c = target_op()
	if c is None:
		return 1280, 720
	return int(c.par.w.eval()), int(c.par.h.eval())

def max_side(comp):
	if 'v' not in LIMIT:
		v = 4096
		t = None
		try:
			t = comp.create(constantTOP, '_probe')
			t.par.outputresolution = 'custom'
			t.par.resolutionw = 4096
			t.par.resolutionh = 64
			t.cook(force=True)
			v = int(t.width)
		except Exception as e:
			print('setupCTRL: no pude medir el límite de resolución:', e)
		finally:
			if t is not None:
				t.destroy()
		LIMIT['v'] = v
	return LIMIT['v']

def size_for(rw, rh, s):
	if rw >= rh:
		return even(s * rw / float(rh)), s
	return s, even(s * rh / float(rw))

def compute(comp):
	# (ancho, alto, recortado) que corresponden a los pars
	ratio = comp.par.Ratio.eval()
	if ratio == 'free':
		w, h = int(comp.par.Width.eval()), int(comp.par.Height.eval())
	else:
		rw, rh = [(a, b) for k, a, b in RATIOS if k == ratio][0]
		w, h = size_for(rw, rh, int(comp.par.Size.eval()))
	w, h = max(2, w), max(2, h)
	lim = max_side(comp)
	m = max(w, h)
	clamped = m > lim
	if clamped:
		k = lim / float(m)
		w, h = min(even(w * k), lim), min(even(h * k), lim)
	return w, h, clamped

def ratio_text(w, h):
	if h <= 0:
		return '-'
	for key, rw, rh in RATIOS:
		if abs(w / float(h) - rw / float(rh)) < 0.01:
			return '%d:%d' % (rw, rh)
	g = gcd(w, h)
	a, b = w // g, h // g
	if max(a, b) <= 32:
		return '%d:%d' % (a, b)
	return '%.2f:1' % (w / float(h))

def _set(p, v):
	if p.eval() != v:
		p.val = v

def _wh_pars(comp, w, h):
	# fuera de Free, Width / Height muestran la resolución calculada (para que Free parta de ella)
	if comp.par.Ratio.eval() != 'free':
		_set(comp.par.Width, w)
		_set(comp.par.Height, h)

def status_of(comp):
	w, h = project_size()
	tw, th, clamped = compute(comp)
	if (w, h) != (tw, th):
		return 'outside', 'Project is %d x %d (changed outside)' % (w, h), 'SET OUTSIDE'
	if clamped:
		lim = max_side(comp)
		return 'limit', 'Limited to %d px (license)' % lim, 'MAX %d PX' % lim
	return 'ok', 'OK', 'OK'

def sync(comp):
	# refleja el estado REAL del proyecto: out3, Status y tile (solo escribe lo que cambia)
	w, h = project_size()
	fps = float(project.cookRate)
	cc = comp.op('const_project')
	for i, v in enumerate((w, h, w / float(h), fps)):
		_set(getattr(cc.par, 'const%dvalue' % i), v)
	kind, status, short = status_of(comp)
	st = comp.par.Status
	if st.eval() != status:
		st.readOnly = False
		st.val = status
		st.readOnly = True
	txt = '%d x %d' % (w, h)
	txt = txt.replace(' x ', ' ' + chr(215) + ' ')
	txt += chr(10) + '%s %s %g FPS' % (ratio_text(w, h), chr(183), fps) + chr(10) + short
	for f in TILE_LINES:
		try:
			txt += chr(10) + f(comp)
		except Exception as e:
			print('setupCTRL: línea del tile:', e)
	d = comp.op('tile_dat')
	if d.text != txt:
		d.text = txt
	STATE[comp.path] = ((w, h), fps)

def apply(comp):
	c = target_op()
	if c is None:
		print('setupCTRL: /perform no apunta a un Container con Width / Height')
		return
	w, h, clamped = compute(comp)
	if (int(c.par.w.eval()), int(c.par.h.eval())) != (w, h):
		if c.par.w.mode == ParMode.CONSTANT and c.par.h.mode == ParMode.CONSTANT:
			c.par.w = w
			c.par.h = h
		else:
			print('setupCTRL: Width / Height de %s están en modo expresión: no se escriben' % c.path)
	fps = int(comp.par.Fps.eval())
	if abs(float(project.cookRate) - fps) > 1e-6:
		project.cookRate = fps
	_wh_pars(comp, w, h)
	sync(comp)

def swap(comp):
	r = comp.par.Ratio.eval()
	pair = {'16_9': '9_16', '9_16': '16_9'}
	if r in pair:
		comp.par.Ratio = pair[r]
	else:
		w, h, c = compute(comp)
		comp.par.Width = h
		comp.par.Height = w
		comp.par.Ratio = 'free'
	apply(comp)

def detect(comp):
	# ajusta los menús al proyecto real SOLO si los pars no reproducen su resolución
	w, h = project_size()
	tw, th, c = compute(comp)
	if (tw, th) != (w, h):
		found = None
		for key, rw, rh in RATIOS:
			for s in SIZES:
				if size_for(rw, rh, s) == (w, h):
					found = (key, s)
					break
			if found:
				break
		if found:
			comp.par.Ratio = found[0]
			comp.par.Size = str(found[1])
		else:
			comp.par.Width = w
			comp.par.Height = h
			comp.par.Ratio = 'free'
	_wh_pars(comp, w, h)
	fps = int(round(float(project.cookRate)))
	if fps in FPS_MENU and abs(float(project.cookRate) - fps) < 1e-6 and int(comp.par.Fps.eval()) != fps:
		comp.par.Fps = str(fps)

def refresh(comp):
	detect(comp)
	sync(comp)

def watch(comp):
	key = (project_size(), float(project.cookRate))
	if STATE.get(comp.path) != key:
		sync(comp)

def on_par(comp, par):
	n = par.name
	if n == 'Swap':
		swap(comp)
	elif n in ('Ratio', 'Size', 'Width', 'Height', 'Fps'):
		apply(comp)

# ---- fase 2 ----

def audio_line(comp):
	if not comp.par.Audio.eval():
		return 'AUDIO OFF'
	if comp.par.Mute.eval():
		return 'AUDIO MUTED'
	g = ('%+.1f' % comp.par.Gain.eval()).rstrip('0').rstrip('.')
	return 'AUDIO ' + g + ' DB'

def lv(c, name):
	# valor de un canal de nivel; 0 si el CHOP no tiene canales (Audio Off)
	if c.numChans == 0:
		return 0.0
	ch = c.chan(name)
	return float(ch.eval()) if ch is not None else 0.0

DEV_KEY = {}

def dev_name(comp, table_text):
	# nombre interno de TouchDesigner (con el GUID de Windows) del dispositivo elegido en Device, que guarda su
	# ETIQUETA; 'default' si no está en la lista de TD. table_text crea la dependencia con la tabla.
	val = comp.par.Device.eval()
	if val == 'default':
		return 'default'
	d = comp.op('devices')
	for r in range(d.numRows):
		if d[r, 1].val == val:
			return d[r, 0].val
	return 'default'

def sync_devices(comp):
	# Device muestra y guarda la etiqueta legible; la tabla devices (nombre interno, etiqueta) sale de la lista de TD,
	# se vuelve a mirar cada frame (unos µs) y el menú sigue a la lista cuando TD la actualiza.
	ad = comp.op('audioIn')
	d = comp.op('devices')
	if ad is None or d is None:
		return
	names, labels = list(ad.par.device.menuNames), list(ad.par.device.menuLabels)
	key = tuple(names)
	if DEV_KEY.get(comp.path) == key:
		return
	DEV_KEY[comp.path] = key
	d.clear()
	for n, l in zip(names, labels):
		d.appendRow([n, l])
	cur = comp.par.Device
	if list(cur.menuLabels) != labels:
		cur.menuNames = list(labels)
		cur.menuLabels = list(labels)
	v = cur.eval()
	if v not in labels and v in names:      # guardado con el nombre interno (versión anterior): pasa a la etiqueta
		cur.val = labels[names.index(v)]

def refresh_audio(comp):
	# Reopen Device: vuelve a leer la lista de dispositivos y reabre el Audio Device In (Active Off, y On 3 frames
	# después). El par active es una expresión: se cambia a constante y se restaura en reopen.
	ad = comp.op('audioIn')
	if ad is None:
		return
	DEV_KEY.pop(comp.path, None)
	sync_devices(comp)
	if comp.par.Audio.eval():
		ap = ad.par.active
		ap.mode = ParMode.CONSTANT
		ap.val = False
		run("op('" + comp.path + "').op('util').module.reopen('" + comp.path + "')", delayFrames=3)

def reopen(path):
	comp = op(path)
	if comp is None or comp.op('audioIn') is None:
		return
	ap = comp.op('audioIn').par.active
	ap.expr = "parent().par.Audio.eval()"
	ap.mode = ParMode.EXPRESSION

TILE_LINES[:] = [audio_line]
AUDIO_PARS = ('Audio', 'Gain', 'Mute', 'Channels')
_on_par_b1 = on_par
_refresh_b1 = refresh
_watch_b1 = watch

def refresh(comp):
	sync_devices(comp)
	_refresh_b1(comp)

def watch(comp):
	sync_devices(comp)
	_watch_b1(comp)

def on_par(comp, par):
	if par.name == 'Refresh':
		refresh_audio(comp)
	elif par.name in AUDIO_PARS:
		sync(comp)
	else:
		_on_par_b1(comp, par)
parexec python · 20 línieslíneaslines
def onValueChange(par, prev):
	op('util').module.on_par(parent(), par)
	return

def onPulse(par):
	op('util').module.on_par(parent(), par)
	return

def onExpressionChange(par, val, prev):
	return

def onExportChange(par, val, prev):
	return

def onEnableChange(par, val, prev):
	return

def onModeChange(par, val, prev):
	return
tile_dat text · 4 línieslíneaslines
1280 × 720
16:9 · 60 FPS
OK
AUDIO OFF
tile_meter_shader glsl · 34 línieslíneaslines
// setupCTRL: medidor del tile. Barra de -60 a 0 dB (RMS relleno, pico en línea) y LED de clip, a la derecha del texto.
uniform vec4 uLevel;    // rms, peak, clip (0..1), audio on (0 / 1)
out vec4 fragColor;

float db01(float v) {
	return clamp((20.0 * log(max(v, 1e-5)) / log(10.0) + 60.0) / 60.0, 0.0, 1.0);
}
float box(vec2 p, vec2 lo, vec2 hi) {
	return step(lo.x, p.x) * step(p.x, hi.x) * step(lo.y, p.y) * step(p.y, hi.y);
}
void main() {
	vec4 base = texture(sTD2DInputs[0], vUV.st);
	vec2 res = uTD2DInfos[0].res.zw;
	vec2 p = floor(vUV.st * res) + 0.5;
	vec3 flu = vec3(0.8627, 1.0, 0.1804);
	float on = uLevel.w;
	float dim = mix(0.35, 1.0, on);
	vec2 b0 = vec2(res.x - 64.0, 14.0), b1 = vec2(res.x - 24.0, 164.0);
	vec2 l0 = vec2(res.x - 64.0, 174.0), l1 = vec2(res.x - 24.0, 190.0);
	float line = box(p, b0, b1) - box(p, b0 + 1.0, b1 - 1.0);
	float inner = box(p, b0 + 1.0, b1 - 1.0);
	float h = b1.y - b0.y - 2.0;
	float yr = b0.y + 1.0 + h * db01(uLevel.x);
	float yp = b0.y + 1.0 + h * db01(uLevel.y);
	float fill = inner * step(p.y, yr) * on;
	float pk = inner * step(abs(p.y - yp), 1.0) * on;
	float led = box(p, l0 + 1.0, l1 - 1.0) * step(0.5, uLevel.z) * on;
	float ledLine = box(p, l0, l1) - box(p, l0 + 1.0, l1 - 1.0);
	vec3 c = base.rgb;
	c = mix(c, flu * dim, clamp(line + ledLine, 0.0, 1.0));
	c = mix(c, flu, max(max(fill, pk), led));
	fragColor = TDOutputSwizzle(vec4(c, 1.0));
}

Aquesta part és en castellà.This part is in Spanish.

Decisiones de diseño
  • Un solo módulo. Resolución, FPS y audio son "las entradas del proyecto": un nodo y un tile. El audio solo abre el dispositivo con Audio On.
  • La resolución se escribe donde ya la leen los módulos (/perform → winop → w / h, única ruta absoluta del módulo, deliberada, como el size() de mediaGEN): los módulos en modo Project la siguen al momento.
  • Solo se escribe al tocar un par. Cargar o crear el módulo no toca el proyecto: lee su resolución y, si los pars no la reproducen, ajusta los menús a ella (primero Ratio / Size exactos, si no, Free). apply es idempotente: compara con lo que ya hay y no escribe si coincide.
  • Size = lado corto (como 720p / 1080p). Con lado largo, 16:9 a 1080 daba 1080 × 608.
  • Límite de la licencia medido, no supuesto: app.licenseType no existe; un TOP temporal de 4096 × 64 sale a 1280 × 20, así que el ancho es el límite (en una licencia comercial saldría más). Se recorta conservando el ratio (1920 × 1080 → 1280 × 720; 4:5 a 1080 → 1024 × 1280). Status lo avisa.
  • out3 y Status dicen la realidad, no los menús: si alguien cambia el tamaño desde fuera, "changed outside".
  • Audio Off por defecto: el export carga sin ocupar ningún dispositivo.
  • Gain y Mute sin clics con interppars del Math CHOP: interpola el par muestra a muestra dentro del bloque (sin Lag ni Script CHOP). Medido: el salto máximo entre muestras es el de la propia señal (0,0313) en Mute, al quitarlo y en saltos de ganancia.
  • Device guarda la etiqueta legible, no el nombre interno de TD (que lleva el GUID de Windows y un índice). Una tabla devices traduce; los valores guardados con el nombre interno (versión anterior) se pasan a etiqueta; un dispositivo que no está en la lista de TD vuelve a default.
  • Reopen Device, no "Refresh": reabre el Audio Device In y relee la lista; no puede forzar a TD a reenumerar los dispositivos de Windows (ver §7).
  • Sin menú Driver / ASIO (se probó, con Inputs, y el autor lo quitó): con el driver estándar ve la mesa y todo lo que usa.
  • Channels = Stereo por defecto: pasa la señal tal cual. Right con un dispositivo mono sale vacío.
  • Ventana de salida, Spout / NDI, tempo manual y color de fondo quedan fuera: la salida irá en un módulo Out; el tempo ya lo escriben beatsyncCTRL y pulsesyncCTRL.
Lo que falló y cómo se arregló
SíntomaCausaSolución
Aviso "tile_text no tiene par borderspace"En esta build el margen del Text TOP es borderspace1 / borderspace2 (#108)Poner los dos
app.licenseType no existeTD no expone la licenciaMedir el límite con un TOP temporal (destruido después)
21:9 a 720 recortado daba 1280 × 550Al recortar se redondeaba a entero y se subía a par (+1)even(w · k): al par más cercano (1280 × 548)
En la prueba, Mono Mix daba 0,5 y Left salía como chan2Al sustituir la fuente de prueba, el Switch CHOP perdió su entrada 1 y las demás se desplazaron (#290)Desconectar todas las entradas y conectar en orden; comprobar inputs
La mesa (DN32-LIVE) no aparecía en DeviceTD no había releído su lista de dispositivos de entrada tras conectarla; Windows sí la veía (Get-PnpDevice -Class AudioEndpoint)Ninguna acción por Python la fuerza (Audio Device Out, recorrer drivers, resetAudioOnDeviceChange); se actualizó sola más tarde y el menú la sigue. Mi conclusión de "reinicia TD / usa ASIO" era errónea
Device mostraba `{0.0.1.00000000}.{GUID}VoiceMeeter_Output_…3`StrMenu con menuSource al par del Audio Device In: el valor es el nombre internoMenú de etiquetas + tabla devices + dev_name (con migración del valor viejo)
Tras loadTox y cambiar pars en la misma llamada, el tile seguía en AUDIO OFFEl Parameter Execute no avisa de cambios anteriores a su primer cook (#315)En la prueba, cargar y cambiar en llamadas distintas; en uso real no ocurre
Right con un dispositivo mono: out1 vacíoch_right selecciona chan2Limitación conocida: usar Stereo, Left o Mono Mix
Dispositivo guardado que ya no existe → suena el default sin avisoerrormissing OffVuelve a default a propósito; un Status de audio queda propuesto
Cuánto cuesta

Medido en TouchDesigner 2025.33230, 60 fps, 90 frames, audio On con el tile visible:

PiezaCoste
Audio Offnada cocina; watch ~17 µs por frame (lista de dispositivos + resolución + FPS)
audioIn0,14 ms de CPU
Cadena de audio y nivel (Switch, Math, Analyze, Lag…)~0,05 ms de CPU en total (audio_gain 0,009 ms)
tile_meter0,09 ms de CPU + 0,04 ms de GPU (solo con el tile visible)
tile_textun cook (0,12 ms) solo cuando cambia el texto
Total con audio On~0,3 ms de CPU, 0,04 ms de GPU