Commit inicial: G Radio Player

Sistema de automatización de radio en Rust (GTK4 + GStreamer): reproductor
principal con crossfade y ducking, scheduler de comerciales, refill de
playlist, y herramientas auxiliares (pautaje, parrilla, botonera, visor,
buscador, playlist, grabador, reportes). Incluye sistema de skins y modos
de Players (paneles de reproducción configurables).
This commit is contained in:
2026-08-23 00:57:40 -05:00
commit 03084e2d5a
231 changed files with 31055 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# Rust build artifacts
/target/
/target-bookworm/
**/*.rs.bk
Cargo.lock.bak
# Debian packaging staging
gradio-player_*_amd64/
gradio-player_*_arm64/
gradio-player_*_arm64_bookworm/
# Runtime logs
nohup.out
*.log
# Instaladores generados (releases publicados en el servidor de descargas)
*.deb
GR-player-RC1-*.zip
sha256sum.txt
# Parches sueltos de edición (no son fuente)
*.css_patch
# Editor / OS junk
.DS_Store
*.swp
*.swo
*~
.vscode/
.idea/
.claude/
# Notas internas que no deben subirse
chat_*.txt
arm64-fix.txt
streaming.txt
v*-packaging.txt
+278
View File
@@ -0,0 +1,278 @@
# Changelog — G Radio Player
Todas las versiones publicadas de `gradio-player` (paquete .deb).
---
## [0.4.17] — 2026-08-22
### Nuevo
- **Sistema de skins**: la apariencia de la app (iconos de botones, colores CSS y fondo de ventana) ahora se puede reemplazar sin recompilar, mediante carpetas en `~/.gradio/data/skins/<nombre>/` (`iconos/<archivo>.png`, `fondo.png`/`.jpg`, `estilo.css`). Aplica a las 9 herramientas (`radio-player`, `gr-pautaje`, `gr-parrilla`, `gr-botonera`, `gr-visor`, `gr-playlist`, `gr-record`, `gr-buscador`, `gr-reportes`). El skin activo se elige desde Configuración → Skin (apariencia) en `radio-player` y se aplica la próxima vez que se abre cada ventana. Se incluye `assets/skins/ejemplo/LEEME.txt` documentando el formato para crear skins propios.
- **Players (paneles de reproducción visibles)**: nuevo ajuste en Configuración con tres modos — 3 (Deck A + Deck B + barra de comercial, el layout de siempre), 2 (un solo panel de deck fusionado + barra de comercial) y 1 (un solo panel que muestra el deck activo o el comercial en curso, lo que esté sonando). El panel fusionado sigue siempre al tema que acaba de arrancar: durante un crossfade, el entrante toma el control apenas empieza a sonar y el saliente deja de reflejarse en pantalla aunque siga en fadeout. Requiere reiniciar `radio-player` para aplicarse, igual que el selector de Skin/Idioma.
---
## [0.4.16] — 2026-08-10
### Correcciones
- **El relay podía quedar registrado como "zombi" y el cliente remoto (Android/gr-client) dejaba de poder conectar hasta reiniciar `radio-player` a mano**: en `relay.rs`, el sink WebSocket hacia el relay era un único `Arc<TokioMutex<sink>>` compartido por tres tareas (ping periódico, respuesta a los pings del relay, forwarder TCP→WS local) y ningún `.send()` tenía timeout. Si la conexión TCP se volvía silenciosamente inservible (p.ej. la IP pública del router cambia o una entrada de NAT expira, sin RST/FIN) un solo envío colgado retenía el mutex para siempre; el relay dejaba de recibir Pong y desregistraba el ID a los 5 minutos **sin cerrar el socket**, y `radio-player` nunca se enteraba (la conexión TCP local seguía viéndose `ESTAB`) — quedaba conectado en apariencia pero invisible para el relay hasta un reinicio manual. Ahora toda la escritura pasa por una única tarea con `SEND_TIMEOUT=15s`: si un envío se cuelga, se detecta y se fuerza una reconexión completa (re-registro) automáticamente.
---
## [0.4.15] — 2026-07-25
### Nuevo
- **Protocolo remoto ampliado para gr-client/Android**: `AgregarAlPlaylist` acepta ahora `al_inicio` (bool, default `false` — compatible con clientes anteriores) para insertar un resultado de búsqueda al inicio de la lista además de al final, igual que los botones ▲▼ de `gr_buscador.rs` en el vivo.
- **"Próximas tandas" de comerciales vía remoto**: nuevos mensajes `ObtenerProximasTandas` / `ReproducirTanda`, que reutilizan el mismo escaneo de horario (`scan_upcoming_breaks`) y la misma señal IPC (`cmd_play_tanda`) que usa el panel "Próximas tandas" del vivo — el cliente remoto ahora ve la tanda corriente y las próximas 4, con botón ▶ para adelantar cualquiera.
### Correcciones
- **Búsqueda remota (gr-client/Android) devolvía resultados duplicados, algunos "audio inválido o corrupto"**: `buscar_audio()` en `servidor.rs` recorría **todo** el `$HOME` cuando el cliente no especifica carpeta base (el caso normal desde Android), a diferencia del buscador de escritorio (`gr_buscador.rs`), que ya acotaba la búsqueda a las carpetas reales de la parrilla. Eso hacía que cada tema apareciera repetido una vez por cada backup viejo (`Jazler RS Backups`, `.gradio-2024-*`, etc.) y por cada versión empaquetada de `radio-player` guardada en el home (cada una con su propia copia de `Time/`), y que rutas obsoletas de esos backups/paquetes viejos se mostraran como resultado aunque el archivo ya no existiera ahí. Ahora `buscar_audio()` usa el mismo criterio que el vivo: acota a las carpetas derivadas de la parrilla (`~/.gradio/data/parrilla/*/*.mus`), filtra rutas del índice `locate` que ya no existen en disco, y deduplica por ruta.
---
## [0.4.13] — 2026-07-25
### Correcciones
- **La conexión remota vía Internet (relay) no funcionaba nunca**: `relay.rs` toma la URL del servidor relay de la variable de entorno `GRADIO_RELAY_URL`; ni `run.sh` ni el lanzador `gradio.sh` generado por `package-deb.sh` la definían, así que caía siempre al placeholder `wss://relay.example.com/ws` (inexistente). El módulo reintentaba conectar cada 30s en silencio, sin error visible en la UI, y `radio-player` nunca llegaba a registrarse en `relay.gradio.net` — por lo que ningún cliente remoto (gr-client, Android) podía encontrarlo aunque "relay habilitado" estuviera activo en Configuración. Ahora ambos lanzadores exportan `GRADIO_RELAY_URL=wss://relay.gradio.net/ws` por defecto (override posible seteando la variable antes de lanzar).
---
## [0.4.12] — 2026-07-24
### Correcciones
- **Los tooltips no se mostraban nunca, en ningún botón**: el timer de UI (200ms) llamaba `set_tooltip_text()` en cada ciclo sobre el título del deck — `None` en el deck inactivo, o el mismo path repetido en el deck activo — incluso sin cambio de valor. GTK4 reinicia el temporizador de hover de tooltips para **toda la ventana** cada vez que se llama `set_tooltip_text()` en cualquier widget, sin importar si el valor cambió. Como siempre hay al menos un deck sin pipeline (o uno reproduciendo) en todo momento, la llamada se repetía sin parar y el tooltip nunca alcanzaba a mostrarse en ningún botón de la app. Ahora se recuerda el último valor aplicado y solo se llama `set_tooltip_text()` cuando realmente cambia.
- **Ícono incorrecto en el panel/taskbar bajo sesiones Wayland** (p. ej. XFCE-Wayland en Debian 13/Trixie): GTK4 no soporta fijar el ícono de ventana por píxeles en Wayland (`gdk_toplevel_set_icon_list` es no-op); el escritorio debe resolverlo emparejando el `app_id` de la ventana con un archivo `.desktop` instalado. El `.desktop` se llamaba `gradio-player.desktop`, sin coincidir con el `application_id` real (`com.gradio.radio-player`), lo que impedía ese match y podía dejar un ícono cacheado incorrecto (de otra app) en el panel. Renombrado a `com.gradio.radio-player.desktop` en todos los instaladores (.deb, install.sh, install-arch.sh).
### Mejoras
- **Tooltip con ruta completa también en el nombre del tema en reproducción** (barra superior), igual que ya mostraba el título dentro de cada deck.
- **Botón IA reubicado**: pasa de estar como primer elemento junto al label de volumen (se veía suelto) a quedar agrupado con el resto de íconos de herramientas en el grupo derecho.
---
## [0.4.11] — 2026-07-14
### Correcciones
- **"No fundir" cortaba el final del audio**: el disparo por posición que adelanta el cambio de tema (`(dur - pos) <= crossfade_secs`) se ejecutaba igual aunque la carpeta estuviera marcada como excluida de crossfade. Al llegar a ese punto, el arranque directo apagaba el pipeline saliente de inmediato (`shutdown_pipeline`), cortando los últimos `crossfade_secs` segundos del audio (típicamente locuciones de IA) en vez de dejarlo terminar. Ahora, si `fundido_omitido` determina que el tramo saliente→entrante no debe fundirse, el adelanto por posición se omite y se espera al EOS natural del pipeline (igual que con loop activado).
- **Autoplay no arrancaba aunque hubiera parrilla configurada**: el chequeo de "hay tracks para reproducir al iniciar" se hacía una única vez (con delay cero en Linux) justo tras `window.present()`. Si en ese instante `playlist-refill` (proceso aparte) todavía no había escrito el primer `playlist4`, o el timer de sincronización de la UI (200ms) aún no lo había recargado a `st.playlist`, el autoplay se perdía para siempre — no había reintento. Ahora se sondea cada 200ms hasta 20 segundos (más el margen de 2s existente en Windows para el registro de plugins GST) antes de darse por vencido.
---
## [0.4.9] — 2026-06-27
### Nuevo
- **Asistente de Inteligencia Artificial integrado**: nueva opción "Inteligencia Artificial" en el diálogo de configuración. Al habilitarla (con aceptación explícita de condiciones), aparece el botón "🤖 IA" a la izquierda del indicador de volumen en la barra de herramientas.
- **Botón IA**: lanza `opencode-terminal` con contexto completo de G-Radio (`GRADIO_OPENCODE_DIR=~/.gradio/data/opencode`). Si `opencode-terminal` no está instalado, muestra un aviso con instrucciones. Fallback a `x-terminal-emulator`/`xterm` si `opencode-terminal` no se encuentra.
- **Contexto IA en assets**: carpeta `assets/opencode/` con `AGENTS.md`, agente `agents/g-radio.md` y seis archivos de contexto en `context/` (estructura, programación, comerciales, eventos, eventos-espera, comandos IPC). El instalador los copia a `~/.gradio/data/opencode/`.
- **Campo `ia_habilitada`** en `GradioConfig` (línea 18 de `gradio.config`). Compatibilidad retroactiva: instalaciones anteriores sin línea 18 arrancan con IA deshabilitada.
- **`opencode-terminal` v0.2.0** (binario companion independiente): terminal GTK4 + VTE4 que lanza opencode con contexto G-Radio, verifica actualizaciones en background y ofrece `opencode upgrade` si hay nueva versión disponible.
---
## [0.4.8] — 2026-06-23
### Correcciones
- **`prerm` rompía dpkg al desinstalar/actualizar** (regresión presente en todos los `.deb` de 0.3.x a 0.4.8): el script usaba `pkill -f "radio-player"`, y como `"radio-player"` es subcadena de `"gradio-player"`, el match por línea de comando completa (`-f`) mataba al propio `gradio-player.prerm` y al proceso `dpkg`/`apt`, dejando el gestor de paquetes en estado `half-configured`. Corregido usando `pkill -x` (match exacto por nombre de proceso). Para reparar una máquina ya afectada, ver `REPARAR-DPKG.md`. **Nota:** los `.deb` arm64/arm64_bookworm 0.4.8 deben recompilarse en la RPi para incluir este fix.
- **Hora sin ducking de música**: al reproducir la hora sobre la música, ambas sonaban al mismo nivel. Ahora `play_hora` baja el deck musical activo al 80% del volumen principal (upvol) mientras suena la hora al 100%, y lo restaura al terminar.
- **Eventos/comerciales no cargaban streams de audio**: el scheduler (`comercial-scheduler`) descartaba silenciosamente las URLs de streaming (http/https) porque `is_playable_cached` intentaba leer metadatos del filesystem, que falla para URLs. Ahora se detectan URLs y tokens especiales ("Hora") y se pasan directamente sin validación de archivo local. Aplica a comerciales, eventos y eventos en espera.
- **Eventos emergentes sin reconexión de stream**: los streams en `play_eventos_emergentes` usaban código inline sin lógica de reconexión. Reemplazado por `play_comm_audio_top` que incluye 10 reintentos con 2 segundos entre reconexiones y detección de caída por bus de error.
- **Eventos en espera no se tomaban**: misma causa raíz que el punto anterior — las URLs en archivos `.com` de eventos-espera eran descartadas por el scheduler y nunca llegaban a `eventos-esperalist`.
- **Streams sin duración se colgaban**: si un stream no declaraba duración (campo vacío en el `.com`), `play_comm_audio_top` y `play_comm_audio` esperaban un EOS que nunca llega en streaming en vivo. Ahora se aplica un default de 60 segundos cuando no se declara duración, con warning en el log. La duración declarada (ej. `https://stream.example.com 900`) se respeta sin cambios.
---
## [0.4.6] — 2026-05-22
### Cambios
- **Licencia**: el proyecto se publica bajo **GPL-3.0-or-later** (archivo `LICENSE`).
- **Sanitización para publicación abierta**:
- URL de streaming pre-cargada removida del diálogo "Agregar URL"; ahora se muestra solo un placeholder genérico (`https://stream.example.com/mi-radio`).
- `RELAY_URL` ya no está hardcodeado; se toma de la variable de entorno `GRADIO_RELAY_URL` (default: `wss://relay.example.com/ws`). Para autohospedaje del relay, definir esta variable antes de lanzar.
- `build-rpi3.sh`: la IP del host remoto se toma de la variable `RPI3_HOST` o del segundo argumento (`./build-rpi3.sh --push user@host`).
- Etiquetas i18n y manual: se removieron referencias al dominio propietario.
- Cabeceras `SPDX-License-Identifier: GPL-3.0-or-later` en `src/main.rs` y `src/lib.rs`.
- `Cargo.toml`: campo `license = "GPL-3.0-or-later"` y `readme = "README.md"`.
---
## [0.4.5] — 2026-05-20
### Novedades
- **i18n Fase 2 — cobertura final de la UI**: traducidos los strings visibles de la UI de las ventanas secundarias, los binarios externos y el editor de pautaje al stack es/en/pt:
- `ui/dialogo_url.rs`: diálogo "Agregar URL de Streaming" completo (placeholder URL, historial, duración 0=continuo, botones).
- `ui/parrilla/ventana_parrilla.rs`: editor de parrilla musical (título, fuentes de audio, pisadores por hora, botones Leer/Grabar, frames Horas/Día, tooltips de drag&drop, nombres de los 7 días).
- `ui/visor/ventana_visor.rs`: visor de pautaje (encabezado, columnas Comercial/Tiempo/Días/Inicio/Fin, "HORA ACTUAL"/"HORA SIGUIENTE", "sin programación", sufijos "aleatorio"/"lista").
- `ui/botonera/ventana_botonera.rs`: menú contextual y diálogo de selector de archivos (filtros incluidos).
- `ui/ventana_principal.rs` (GR Pautaje): toolbar completa (Subir/Bajar/Eliminar/Reproducir/URL/Hora/Línea/Limpiar), combos Tipo/Hora/Minuto, columnas Comercial/LMXJVSD/Inicio/Fin/Ruta, días Lunes…Domingo + "Todos", confirmación de eliminar caducados.
- `ui/panel_arbol.rs`: árbol Inicio/Sistema y entrada "Pautar carpeta completa (aleatoria)".
- `gr_buscador.rs`, `gr_reportes.rs`, `gr_playlist.rs`: ventanas auxiliares completas, incluyendo controles de pre-escucha, mensajes de estado, popovers de contexto y selectores de archivo.
- `main.rs` (radio-player): menú contextual de la cola de reproducción (CUE, Insertar Hora, Insertar Streaming, Cargar lista, Regenerar, Eliminar), ventana flotante de CUE (Pausa/Reanudar/Stop), encabezado del panel "🎵 Cola de reproducción", paneles "📢 Comerciales — próximas tandas" / "⏳ Eventos en espera" / "📅 Eventos", diálogos de Respaldo/Recuperación de GR, validación de Token obligatorio para el relay, diálogo "📡 Insertar Streaming" y de Ruta del archivo, confirmación de Interrumpir comerciales y nombre por defecto del preset.
- **Binarios auxiliares heredan el locale del config**: `gr-buscador`, `gr-reportes` y `gr-playlist` ahora leen la línea 17 de `~/.gradio/data/gradio_config` (campo `locale`) al arrancar, igual que el binario principal. Si está vacío caen al autodetect del entorno (LANG/LC_*).
- **Locale accesible desde la lib**: el módulo `i18n` se expone en `lib.rs` (`grpautaje::i18n`) para que los binarios externos puedan llamar `init()`/`tr()` sin duplicar las tablas.
- **Plantillas de strings con placeholders**: nuevas claves usan `{var}` reemplazado en el callsite con `tr(...).replace("{var}", ...)` para ítems con interpolación (status del buscador, conteos de reportes, mensajes de PDF/CSV, recuperación de GR, etc.).
### Pendiente
- Mensajes de log/error que viajan al cliente vía protocolo TCP — siguen como `Error { mensaje: String }` en español. Convertir a códigos enum traducibles por el cliente.
---
## [0.4.4] — 2026-05-19
### Correcciones
- **Cuelgue al cambiar idioma**: al seleccionar inglés/portugués y guardar, el diálogo de Configuración se cerraba en el mismo turno que se abría el aviso "Reiniciar para aplicar". GTK4 quedaba con un grab modal huérfano (el aviso era transient del padre que ya estaba destruyéndose) y la app dejaba de aceptar foco — en algunos compositores arrastraba al WM entero. Reescrito `show_info_dialog` para encadenar un callback `on_close`; el diálogo padre ahora se cierra recién cuando el usuario descarta el aviso.
### Novedades
- **i18n Fase 1.5 — ampliación de cobertura**: además de los ~25 strings de la Fase 1, se traducen los tooltips de los 15 botones de la barra de herramientas (Iniciar, Stop General, Siguiente, Hora, Pisador, Duck, Buscador, Pautaje, Parrilla, Playlist, Botonera, Configuración, Visor, Grabar, Reportes), los títulos de Deck A/B, la etiqueta "Sin comercial", el panel "⬛ Cola activa" / "🗑 Vaciar" / "Sin tandas programadas…", la barra de volumen "Vol / Duck / Fundido" y prácticamente todas las etiquetas del diálogo de Configuración GR (tarjetas de audio, nombre del medio, fundido, pisador, carpetas nacionales/intercultural/excluidas, silencio, volúmenes, puerto y token gr-client, relay, ID de relay, no-repetición). Sigue pendiente la Fase 2: paneles secundarios (Pautaje, Parrilla, Botonera, Visor, Reportes) y mensajes de log.
---
## [0.4.3] — 2026-05-19
### Novedades
- **Multidiomas (es / en / pt) — Fase 1**: la interfaz acepta el idioma del sistema operativo (`LC_ALL` / `LC_MESSAGES` / `LANG`) y soporta español, inglés y portugués. Nuevo selector "Idioma:" en el diálogo de Configuración con opción "Automático". Al cambiarlo, se persiste como línea 17 de `~/.gradio/data/tmp/gradio.config` y se pide reiniciar para aplicar.
- Strings traducidos en esta fase: títulos de ventanas (G Radio Player, GR Procesador DSP), diálogos comunes (Guardar/Cancelar/OK/Cerrar/Interrumpir/Generar), tooltips de configuración (volumen up/down, puerto cliente, token, DSP, VU meter, vaciar cola), labels del "now playing" (Sin tema, Sin comercial, ⏹ Detenido al final del tema, Se detuvo: Detener después), diálogos de preset.
### Pendiente (Fase 2)
- Migrar el grueso de strings de la UI de `src/main.rs` y `src/ui/*.rs` (paneles de comerciales, parrilla, eventos, etc.) — quedan ~200 literales en español.
- Convertir el protocolo TCP `Error { mensaje: String }` a códigos enum traducibles por el cliente.
---
## [0.4.2] — 2026-05-13
### Correcciones
- **Plugin DSP — botón ON/OFF completamente rehecho**: el toggle anterior dependía de `try_lock()` sobre el mutex del DSP global, que podía fallar silenciosamente si un hilo de audio lo tenía tomado en ese instante. El resultado era que el estado real del DSP no cambiaba aunque la UI mostrara el cambio. Se reemplazó por un `AtomicBool` global (`PROC_ENABLED`) que es la fuente autoritativa: el botón hace `store()` atómico sin ningún mutex, y los pad probes lo leen directo en cada buffer (sin sincronización por versión).
- **Plugin DSP — efecto inmediato al encender desde mid-song**: al encender el procesador con una canción en curso, el efecto no tomaba hasta el siguiente tema porque `process_block()` chequeaba `self.cfg.enabled` que era `false` (valor con que se construyó el pipeline cuando el DSP estaba apagado) y devolvía sin procesar. El probe ahora fuerza `dsp.cfg.enabled = true` antes de llamar `process_block()` cuando `PROC_ENABLED` es verdadero.
- **Plugin DSP — congelado al apagar**: apagar el procesador podía congelar brevemente la UI porque el handler del botón hacía un `lock().unwrap()` bloqueante sobre el mutex global mientras el hilo de audio podía tenerlo tomado. Cambiado a `try_lock()` para la actualización de `AppState.dsp`; la escritura en disco es best-effort. El procesamiento real se controla exclusivamente por `PROC_ENABLED`.
- **Plugin DSP — ventana de config no revierte el estado ON/OFF**: al mover sliders en la ventana de configuración con el procesador apagado (o viceversa), `apply()` propagaba el valor `cfg.enabled` obsoleto de `cfg_arc` (capturado al abrir la ventana) al DSP global, reactivando o desactivando el procesador en contra del estado del botón. Ahora `apply()` sincroniza `cfg.enabled = PROC_ENABLED.load()` antes de guardar y propagar, de modo que la ventana de config nunca interfiere con el toggle.
- **Plugin DSP — pipeline siempre en stand-by**: `build_pipeline()` ahora crea siempre el probe DSP independientemente de si el procesador está activo al momento de construir el pipeline. Cuando `PROC_ENABLED` es falso, el probe retorna inmediatamente sin copiar ni modificar el buffer (fast path sin contención). Esto permite encender/apagar en tiempo real sin reconstruir los pipelines.
- **Tracks cortos cortados por crossfade**: si un audio en la playlist tenía una duración menor o igual al tiempo de fundido configurado, el trigger de crossfade por posición se disparaba de inmediato (la condición `dur - pos ≤ crossfade_secs` era verdadera desde el primer tick) y el track se cortaba en los primeros segundos. Agregada la guardia `dur > crossfade_secs` en los detectores de Deck A y Deck B; tracks más cortos que la ventana de crossfade llegan naturalmente al EOS.
---
## [0.4.1] — 2026-05-11
### Correcciones
- **Plugin DSP — sin crujido al inicio de cada audio**: cada pipeline crea su propio `DspProcessor` con estado limpio (filtros biquad del crossover en cero). En v0.4.0 todos los pipelines compartían el mismo objeto y los registros de retardo del tema anterior contaminaban los primeros frames del nuevo. El compresor ahora arranca con `gain_db = makeup_db` en lugar de 0, eliminando el pop inicial mientras el compresor converge.
- **Plugin DSP — VU metros activos en la ventana de configuración**: los metros ahora leen de variables atómicas globales (`DISP_LEVELS`, `DISP_GRS`) escritas directamente por el pad probe. En v0.4.0 la UI leía del master `DspProcessor` que ya no procesaba audio, por eso las barras aparecían apagadas.
- **Plugin DSP — ajustes de parámetros en tiempo real**: el pad probe verifica un contador de versión atómico (`PROC_CFG_VER`) en cada buffer; si cambió, recarga la config del master y llama `update_config()` sin bloquear el hilo de audio. En v0.4.0 los cambios de knobs no llegaban al pipeline activo.
- **Tandas de comerciales — botones ▲▼✕ funcionan correctamente**: el índice visual de cada ítem no coincidía con la línea real del archivo `.com` cuando había ítems filtrados por día/fecha. Ahora cada ítem guarda su `file_line` real y las operaciones de swap/delete lo usan. Además los botones aplican el cambio y reconstruyen el panel inmediatamente.
- **Panel "⬛ Cola activa" en la sección de comerciales**: encima de las próximas 4 tandas aparece la cola actual (`comercialeslist4`) con fondo rojo oscuro, mostrando lo que sonará al terminar el tema en curso. Incluye botón ✕ por ítem para borrado individual y botón 🗑 Vaciar todo. Se refresca en < 200ms cuando el scheduler carga comerciales al segundo :58 o cuando el operador modifica la cola.
---
## [0.4.0] — 2026-05-10
### Novedades
#### Plugin de procesamiento de audio DSP multiband
- **Botón 🎚 Procesador** en la barra de herramientas: activa o desactiva el procesador de audio en vivo. El ícono cambia entre `processor-off` y `processor-on` según el estado. El estado (activo/inactivo) persiste entre reinicios.
- **Botón ⚙ Config DSP** (junto al anterior): abre la ventana de configuración completa del procesador con la interfaz rack de GR-Processor.
- **Cadena DSP**: crossover Linkwitz-Riley de 4.° orden → compresor linked-stereo RMS feed-forward por banda → clipper suave (tanh) → limitador brick-wall. Soporta de 2 a 6 bandas configurables.
- **Ajuste en tiempo real**: todos los pipelines activos (música, comerciales, eventos) comparten el mismo `Arc<Mutex<DspProcessor>>`; cualquier cambio de parámetro se refleja inmediatamente en el audio en reproducción sin necesidad de reiniciar o esperar la próxima canción.
- **Ventana de configuración**: knobs Cairo idénticos al GR-Processor autónomo (THR, RATIO, ATK, REL, GAIN, CLIP). Sliders de ganancia de entrada/salida y umbral del limitador en paneles laterales.
- **Presets**: 6 presets de fábrica (ROCK, BLUE, CLASIC, VOICE, HARD BASS, STRONG). Botones **▶ LOAD** y **● SAVE** para cargar y guardar presets propios en `~/.config/gradio/presets/`. El último preset usado se recuerda al reiniciar.
- **Configuración persistente**: `~/.gradio/data/processor.json` guarda estado (on/off), todos los parámetros de bandas, ganancias y último preset.
#### Panel de comerciales — Próximas 4 tandas
- El panel "📢 Comerciales" reemplaza la lista plana de la cola activa por una vista de **las próximas 4 tandas programadas**, leyendo directamente los archivos `.com` del horario.
- Cada tarjeta muestra: hora de reproducción, duración acumulada de la tanda y botón **▶ Play**.
- **Botón ▶ Play** en cada tanda: hace fadeout del tema en curso, reproduce la tanda inmediatamente y luego continúa con el playlist. Marca la tanda como ya reproducida para que el scheduler no la vuelva a cargar.
- Los botones **▲ ▼ ✕** de cada ítem editan directamente el archivo `.com` del horario (no la cola activa).
- Cada tarjeta tiene un fondo de color diferente (azul / verde / ámbar / violeta) para diferenciar visualmente los bloques.
- El panel se refresca automáticamente cada 30 segundos.
#### Otras mejoras
- **Nombres de comerciales legibles**: se decodifica el percent-encoding del URI de GStreamer al mostrar el título en la barra de estado (`LAMEGAAVANCE%20KALIMAN``LAMEGAAVANCE KALIMAN`).
- **Íconos del procesador**: tres nuevos PNG en `assets/``processor-off.png`, `processor-on.png`, `processor-config.png`.
---
## [0.3.9] — 2026-05-05
### Correcciones
- **Drop & drop al área extendida del playlist**: el `playlist_vbox` no se
estiraba con el frame, dejando muerta la zona inferior cuando se ampliaba
la ventana. Se forzó `vexpand+Fill` y se agregó un `DropTarget` catch-all
en `lists_row` con ruteo por X.
- **Tooltips de los botones ⬆/⬇/🗑 de la cola**: se borraban cada 200 ms
porque el rebuild del listbox se disparaba con cada escritura de
`playlist-refill`, aunque el contenido visible no cambiara. El trigger
ahora compara un signature de paths+duración.
### Novedades
- **Validación de audio antes de encolar** (vía `symphonia`): cualquier
archivo cuyo decode falle se descarta automáticamente. Aplica a:
`playlist-refill`, `comercial-scheduler` (3 schedulers), drag-drop a la
cola y a comerciales, botones ⤒/⤓ y doble-click del buscador, y los
comandos remotos TCP `AgregarAlPlaylist` / `ReproducirAhora` /
`PlaylistPlayAhora`. Resuelve el cuelgue del player ante audios corruptos.
---
## [0.3.8] — 2026-05-04
### Correcciones
- **Drag & drop buscador → playlist**: el drop solo funcionaba sobre la mitad superior del panel; los `DropTarget` ahora cubren `playlist_listbox`, `playlist_scroll` y `playlist_frame` para todo el área visible (incluyendo cuando la ventana se extiende tras abrir el buscador).
- **Reanudar tras pausa larga**: si se pausaba un tema y se reanudaba minutos después, el detector de drift wall-vs-pos disparaba un crossfade espurio. `action_play` ahora realinea `current_track_start` con la posición real del pipeline al salir de Paused.
- **Editor `gr-playlist`**: aceptaba solo `gio::File`; ahora también STRING (text/uri-list desde gr-buscador) y `FileList`, instalados sobre listbox y scroll.
### Novedades
- **Buscador**: cada fila de resultado lleva dos botones: ⤒ insertar al inicio del playlist y ⤓ agregar al final (íconos `up.png` / `down.png`).
- **Comerciales / Eventos / Eventos en espera**: cada fila muestra duración (con cache para no relanzar `ffprobe`) y botones inline ↑/↓ que reordenan las líneas en el archivo correspondiente.
---
## [0.3.6] — 2026-05-01
### Novedades
- Ícono del pisador reemplazado por `sello.png`.
- Panel Playlist: nueva cabecera con botón **Automático** (robot.png) que pausa/reanuda `playlist-refill`. Verde oscuro = automático activo; rojo oscuro = pausado.
- Panel Playlist: botón **Vaciar** (trash.png) para vaciar la cola de reproducción de inmediato.
- `playlist-refill`: respeta el archivo `tmp/pause_refill`; cuando existe, el daemon duerme sin rellenar la cola.
---
## [0.2.0] — 2026-04-01
### Novedades
- (pendiente: describir cambios respecto a 0.1.0)
### Correcciones
-
---
## [0.1.0] — versión inicial
- Primera versión pública del sistema de automatización de radio.
- Radio-player GTK4 con crossfading y duck de volumen.
- Daemons: `comercial-scheduler` y `playlist-refill`.
- Herramientas: `gr-pautaje`, `gr-parrilla`, `gr-botonera`, `gr-visor`, `gr-buscador`, `gr-playlist`, `gr-record`, `gr-reportes`.
- Instalador `.deb` para amd64.
Generated
+2745
View File
File diff suppressed because it is too large Load Diff
+101
View File
@@ -0,0 +1,101 @@
[package]
name = "radio-player"
version = "0.4.17"
edition = "2021"
description = "G Radio Player — reproductor y herramientas de programación"
license = "GPL-3.0-or-later"
readme = "README.md"
[lib]
name = "grpautaje"
path = "src/lib.rs"
# ── Binario principal: interfaz GTK4 ──────────────────────────────────────────
[[bin]]
name = "radio-player"
path = "src/main.rs"
# ── Binario auxiliar: programador de comerciales/eventos (segundo :58) ────────
[[bin]]
name = "comercial-scheduler"
path = "src/comercial_scheduler.rs"
# ── Binario auxiliar: relleno automático del playlist (cada 5 s) ─────────────
[[bin]]
name = "playlist-refill"
path = "src/playlist_refill.rs"
# ── Buscador de audio ─────────────────────────────────────────────────────────
[[bin]]
name = "gr-buscador"
path = "src/gr_buscador.rs"
# ── Editor de playlists .gradio ───────────────────────────────────────────────
[[bin]]
name = "gr-playlist"
path = "src/gr_playlist.rs"
# ── Grabador de audio ─────────────────────────────────────────────────────────
[[bin]]
name = "gr-record"
path = "src/gr_record.rs"
# ── Módulos de gr-pautaje ─────────────────────────────────────────────────────
[[bin]]
name = "gr-pautaje"
path = "src/bin/gr-pautaje.rs"
[[bin]]
name = "gr-parrilla"
path = "src/bin/gr-parrilla.rs"
[[bin]]
name = "gr-botonera"
path = "src/bin/gr-botonera.rs"
[[bin]]
name = "gr-visor"
path = "src/bin/gr-visor.rs"
# ── Reportería de audios emitidos ────────────────────────────────────────────
[[bin]]
name = "gr-reportes"
path = "src/gr_reportes.rs"
[dependencies]
# GTK4 GUI
gtk4 = { version = "0.9", features = ["v4_6", "v4_8"] }
cairo-rs = { version = "0.20", features = ["png", "pdf"] }
glib = "0.20"
glib-macros = "0.20"
# GStreamer
gstreamer = "0.23"
gstreamer-audio = "0.23"
gstreamer-player = "0.23"
gstreamer-pbutils = "0.23"
gstreamer-app = "0.23"
gdk4 = { version = "0.9", features = ["v4_6"] }
gdk-pixbuf = "0.20"
# Async runtime
tokio = { version = "1", features = ["full"] }
# Utilidades compartidas
rand = "0.8"
chrono = { version = "0.4", features = ["clock"] }
dirs = "5"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
anyhow = "1"
zip = "2"
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }
futures-util = "0.3"
native-tls = "0.2"
log = "0.4"
env_logger = "0.11"
# Validación de audio (decodificación pure-Rust) — usado por playlist-refill
# para descartar archivos corruptos antes de meterlos en la cola.
# Defaults: flac, mkv, ogg, pcm, vorbis, wav. Agregamos mp3, aac e isomp4.
symphonia = { version = "0.5", features = ["mp3", "aac", "isomp4"] }
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
+575
View File
@@ -0,0 +1,575 @@
**G Radio Player v-0.61R — Manual de Usuario**
Charles Escobar - 2026
**Índice**
1. [Descripción general](#anchor-1 "#anchor-1")
2. [Requisitos del sistema](#anchor-2 "#anchor-2")
3. [Instalación y arranque](#anchor-3 "#anchor-3")
4. [Reproductor principal (radio-player)](#anchor-4 "#anchor-4")
- [Interfaz](#anchor-5 "#anchor-5")
- [Decks A y B](#anchor-6 "#anchor-6")
- [Controles globales](#anchor-7 "#anchor-7")
- [Lista de reproducción (playlist)](#anchor-8 "#anchor-8")
- [Reproducción de hora](#anchor-9 "#anchor-9")
- [Pisador automático](#anchor-10 "#anchor-10")
- [Comerciales y eventos](#anchor-11 "#anchor-11")
- [Preescucha CUE](#anchor-12 "#anchor-12")
- [Duck (bajar música)](#anchor-13 "#anchor-13")
- [Streaming de Internet](#anchor-14 "#anchor-14")
- [Configuración](#anchor-15 "#anchor-15")
5. [Parrilla musical (gr-parrilla)](#anchor-16 "#anchor-16")
- [Tipos de entrada · Selección aleatoria sin repetición · Carpeta "No Tocar"](#anchor-16 "#anchor-16")
- [Edición · Pisadores por hora](#anchor-16 "#anchor-16")
6. [Pautaje de comerciales (gr-pautaje)](#anchor-17 "#anchor-17")
7. [Botonera de efectos (gr-botonera)](#anchor-18 "#anchor-18")
8. [Visor de programación (gr-visor)](#anchor-19 "#anchor-19")
9. [Buscador de audio (gr-buscador)](#anchor-20 "#anchor-20")
10. [Reportería (gr-reportes)](#anchor-21 "#anchor-21")
11. [Editor de playlists (gr-playlist)](#anchor-22 "#anchor-22")
12. [Grabador de audio (gr-record)](#anchor-23 "#anchor-23")
13. [Estructura de archivos de datos](#anchor-24 "#anchor-24")
14. [Clientes remotos](#anchor-25 "#anchor-25")
- [Cliente de escritorio (radio-player-client)](#anchor-25 "#anchor-25")
- [Cliente Android (GRadio Client)
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OMQ2AUBBAsUfyNbBi9VRgEA3sWGAjJK2CbjNzVGcAAPzFtapV7V9PAAB47X4AEXIELdGZ+p4AAAAASUVORK5CYII=)
](#anchor-25 "#anchor-25")
**Descripción general**
**G Radio Player** es un sistema de automatización radial escrito en Rust con interfaz GTK4 y motor de audio GStreamer. Gestiona la reproducción de música, comerciales, eventos, jingles de hora y efectos de sonido mediante tres procesos coordinados:
| **Proceso** | **Función** |
|-|-|
| radio-player | Interfaz principal: reproduce música y comerciales, maneja crossfade y VU |
| playlist-refill | Daemon: rellena la cola de música cada 5 segundos leyendo la parrilla del día |
| comercial-scheduler | Daemon: carga los comerciales del minuto siguiente al :58 de cada minuto |
Los tres procesos se comunican a través de archivos en ~/.gradio/data/tmp/.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAM0lEQVR4nO3OMQ0AIAwAwZJgBKeVgjWMNCwYYCIkd9OP3zJzRMQMAAB+sfqJeroBAMCN2pTaBSQLg92+AAAAAElFTkSuQmCC)
**Requisitos del sistema**
- GTK4 ≥ 4.6
- GStreamer ≥ 1.20 con plugins: base, good, bad, ugly, libav, ALSA, PulseAudio
- ffprobe (paquete ffmpeg)
- locate (mejora la velocidad del buscador)
- **gstreamer1.0-plugins-bad** — incluye `gstapp`, requerido por el plugin procesador DSP
La instalación de dependencias es automática vía ./build.sh en sistemas Debian/Ubuntu.
**Requisitos adicionales del plugin procesador DSP (opcional)**
El procesador multiband es una función opcional que se activa con el botón 🎚 de la barra de herramientas. Cuando está encendido, inserta una etapa DSP en todos los pipelines de audio (música, comerciales, eventos). No requiere hardware adicional ni tarjeta de sonido especial; usa el mismo dispositivo de salida del sistema.
Si el paquete `gstreamer1.0-plugins-bad` no está instalado, el procesador no tendrá efecto aunque esté activado. Para instalarlo manualmente:
`sudo apt install gstreamer1.0-plugins-bad`
En Raspberry Pi 5 (ARM64), el procesador con 5 bandas consume menos del 5% de CPU. En equipos x86-64 el impacto es imperceptible.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OMQ2AABAAsSNhYEMBJlD4Mz7xgQU2QtIq6DIzR3UFAMBf3Gu1VefXEwAAXtsfSqQDW2Qf4EYAAAAASUVORK5CYII=)
**Instalación y arranque**
# Compilar e instalar dependencias del sistema
./build.sh
# Iniciar el sistema completo (radio-player + daemons + watchdog)
./run.sh
# Iniciar solo el reproductor (para pruebas)
./target/release/radio-player
El script run.sh lanza los tres procesos y un watchdog que los reinicia automáticamente si se detienen.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANklEQVR4nO3OQQmAABRAsScYxpg/kR2sYQKvNrCCNxG2BFtmZquOAAD4i3Ot7mr/egIAwGvXA4DuBdDaS4drAAAAAElFTkSuQmCC)
**Reproductor principal (radio-player)**
**Interfaz**
La ventana principal se divide en:
- **Cabecera**: logo, nombre de la emisora y versión
- **VU Meters**: barras L/R que muestran el nivel de audio en tiempo real
- **Deck A** y **Deck B**: paneles de reproducción con título, posición, duración y barra de progreso
- **Barra de comercial**: muestra el comercial o evento en curso
- **Barra de controles globales**: botones de acceso a todas las herramientas
- **Lista de reproducción**: cola de temas pendientes
**Decks A y B**
G Radio usa dos decks alternados para lograr el **crossfade** (fundido cruzado) entre temas:
- **Deck A** — temas impares de la secuencia
- **Deck B** — temas pares de la secuencia
Cada deck tiene sus propios controles:
| **Botón** | **Función** |
|-|-|
| ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAA8CAYAAADYIMILAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAF/klEQVR4nO2aXY+aWhSGH0AU8WPUpqZTvWpS73rTi/n5/QH9A02d+IWC38gooAjIuWjgOJ3pnFNHrdP2TYgJOzHrYe291tprb+H9+/cRf4jEX23AOfUX9ndV6qnBRqNBvV6nVCqdy55nybIsBoMBzWbz0XHhsQCVz+e5ubl5MZDfy7IsPn/+jG3b994/6tkY1PM8FosFruuexcjnSlVVyuUypVKJm5sbPn36dG/8wZptNBoJqK7rLwYUwHVddF3H8zxKpRKNRuPe+APYer0OwGKxOI+FJ1Bse8wS68E0jtfp//GoIAiI4rfvtdvtiKLLqE9i27+POU9G46ckCAKSJJHJZAAIgoAgCNjtdgAXA76vg2BFUUSSJHK5HK9evUKWZTzPw7ZtXNfF8zzCMLw44INg0+k0hUKBer3Ox48fKZVKOI7DYDCg1WphGAaO4xAEwbHtfZYOgk2lUiiKQrlc5u3bt1SrVTabDaqqJh9iOp1iWRau67Ldbi/CywfBSpKEoiioqoqqqhSLRYrFItlslnK5zPX1Ne12G03TGI1GmKZ5bLsP0kGwcXBKpVLJ+k2n0yiKQqlUolKpoChK8qTTaWzbxvO8e0Hs3Do4Gv9IkiRRKBR49+4dpVKJer2Oruvc3t4ymUxYLpdsNhvg/BH7qLCCICAIArIsUy6XyWaz5PN5isUioijeW8ur1Qrf9wnD8JgmPKmjezYGjq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yuVwym80IwxDHcej3+3z9+pXBYIDjOD/dSTi1DoLdbrfc3d3R6XRwXZd0Op14eLVa4bruxd2ngANhd7tdAhx7LwiC5Lz1ku5E7evgAAX/Rl64rEtfP9KDhptlWcC3S4//pf2ofEmgse0xS6wHsIPBAIByuXwGs06j2PaYJdYD2GaziWVZZDIZarXa//LwpUhVVWq1GplMBsuyHlyy/qMuVz8KG+uPuDb/u+qPOv74C/u76h9Q7EV+68vCZwAAAABJRU5ErkJggg==)
**Play** | Inicia o reanuda la reproducción del deck |
| ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA4CAYAAABHRFAgAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADmElEQVR4nO2a226qQBSGfzlGxARTmzTKjU30EXz8PkAfwUsP1QRFWhCEGWb2xc5MUDGt7MambL7EG3E563PNjBdrtcbjMUfNUX46gXvQSNYF7dqDyWQC13XhOM4986lMEARYLpeYzWYXz1rnF49t25hOp79G7pwgCPD6+oooiuR7F5UUgmmaYr/fI47juyZZFcuy0Ov14DgOptMpXl5e5LOTMzmZTKTgarX6NYIAEMcxVqsV0jSF4ziYTCby2Ymk67oAgP1+f98MvxGRu3ABzrarOIe3VrDVasnXNRhjAADOuYwBAEW5fsFzzuXrq4jci3fK1dv1K4hEVVWFoihQVbX0c4wxMMaQ5/lJrIi5JlqMu1W2SGVJUTlFUaDrOgzDgK7rpdWklCLLMmRZJkVFnGma0HW9dI2yuCqi/1RJRVGgaRra7TY6nQ5s2y6VTJJEXulpmgIAdF1Hu91Gt9tFp9Mp/f7j8YgwDKWYqOitVJIsVtA0TTw8PGAwGODx8RGadvqVnHPsdjus12t4nicr0m630e/3MRgM8PT0VLqO7/t4e3vDZrORZ63Ktq1cSSFpWRb6/T5GoxFGo9HFluWcYz6fgzGGOI5lsiLu+fkZ4/G4dI3FYoE8zxGGISiloJSi1WrdV1LTNBiGAdu20e/34bouDMO4kDwej9hsNjBNU1baMAx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EzubquUVUV8jzH4XDA6XRC27Znz6CVHCEElFLMZjM8Pj5iuVwaOUKITaSh6zpIKVGWJbbbLdbrNTjnqOv67CwrOc/zwBhDkiRYLpd4eHhAGIagtPcWBgAopSCEAKUUr6+veHt7s1qe1nJBECCKItze3iIMQ0wmE6cPFEop7u7uEEURgiAA5/zspWktd3NzA8YYfN8HpdSZmM4nhMD3fTOGTb51RYSQL5drdGaf/Kt+if/Tcn1XxD8t15dRbqiMckNllBsqo9xQGeWGyig3VKzluq6zbrmdO4btOFZybdtCSommaVDXNaSUpsfoAt0k0vlN01jlW8tVVYWPjw+UZQkhBJRSzmZSKWXae3oMm3yrHkrbtubX8na7Nc0cl31LzjleXl5wPB7BObdqzFr34qSUOBwOWK/XyLIMURSBMWYb94W6rlGWJY7HI/b7PaSUVjlWcl3XQSmF9/d3cM6x3+8RBIHTdnpVVeCcX6adDvxenvqBIoRw2rdUSllLaXq3iPUsunxa6ty+uOl/w00xrhm/UIbKKDdUjFxRFAB+HxIbKrp27WLkdrsdACBJkguU5QZdu3YxcpvNBkVRgDGG+Xw+qBmcTqeYz+dgjKEoCnOo9KoPk5KfDnBf5THga+P/eBVcI78AY3SmYBYyiC0AAAAASUVORK5CYII=)
** Stop** | Detiene y libera el pipeline del deck |
| ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA5CAYAAABj2ui7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGR0lEQVR4nO2aXU/byhaGH3/EMQSS0FJECRcUqVz3ip/fH9DLFiHxlZgkhDhAYhvHcfwRnws0s0N3zzk4ddLSvV8pimVLnvXMmllrzYyVjx8/ZvzBUn+1AcuW/qObR0dH7O/vU6/XV23PQnIch263y/n5+d+eKfNDdGNjg+Pj41cD9r0cx+HLly/4vi/vPfOggJtOp4xGI4IgWLmRi2h9fZ2trS3q9TrHx8d8/vxZPpNz8OjoSMLd3Ny8GjiAIAi4ublhOp1Sr9c5OjqSzy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Isut0urusWGmBgxUFGDMter8fl5SUXFxd0Oh1c113ahvPSAOfnkfDaeDxmMBjQarW4urri+vpari6WUcXAijwYRRGPj4/Yts23b99ot9v0+30cxyGKotdVbMNf3kvTVB7F3d7eYlkWp6enDAYDxuPx0rw2r8IXvEJJkjCZTOj3+7RaLZrNJpZlPduIWoWWsqIPwxDP8xgOh1xdXWFZFtfX1/T7fblfuqpt/sIXvGma4nkelmVhWRZXV1fYto3neYUn8ZeoEMAsy0iShDAMcV1XbuU3m01ub2/xfZ8kSV4MN58zf3SdRz8NmGUZcRwzHo95eHjg7OyMVqtFr9fj7u5ObuPngZvNZsRxTBRFRFGEqqpEUbTQcUAuQNF4mqbP/n3f5+7ujna7zenpKd1uF8/zCIJgoSEZxzG+7zMcDrm7u0PXdTzPYzKZ5I68uQBFz4qejKKI6XRKp9Ph9PSUZrOJbdv4vk8cxwvPNxF94zhmOByi67qMwGEY5npXLsAkSQiCgPv7e1mFBEFAu93m4uKCm5sbubeyKJwY8o+PjzLViEOXRQrxXICi4V6vJ/dXgiBgOBxKA34Gbl5pmhKGIWmaoigK0+l0ofSS24NJksigAk9H2CL8F5UCxHviOJbH44tqoSiaJIkEfMlZw6/UQoAi74nr31kL58HfHUxILp8dxwGejo9fq4TtggXmALvdLgBbW1srNqs4CdsFC8wBnp+f4zgO5XKZRqPxqjy5vr5Oo9GgXC7jOM6zD2P/+A9ilR99lP7HftL8J+rfrfvXrv8AKRQ//e8B4KoAAAAASUVORK5CYII=)
** Siguiente** | Salta al siguiente tema de la lista |
| ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA3CAYAAACsLgJ7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGqElEQVR4nO2a23aa6hqGHzaCbETAJJqq6eguPeh5Lr8X0Avo6EibdEfdi6iICqLrIAtmkzRrJk1MZrPmO4YnwJDv4dv+PwivXr3a8MgkPrQB25B88cDh4SGNRgPbth/CnhsrCA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C)
** Detener al final** | Completa el tema actual y detiene (no carga el siguiente) |
| ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA7CAYAAAAw23kDAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJdklEQVR4nO2a71IbVxLFf90jkBAChLExWFQ2SW2o2hfw4+cB8nn/FZXd1CY4YIyRwEhIQnN7P3RfSTgIBMLxxrVdpQ9SaWbuud19+nTfke+++874Ak0/9wI+lf0f2B/NKrf9uL+/z97eHs1m8/dez6Os0+lweHjIwcHB+DeZJo9Go8Hr16//MIA+tk6nww8//MDl5eVNj2VQg8GAdrtNr9f7XGt8kNXrdTY3N2k2m7x+/Zrvv/9+Amx/f38M6s2bN59znQ+2Xq9Hr9ej1WrRbDbZ39+fkMfe3h4A7Xb7sy1wUctr39vbm3gs59WnCT/BCVgA++jzkHtku/26vPZms3k7Ky5mFUARKYACB1RMfRJQIpIwS+Pv/kmYjZhsgACCyPL4vv6fQfx/9uY8KTAHU0NkFZE6UJ9a1NIUsASMgFEsso9ZF7MuIlcBGEQUqKK6BazF9QPMTkmph8g1ZuWnBJZDbRmRZ6juUhS7iLxApIHICmZ5x8F3exSALknpHSkdkdIRZieIXOOeUVTXKYq/INICljFrk9LfgbekdB73+gTARGqIbCDyDJEtVLdQbSKyHqCqwBIiipnENRY7XQVqqNYQWUd1B7M2Zu9JqY3IAJEVVF8gsgUoZgmzbUQuEOliNnxKYO4hkTqqz1DdQWQXkZdjMCIeemYGuAeyOUD/qNYxW8ZsDdgGupTlW+AYs3NEasAmIquAYbYCrGNW5SahLAwsh10V1V1UW6i+QnUHWEdkCRGJPCkx6+EhN8TDTyIXlxFZAVZwj9ZwIlinUqmTUoOUOpiByBqwhFkZ968hUowj4ImAZVDrqH5LUXyN6jZOFASYIWaDIIYOZudAbypsloE6quuIbAArUyG7DGyj2kCki3u7BhSIJFIyRGYDejQwD79dVL9B9StEnsVCDU/4U8rymJTektIZ0AeGTIejm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5NzZ7+kb9tvFL+qpbOOmqtPpAP7C1WzLo+d066Jmm/HbF1WefgKU197pdCbADg8PAdjc3HzyB/5eltd+eHg4AXZwcECn06FardJqte7x3P+W1et1Wq0W1WqVTqfDwcHBl/siptz2evoX9+rsl2Rf7FvcXyyw/wIHJpw9lNrGywAAAABJRU5ErkJggg==)
** Loop** | Activa la repetición infinita del tema actual en ese deck |
Se puede hacer **clic en la barra de progreso** para saltar a cualquier posición del tema.
Se puede **arrastrar un tema** de la lista de reproducción y soltarlo sobre un deck para reproducirlo inmediatamente con crossfade.
**Controles globales**
La barra inferior contiene los botones principales del sistema:
| **Botón** | **Función** |
|-|-|
| **▶ Iniciar** | Arranca la reproducción desde el primer tema de la lista |
| **⏭ Siguiente** | Salta al siguiente tema (crossfade inmediato) |
| **⏹ Stop** | Detiene inmediatamente toda reproducción: música, comerciales y eventos |
| **🕐 Hora** | Dispara manualmente la locución de la hora actual |
| **Pisador** | Dispara manualmente el pisador sobre el tema en curso |
| **↓ Duck** | Baja el volumen de la música para permitir locución (toggle) |
| **🔍 Buscador** | Abre el buscador de audio |
| **Pautaje** | Abre el editor de pautaje de comerciales |
| **Parrilla** | Abre el editor de parrilla musical |
| **Playlist** | Abre el editor de playlists .gradio |
| **Botonera** | Abre la botonera de efectos de sonido |
| **Visor** | Abre el visor de programación del día |
| **Reportes** | Abre la reportería de audios emitidos |
| **Config** | Abre el diálogo de configuración |
La etiqueta junto a los botones muestra: Vol: XX% | Duck: XX% | Fundido: Xs
**Lista de reproducción (playlist)**
La cabecera del panel contiene, además del título, dos botones en la esquina superior derecha:
| **Botón** | **Función** |
|-|-|
| **Vaciar** (ícono escoba) | Borra inmediatamente todos los temas de la cola. Si el llenado automático está activo, el daemon los repondrá en el siguiente ciclo (5 s). Si está pausado, la cola queda vacía hasta que el operador la llene. |
| **Automático** (ícono robot) | Pausa o reanuda el llenado automático por `playlist-refill`. **Verde oscuro** = automático activo (estado natural). **Rojo oscuro** = llenado pausado. El estado persiste entre reinicios. |
***Modo Automático pausado (rojo)***
Cuando el botón **Automático** está en rojo, el daemon `playlist-refill` deja de agregar temas a la cola. Situaciones de uso:
- **Noticieros**: los comerciales siguen cargándose normalmente para los cortes, pero la parrilla musical permanece vacía. El operador la llena manualmente cuando quiere retomar música.
- **Control manual**: el operador elige personalmente qué temas se reproducen, sin que el sistema los rellene automáticamente.
Si el player está detenido (stop), el llenado automático está en rojo y la parrilla está vacía, al dar **Play** el sistema reproduce únicamente los comerciales en cola y se detiene al terminarlos.
La lista muestra los temas pendientes. Cada fila contiene:
- **Número azul**: indica la posición en la cola; al hacer **clic** reproduce ese tema con crossfade
- **Título del tema**: el tooltip muestra la ruta completa al pasar el mouse
- **Botones de acción inline** (semitransparentes; se iluminan al pasar el mouse):
- **▲** Subir una posición en la cola
- **▼** Bajar una posición en la cola
- **🗑** Eliminar de la cola
Adicionalmente, **clic derecho** sobre cualquier tema abre el menú contextual con opciones avanzadas:
- **🎧 Preescuchar (CUE)**: escuchar en la tarjeta secundaria sin salir al aire
- **🕐 Insertar Hora aquí**: inserta una locución de hora en esa posición
- **📡 Insertar Streaming aquí**: inserta una URL de stream en esa posición
- **📋 Cargar lista .gradio aquí**: inserta una playlist guardada en esa posición
- **🔄 Regenerar lista**: vacía y vuelve a llenar la cola desde la parrilla actual
- **🗑 Eliminar de la cola**: quita el tema seleccionado
- **Doble clic** sobre un tema → lo reproduce en el deck activo con crossfade
- **Arrastrar dentro de la lista** → reordena el tema a la posición soltada
- **Arrastrar sobre un deck** → envía el tema directamente a ese deck
Los temas se cargan automáticamente por el daemon playlist-refill desde la parrilla de la hora en curso. También se pueden cargar playlists completas (archivos .gradio) arrastrándolas a la ventana.
**Reproducción de hora**
Cuando llega la hora en punto, playlist-refill inserta automáticamente el ítem especial **Hora** en la cola. Al llegar su turno, el sistema busca los archivos de locución de hora en:
$HOME/.gradio/data/panel/Time/
***Importante*** *: los audios de la hora (por ejemplo* * * *HRS00.mp3 HRS04.mp3* *,...* * HRS08.mp3* *,...* * HRS12.mp3* ** * * *MIN01.mp3 MIN09.mp3* * * *, o archivos con el nombre de la hora) deben copiarse en la carpeta * *$HOME/.gradio/data/panel/Time/* *. El sistema los reproduce en orden automáticamente al llegar a la marca de hora.*
Se puede disparar la hora manualmente con el botón **🕐 Hora** de la barra de controles.
**Pisador automático**
El **pisador** es un audio corto (jingle, ID de emisora) que se superpone automáticamente cada cierto número de temas. Se configura en **Configuración**:
- **Activar pisador sobre temas**: activa o desactiva la función
- **Carpeta de pisadores**: directorio donde están los archivos de pisador (se elige uno al azar cada vez)
- **Tocar pisador cada N temas**: frecuencia de reproducción (1 = todos los temas)
- **Carpetas que no se pisan**: lista de carpetas cuyos temas no activan el pisador (útil para tandas de comerciales o géneros especiales)
El botón **Pisador** de la barra lanza el pisador manualmente en cualquier momento.
***Pisadores por programa (por hora)***
Para dar identidad sonora propia a cada programa, la herramienta **Parrilla musical** permite asignar una carpeta de pisadores exclusiva a cada franja horaria. Esta carpeta tiene **prioridad sobre la carpeta global**: si está definida, el sistema la usará para esa hora; si no, usa la carpeta general de **Configuración**. Ver sección [Parrilla musical → *Pisadores específicos por hora*.](#anchor-16 "#anchor-16")
**Comerciales y eventos**
El daemon `comercial-scheduler` carga los archivos de pautaje al :58 de cada minuto leyendo:
- `~/.gradio/data/comerciales/{H}/{M}.com` — comerciales programados
- `~/.gradio/data/eventos/{H}/{M}.com` — eventos de inserción inmediata
- `~/.gradio/data/eventos-espera/{H}/{M}.com` — eventos en cola de espera
Cuando comienza una tanda, se reproduce en secuencia: primero eventos (si los hay, interrumpiendo la parrilla), luego comerciales (si no hay eventos, se cargan y esperan a que finalice el tema en curso). Al terminar, la música vuelve a su volumen normal.
El formato de cada línea en los archivos `.com` es:
`/ruta/al/audio.mp3|1234567|20260101|20261231`
- **Campo 1**: ruta del archivo de audio (o URL http://...)
- **Campo 2**: máscara de días activos (1=Lun, 2=Mar, … 7=Dom); 1234567 = todos los días
- **Campo 3**: fecha de inicio de vigencia (YYYYMMDD; 0 = sin límite)
- **Campo 4**: fecha de fin de vigencia (YYYYMMDD; 0 = sin límite)
**Panel de próximas tandas (nueva interfaz desde v0.4.0)**
El panel "📢 Comerciales" de la ventana principal muestra las **próximas 4 tandas programadas** en lugar de la cola activa:
- Cada tarjeta muestra la **hora de reproducción**, la **duración total acumulada** de la tanda y un botón **▶ Play**.
- El botón **▶ Play** ejecuta la tanda inmediatamente: hace fadeout del tema en curso, reproduce todos los audios de esa tanda en orden y luego reanuda el playlist. La tanda queda marcada como "ya reproducida" para que el scheduler no la duplique al llegar al segundo :58.
- Los botones **▲ ▼ ✕** dentro de cada tanda editan directamente el archivo `.com` del horario (reordenan o eliminan ítems de la programación futura).
- Cada tarjeta tiene un color de fondo diferente (azul / verde / ámbar / violeta) para distinguir visualmente los bloques.
- El panel se refresca automáticamente cada 30 segundos.
Los paneles **⏳ Eventos en espera** y **📅 Eventos** permanecen ocultos cuando están vacíos y aparecen automáticamente cuando se cargan eventos, con divisor arrastrable para ajustar el alto de cada sección.
**Procesador de Audio DSP Multiband**
G Radio incluye un procesador de audio broadcast profesional que puede activarse y configurarse directamente desde la ventana principal. El procesador es ideal para ajustar la sonoridad, la presencia y los niveles de la señal antes de que salga al aire.
***Activar / desactivar el procesador***
En la barra de herramientas superior, a la derecha, hay dos botones:
- **🎚 (processor-off / processor-on)**: enciende o apaga el procesador. El ícono cambia para reflejar el estado. El estado se guarda y se restaura al reiniciar el programa.
- **⚙ (processor-config)**: abre la ventana de configuración del procesador.
***Ventana de configuración***
La interfaz de configuración muestra:
- **Barra de presets**: combo con presets disponibles (ROCK, BLUE, CLASIC, VOICE, HARD BASS, STRONG) + botones **▶ LOAD** (aplicar preset) y **● SAVE** (guardar preset propio). El último preset cargado se recuerda entre sesiones.
- **Panel BANDS** (izquierda): selector del número de bandas (26) y slider de **IN GAIN** (-12 a +12 dB).
- **Bandas B1B6**: para cada banda activa se muestran knobs ajustables en tiempo real:
| **Knob** | **Rango** | **Función** |
|-|-|-|
| THR | -60 a 0 dB | Umbral del compresor |
| RATIO | 1:1 a 20:1 | Razón de compresión |
| ATK | 0.1 a 200 ms | Tiempo de ataque |
| REL | 10 a 2000 ms | Tiempo de release |
| GAIN | 0 a 24 dB | Makeup gain (post-compresor) |
| LVL (CLIP) | -12 a 0 dB | Nivel del clipper suave |
- **Checkbox CLIP**: activa el clipper suave (tanh) para esa banda.
- **Checkbox ON**: activa o desactiva la banda completa.
- **VU metros**: barras de nivel (verde) y reducción de ganancia (azul) por banda, actualizadas a 30 fps.
- **Panel OUT GAIN / LIMITER** (derecha): slider de ganancia de salida global y umbral del limitador brick-wall final (-6 a 0 dBFS).
***Cómo funciona***
Cuando el procesador está activo, se inserta una etapa DSP en cada pipeline de audio (música, comerciales, eventos) mediante un pad probe de GStreamer. La cadena de procesamiento es:
`Crossover LR4 → Compresor por banda → Clipper suave → Limitador brick-wall`
Todos los pipelines activos comparten el mismo procesador; cualquier ajuste de parámetro en la ventana de configuración se aplica **en tiempo real** al audio que está sonando, sin necesidad de esperar a la próxima canción.
***Guardar presets propios***
Con el botón **● SAVE** se abre un diálogo para dar nombre al preset. Los presets de usuario se guardan en `~/.config/gradio/presets/` y aparecen en el combo junto a los presets de fábrica.
***Archivo de configuración***
El estado del procesador (on/off, parámetros, último preset) se guarda en:
`~/.gradio/data/processor.json`
**Preescucha CUE**
Si se configura una segunda tarjeta de audio (tarjeta CUE), se puede escuchar cualquier tema de la lista en monitores o auriculares **sin que salga al aire**.
Para usarlo: clic derecho sobre un tema en la lista → **🎧 Preescuchar (CUE)**. Se abre una pequeña ventana con controles de pausa y stop para la preescucha.
La tarjeta CUE se configura en **Configuración → Tarjeta de audio CUE** (por ejemplo: hw:1,0).
**Duck (bajar música)**
El botón **↓ Duck** (toggle) baja el volumen de la música al nivel configurado para permitir locución del operador. Al pulsarlo de nuevo vuelve al volumen normal.
Los niveles de volumen se ajustan con los archivos:
- ~/.gradio/data/tmp/upvol — volumen normal (0100)
- ~/.gradio/data/tmp/downvol — volumen duckeado (0100)
**Streaming de Internet**
Se puede insertar una URL de stream en la lista de reproducción:
1. Clic derecho sobre la posición deseada en la lista → **📡 Insertar Streaming aquí**
2. Ingresar la URL (http:// o https://)
3. El stream se reproducirá en su turno igual que un archivo local
Los streams también se pueden pautar como comerciales en los archivos .com usando la URL como ruta.
**Configuración**
El diálogo de **Configuración GR** (Config) permite ajustar:
| | |
|-|-|
| **Campo** | **Descripción** |
| **Tarjeta de audio principal** | Dispositivo ALSA/PulseAudio de salida principal (vacío = predeterminado del sistema) |
| **Tarjeta de audio CUE** | Dispositivo para preescucha sin salir al aire (vacío = desactivado) |
| **Nombre de la emisora** | Aparece en el encabezado de la ventana y en los reportes PDF |
| **Segundos de fundido (crossfade)** | Duración en segundos del fundido cruzado entre temas (0 = corte directo) |
| **Pisador sobre temas** | Activar/desactivar el pisador automático global |
| **Carpeta de pisadores** | Directorio global con los audios de pisador; se elige uno al azar en cada disparo. Puede ser anulado por hora en la herramienta **Parrilla musical** |
| **Tocar pisador cada N temas** | Frecuencia del pisador (1 = después de cada tema, 2 = cada dos temas, etc.) |
| **Carpetas que no se pisan** | Lista de carpetas cuyos temas **no activan el pisador** automático. Estas carpetas también quedan **exentas del filtro de no-repetición** de 3 días (útil para jingles o géneros de alta rotación) |
| **Carpetas Nacionales** | Carpetas con música nacional (usadas en el cálculo de porcentajes en reportería) |
| **Carpetas Intercultural** | Carpetas con música intercultural (usadas en el cálculo de porcentajes en reportería) |
| **Detector de silencio (segundos)** | Si el audio lleva este tiempo detenido o en silencio, el sistema salta automáticamente al siguiente tema; 0 = desactivado |
| **Volumen principal (0100)** | Nivel de volumen de la música en reproducción normal. Se guarda en ~/.gradio/data/tmp/upvol |
| **Volumen duck (0100)** | Nivel al que baja la música cuando se activa el duck (para locución o comerciales). Se guarda en ~/.gradio/data/tmp/downvol |
| **Puerto servidor remoto** | Puerto TCP en que el servidor escucha conexiones de los clientes remotos (default: **7777**). Debe coincidir con el que configuran el cliente de escritorio y el cliente Android |
| **Token de acceso** | Contraseña que deben enviar los clientes al conectarse. Si se deja en blanco, cualquier cliente en la red puede conectarse sin autenticación |
| **Relay internet** | Activa la conexión al servidor de relay configurado vía variable de entorno `GRADIO_RELAY_URL` para permitir acceso remoto desde internet (fuera de la red local). Requiere configurar el **ID de relay** |
| **ID de relay (8 dígitos)** | Identificador único de esta emisora en el servidor relay. El botón **Generar** crea un ID aleatorio. Este mismo ID debe ingresarse en el cliente remoto para conectarse por internet |
Los cambios en Configuración se aplican inmediatamente al guardar, sin necesidad de reiniciar el sistema.
El archivo de configuración se almacena en ~/.gradio/data/tmp/gradio.config.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANElEQVR4nO3OQQmAABRAsad4EFMY9fewnUms4E2ELcGWmTmrKwAA/uLeqrU6vp4AAPDa/gDzYgM3ZPdzEgAAAABJRU5ErkJggg==)
**Parrilla musical (gr-parrilla)**
La **Parrilla Musical** permite programar qué carpetas o archivos de audio se reproducirán en cada hora de cada día de la semana.
**Uso**
1. Seleccionar el **día** (Lunes a Domingo) en la columna izquierda
2. Seleccionar la **hora** (0 a 23) en la columna central
3. La lista de la derecha muestra el contenido programado para ese bloque
**Tipos de entrada**
- **Carpeta con ** ***** (p. ej. /home/usuario/Musica/Variados/*) — el sistema elige un archivo aleatorio de esa carpeta o sus subcarpetas en cada ciclo
- **Archivo exacto** — se reproduce ese archivo específico
- **Hora** — marca especial: inserta la locución de la hora en ese punto de la cola
***Selección aleatoria sin repetición***
Cuando una entrada apunta a una carpeta con subcarpetas, el sistema reúne todos los temas disponibles de **todas** las subcarpetas en un pool único y elige uno al azar, dando igual probabilidad a cada tema independientemente del tamaño de cada subcarpeta. Los temas reproducidos en los últimos 3 días quedan excluidos del pool para evitar repetición; si la carpeta se agota completamente, el sistema relaja esta restricción de forma gradual.
***Carpeta "No Tocar"***
Cualquier subcarpeta cuyo nombre sea exactamente **"No Tocar"** (sin distinguir mayúsculas) es **ignorada automáticamente** por el sistema de selección aleatoria. Esto permite mantener audios de referencia, versiones descartadas o material en revisión dentro del árbol de música sin que entren al playlist.
**Edición**
- **Arrastrar archivos o carpetas** desde el explorador de archivos hacia la lista
- Los **botones de ícono** en la barra superior actúan sobre el ítem seleccionado:
- **▲** (up) sube el ítem una posición
- **▼** (down) baja el ítem una posición
- **🗑** (trash) elimina el ítem
- **⏰** inserta la marca especial *Hora*
- **Leer** carga la parrilla guardada del día/hora seleccionados
- **Grabar** guarda la lista; los cambios se aplican en el próximo ciclo del daemon
- Los bloques de hora/día se pueden **copiar** arrastrando un botón de hora sobre otro (o sobre un día)
***Pisadores específicos por hora***
En la parte superior de la ventana, a la derecha del título "ELABORACIÓN DE LA PARRILLA…", aparece el campo **"Pisadores esta hora:"** con un botón 📂 para explorar carpetas. Permite asignar una carpeta de pisadores exclusiva a la franja horaria que se está editando. Si se deja en blanco, el sistema usa la carpeta global configurada en **Configuración**. Este valor se guarda junto con la parrilla al presionar **Grabar**.
Los archivos se guardan en:
- ~/.gradio/data/parrilla/{dia}/{H}-{H+1}.mus — lista de entradas de la parrilla
- ~/.gradio/data/parrilla/{dia}/{H}-{H+1}.pisador — carpeta de pisadores para esa hora (opcional)
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANklEQVR4nO3OMQ2AABAAsSPBCj7fFC6wwIgHRiywEZJWQZeZ2ao9AAD+4lyruzq+ngAA8Nr1AOIABebqJIqXAAAAAElFTkSuQmCC)
**Pautaje de comerciales (gr-pautaje)**
El **Pautaje** permite programar los comerciales, jingles y eventos que se emitirán en cada minuto del día.
**Estructura**
La programación se organiza en tres categorías:
- **Comerciales**: tandas de publicidad en los cortes programados
- **Eventos**: audios que se insertan inmediatamente a la hora indicada
- **Eventos en espera**: audios que quedan en cola hasta que el operador los active
**Uso**
1. Seleccionar la **hora** y el **minuto** del corte
2. Agregar los audios arrastrándolos o con el botón **Agregar**
3. Para cada audio configurar:
- **Días activos** (1=Lun … 7=Dom)
- **Fecha de inicio** y **fecha de fin** de vigencia
4. **Grabar** para guardar el corte
Los archivos se guardan en:
- ~/.gradio/data/comerciales/{H}/{M}.com
- ~/.gradio/data/eventos/{H}/{M}.com
- ~/.gradio/data/eventos-espera/{H}/{M}.com
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OQQmAABRAsSd4tIGdjCS/pwGsYQVvImwJtszMXp0BAPAX91pt1fH1BACA164HhYgEO/4GtLAAAAAASUVORK5CYII=)
**Botonera de efectos (gr-botonera)**
La **Botonera** es un tablero de reproducción instantánea de efectos de sonido, cortinas, ID de emisora u otros audios de uso frecuente.
**Organización**
- **5 pestañas** renombrables (doble clic sobre el nombre de la pestaña para renombrar)
- Cada pestaña contiene una **grilla de botones** de colores
- Los botones son configurables individualmente
**Uso**
- **Arrastrar un archivo de audio** sobre un botón vacío → lo asigna a ese botón
- **Clic en un botón** → reproduce el audio asignado; si ya está sonando, lo detiene
- **Clic derecho sobre un botón** → menú para cambiar el color o limpiar el botón
- Los colores se eligen de una paleta de 15 colores predefinidos
La configuración se guarda automáticamente en ~/.gradio/data/botonera/config.json.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANElEQVR4nO3OUQmAABBAsSeYxKTXxlomEBOIFfwTYUuwZWa2ag8AgL841uquzq8nAAC8dj05XgYLDGrT0AAAAABJRU5ErkJggg==)
**Visor de programación (gr-visor)**
El **Visor** muestra en una sola pantalla todo lo programado para el día en curso, actualizándose automáticamente cada 60 segundos.
**Panel superior: Pautaje del día**
Tabla con todos los cortes programados, agrupados por hora:minuto y coloreados por tipo:
| **Color** | **Tipo** |
|-|-|
| Verde claro | Comerciales |
| Teal claro | Eventos |
| Lavanda | Eventos en espera |
**Panel inferior: Parrilla musical**
Muestra la parrilla musical de la hora actual y la siguiente, con indicación especial (amarillo) de las marcas de **Hora**.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OQQ2AQBAAsSHhiQMcoWp9ngBsYIEfIWkVdJuZs5oAAPiLe6+O6vp6AgDAa+sBhZgEOcyZTEcAAAAASUVORK5CYII=)
**Buscador de audio (gr-buscador)**
El **Buscador** permite localizar rápidamente cualquier archivo de audio por nombre.
**Uso**
1. Escribir el texto a buscar en el campo superior y presionar **Enter** o el botón **Buscar**
2. Los resultados muestran: **Tema** | **Duración** | **Ruta**
3. **Doble clic** sobre un resultado → agrega el archivo al final de la lista de reproducción del reproductor principal
4. **Arrastrar** un resultado → permite soltarlo en la posición deseada dentro del reproductor
**Estrategia de búsqueda**
El buscador usa primero locate (índice del sistema, instantáneo). Si locate no está disponible, realiza una búsqueda recursiva en las carpetas de la parrilla y las carpetas habituales de música.
***Consejo*** *: para mantener el índice de * *locate* * actualizado, ejecutar periódicamente * *sudo updatedb* *.*
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OMQ2AABAAsSPBCUZfDq7YGVDAgAU2QtIq6DIzW7UHAMBfHGt1V+fXEwAAXrseHCgGBJWaMWkAAAAASUVORK5CYII=)
**Reportería (gr-reportes)**
La **Reportería** genera informes de los audios emitidos, con detalle de duración real al aire y clasificación por tipo de contenido.
**Selección de período**
- Elegir la **fecha de inicio** y **fecha de fin** con los selectores de fecha (clic → calendario emergente)
- El informe cubre todos los días del rango seleccionado
**Filtro de audio**
El campo **Buscar audio** permite filtrar los resultados por nombre de archivo (búsqueda insensible a mayúsculas/minúsculas).
**Columnas del informe**
| | |
|-|-|
| **Columna** | **Descripción** |
| Fecha | Fecha de emisión |
| Hora | Hora exacta de inicio |
| Audio | Nombre del archivo |
| Duración | Segundos reales emitidos |
| | |
| ### Resumen por día | |
| La sección **Resumen por Día** muestra, para cada día del período: | |
| **Columna** | **Descripción** |
| - | - |
| FECHA | Día del resumen |
| TOTAL | Total de segundos emitidos en el día |
| NACIONAL | Segundos de música nacional + porcentaje |
| INTERCULTURAL | Segundos de música intercultural + porcentaje |
| | |
| Las carpetas consideradas como **Nacional** e **Intercultural** se configuran en el diálogo de **Configuración** del reproductor principal. | |
| ### Exportar a PDF | |
| El botón **Exportar PDF** genera un informe completo en formato PDF que incluye: | |
- **Página 1+**: tabla completa de audios emitidos con logo y nombre de la emisora
- **Última página**: tabla de resumen por día con totales y porcentajes de Nacional e Intercultural
El PDF se guarda en el directorio de inicio del usuario.
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OMQ2AABAAsSPBCUZfDq7YGVDAgAU2QtIq6DIzW7UHAMBfHGt1V+fXEwAAXrseHCgGBJWaMWkAAAAASUVORK5CYII=)
**Editor de playlists (gr-playlist)**
El editor de playlists permite crear y editar archivos .gradio (listas de reproducción guardadas).
Un archivo .gradio contiene una lista de rutas de audio con sus duraciones en formato tabular. Se puede cargar directamente en el reproductor principal arrastrando el archivo .gradio a la ventana.
**Grabador de audio (gr-record)**
El grabador de audio permite capturar cualquier fuente PulseAudio (entrada de línea, monitor de tarjeta de sonido, micrófono, etc.) y guardarla como archivo MP3.
**Fuente de audio**
Al abrir la herramienta, el menú desplegable lista todas las fuentes detectadas por PulseAudio. El botón ⟳ refresca la lista sin reiniciar. Ejemplos:
- alsa_input.pci-...analog-stereo — entrada de línea de la tarjeta de sonido
- alsa_output.pci-...analog-stereo.monitor — monitor (captura lo que suena por los parlantes)
- Cualquier dispositivo virtual de PulseAudio (Loopback, virtual sink, etc.)
**VU Meter**
Idéntico al del reproductor principal: dos barras de LEDs (L/R), verde 055 %, amarillo 5575 %, rojo 75100 %. Solo trabaja con grabación activa; al detener, los niveles caen a cero.
**Botón de grabación**
Ubicado en la esquina inferior derecha de la ventana:
- **Inactivo** — ícono gris (rec-off)
- **Grabando** — ícono rojo con fondo rojo tenue (rec-on)
Al iniciar la grabación, la barra inferior muestra el nombre del archivo generado y un contador HH:MM:SS. Al detener, el pipeline cierra el archivo correctamente antes de liberar recursos.
**Archivos generados**
Se guardan en ~/GR-grabaciones/ (creada automáticamente) con formato:
GRadio-rec-YYYY-MM-DD-HH-MM.mp3
Encoder: **lamemp3enc** a 192 kbps (fallback: avenc_mp3 de ffmpeg).
**Pipeline GStreamer**
pulsesrc → audioconvert → audioresample → level (50 ms) → lamemp3enc → filesink
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OYQ1AABSAwY8JIIKoL4Z8Eoiggn9mu0twy8wc1RkAAH9xbdVa7V9PAAB47X4A9DIEIm50tIwAAAAASUVORK5CYII=)
**Estructura de archivos de datos**
Todos los datos del sistema se almacenan bajo ~/.gradio/:
~/.gradio/
├── data/
│ ├── parrilla/ # Parrilla musical por día y hora
│ │ ├── 1/ # Lunes
│ │ │ ├── 0-1.mus # Parrilla hora 0 (00:00 01:00)
│ │ │ ├── 0-1.pisador # Carpeta de pisadores para esa hora (opcional)
│ │ │ ├── 1-2.mus # Parrilla hora 1 (01:00 02:00)
│ │ │ ├── 1-2.pisador # Carpeta de pisadores para esa hora (opcional)
│ │ │ └── ...
│ │ ├── 2/ # Martes
│ │ └── ... # (hasta 7 = Domingo)
│ ├── comerciales/ # Pautaje de comerciales
│ │ └── {H}/ # Por hora (0-23)
│ │ └── {M}.com # Por minuto (0-59)
│ ├── eventos/ # Pautaje de eventos
│ │ └── {H}/{M}.com
│ ├── eventos-espera/ # Eventos en espera
│ │ └── {H}/{M}.com
│ ├── panel/
│ │ └── Time/ # Audios de locución de hora (ver sección Hora)
│ ├── botonera/
│ │ └── config.json # Configuración de la botonera
│ └── tmp/ # Archivos de comunicación entre procesos
│ ├── playlist4 # Cola de música activa
│ ├── comercialeslist4 # Cola de comerciales activa
│ ├── eventos-esperalist # Cola de eventos en espera
│ ├── gradio.config # Configuración principal
│ ├── upvol # Nivel de volumen normal (0-100)
│ └── downvol # Nivel de volumen duck (0-100)
└── reportes/ # Logs de audios emitidos
├── GR6-parrilla-YYYY-MM-DD.txt # Registro diario de emisión
└── {carpeta}/.historico.mus # Historial por carpeta (antirepetición)
**Formato de archivos de parrilla (.mus)**
Cada línea puede ser:
/home/usuario/Musica/Variados/* # Archivo aleatorio de carpeta
/home/usuario/Musica/Temas/tema.mp3 # Archivo específico
Hora # Marca de locución de hora
**Formato de archivos de pautaje (.com)**
/ruta/audio.mp3|1234567|20260101|20261231
**Formato de cola de reproducción (playlist4)**
/ruta/al/archivo.mp3[TAB]00:03:45.000
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAACCAYAAAA3pIp+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANUlEQVR4nO3OMQ2AABAAsSNhYEUALhD4K0LxgQU2QtIq6DIzR3UFAMBf3Gu1VefXEwAAXtsfSp4DXi4fyswAAAAASUVORK5CYII=)
**Clientes remotos**
G Radio Player incluye dos clientes remotos que permiten controlar el servidor desde otra máquina en la misma red (protocolo JSON/TCP en el puerto 7777).
**Cliente de escritorio (radio-player-client)**
Aplicación GTK4 para Linux con las siguientes pantallas:
| | |
|-|-|
| **Pantalla** | **Función** |
| **▶ Player** | Controles de reproducción, VU, decks A/B, lista de cola |
| **📅 Pautaje** | Editar la programación de comerciales y eventos remotamente |
| **🎵 Parrilla** | Ver y editar la parrilla musical del servidor |
| **🎛 Botonera** | Acceder a la botonera de efectos del servidor |
| **📢 Comercios** | Ver y gestionar las colas activas de comerciales y eventos |
| **📊 Reportes** | Consultar los reportes de emisión |
**Cliente Android (GRadio Client)**
Aplicación para Android con interfaz Jetpack Compose. Requiere ingresar la IP y puerto del servidor al conectar. Pantallas disponibles:
| | |
|-|-|
| **Pantalla** | **Función** |
| **Player** | Estado de reproducción, controles básicos, volumen |
| **Búsqueda** | Buscar audios en el servidor y agregarlos a la cola |
| **Parrilla** | Ver y editar la parrilla musical; botones inline ▲ ▼ 🗑 por ítem |
| **Botonera** | Reproducir efectos desde la botonera del servidor |
| **Pautaje** | Editar la programación de comerciales |
| **Comercios** | Ver colas activas de comerciales/eventos con borrado individual |
| **Reportes** | Consultar reportes de emisión |
La conexión se establece ingresando IP:7777 en la pantalla de inicio. El cliente se reconecta automáticamente si pierde la conexión.
*G Radio Player v-0.3.6 — Desarrollado por Charles Escobar*
+104
View File
@@ -0,0 +1,104 @@
# G Radio Player
Reproductor de radio profesional — GTK4 + GStreamer + Rust
## Binarios
| Binario | Descripción |
|---|---|
| `radio-player` | Interfaz principal GTK4 |
| `comercial-scheduler` | Carga comerciales y eventos al segundo :58 de cada minuto |
| `playlist-refill` | Mantiene la cola de música con 14 temas leyendo de la parrilla |
## Compilar
```bash
./build.sh
```
## Ejecutar
```bash
./run.sh # inicia los tres procesos juntos
```
O por separado (para depuración):
```bash
RUST_LOG=info ./target/release/radio-player
./target/release/comercial-scheduler
./target/release/playlist-refill
```
## Estructura de archivos
```
$HOME/.gradio/data/
├── tmp/
│ ├── playlist4 # cola de música (ruta TAB MM:SS.mmm)
│ ├── comercialeslist4 # cola de comerciales
│ ├── eventos-esperalist # eventos post-comerciales
│ └── eventoslist # eventos emergentes
├── comerciales/
│ └── {HH}/{MM}.com # pautas por hora:minuto
│ formato: ruta|dias|YYYYMMDD_ini|YYYYMMDD_fin
│ dias: "12345" = Lun-Vie, "67" = Sáb-Dom
├── eventos-espera/
│ └── {HH}/{MM}.com # mismo formato
├── eventos/
│ └── {HH}/{MM}.com # mismo formato
├── parrilla/
│ └── {DOW}/{HH}-{HH+1}.mus # archivos de música por franja
│ formato: ruta/al/archivo.mp3 o /ruta/carpeta/*
└── reporte/
├── GR6-parrilla-YYYY-MM-DD.txt
├── GR6-comercial-YYYY-MM-DD.txt
└── GR6-evento-YYYY-MM-DD.txt
$HOME/.gradio/data/mix # segundos de crossfade
$HOME/.gradio/data/tmp/upvol # volumen normal 0-100
$HOME/.gradio/data/tmp/downvol # volumen duck 0-100
$HOME/.gradio/data/panel/Time/ # HRS{HH}.mp3, HRS{HH}_O.mp3, MIN{MM}.mp3
$HOME/G Radio/inicio-espacio-pub/ # jingles inicio tanda
$HOME/G Radio/fin-espacio-pub/ # jingles fin tanda
```
## Formato de pautas (.com)
```
/ruta/al/audio.mp3|12345|20250101|20251231
/otra/pista.wav|67|20250601|20250630
```
- Campo 1: ruta del archivo
- Campo 2: máscara de días (1=Lun … 7=Dom)
- Campo 3: fecha inicio YYYYMMDD
- Campo 4: fecha fin YYYYMMDD
## Formato de parrilla (.mus)
```
/ruta/carpeta/* # elige aleatoriamente de la carpeta
/ruta/exacta/tema.mp3 # archivo concreto
```
## Dependencias del sistema
- GTK4 ≥ 4.6
- GStreamer ≥ 1.20 con plugins: gst-plugins-base, gst-plugins-good, gst-plugins-ugly
- ffprobe (paquete ffmpeg) — usado por playlist-refill para leer duraciones
## Variables de entorno
- `GRADIO_RELAY_URL` — URL del servidor de relay WebSocket para acceso remoto vía
internet (default `wss://relay.example.com/ws`). Para autohospedaje, definirla antes
de lanzar `radio-player`.
## Licencia
Distribuido bajo los términos de la **GNU General Public License v3.0 o posterior**
(GPL-3.0-or-later). Ver el archivo [`LICENSE`](./LICENSE).
Este programa enlaza dinámicamente con **GTK4** y **GStreamer**, ambos publicados
bajo LGPL-2.1+ y compatibles con GPL-3.0.
+96
View File
@@ -0,0 +1,96 @@
# Reparar dpkg roto por G Radio Player
## Actualizar desde 0.4.8 o anterior a 0.4.9+
Si tienes una versión anterior instalada, **no ejecutes `dpkg -i` directamente** — el `prerm` del paquete instalado corre primero y puede matar a `dpkg`.
Usa el script incluido en el ZIP, que parchea automáticamente antes de instalar:
```bash
sudo bash instalar.sh
```
O aplica el parche manual de una línea antes de instalar:
```bash
sudo bash -c 'printf "#!/bin/bash\nexit 0\n" > /var/lib/dpkg/info/gradio-player.prerm'
sudo dpkg -i gradio-player_0.4.9_amd64.deb # o arm64 / arm64_bookworm
```
---
## Mi dpkg ya está roto (no puedo instalar ni actualizar nada)
### Síntoma
```
E: se interrumpió la ejecución de dpkg, debe ejecutar manualmente
«sudo dpkg --configure -a» para corregir el problema
```
O:
```
dpkg: error al procesar el paquete gradio-player (--configure):
El paquete está en un estado grave de inconsistencia - debe reinstalarlo
antes de intentar su configuración.
```
### Reparación rápida
```bash
# 1. Parchear el prerm roto
sudo bash -c 'printf "#!/bin/bash\nexit 0\n" > /var/lib/dpkg/info/gradio-player.prerm'
# 2. Reinstalar 0.4.9 (ya tiene prerm correcto)
sudo dpkg -i gradio-player_0.4.9_amd64.deb # o arm64 / arm64_bookworm
```
Si aun así dpkg reporta inconsistencia, forzar la eliminación primero:
```bash
sudo bash -c 'printf "#!/bin/bash\nexit 0\n" > /var/lib/dpkg/info/gradio-player.prerm'
sudo dpkg --remove --force-remove-reinstreq gradio-player
sudo dpkg --configure -a
sudo dpkg -i gradio-player_0.4.9_amd64.deb
```
---
## Causa raíz
El script `prerm` de versiones anteriores usaba `pkill -f "radio-player"`. El flag `-f` busca en la línea de comando **completa** de todos los procesos. La cadena `"radio-player"` es subcadena de `"gradio-player"`, por lo que el patrón coincide con:
- El propio script de mantenimiento: `/var/lib/dpkg/info/gradio-player.prerm`
- La invocación de dpkg: `dpkg -i gradio-player_0.4.9_amd64.deb`
Al ejecutar, el script se mata a sí mismo y a dpkg, dejando el gestor de paquetes en estado inconsistente.
**Desde 0.4.9**: el `prerm` es `exit 0`. No hay kill de procesos. Los ejecutables en uso se reemplazan de forma segura en disco (Linux mantiene el inode anterior abierto hasta que el proceso cierre).
---
## Limpieza manual (si dpkg no removió los archivos)
```bash
sudo rm -f /usr/local/bin/{radio-player,comercial-scheduler,playlist-refill}
sudo rm -f /usr/local/bin/{gradio.sh,gr-buscador,gr-playlist}
sudo rm -f /usr/local/bin/{gr-pautaje,gr-parrilla,gr-botonera,gr-visor,gr-reportes,gr-record}
sudo rm -rf /usr/local/share/radio-player
sudo rm -f /usr/share/applications/gradio-player.desktop
sudo rm -f /usr/share/icons/hicolor/48x48/apps/gradio-player.png
sudo gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null
sudo update-desktop-database /usr/share/applications 2>/dev/null
```
Los datos del usuario en `~/.gradio/` no se eliminan (parrilla, comerciales, configuración).
---
## Historial del bug
| Versión | Estado prerm | Notas |
|---------|-------------|-------|
| 0.3.x 0.4.7 | `pkill -f` roto | Todos los .deb publicados afectados |
| 0.4.8 | `pkill -x` (mejorado) | Sigue siendo un kill — al actualizar a 0.4.9 corre el prerm de 0.4.8 instalado, que puede matar dpkg en algunos entornos |
| **0.4.9+** | `exit 0` | **Fix definitivo** — no hay kill de procesos |
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More