{"id":50815991,"url":"https://github.com/ydah/muze","last_synced_at":"2026-06-13T09:33:38.816Z","repository":{"id":342604619,"uuid":"1173541265","full_name":"ydah/muze","owner":"ydah","description":"A Ruby audio feature extraction library that provides a full pipeline from audio loading to spectral analysis, feature extraction, rhythm analysis, effects, and lightweight visualization.","archived":false,"fork":false,"pushed_at":"2026-05-25T13:31:45.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T14:25:25.410Z","etag":null,"topics":["audio","audio-extraction","audio-extractor","audio-loader","library","pipeline","rhythm-analysis","ruby","visualization"],"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-03-05T13:35:57.000Z","updated_at":"2026-05-25T13:26:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ydah/muze","commit_stats":null,"previous_names":["ydah/muze"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ydah/muze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fmuze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fmuze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fmuze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fmuze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydah","download_url":"https://codeload.github.com/ydah/muze/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fmuze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34276760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","audio-extraction","audio-extractor","audio-loader","library","pipeline","rhythm-analysis","ruby","visualization"],"created_at":"2026-06-13T09:33:37.391Z","updated_at":"2026-06-13T09:33:38.810Z","avatar_url":"https://github.com/ydah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Muze\n\n[![Gem Version](https://img.shields.io/gem/v/muze.svg)](https://rubygems.org/gems/muze)\n[![CI](https://github.com/ydah/muze/actions/workflows/ci.yml/badge.svg)](https://github.com/ydah/muze/actions/workflows/ci.yml)\n[![Ruby](https://img.shields.io/badge/ruby-%3E%3D%203.1-red.svg)](https://www.ruby-lang.org/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt)\n\nMuze is a Ruby audio feature extraction library that provides a full pipeline from audio loading to spectral analysis, feature extraction, rhythm analysis, effects, and lightweight visualization.\n\n![Image](https://github.com/user-attachments/assets/1e88395b-c715-4c9a-b458-d1cb9fceb848)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"muze\"\n```\n\nThen execute:\n\n```bash\nbundle install\n```\n\nOr install directly:\n\n```bash\ngem install muze\n```\n\n## Quick Start\n\n```ruby\nrequire \"muze\"\n\ny, sr = RAF.load(\"sample.wav\", sr: 22_050)\nmel = RAF.melspectrogram(y:, sr:)\nmfcc = RAF.mfcc(y:, sr:, n_mfcc: 13)\ntempo, beats = RAF.beat_track(y:, sr:)\nRAF.specshow(Muze.power_to_db(mel), output: \"mel.svg\")\n```\n\n## Main Features\n\n| Area | APIs |\n| --- | --- |\n| Audio I/O | `RAF.load` (`wav`, `flac`, `mp3`, `ogg`) |\n| STFT stack | `RAF.stft`, `RAF.istft`, `RAF.magphase` |\n| Scale helpers | `RAF.power_to_db`, `RAF.amplitude_to_db` |\n| Filters | `RAF.mel`, `RAF.chroma` |\n| Features | `RAF.melspectrogram`, `RAF.mfcc`, `RAF.delta` |\n| Spectral descriptors | centroid, bandwidth, rolloff, flatness, contrast, zcr, rms |\n| Rhythm | `RAF.onset_strength`, `RAF.onset_detect`, `RAF.beat_track`, `RAF.tempogram` |\n| Effects | `RAF.hpss`, `RAF.time_stretch`, `RAF.pitch_shift`, `RAF.trim` |\n| Visualization | `RAF.specshow`, `RAF.waveshow` |\n\n`wav` is loaded with `wavify`, and `flac/mp3/ogg` requires `ffmpeg` + `ffprobe`\navailable on `PATH`.\n\n## Development\n\n```bash\nbundle install\nbundle exec rspec\n```\n\nBenchmark and regression check:\n\n```bash\nbundle exec rake bench\n```\n\nThis writes a JSON report to `benchmarks/reports/latest.json` and compares metrics\nagainst `benchmarks/baseline.json`. To refresh the baseline:\n\n```bash\nMUZE_BENCH_UPDATE_BASELINE=1 bundle exec rake bench\n```\n\nQuality regression thresholds for effects are documented in\n`benchmarks/quality_thresholds.md`.\n\nOptional native extension:\n\n```bash\nbundle exec rake compile\n```\n\nGenerate API docs:\n\n```bash\nbundle exec yard doc\n```\n\n## License\n\nMuze is available under the [MIT License](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fmuze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydah%2Fmuze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fmuze/lists"}