gnn-audio-generation
GNN audio generation and sonification. Use when creating audio representations of GNN models, generating sonification of state spaces, or working with SAPF…
от ActiveInferenceInstitute★ 36 звёзд на GitHub
Установить gnn-audio-generation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GNN Audio Generation (Step 15)
Purpose
Generates audio representations of GNN models, mapping model structures, state transitions, and matrix values to sound parameters. Generation uses NumPy synthesis plus the SAPF sub-package; librosa/soundfile/pedalboard are optional backends reported by check_audio_backends().
Key Commands
# Run audio generation
python src/gnn/15_audio.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline
python src/gnn/main.py --only-steps 15 --verbose
API
from gnn.audio import (
AudioGenerator,
process_audio,
generate_audio_from_gnn,
create_sonification,
analyze_audio_characteristics,
SAPFGNNProcessor,
SyntheticAudioGenerator,
check_audio_backends,
generate_oscillator_audio,
apply_envelope,
mix_audio_channels,
convert_gnn_to_sapf,
generate_audio_from_sapf,
)
# Process audio step (used by pipeline)
process_audio(target_dir, output_dir, verbose=True)
# Generate audio from GNN model
result = generate_audio_from_gnn(gnn_content, output_dir="output/")
# Create sonification
sonification = create_sonification(file_path, output_dir)
# Use AudioGenerator class
gen = AudioGenerator()
# Convert GNN to SAPF format and generate audio (sapf subpackage signatures)
from gnn.audio.sapf import convert_gnn_to_sapf as sapf_convert, generate_audio_from_sapf as sapf_gen
sapf_code = sapf_convert(gnn_content, "my_model")
sapf_gen(sapf_code, Path("output/my_model_sapf_audio.wav"))
# Check available backends
backends = check_audio_backends()
# Returns: {'librosa': {'available': True}, 'soundfile': {...}, 'pedalboard': {...}}
Key Exports
AudioGenerator/SAPFGNNProcessor— audio generator classesprocess_audio/generate_audio_from_gnn— main generation functionscreate_sonification— sonification from model dataSyntheticAudioGenerator— procedural audio generationgenerate_oscillator_audio,apply_envelope,mix_audio_channels— low-level audiocheck_audio_backends— check librosa/soundfile/pedalboard availability
Dependencies
# Audio generation deps
uv sync --extra audio
# Includes: librosa, soundfile, pedalboard
Output
- Audio files (WAV) in
output/15_audio_output/ - Sonification parameter maps
- Audio generation reports
MCP Tools
This module registers tools with the GNN MCP server (see mcp.py):
analyze_audio_characteristicscheck_audio_backendsget_audio_generation_optionsget_audio_module_infoprocess_audiovalidate_audio_content
References
- AGENTS.md — Module documentation
- README.md — Usage guide
- SPEC.md — Module specification
- sapf/ — SAPF framework
Documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- AGENTS.md
- README.md
- SPEC.md
- __init__.py
- analyzer.py
- classes.py
- effects.py
- generator.py
- mcp.py
- pedalboard/AGENTS.md
- pedalboard/README.md
- pedalboard/SPEC.md
- processor.py
- sapf/AGENTS.md
- sapf/README.md
- sapf/SPEC.md
- sapf/__init__.py
- sapf/audio_generators.py
- sapf/mcp.py
- sapf/module_info.py
- sapf/processor.py
- sapf/sapf_gnn_processor.py
- streaming.py
- validation.py
FAQ
Что делает скилл gnn-audio-generation?
GNN audio generation and sonification. Use when creating audio representations of GNN models, generating sonification of state spaces, or working with SAPF and Pedalboard audio backends.
Как установить скилл gnn-audio-generation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gnn-audio-generation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…