{"id":45758506,"url":"https://github.com/ydah/vizcore","last_synced_at":"2026-02-27T23:01:56.774Z","repository":{"id":339782232,"uuid":"1163343760","full_name":"ydah/vizcore","owner":"ydah","description":"Building audio-reactive visuals with a Ruby DSL.","archived":false,"fork":false,"pushed_at":"2026-02-22T23:44:43.000Z","size":3040,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-25T22:23:04.037Z","etag":null,"topics":["audio-reactive","dsl","ruby","visual","visualizer"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ydah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-21T13:40:22.000Z","updated_at":"2026-02-22T15:39:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ydah/vizcore","commit_stats":null,"previous_names":["ydah/vizcore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ydah/vizcore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fvizcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fvizcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fvizcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fvizcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydah","download_url":"https://codeload.github.com/ydah/vizcore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fvizcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29874448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-reactive","dsl","ruby","visual","visualizer"],"created_at":"2026-02-25T21:41:02.742Z","updated_at":"2026-02-26T22:00:59.417Z","avatar_url":"https://github.com/ydah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vizcore [![Gem Version](https://badge.fury.io/rb/vizcore.svg)](https://badge.fury.io/rb/vizcore) [![CI](https://github.com/ydah/vizcore/actions/workflows/main.yml/badge.svg)](https://github.com/ydah/vizcore/actions/workflows/main.yml)\n\nVizcore is a Ruby gem for building audio-reactive visuals with a Ruby DSL. Define scenes in pure Ruby, stream frames to the browser over WebSocket, and react to audio, beat, and MIDI in real time.\n\n## Installation\n\n```bash\ngem install vizcore\n```\n\nOr add to your Gemfile:\n\n```bash\nbundle add vizcore\n```\n\n**System dependencies:**\n\nmacOS:\n```bash\nbrew install portaudio ffmpeg   # ffmpeg only needed for MP3/FLAC input\nbrew install fftw               # optional: faster FFT\n```\n\nUbuntu/Debian:\n```bash\nsudo apt install -y libportaudio2 libportaudio-dev ffmpeg\nsudo apt install -y libfftw3-dev   # optional: faster FFT\n```\n\n## Quick Start\n\n```bash\nvizcore start examples/basic.rb\n```\n\nThen open `http://127.0.0.1:4567`.\n\nFor full setup, device listing, and troubleshooting, see [GETTING_STARTED.md](docs/GETTING_STARTED.md).\n\n## Scene DSL\n\nScenes are written in plain Ruby. Layers map audio analysis values to visual parameters:\n\n```ruby\nVizcore.define do\n  scene :intro do\n    layer :wireframe do\n      type :wireframe_cube\n      map amplitude =\u003e :rotation_speed\n      map fft_spectrum =\u003e :deform\n      map frequency_band(:high) =\u003e :color_shift\n    end\n  end\n\n  scene :drop do\n    layer :particles do\n      type :particle_field\n      count 3600\n      map amplitude =\u003e :speed\n      map frequency_band(:low) =\u003e :size\n    end\n\n    layer :title do\n      type :text\n      content \"DROP\"\n      font_size 96\n      map beat? =\u003e :flash\n    end\n  end\n\n  transition from: :intro, to: :drop do\n    trigger { beat_count \u003e= 64 }\n    effect :crossfade, duration: 1.4\n  end\nend\n```\n\n### Custom GLSL Shaders\n\n```ruby\nlayer :wave_shader do\n  type :shader\n  glsl \"shaders/custom_wave.frag\"\n  map amplitude =\u003e :param_intensity\n  map frequency_band(:low) =\u003e :param_bass\n  map beat? =\u003e :param_flash\nend\n```\n\n### MIDI Scene Switching\n\n```ruby\nVizcore.define do\n  midi :controller, device: :default\n\n  scene :warmup do\n    layer :grid do\n      shader :neon_grid\n      map frequency_band(:mid) =\u003e :intensity\n    end\n  end\n\n  midi_map note: 36 do\n    switch_scene :impact\n  end\n\n  midi_map cc: 1 do |value|\n    set :global_intensity, value / 127.0\n  end\nend\n```\n\n## CLI\n\n```bash\nvizcore start SCENE_FILE [--host 127.0.0.1] [--port 4567] [--audio-source mic|file|dummy] [--audio-file PATH]\nvizcore new PROJECT_NAME\nvizcore devices [audio|midi]\n```\n\n### Audio Sources\n\n| Source | Description |\n|--------|-------------|\n| `mic` | Live microphone input (default) |\n| `file` | File playback — `.wav` directly, `.mp3`/`.flac` via `ffmpeg` |\n| `dummy` | Silent source for layout testing |\n\n```bash\n# Microphone\nvizcore start scene.rb --audio-source mic\n\n# WAV file\nvizcore start scene.rb --audio-source file --audio-file track.wav\n\n# MP3/FLAC (requires ffmpeg)\nvizcore start scene.rb --audio-source file --audio-file set.mp3\n```\n\nWhen using file source, the HUD exposes **Play Audio** / **Pause Audio** controls and shows BPM, Beat, and Beat Count.\n\n## Requirements\n\n- Ruby `\u003e= 3.2`\n- `portaudio` for microphone input\n- `ffmpeg` on `PATH` when using `.mp3` or `.flac` file input\n- `fftw3` (optional) — Vizcore falls back to pure-Ruby FFT automatically when unavailable\n\n## Examples\n\n| File | Description |\n|------|-------------|\n| `examples/basic.rb` | Single wireframe cube layer |\n| `examples/intro_drop.rb` | Beat-triggered scene transition |\n| `examples/file_audio_demo.rb` | File audio source walkthrough |\n| `examples/complex_audio_showcase.rb` | Dense multi-layer showcase |\n| `examples/midi_scene_switch.rb` | MIDI-driven scene switching |\n| `examples/custom_shader.rb` | Custom GLSL shader with audio mapping |\n\n## Development\n\n```bash\nbundle exec rspec\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fvizcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydah%2Fvizcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fvizcore/lists"}