{"id":27953161,"url":"https://github.com/johnelse/mkaudio","last_synced_at":"2026-03-14T13:19:38.231Z","repository":{"id":66952542,"uuid":"79812894","full_name":"johnelse/mkaudio","owner":"johnelse","description":"CLI program for generating audio files","archived":false,"fork":false,"pushed_at":"2025-03-18T01:10:04.000Z","size":57,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T01:27:58.682Z","etag":null,"topics":["audio","cli","ocaml"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/johnelse.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"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}},"created_at":"2017-01-23T14:42:12.000Z","updated_at":"2025-03-18T01:04:36.000Z","dependencies_parsed_at":"2023-05-15T18:15:31.818Z","dependency_job_id":null,"html_url":"https://github.com/johnelse/mkaudio","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelse%2Fmkaudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelse%2Fmkaudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelse%2Fmkaudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelse%2Fmkaudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnelse","download_url":"https://codeload.github.com/johnelse/mkaudio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922176,"owners_count":21825633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","cli","ocaml"],"created_at":"2025-05-07T17:01:37.739Z","updated_at":"2026-03-14T13:19:33.186Z","avatar_url":"https://github.com/johnelse.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"mkaudio\n=======\n\n[![Build status](https://github.com/johnelse/mkaudio/actions/workflows/workflow.yml/badge.svg)](https://github.com/johnelse/mkaudio/actions)\n\nCLI program for generating audio files\n\nSupported commands:\n\n* `saw`, `sine`, `square`, `triangle`\n\nGenerate a waveform with a specified duration and frequency. Duration can be\nspecified in hours, minutes or seconds, or as a number of beats and a tempo in\nBPM. For example:\n\nGenerate 5 seconds of saw wave:\n\n```\nmkaudio saw --frequency 440 --duration 5s sound.wav\n```\n\nGenerate a sine wave lasting 4 beats at 120bpm (i.e. 2 seconds):\n\n```\nmkaudio sine --frequency 440 --beats 4 --tempo 120 sound.wav\n```\n\nGenerate a square wave lasting half a minute:\n\n```\nmkaudio square --frequency 440 --duration 0.5m sound.wav\n```\n\n* `white-noise`\n\nDuration is specified in the same way as for waveforms, e.g. to generate 10\nseconds of white noise:\n\n```\nmkaudio white-noise --duration 10s sound.wav\n```\n\n* `beat`\n\nGenerate a simple beat from kick, snare and hi-hat patterns. Patterns are\nspecified as strings; each character which is `1` or `x` corresponds to a drum\nhit; any other character corresponds to a lack of drum hit. Each character\nrepresents one sixteenth note at the specified tempo. The `--repeats` parameter\nallows generation of longer beats without typing in long repetitive patterns.\n\n8 beats of eighth note hihats:\n\n```\nmkaudio beat --hihat 10 --repeats 16 --tempo 120 sound.wav\n```\n\nA simple syncopated beat lasting 4 beats:\n\n```\nmkaudio beat \\\n    --kick 1001000100100000 \\\n    --snare 0000100000001000 \\\n    --hihat 1111111111111111 \\\n    --tempo 120 sound.wav\n```\n\nFor more information, and all optional parameters, see `mkaudio --help` and\n`mkaudio \u003ccommand\u003e --help`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnelse%2Fmkaudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnelse%2Fmkaudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnelse%2Fmkaudio/lists"}