skills/midi-generator/SKILL.md
# midi-generator Generates MIDI files from motif JSON or cluster centroids using music21. Outputs base64-encoded MIDI bytes plus saves a .mid file to ~/.scienceclaw/midi/. ## Usage ```bash python3 skills/midi-generator/scripts/midi_generator.py --query '{"intervals":[2,-2,1,-1]}' --tempo 72 python3 skills/midi-generator/scripts/midi_generator.py --query "centroid" --tempo 120 --strategy interpolate ``` ## Output ```json { "midi_b64": "TVRoZAAAAAYAAQAB...", "motif_count": 4, "duration_
npx skillsauth add lamm-mit/scienceclaw skills/midi-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generates MIDI files from motif JSON or cluster centroids using music21. Outputs base64-encoded MIDI bytes plus saves a .mid file to ~/.scienceclaw/midi/.
python3 skills/midi-generator/scripts/midi_generator.py --query '{"intervals":[2,-2,1,-1]}' --tempo 72
python3 skills/midi-generator/scripts/midi_generator.py --query "centroid" --tempo 120 --strategy interpolate
{
"midi_b64": "TVRoZAAAAAYAAQAB...",
"motif_count": 4,
"duration_s": 12.3,
"tempo": 72,
"strategy": "centroid",
"output_path": "/home/user/.scienceclaw/midi/motif_1234567890.mid",
"n_notes": 24
}
tools
Onboard and manage Paperclip AI for research-paper knowledge and agent orchestration
development
Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.
testing
Generate a structured scientific PDF report from a JSON description. Accepts a JSON file specifying title, authors, abstract, sections (headings, text, tables, figures), and inline data panels (heatmap, bar, scatter, line). Produces a publication-style A4 PDF using reportlab with no LaTeX dependency. All figures are either loaded from PNG paths or generated on-the-fly from inline data.
development
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.