PlayPiano: pianoforte virtuale a 88 tasti con app desktop
App web a file singolo con pianoforte campionato, spartiti MIDI e MusicXML, pentagramma, cascata di note, modalità apprendimento, compositore di idee, generatore di accordi e idee con IA locale tramite Ollama. Include il contenitore Electron e il flusso GitHub Actions per i pacchetti macOS, Windows e Linux.
This commit is contained in:
commit
7a4ee5de28
44 files changed
+5401
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Avvia PlayPiano su http://localhost:8765 (necessario perché Ollama accetti le richieste della pagina)
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
PORT=8765
|
||||
if lsof -nP -iTCP:$PORT -sTCP:LISTEN >/dev/null 2>&1; then
|
||||
echo "PlayPiano è già in esecuzione: apro il browser."
|
||||
open "http://localhost:$PORT/"
|
||||
exit 0
|
||||
fi
|
||||
echo "PlayPiano in esecuzione su http://localhost:$PORT/"
|
||||
echo "Lascia aperta questa finestra mentre usi l'app. Chiudila (o premi Ctrl+C) per terminare."
|
||||
( sleep 1; open "http://localhost:$PORT/" ) &
|
||||
exec python3 -m http.server "$PORT" --bind 127.0.0.1
|
||||
Reference in new issue
Block a user