{"id":46034048,"url":"https://github.com/davidlang42/midi-sampler","last_synced_at":"2026-03-01T04:32:13.612Z","repository":{"id":226836795,"uuid":"769765062","full_name":"davidlang42/midi-sampler","owner":"davidlang42","description":"A CLI tool which reads notes from MIDI-IN and plays corresponding WAV samples to audio out","archived":false,"fork":false,"pushed_at":"2024-04-21T01:28:02.000Z","size":4035,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-21T02:44:34.573Z","etag":null,"topics":["midi"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidlang42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"davidlang42"}},"created_at":"2024-03-10T01:44:14.000Z","updated_at":"2024-04-21T01:28:03.000Z","dependencies_parsed_at":"2024-03-10T02:47:46.524Z","dependency_job_id":"6714ded1-72b8-4f2a-bda1-ccfeab45ec02","html_url":"https://github.com/davidlang42/midi-sampler","commit_stats":null,"previous_names":["davidlang42/midi-sampler"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/davidlang42/midi-sampler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidlang42%2Fmidi-sampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidlang42%2Fmidi-sampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidlang42%2Fmidi-sampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidlang42%2Fmidi-sampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidlang42","download_url":"https://codeload.github.com/davidlang42/midi-sampler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidlang42%2Fmidi-sampler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":["midi"],"created_at":"2026-03-01T04:32:12.997Z","updated_at":"2026-03-01T04:32:13.603Z","avatar_url":"https://github.com/davidlang42.png","language":"Rust","funding_links":["https://ko-fi.com/davidlang42"],"categories":[],"sub_categories":[],"readme":"# midi-sampler\nA CLI tool which reads notes from MIDI-IN and plays corresponding WAV samples to audio out\n\nFrom https://github.com/RustAudio/cpal:\n\n```\nNote that on Linux, the ALSA development files are required. These are provided as part of the libasound2-dev package on Debian and Ubuntu distributions and alsa-lib-devel on Fedora.\n```\n\nFor simplicity, the current CLI interface takes only 1 argument, the path to the SETTINGS file, which defaults to `settings.json`. The SETTINGS file is expected to be valid json representing a single or comma separated list of the settings objects described below. For ease of use, the surrounding `[` and `]` are implied and should not be included in the file.\n```\n{\n    \"msb\": 0-127, \"lsb\": 0-127, \"pc\": 1-128 // sets which program change will trigger this set of settings\n    \"name\": \"A label for this set of samples\", // currently only used for debugging\n    \"samples\": { // the mapping of note names to WAV files\n        \"A0\": \"/home/pi/lightning-low.wav\",\n        \"C8\": \"/home/pi/lightning-high.wav\",\n        ...\n    }\n}\n```\n\nUpon starting, it expects there to be no MIDI devices (to ensure that the audio device has connected cleanly) then waits for exactly 1 MIDI device to be connected. This device is then used as MIDI-IN.\n\nIn order to use multiple sets of samples, the sampler listens to MIDI program changes matching the msb/lsb/pc of each settings object in the SETTINGS file.\n\nFor instructions on how to run this on a Raspberry Pi Zero 2w, click [here](hardware/SETUP.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidlang42%2Fmidi-sampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidlang42%2Fmidi-sampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidlang42%2Fmidi-sampler/lists"}