Integra KISUM (audio→Strudel) + pestaña Visor + accesos en la cabecera
Some checks are pending
Build and Deploy to warm (strudel.cc) / build (push) Waiting to run
Strudel tests / build (20) (push) Waiting to run

- Pestaña KISUM: sube audio/vídeo y lo convierte en código Strudel vía un
  mini-servidor Python local (kisum/, puerto 3010) que arranca el lanzador.
- Pestaña Visor: piano-roll (pentagrama) + osciloscopio + espectro en vivo
  de lo que suena, sin escribir .pianoroll()/.scope().
- Botones en la cabecera: projects, KISUM, visor, ajustes.
- KISUM empaquetado en kisum/ (código, sin venv) + install.sh de un comando
  y lanzador portable (sin rutas absolutas).
- .gitignore excluye venv/cachés/logs de KISUM. Docs en README.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hacklab 2026-07-26 18:31:37 +02:00
parent 970b89b08c
commit 7ace286d8a
13 changed files with 1052 additions and 13 deletions

View file

@ -39,5 +39,29 @@ if ! curl -fsS -o /dev/null "${URL}" 2>/dev/null; then
done
fi
# ── Servidor KISUM (audio → código Strudel, integrado en la pestaña KISUM) ──
# Arranca el mini-servidor Python si existe su venv y no está ya escuchando.
# No es crítico: si falta, Strudel abre igual (la pestaña avisará).
# Busca KISUM eligiendo la primera copia que TENGA entorno (.venv):
# 1) variable KISUM_DIR (si la defines tú)
# 2) empaquetado en el repo (kisum/) ← tras ./install.sh
# 3) ruta externa del hub MUSIKA (instalación antigua)
# Si ninguna tiene venv aún, usa el empaquetado (lo tendrá tras ./install.sh).
if [ -z "${KISUM_DIR:-}" ]; then
for cand in "${DIR}/kisum" "${HOME}/COFRE/CODERS/MUSIKA/AUDIO/PROYECTOS/KISUM"; do
if [ -x "${cand}/.venv/bin/python3" ]; then
KISUM_DIR="${cand}"
break
fi
done
KISUM_DIR="${KISUM_DIR:-${DIR}/kisum}"
fi
KISUM_PORT="${KISUM_PORT:-3010}"
KISUM_PY="${KISUM_DIR}/.venv/bin/python3"
if [ -x "${KISUM_PY}" ] && ! curl -fsS -o /dev/null "http://127.0.0.1:${KISUM_PORT}/health" 2>/dev/null; then
KISUM_PORT="${KISUM_PORT}" setsid "${KISUM_PY}" "${KISUM_DIR}/kisum_server.py" \
> "${DIR}/kisum-server.log" 2>&1 &
fi
# Abre en el navegador por defecto
xdg-open "${URL}" >/dev/null 2>&1 &